duheng
2024-12-04 b32c0a21755ac3e86df0242d993398773cb627f2
WinFrmUI/HStation.WinFrmUI.Assets.Core/18-pressmeter/BluntheadViewModel.cs
@@ -11,53 +11,21 @@
        public PressmeterViewModel(Vmo.AssetsPressmeterMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
            }
            else
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            if (rhs.Material == null)
            {
                this.Material = "默认";
            }
            else
            {
                this.Material = rhs.Material.ToString();
            }
            this.Name = rhs.Name;
            this.SortCode = rhs.SortCode;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.MinorLoss = rhs.MinorLoss;
            this.Description = rhs.Description;
        }
        public void Reset(Vmo.AssetsPressmeterMainVmo rhs)
        {
            this.ID = rhs.ID;
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
            }
            else
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            if (rhs.Material == null)
            {
                this.Material = "默认";
            }
            else
            {
                this.Material = rhs.Material.ToString();
            }
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.SortCode = rhs.SortCode;
            this.MinorLoss = rhs.MinorLoss;
            this.Description = rhs.Description;
        }
        /// <summary>
@@ -71,20 +39,6 @@
        [DisplayName("名称")]
        [Browsable(true)]
        public string Name { get; set; }
        /// <summary>
        /// 口径
        /// </summary>
        [DisplayName("口径(mm)")]
        [Browsable(true)]
        public string Caliber { get; set; }
        /// <summary>
        /// 材料
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string Material { get; set; }
        /// <summary>
        /// 系数