qin
2025-03-20 330002911a64ea58d6834b64228870228eb75391
WinFrmUI/PBS.WinFrmUI/02-facility/00-core/FacilityViewModel.cs
@@ -1,5 +1,5 @@
using System.ComponentModel;
using System.Windows.Forms.VisualStyles;
using Yw.Untity;
namespace PBS.WinFrmUI
{
@@ -21,17 +21,16 @@
            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)
        {
@@ -45,16 +44,15 @@
            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>
@@ -62,13 +60,13 @@
        ///</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>
@@ -81,7 +79,7 @@
        /// <summary>
        /// 名称
        ///</summary>
        [DisplayName("Name")]
        [DisplayName("名称")]
        [Browsable(true)]
        public string Name { get; set; }
@@ -90,22 +88,20 @@
        ///</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>
@@ -113,7 +109,6 @@
        ///</summary>
        [DisplayName("层高")]
        [Browsable(true)]
        public double? FloorHeight { get; set; }
        /// <summary>
@@ -131,13 +126,6 @@
        [DisplayName("最大需水量")]
        [Browsable(true)]
        public double? MaxWaterDemand { get; set; }
        /// <summary>
        /// 入户管长
        ///</summary>
        [DisplayName("入户管长")]
        [Browsable(true)]
        public double? ServicePipeLength { get; set; }
        /// <summary>
        /// 恒定压力
@@ -165,7 +153,7 @@
        ///</summary>
        [DisplayName("标签")]
        [Browsable(true)]
        public List<string> Flags { get; set; }
        public string Flags { get; set; }
        /// <summary>
        /// 标志
@@ -179,7 +167,7 @@
        ///</summary>
        [DisplayName("使用状态")]
        [Browsable(true)]
        public int UseStatus { get; set; }
        public Yw.Vmo.eUseStatus UseStatus { get; set; }
        /// <summary>
        /// 排序码
@@ -194,5 +182,7 @@
        [DisplayName("说明")]
        [Browsable(true)]
        public string Description { get; set; }
        public Vmo.FacilityVmo Vmo { get; set; }
    }
}