ningshuxia
2025-03-13 b01deb5ed6f6bf5f7b8f2789a7990b7bb21d2481
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
 
namespace ISupply.Model
{
    /// <summary>
    /// 设施
    /// </summary>
    public class Facilities : Model.BaseTraceModel, System.ICloneable
    {
        public Facilities() { }
        public Facilities(Facilities rhs) : base(rhs)
        {
            this.TemplateID = rhs.TemplateID;
            this.Name = rhs.Name;
            this.BuildingID = rhs.BuildingID;
            this.SupplyMode = rhs.SupplyMode;
            this.Floor = rhs.Floor;
            this.FloorHouseHolds = rhs.FloorHouseHolds;
            this.FloorHeight = rhs.FloorHeight;
            this.Flags = rhs.Flags?.ToList();
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.HouseLength = rhs.HouseLength;
            this.FID = rhs.FID;
            this.ModelConfig = rhs.ModelConfig;
            this.Model3dID = rhs.Model3dID;
            this.ChangeCoefficient = rhs.ChangeCoefficient;
            this.WaterAmount = rhs.WaterAmount;
            this.WaterHeight = rhs.WaterHeight;
            this.WaterPressure = rhs.WaterPressure;
            this.CompletePlant = rhs.CompletePlant;
            this.WaterSupply = rhs.WaterSupply;
            this.ColorGrade = rhs.ColorGrade;
            this.ModelType = rhs.ModelType;
            this.MaxHeight = rhs.MaxHeight;
            this.ViewParams = rhs.ViewParams;
            this.ConstantP = rhs.ConstantP;
        }
 
        public void Reset(Facilities rhs)
        {
            base.Reset(rhs);
            this.ID = rhs.ID;
            this.TemplateID = rhs.TemplateID;
            this.Name = rhs.Name;
            this.BuildingID = rhs.BuildingID;
            this.SupplyMode = rhs.SupplyMode;
            this.Floor = rhs.Floor;
            this.FloorHouseHolds = rhs.FloorHouseHolds;
            this.FloorHeight = rhs.FloorHeight;
            this.Flags = rhs.Flags?.ToList();
            this.TagName = rhs.TagName;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.HouseLength = rhs.HouseLength;
            this.ModelConfig = rhs.ModelConfig;
            this.Model3dID = rhs.Model3dID;
            this.FID = rhs.FID;
            this.ChangeCoefficient = rhs.ChangeCoefficient;
            this.WaterAmount = rhs.WaterAmount;
            this.WaterHeight = rhs.WaterHeight;
            this.WaterPressure = rhs.WaterPressure;
            this.CompletePlant = rhs.CompletePlant;
            this.WaterSupply = rhs.WaterSupply;
            this.UpdateTime = DateTime.Now;
            this.ModelType = rhs.ModelType;
            this.ColorGrade = rhs.ColorGrade;
            this.MaxHeight = rhs.MaxHeight;
            this.ViewParams = rhs.ViewParams;
            this.ConstantP=rhs.ConstantP;
        }
        /// <summary>
        /// 颜色分级
        /// </summary>
        [Display(Name = "颜色分级")]
        public string ColorGrade { get; set; }
 
        /// <summary>
        /// 模型显示参数
        /// </summary>
        [Browsable(false)]
        [Display(Name = "模型显示参数")]
        public string ViewParams { get; set; }
        /// <summary>
        /// 模型类型,fire:消防,supply:二供
        /// </summary>
        [Display(Name = "模型类型")]
        public string ModelType { get; set; }
        /// <summary>
        /// 名称
        /// </summary>         
        [Display(Name = "名称")]
        public string Name { get; set; }
 
        /// <summary>
        /// 模板标识
        /// </summary>
        [Display(Name = "模板标识")]
        public long TemplateID { get; set; }
 
        /// <summary>
        /// 建筑物ID
        /// </summary>        
        [Display(Name = "建筑物ID")]
        public long BuildingID { get; set; }
 
        /// <summary>
        /// 供水模式
        /// </summary>        
        [Display(Name = "供水模式")]
        public Model.eSupplyMode SupplyMode { get; set; }
 
        /// <summary>
        /// 楼层
        /// </summary>        
        [Display(Name = "楼层")]
        public int? Floor { get; set; }
 
        /// <summary>
        /// 户数
        /// </summary>        
        [Display(Name = "户数")]
        public int? FloorHouseHolds { get; set; }
 
        /// <summary>
        /// 层高
        /// </summary>        
        [Display(Name = "层高")]
        public decimal? FloorHeight { get; set; }
 
        /// <summary>
        /// 入户管长
        /// </summary>        
        [Display(Name = "入户管长")]
        public decimal? HouseLength { get; set; }
 
        /// <summary>
        /// 恒定压力
        /// </summary>
        [Display(Name = "恒定压力")]
        public decimal? ConstantP {  get; set; }
 
        /// <summary>
        /// 模型配置
        /// </summary>        
        [Display(Name = "模型配置")]
        public string ModelConfig { get; set; }
 
        /// <summary>
        /// 三维模型ID
        /// </summary>        
        [Display(Name = "三维模型ID")]
        public string Model3dID { get; set; }
 
        /// <summary>
        /// 标签列表
        /// </summary>
        [Display(Name = "标签列表")]
        public List<string> Flags { get; set; }
 
        /// <summary>
        /// 标签名称
        /// </summary>    
        [Display(Name = "标签名称")]
        public string TagName { get; set; }
 
        /// <summary>
        /// 使用状态
        /// </summary>    
        [Display(Name = "使用状态")]
        public Model.eUseStatus UseStatus { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>    
        [Display(Name = "排序码")]
        public int SortCode { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>    
        [Display(Name = "说明")]
        public string Description { get; set; }
 
        /// <summary>
        /// 小时变化系数
        /// </summary>
        [Display(Name = "小时变化系数")]
        public double ChangeCoefficient { get; set; }
 
        /// <summary>
        /// 卫生器具给水当量
        /// </summary>
        [Display(Name = "卫生器具给水当量")]
        public double WaterAmount { get; set; }
 
        /// <summary>
        /// 最大用水量
        /// </summary>
        [Display(Name = "最大用水量")]
        public double WaterHeight { get; set; }
 
        /// <summary>
        /// 用户压力需求
        /// </summary>
        [Display(Name = "用户压力需求")]
        public double WaterPressure { get; set; }
 
        /// <summary>
        /// 成套设备
        /// </summary>
        [Display(Name = "成套设备")]
        public string CompletePlant { get; set; }
 
        /// <summary>
        /// 最高楼层标高
        /// </summary>
        [Display(Name = "最高楼层标高")]
        public double MaxHeight { get; set; }
        /// <summary>
        /// 供水单元
        /// </summary>
        [Display(Name = "供水单元")]
        public string WaterSupply { get; set; }
 
        /// <summary>
        /// FID
        /// </summary>
        [Display(Name = "FID")]
        public string FID { get; set; }
 
        public Facilities Clone()
        {
            return (Facilities)this.MemberwiseClone();
        }
 
        object ICloneable.Clone()
        {
            return this.MemberwiseClone();
        }
    }
}