ningshuxia
2022-10-28 3ccb7c60e1ed8b6748ed7fb8b64b1dbe50d62abf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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; }
 
 
    }
}