| | |
| | | using System.ComponentModel; |
| | | using System.Windows.Forms.VisualStyles; |
| | | using Yw.Untity; |
| | | |
| | | namespace PBS.WinFrmUI |
| | | { |
| | |
| | | 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.Paras = rhs.Paras == null ? null : rhs.Paras; |
| | | this.Flags = FlagsHelper.ToString(rhs.Flags); |
| | | this.TagName = rhs.TagName; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | |
| | | public void Resert(Vmo.FacilityVmo rhs) |
| | | { |
| | |
| | | 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.Paras = rhs.Paras == null ? null : rhs.Paras; |
| | | this.Flags = FlagsHelper.ToString(rhs.Flags); |
| | | this.TagName = rhs.TagName; |
| | | this.UseStatus = rhs.UseStatus; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | ///</summary> |
| | | [DisplayName("ID")] |
| | | [Browsable(false)] |
| | | public long ID { get; set; } |
| | | public long ID { get; set; } |
| | | |
| | | /// <summary> |
| | | /// PlaceID |
| | | ///</summary> |
| | | [DisplayName("PlaceID")] |
| | | [Browsable(false)] |
| | | [Browsable(true)] |
| | | public long PlaceID { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | /// <summary> |
| | | /// 名称 |
| | | ///</summary> |
| | | [DisplayName("Name")] |
| | | [DisplayName("名称")] |
| | | [Browsable(true)] |
| | | public string Name { get; set; } |
| | | |
| | |
| | | ///</summary> |
| | | [DisplayName("供水单元")] |
| | | [Browsable(true)] |
| | | public int WaterSupply { get; set; } |
| | | public eWaterSupply WaterSupply { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 供水模式 |
| | | ///</summary> |
| | | [DisplayName("供水模式")] |
| | | [Browsable(true)] |
| | | |
| | | public int SupplyMode { get; set; } |
| | | public eSupplyMode SupplyMode { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 楼层 |
| | | ///</summary> |
| | | [DisplayName("楼层")] |
| | | [Browsable(true)] |
| | | |
| | | public int Floor { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | ///</summary> |
| | | [DisplayName("层高")] |
| | | [Browsable(true)] |
| | | |
| | | public double? FloorHeight { get; set; } |
| | | |
| | | /// <summary> |
| | |
| | | [DisplayName("最大需水量")] |
| | | [Browsable(true)] |
| | | public double? MaxWaterDemand { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 入户管长 |
| | | ///</summary> |
| | | [DisplayName("入户管长")] |
| | | [Browsable(true)] |
| | | public double? ServicePipeLength { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 恒定压力 |
| | |
| | | ///</summary> |
| | | [DisplayName("标签")] |
| | | [Browsable(true)] |
| | | public List<string> Flags { get; set; } |
| | | public string Flags { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标志 |
| | |
| | | ///</summary> |
| | | [DisplayName("使用状态")] |
| | | [Browsable(true)] |
| | | public int UseStatus { get; set; } |
| | | public Yw.Vmo.eUseStatus UseStatus { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 排序码 |
| | |
| | | [DisplayName("说明")] |
| | | [Browsable(true)] |
| | | public string Description { get; set; } |
| | | |
| | | public Vmo.FacilityVmo Vmo { get; set; } |
| | | } |
| | | } |