using Yw.Model; namespace PBS.Model { /// /// 设施 /// [SysType("pbs-facility")] public class Facility : BaseModel, IParas, IFlags, ITagName, IUseStatus, ISorter, System.ICloneable { /// /// /// public Facility() { } /// /// /// public Facility(Facility rhs) : base(rhs) { this.PlaceID = rhs.PlaceID; this.PackageID = rhs.PackageID; this.Name = rhs.Name; this.WaterSupply = rhs.WaterSupply; this.SupplyMode = rhs.SupplyMode; this.Floor = rhs.Floor; this.FloorHeight = rhs.FloorHeight; this.Households = rhs.Households; this.MaxWaterDemand = rhs.MaxWaterDemand; this.ServicePipeLength = rhs.ServicePipeLength; this.ConstantPressure = rhs.ConstantPressure; this.TerminalPressure = rhs.TerminalPressure; this.Paras = rhs.Paras == null ? null : new(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(Facility rhs) { this.ID = rhs.ID; this.PlaceID = rhs.PlaceID; this.PackageID = rhs.PackageID; this.Name = rhs.Name; this.WaterSupply = rhs.WaterSupply; this.SupplyMode = rhs.SupplyMode; this.Floor = rhs.Floor; this.FloorHeight = rhs.FloorHeight; this.Households = rhs.Households; this.MaxWaterDemand = rhs.MaxWaterDemand; this.ServicePipeLength = rhs.ServicePipeLength; this.ConstantPressure = rhs.ConstantPressure; this.TerminalPressure = rhs.TerminalPressure; this.Paras = rhs.Paras == null ? null : new(rhs.Paras); this.Flags = rhs.Flags?.ToList(); this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 场所标识 /// public long PlaceID { get; set; } /// /// 成套设备标识 /// public long PackageID { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 供水单元 /// public int WaterSupply { get; set; } /// /// 供水模式 /// public int SupplyMode { get; set; } /// /// 楼层 /// public int Floor { get; set; } /// /// 层高 /// public double? FloorHeight { get; set; } /// /// 户数 /// public int? Households { get; set; } /// /// 最大需水量 /// public double? MaxWaterDemand { get; set; } /// /// 入户管长 /// public double? ServicePipeLength { get; set; } /// /// 恒定压力 /// public double? ConstantPressure { get; set; } /// /// 末端压力 /// public double? TerminalPressure { get; set; } /// /// 参数 /// public Dictionary Paras { get; set; } /// /// 标签 /// public List Flags { get; set; } /// /// 标志 /// public string TagName { get; set; } /// /// 使用状态 /// public eUseStatus UseStatus { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public Facility Clone() { return (Facility)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }