duheng
2024-09-27 24c2e282bac49627cc1cbac2d4b8df73c1d066b7
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;
        }
@@ -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>
        /// 说明