From 5c14c9686d2bd7c99fdd6cc6fc19404e6e4b8e4d Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 29 十一月 2024 15:02:20 +0800 Subject: [PATCH] 增加用水当量和用水器具界面 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/FourLinkViewModel.cs | 35 +++++++++++++---------------------- 1 files changed, 13 insertions(+), 22 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/FourLinkViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/FourLinkViewModel.cs index 036ff81..fe033c1 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/07-fourLink/02-main/FourLinkViewModel.cs +++ b/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> /// 璇存槑 -- Gitblit v1.9.3