duheng
2024-11-12 0bc0468692ad7b16cd2d49d20c4689ddcd6fb212
WinFrmUI/HStation.WinFrmUI.Assets.Core/04-pipe/02-main/PipeViewModel.cs
@@ -22,18 +22,18 @@
            }
            if (rhs.Material == null)
            {
                this.MaterialName = "默认";
                this.Material = "默认";
            }
            else
            {
                this.MaterialName = rhs.Material.ToString();
                this.Material = rhs.Material.ToString();
            }
            this.Hazen = rhs.Hazen;
            this.Darcy = rhs.Darcy;
            this.Manning = rhs.Manning;
            this.Name = rhs.Name;
            this.SortCode = rhs.SortCode;
            this.KeyWord = rhs.KeyWord;
            this.KeyWord = string.Join(",", rhs.KeyWord);
        }
        public void Reset(Vmo.AssetsPipeMainVmo rhs)
@@ -50,10 +50,10 @@
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            this.MaterialName = rhs.Material;
            this.Material = rhs.Material;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.KeyWord = rhs.KeyWord;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.SortCode = rhs.SortCode;
        }
@@ -81,7 +81,7 @@
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string MaterialName { get; set; }
        public string Material { get; set; }
        /// <summary>
        /// Hazen
@@ -116,14 +116,7 @@
        /// </summary>
        [DisplayName("关键字")]
        [Browsable(true)]
        public List<string> KeyWord { get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>
        [DisplayName("是否默认")]
        [Browsable(true)]
        public bool IsDefault { get; set; }
        public string KeyWord { get; set; }
        /// <summary>
        /// 说明