Shuxia Ning
2024-11-13 208ca42e1c20afafbe48d66259d553ee81eb48ed
WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/FourLinkViewModel.cs
@@ -8,7 +8,7 @@
        {
        }
        public FourLinkViewModel(Vmo.FourLinkMainVmo rhs)
        public FourLinkViewModel(Vmo.AssetsFourlinkMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
@@ -20,22 +20,21 @@
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            if (rhs.MaterialName == null)
            if (rhs.Material == null)
            {
                this.MaterialName = "默认";
                this.Material = "默认";
            }
            else
            {
                this.MaterialName = rhs.MaterialName.ToString();
                this.Material = rhs.Material.ToString();
            }
            this.Name = rhs.Name;
            this.SortCode = rhs.SortCode;
            this.KeyWord = rhs.KeyWord;
            this.IsDefault = rhs.IsDefault;
            this.Coefficient = rhs.Coefficient;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.Coefficient = rhs.MinorLoss;
        }
        public void Reset(Vmo.FourLinkMainVmo rhs)
        public void Reset(Vmo.AssetsFourlinkMainVmo rhs)
        {
            this.ID = rhs.ID;
            if (rhs.Caliber == null)
@@ -46,20 +45,19 @@
            {
                this.Caliber = rhs.Caliber.ToString();
            }
            if (rhs.MaterialName == null)
            if (rhs.Material == null)
            {
                this.MaterialName = "默认";
                this.Material = "默认";
            }
            else
            {
                this.MaterialName = rhs.MaterialName.ToString();
                this.Material = rhs.Material.ToString();
            }
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.KeyWord = rhs.KeyWord;
            this.IsDefault = rhs.IsDefault;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.SortCode = rhs.SortCode;
            this.Coefficient = rhs.Coefficient;
            this.Coefficient = rhs.MinorLoss;
        }
        /// <summary>
@@ -86,7 +84,7 @@
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string MaterialName { get; set; }
        public string Material { get; set; }
        /// <summary>
        /// 系数
@@ -108,13 +106,6 @@
        [DisplayName("关键字")]
        [Browsable(true)]
        public string KeyWord { get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>
        [DisplayName("是否默认")]
        [Browsable(true)]
        public bool IsDefault { get; set; }
        /// <summary>
        /// 说明