lixiaojun
2022-11-23 48bf955aa337d70111afcc0ff87e0e0671b510c8
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using SqlSugar;
 
namespace IStation.Entity
{
    /// <summary>
    /// 设备
    /// </summary>
    [SugarTable("product")]
    public class Product : CorpTraceEntity, System.ICloneable,ITreeSorter,IUseStatus,ITagName,ITerminalId
    {
        /// <summary>
        /// 
        /// </summary>
        public Product() { }
 
        /// <summary>
        /// 
        /// </summary>
        public Product(Product rhs) : base(rhs)
        {
            this.ParentIds = rhs.ParentIds;
            this.BelongType = rhs.BelongType;
            this.BelongID = rhs.BelongID;
            this.GroupID = rhs.GroupID;
            this.Catalog = rhs.Catalog;
            this.ProductTypeID = rhs.ProductTypeID;
            this.NO=rhs.NO;
            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.PropsParas = rhs.PropsParas;
            this.RatedParas = rhs.RatedParas;
            this.StartUseDay = rhs.StartUseDay;
            this.SameMark = rhs.SameMark;
            this.RealImage = rhs.RealImage;
            this.SiteImage = rhs.SiteImage;
            this.Model3DViewUrl = rhs.Model3DViewUrl;
            this.ExplosionImage = rhs.ExplosionImage;
            this.InspectionSchedule = rhs.InspectionSchedule;
            this.Address = rhs.Address;
            this.TerminalId = rhs.TerminalId;
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
        }
 
        /// <summary>
        /// 父节点标识
        /// </summary>    
        public string ParentIds
        {
            get { return _parentids; }
            set { _parentids = value; }
        }
        private string _parentids;
 
        /// <summary>
        /// 所属类型
        /// </summary>    
        public string BelongType
        {
            get { return _belongtype; }
            set { _belongtype = value; }
        }
        private string _belongtype;
 
        /// <summary>
        /// 所属标识
        /// </summary>    
        public long BelongID
        {
            get { return _belongid; }
            set { _belongid = value; }
        }
        private long _belongid;
 
        /// <summary>
        /// 组标识 
        /// </summary>    
        public long GroupID
        {
            get { return _groupid; }
            set { _groupid = value; }
        }
        private long _groupid;
 
        /// <summary>
        /// 设备类别
        /// </summary>    
        public string Catalog
        {
            get { return _catalog; }
            set { _catalog = value; }
        }
        private string _catalog;
 
        /// <summary>
        /// 设备类型标识
        /// </summary>    
        public long ProductTypeID
        {
            get { return _producttypeid; }
            set { _producttypeid = value; }
        }
        private long _producttypeid;
 
        /// <summary>
        /// 编码
        /// </summary>    
        public string NO
        {
            get { return _no; }
            set { _no = value; } 
        }
        private string _no;
 
        /// <summary>
        /// 名称
        /// </summary>    
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _name;
 
        /// <summary>
        /// 型号
        /// </summary>    
        public string Code
        {
            get { return _code; }
            set { _code = value; }
        }
        private string _code;
 
        /// <summary>
        /// 规格
        /// </summary>    
        public string Specification
        {
            get { return _specification; }
            set { _specification = value; }
        }
        private string _specification;
 
        /// <summary>
        /// 材质
        /// </summary>    
        public string Material
        {
            get { return _material; }
            set { _material = value; }
        }
        private string _material;
 
        /// <summary>
        /// 尺寸
        /// </summary>    
        public string Size
        {
            get { return _size; }
            set { _size = value; }
        }
        private string _size;
 
        /// <summary>
        /// 单位
        /// </summary>    
        public string UnitName
        {
            get { return _unitname; }
            set { _unitname = value; }
        }
        private string _unitname;
 
        /// <summary>
        /// 数量
        /// </summary>    
        public double Quantity
        {
            get { return _quantity; }
            set { _quantity = value; }
        }
        private double _quantity = 1;
 
        /// <summary>
        /// 厂商
        /// </summary>    
        public long ManufacturerID
        {
            get { return _manufacturerid; }
            set { _manufacturerid = value; }
        }
        private long _manufacturerid;
 
