From 6d4874f6d9c271c67d72a62f08985c71f7f8bfac Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期四, 05 十二月 2024 19:02:13 +0800 Subject: [PATCH] 界面修改 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/ExchangerViewModel.cs | 35 ++++++++++++++--------------------- 1 files changed, 14 insertions(+), 21 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/ExchangerViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/ExchangerViewModel.cs index 7f623ef..536e058 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/ExchangerViewModel.cs +++ b/WinFrmUI/HStation.WinFrmUI.Assets.Core/11-compressor/02-main/ExchangerViewModel.cs @@ -12,38 +12,38 @@ { this.ID = rhs.ID; this.Description = rhs.Description; - 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.Caliber = rhs.Caliber.ToString(); this.SortCode = rhs.SortCode; - this.KeyWord = rhs.KeyWord; - this.IsDefault = rhs.IsDefault; - this.Coefficient = rhs.Coefficient; + this.KeyWord = string.Join(",", rhs.KeyWord); + this.MinorLoss = rhs.MinorLoss; } public void Reset(Vmo.AssetsCompressorMainVmo rhs) { this.ID = rhs.ID; - 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.Caliber = rhs.Caliber.ToString(); + this.KeyWord = string.Join(",", rhs.KeyWord); this.SortCode = rhs.SortCode; - this.Coefficient = rhs.Coefficient; + this.MinorLoss = rhs.MinorLoss; } /// <summary> @@ -70,14 +70,14 @@ /// </summary> [DisplayName("鏉愭枡")] [Browsable(true)] - public string MaterialName { get; set; } + public string Material { get; set; } /// <summary> /// 绯绘暟 /// </summary> [DisplayName("鎹熷け绯绘暟")] [Browsable(true)] - public double? Coefficient { get; set; } + public double MinorLoss { get; set; } /// <summary> /// 鎺掑簭鐮� @@ -92,13 +92,6 @@ [DisplayName("鍏抽敭瀛�")] [Browsable(true)] public string KeyWord { get; set; } - - /// <summary> - /// 鏄惁榛樿 - /// </summary> - [DisplayName("鏄惁榛樿")] - [Browsable(true)] - public bool IsDefault { get; set; } /// <summary> /// 璇存槑 -- Gitblit v1.9.3