From 62acc7cd9795df8746ee4f4765a496df6b297f7f Mon Sep 17 00:00:00 2001 From: duheng <2286773002@qq.com> Date: 星期五, 11 四月 2025 13:53:05 +0800 Subject: [PATCH] 修改供水设备表 --- WinFrmUI/PBS.WinFrmUI/04-water-equipment/WaterEquipmentViewModel.cs | 31 +++++++++++-------------------- 1 files changed, 11 insertions(+), 20 deletions(-) diff --git a/WinFrmUI/PBS.WinFrmUI/04-water-equipment/WaterEquipmentViewModel.cs b/WinFrmUI/PBS.WinFrmUI/04-water-equipment/WaterEquipmentViewModel.cs index 92faf5e..1c67c2e 100644 --- a/WinFrmUI/PBS.WinFrmUI/04-water-equipment/WaterEquipmentViewModel.cs +++ b/WinFrmUI/PBS.WinFrmUI/04-water-equipment/WaterEquipmentViewModel.cs @@ -14,10 +14,9 @@ this.ID = rhs.ID; this.Name = rhs.Name; this.Reliability = rhs.Reliability; - this.Safety = rhs.Safety; - this.Hygiene = rhs.Hygiene; this.SaveEnergy = rhs.SaveEnergy; this.SystemComposition = rhs.SystemComposition; + this.TotalPoints = rhs.Reliability + rhs.SaveEnergy + rhs.SystemComposition; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; @@ -28,10 +27,9 @@ this.ID = rhs.ID; this.Name = rhs.Name; this.Reliability = rhs.Reliability; - this.Safety = rhs.Safety; - this.Hygiene = rhs.Hygiene; this.SaveEnergy = rhs.SaveEnergy; this.SystemComposition = rhs.SystemComposition; + this.TotalPoints = rhs.Reliability + rhs.SaveEnergy + rhs.SystemComposition; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; @@ -52,25 +50,11 @@ public string Name { get; set; } /// <summary> - /// 鍙潬鎬у緱鍒� + /// 鍙潬銆佸畨鍏ㄥ崼鐢熸�у緱鍒� ///</summary> - [DisplayName("鍙潬鎬у緱鍒�")] + [DisplayName("鍙潬銆佸畨鍏ㄥ崼鐢熸�у緱鍒�")] [Browsable(true)] public int Reliability { get; set; } - - /// <summary> - /// 瀹夊叏鎬у緱鍒� - ///</summary> - [DisplayName("瀹夊叏鎬у緱鍒�")] - [Browsable(true)] - public int Safety { get; set; } - - /// <summary> - /// 鍗敓寰楀垎 - ///</summary> - [DisplayName("鍗敓寰楀垎")] - [Browsable(true)] - public int Hygiene { get; set; } /// <summary> /// 鑺傝兘寰楀垎 @@ -87,6 +71,13 @@ public int SystemComposition { get; set; } /// <summary> + /// 鎬诲垎 + /// </summary> + [DisplayName("鎬诲垎")] + [Browsable(true)] + public int TotalPoints { get; set; } + + /// <summary> /// 鎺掑簭鐮� ///</summary> [DisplayName("鎺掑簭鐮�")] -- Gitblit v1.9.3