        /// <summary>
        /// 出厂编号
        /// </summary>    
        public string ManufacturerNO
        {
            get { return _manufacturerno; }
            set { _manufacturerno = value; }
        }
        private string _manufacturerno;
 
        /// <summary>
        /// 出场日期
        /// </summary>    
        public string ManufacturerDay
        {
            get { return _manufacturerday; }
            set { _manufacturerday = value; }
        }
        private string _manufacturerday;
 
        /// <summary>
        /// 合同编号
        /// </summary>    
        public string ContractNO
        {
            get { return _contractno; }
            set { _contractno = value; }
        }
        private string _contractno;
 
        /// <summary>
        /// 存储位置
        /// </summary>    
        public string StorageLocation
        {
            get { return _storagelocation; }
            set { _storagelocation = value; }
        }
        private string _storagelocation;
 
        /// <summary>
        /// 开始使用日期
        /// </summary>    
        public DateTime? StartUseDay
        {
            get { return _startuseday; }
            set { _startuseday = value; }
        }
        private DateTime? _startuseday;
 
        /// <summary>
        /// 同类标识
        /// </summary>    
        public string SameMark
        {
            get { return _samemark; }
            set { _samemark = value; }
        }
        private string _samemark;
 
        /// <summary>
        /// 实物图
        /// </summary>    
        public string RealImage
        {
            get { return _realimage; }
            set { _realimage = value; }
        }
        private string _realimage;
 
        /// <summary>
        /// 现场图片
        /// </summary>    
        public string SiteImage
        {
            get { return _siteimage; }
            set { _siteimage = value; }
        }
        private string _siteimage;
 
        /// <summary>
        /// 三维图 路径
        /// </summary>    
        public string Model3DViewUrl
        {
            get { return _model3dviewurl; }
            set { _model3dviewurl = value; }
        }
        private string _model3dviewurl;
 
        /// <summary>
        /// 爆炸图
        /// </summary>    
        public string ExplosionImage
        {
            get { return _explosionimage; }
            set { _explosionimage = value; }
        }
        private string _explosionimage;
 
        /// <summary>
        /// 地址
        /// </summary>    
        public string Address
        {
            get { return _address; }
            set { _address = value; }
        }
        private string _address;
 
        /// <summary>
        /// 巡检周期
        /// </summary>    
        public int InspectionSchedule
        {
            get { return _inspectionSchedule; }
            set { _inspectionSchedule = value; }
        }
        private int _inspectionSchedule;
 
        /// <summary>
        /// 附加属性
        /// </summary>    
        public string PropsParas
        {
            get { return _propsparas; }
            set { _propsparas = value; }
        }
        private string _propsparas;
 
        /// <summary>
        /// 额定参数
        /// </summary>    
        public string RatedParas
        {
            get { return _ratedparas; }
            set { _ratedparas = value; }
        }
        private string _ratedparas;
 
        /// <summary>
        /// 终端标识
        /// </summary>    
        public string TerminalId
        {
            get { return _terminalid; }
            set { _terminalid = value; }
        }
        private string _terminalid;
 
        /// <summary>
        /// 标签
        /// </summary>    
        public string TagName
        {
            get { return _tagname; }
            set { _tagname = value; }
        }
        private string _tagname;
 
        /// <summary>
        /// 使用状态
        /// </summary>    
        public int UseStatus
        {
            get { return _usestatus; }
            set { _usestatus = value; }
        }
        private int _usestatus;
 
        /// <summary>
        /// 排序码
        /// </summary>    
        public int SortCode
        {
            get { return _sortcode; }
            set { _sortcode = value; }
        }
        private int _sortcode;
 
        /// <summary>
        /// 说明
        /// </summary>    
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        private string _description;
 
        /// <summary>
        /// 
        /// </summary>
        public Product Clone()
        {
            return (Product)this.MemberwiseClone();
        }
 
        object ICloneable.Clone()
        {
            return this.MemberwiseClone();
        }
    }
 
}