using IStation.Model;
|
using IStation.Model.Bimface;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Application
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class DemoBimfaceFileDto
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public DemoBimfaceFileDto() { }
|
/// <summary>
|
///
|
/// </summary>
|
public DemoBimfaceFileDto(Model.BimfaceFile file, Model.BimfaceFileMapping mapping)
|
{
|
this.BelongType = mapping.BelongType;
|
this.BelongID = mapping.BelongID;
|
this.FileID = file.ID;
|
this.BimfaceID = file.BimfaceID;
|
this.MappingID = mapping.ID;
|
this.FileTypeID = mapping.BimfaceFileTypeID;
|
this.FileName = file.Name;
|
this.ModelType = file.ModelType;
|
this.FileStatus = file.FileStatus;
|
this.FileSize = file.FileSize;
|
this.FormatType = file.FormatType;
|
this.FileSuffix = file.FileSuffix;
|
this.StorageUrl = file.StorageUrl;
|
this.FileSettings = Model.BimfaceFile.FileSettingsModel.ToModel(file.Settings);
|
this.MappingSettings = Model.BimfaceFileMapping.MappingSettingsModel.ToModel(mapping.Settings);
|
}
|
|
/// <summary>
|
/// 所属类型
|
/// </summary>
|
public string BelongType { get; set; }
|
|
/// <summary>
|
/// 所属标识
|
/// </summary>
|
public long BelongID { get; set; }
|
|
/// <summary>
|
/// 文件标识
|
/// </summary>
|
public long FileID { get; set; }
|
|
/// <summary>
|
/// 映射标识
|
/// </summary>
|
public long MappingID { get; set; }
|
|
/// <summary>
|
/// 文件类型标识
|
/// </summary>
|
public long FileTypeID { get; set; }
|
|
/// <summary>
|
/// 平台标识
|
/// </summary>
|
public long BimfaceID { get; set; }
|
|
/// <summary>
|
/// 文件名称
|
/// </summary>
|
public string FileName { get; set; }
|
|
/// <summary>
|
/// 模型类型
|
/// </summary>
|
public eModelType ModelType { get; set; }
|
|
/// <summary>
|
/// 文件状态
|
/// </summary>
|
public eFileStatus FileStatus { get; set; }
|
|
/// <summary>
|
/// 文件大小
|
/// </summary>
|
public string FileSize { get; set; }
|
|
/// <summary>
|
/// 文件格式
|
/// </summary>
|
public eFormatType FormatType { get; set; }
|
|
/// <summary>
|
/// 文件后缀
|
/// </summary>
|
public string FileSuffix { get; set; }
|
|
/// <summary>
|
/// 存储URL 为空代表BIMFACE服务器
|
/// </summary>
|
public string StorageUrl { get; set; }
|
|
/// <summary>
|
/// 文件设置
|
/// </summary>
|
public Model.BimfaceFile.FileSettingsModel FileSettings { get; set; }
|
|
/// <summary>
|
/// 映射设置
|
/// </summary>
|
public Model.BimfaceFileMapping.MappingSettingsModel MappingSettings { get; set; }
|
|
|
}
|
}
|