From b32c0a21755ac3e86df0242d993398773cb627f2 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 04 十二月 2024 17:04:15 +0800 Subject: [PATCH] 修改资产界面 --- WinFrmUI/HStation.WinFrmUI.Assets.Core/18-pressmeter/BluntheadViewModel.cs | 50 ++------------------------------------------------ 1 files changed, 2 insertions(+), 48 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Assets.Core/18-pressmeter/BluntheadViewModel.cs b/WinFrmUI/HStation.WinFrmUI.Assets.Core/18-pressmeter/BluntheadViewModel.cs index 6a91047..a7c1e06 100644 --- a/WinFrmUI/HStation.WinFrmUI.Assets.Core/18-pressmeter/BluntheadViewModel.cs +++ b/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> - /// 鍙e緞 - /// </summary> - [DisplayName("鍙e緞(mm)")] - [Browsable(true)] - public string Caliber { get; set; } - - /// <summary> - /// 鏉愭枡 - /// </summary> - [DisplayName("鏉愭枡")] - [Browsable(true)] - public string Material { get; set; } /// <summary> /// 绯绘暟 -- Gitblit v1.9.3