duheng
2024-09-25 4fcba32251505d3e3978e2c6a1103a6a0e0a0834
WinFrmUI/HStation.WinFrmUI.Assets.Core/05-ValveManage/00-ViewModel/ValveMainViewModel.cs
@@ -12,9 +12,17 @@
            this.CreateName = rhs.CreateName;
            this.Description = rhs.Description;
            this.Material = rhs.Material;
            this.Caliber = rhs.Caliber;//mm
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
            }
            else
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            this.Coefficient = rhs.Coefficient;
            this.SeriesID = rhs.SeriesID;
            this.Type = rhs.Type;
            this.SortCode = rhs.SortCode;
        }
@@ -26,9 +34,17 @@
            this.CreateName = rhs.CreateName;
            this.Description = rhs.Description;
            this.Material = rhs.Material;
            this.Caliber = rhs.Caliber;//mm
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
            }
            else
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            this.Coefficient = rhs.Coefficient;
            this.SeriesID = rhs.SeriesID;
            this.Type = rhs.Type;
            this.SortCode = rhs.SortCode;
        }
@@ -46,7 +62,7 @@
        /// <summary>
        /// 口径
        /// </summary>
        [DisplayName("口径")]
        [DisplayName("口径(mm)")]
        [Browsable(true)]
        public string Caliber { get; set; }
@@ -58,18 +74,18 @@
        public string Material { get; set; }
        /// <summary>
        /// 系数
        /// 损失系数
        /// </summary>
        [DisplayName("系数")]
        [DisplayName("损失系数")]
        [Browsable(true)]
        public string Coefficient { get; set; }
        public double Coefficient { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [DisplayName("类型")]
        [Browsable(true)]
        public string Type { get; set; }
        public HStation.Assets.eValveSeriesType Type { get; set; }
        /// <summary>
        /// 说明
@@ -88,7 +104,7 @@
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [DisplayName("型号")]
        [Browsable(true)]
        public string Name { get; set; }