duheng
2024-11-12 0bc0468692ad7b16cd2d49d20c4689ddcd6fb212
WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/ThreeLinkViewModel.cs
ÎļþÃû´Ó WinFrmUI/HStation.WinFrmUI.Assets.Core/06-threeLink/02-main/ThreeLinkViewModel.cs ÐÞ¸Ä
@@ -11,7 +11,6 @@
        public ThreeLinkViewModel(Vmo.AssetsThreelinkMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            if (rhs.Caliber == null)
            {
                this.Caliber = "默认";
@@ -20,19 +19,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.RunThroughMinorLoss = rhs.RunThroughMinorLoss;
            this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss;
            this.MinorLoss = rhs.MinorLoss;
            this.Description = rhs.Description;
        }
        public void Reset(Vmo.AssetsThreelinkMainVmo rhs)
@@ -46,20 +47,22 @@
            {
                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.SortCode = rhs.SortCode;
            this.Coefficient = rhs.Coefficient;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.RunThroughMinorLoss = rhs.RunThroughMinorLoss;
            this.BranchThroughMinorLoss = rhs.BranchThroughMinorLoss;
            this.MinorLoss = rhs.MinorLoss;
            this.Description = rhs.Description;
        }
        /// <summary>
@@ -70,65 +73,74 @@
        /// <summary>
        /// åç§°
        /// </summary>
        [DisplayName("名称")]
        [DisplayName("型号")]
        [Browsable(true)]
        public string Name { get; set; }
        /// <summary>
        /// ç³»åˆ—ID
        /// </summary>
        [DisplayName("系列ID")]
        [Browsable(false)]
        public long SeriesID { get; set; }
        /// <summary>
        /// å£å¾„
        /// </summary>
        [DisplayName("口径(mm)")]
        [DisplayName("口径")]
        [Browsable(true)]
        public string Caliber { get; set; }
        /// <summary>
        /// ææ–™
        /// </summary>
        [DisplayName("材料")]
        [Browsable(true)]
        public string MaterialName { get; set; }
        public string Material { get; set; }
        /// <summary>
        /// ç³»æ•°
        /// </summary>
        [DisplayName("损失系数")]
        [DisplayName("系数")]
        [Browsable(true)]
        public double? Coefficient { get; set; }
        public double MinorLoss { get; set; }
        /// <summary>
        /// è¿è¡Œé€šè¿‡æŸå¤±ç³»æ•°
        /// </summary>
        [DisplayName("运行通过损失系数")]
        [Browsable(true)]
        public double? RunThroughCoefficient { get; set; }
        public double? RunThroughMinorLoss { get; set; }
        /// <summary>
        /// æ”¯ç®¡é€šè¿‡æŸå¤±ç³»æ•°
        /// </summary>
        [DisplayName("支管通过损失系数")]
        [Browsable(true)]
        public double? BranchThroughCoefficient { get; set; }
        /// <summary>
        /// æŽ’序码
        /// </summary>
        [DisplayName("排序码")]
        [Browsable(true)]
        public int SortCode { get; set; }
        public double? BranchThroughMinorLoss { get; set; }
        /// <summary>
        /// è¯†åˆ«å…³é”®å­—
        /// </summary>
        [DisplayName("关键字")]
        [Browsable(true)]
        public string KeyWord { get; set; }
        /// <summary>
        /// æ˜¯å¦é»˜è®¤
        /// æŽ’序码
        /// </summary>
        [DisplayName("是否默认")]
        [DisplayName("排序码")]
        [Browsable(true)]
        public bool IsDefault { get; set; }
        public int SortCode { get; set; }
        /// <summary>
        /// è¯´æ˜Ž