lixiaojun
2022-09-27 64cf9d5d5e26085d04ae54595b026b31c4c3427d
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
using IStation.Untity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.Application
{
    /// <summary>
    /// 
    /// </summary>
    public class ProductLogicDto<T>
    {
        /// <summary>
        /// 
        /// </summary>
        public ProductLogicDto() { }
 
        /// <summary>
        /// 
        /// </summary>
        public ProductLogicDto(Model.Product<T> rhs, List<Model.ProductTypePropertyGroupExItems> property_group_list = null)
        {
            this.ID = rhs.ID;
            this.ParentID = TreeParentIdsHelper.GetLastParentID(rhs.ParentIds);
            this.ParentIds = rhs.ParentIds;
            this.CorpID = rhs.CorpID;
            this.BelongType = rhs.BelongType;
            this.BelongID = rhs.BelongID;
            this.GroupID = rhs.GroupID;
            this.Catalog = rhs.Catalog;
            this.ProductTypeID = rhs.ProductTypeID;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.Specification = rhs.Specification;
            this.Material = rhs.Material;
            this.Size = rhs.Size;
            this.UnitName = rhs.UnitName;
            this.Quantity = rhs.Quantity;
            this.ManufacturerID = rhs.ManufacturerID;
            this.ManufacturerNO = rhs.ManufacturerNO;
            this.ManufacturerDay = rhs.ManufacturerDay;
            this.ContractNO = rhs.ContractNO;
            this.StorageLocation = rhs.StorageLocation;
            this.StartUseDay = rhs.StartUseDay?.ToString("yyyy-MM-dd");
            this.SameMark = rhs.SameMark;
            this.RealImage = rhs.RealImage;
            this.SiteImage = rhs.SiteImage;
            this.Model3DViewUrl = rhs.Model3DViewUrl;
            this.ExplosionImage = rhs.ExplosionImage;
            this.Address = rhs.Address;
            this.InspectionSchedule = rhs.InspectionSchedule;
            this.PropsParas = property_group_list?.Select(x => new ProductPropertyGroupLogicDto(x, rhs.PropsParas)).ToList();
            this.RatedParas = rhs.RatedParas;
            this.TerminalId = rhs.TerminalId;
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
 
 
        /// <summary>
        /// 标识
        /// </summary>    
        public long ID { get; set; }
 
        /// <summary>
        /// 客户标识
        /// </summary>    
        public long CorpID { get; set; }
 
        /// <summary>
        /// 父节点标识
        /// </summary>
        public long ParentID { get; set; }
 
        /// <summary>
        /// 父节点标识列表
        /// </summary>    
        public List<long> ParentIds { get; set; }
 
        /// <summary>
        /// 所属类型
        /// </summary>    
        public string BelongType { get; set; }
 
        /// <summary>
        /// 所属标识
        /// </summary>    
        public long BelongID { get; set; }
 
        /// <summary>
        /// 组标识
        /// </summary>    
        public long GroupID { get; set; }
 
        /// <summary>
        /// 类别
        /// </summary>    
        public string Catalog { get; set; }
 
        /// <summary>
        /// 设备类型标识
        /// </summary>    
        public long ProductTypeID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>    
        public string Name { get; set; }
 
        /// <summary>
        /// 型号
        /// </summary>    
        public string Code { get; set; }
 
        /// <summary>
        /// 规格
        /// </summary>    
        public string Specification { get; set; }
 
        /// <summary>
        /// 材质
        /// </summary>    
        public string Material { get; set; }
 
        /// <summary>
        /// 尺寸
        /// </summary>    
        public string Size { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>    
        public string UnitName { get; set; }
 
        /// <summary>
        /// 数量
        /// </summary>    
        public double Quantity { get; set; }
 
        /// <summary>
        /// 厂商
        /// </summary>    
        public long ManufacturerID { get; set; }
 
        /// <summary>
        /// 出厂编号
        /// </summary>    
        public string ManufacturerNO { get; set; }
 
        /// <summary>
        /// 出场日期
        /// </summary>    
        public string ManufacturerDay { get; set; }
 
        /// <summary>
        /// 合同编号
        /// </summary>    
        public string ContractNO { get; set; }
 
        /// <summary>
        /// 存储位置
        /// </summary>    
        public string StorageLocation { get; set; }
 
        /// <summary>
        /// 开始使用日期
        /// </summary>    
        public string StartUseDay { get; set; }
 
        /// <summary>
        /// 同类标识
        /// </summary>    
        public string SameMark { get; set; }
 
        /// <summary>
        /// 实物图
        /// </summary>    
        public string RealImage { get; set; }
 
        /// <summary>
        /// 现场图片
        /// </summary>    
        public string SiteImage { get; set; }
 
        /// <summary>
        /// 三维图 路径
        /// </summary>    
        public string Model3DViewUrl { get; set; }
 
        /// <summary>
        /// 爆炸图
        /// </summary>    
        public string ExplosionImage { get; set; }
 
        /// <summary>
        /// 地址
        /// </summary>    
        public string Address { get; set; }
 
        /// <summary>
        /// 巡检周期
        /// </summary>
        public Model.Product.eInspectionSchedule InspectionSchedule { get; set; }
 
        /// <summary>
        /// 属性参数
        /// </summary>    
        public List<ProductPropertyGroupLogicDto> PropsParas { get; set; }
 
        /// <summary>
        /// 额定参数
        /// </summary>    
        public T RatedParas { get; set; }
 
        /// <summary>
        /// 终端标识
        /// </summary>    
        public string TerminalId { get; set; }
 
        /// <summary>
        /// 标签
        /// </summary>    
        public string TagName { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>    
        public int SortCode { get; set; }
 
        /// <summary>
        /// 使用状态
        /// </summary>    
        public Model.Product.eUseStatus UseStatus { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>    
        public string Description { get; set; }
    }
}