Shuxia Ning
2024-12-23 701340a6acf3cccc33864d0e1a1053870b2238bb
WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs
@@ -11,7 +11,7 @@
        public PipeViewModel(Vmo.AssetsPipeMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
@@ -31,17 +31,16 @@
            this.Hazen = rhs.Hazen;
            this.Darcy = rhs.Darcy;
            this.Manning = rhs.Manning;
            this.Name = rhs.Name;
            this.MinorLoss = rhs.MinorLoss;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.KeyWord = string.Join(",", rhs.KeyWord);
        }
        public void Reset(Vmo.AssetsPipeMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Hazen = rhs.Hazen;
            this.Darcy = rhs.Darcy;
            this.Manning = rhs.Manning;
            this.Name = rhs.Name;
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
@@ -50,11 +49,21 @@
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            this.Material = rhs.Material;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            if (rhs.Material == null)
            {
                this.Material = "默认";
            }
            else
            {
                this.Material = rhs.Material.ToString();
            }
            this.Hazen = rhs.Hazen;
            this.Darcy = rhs.Darcy;
            this.Manning = rhs.Manning;
            this.MinorLoss = rhs.MinorLoss;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.KeyWord = string.Join(",", rhs.KeyWord);
        }
        /// <summary>
@@ -105,6 +114,13 @@
        public double? Manning { get; set; }
        /// <summary>
        /// 系数
        /// </summary>
        [DisplayName("局阻系数")]
        [Browsable(true)]
        public double MinorLoss { get; set; }
        /// <summary>
        /// 排序码
        /// </summary>
        [DisplayName("排序码")]