From 393c5a292f0d76545734928ffda9e8aed4223afc Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 28 十月 2024 13:26:33 +0800
Subject: [PATCH] 优化流量计、压力表小数位数

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/03-pressmeter/HydroPressmeterListCtrl.cs |   37 +++++++++++--------------------------
 1 files changed, 11 insertions(+), 26 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/03-pressmeter/HydroPressmeterListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/03-pressmeter/HydroPressmeterListCtrl.cs
index a8864ff..b47cbc7 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/03-pressmeter/HydroPressmeterListCtrl.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/03-pressmeter/HydroPressmeterListCtrl.cs
@@ -49,8 +49,8 @@
             {
                 foreach (var pressmeter in hydroInfo.Pressmeters)
                 {
-                    var calcuNodeResult = allCalcuResultList?.Find(x => x.Code == pressmeter.Code) as HydroCalcuNodeResult;
-                    var vm = new HydroPressmeterViewModel(pressmeter, calcuNodeResult);
+                    var calcuResult = allCalcuResultList?.Find(x => x.Code == pressmeter.Code) as HydroCalcuPressmeterResult;
+                    var vm = new HydroPressmeterViewModel(pressmeter, calcuResult);
                     _allBindingList.Add(vm);
                 }
             }
@@ -72,18 +72,13 @@
         public void SetSimpleView()
         {
             this.colDbLocked.Visible = true;
-            this.colCode.Visible = true;
             this.colName.Visible = true;
+            this.colCode.Visible = true;
             this.colModelType.Visible = true;
-            this.colHasDb.Visible = true;
-            this.colQuality.Visible = false;
             this.colElev.Visible = false;
             this.colMinorLoss.Visible = false;
-            this.colDemand.Visible = false;
-            this.colDemandPattern.Visible = false;
-            this.colCalcuPress.Visible = false;
-            this.colCalcuHead.Visible = false;
-            this.colCalcuDemand.Visible = false;
+            this.colCalcuPr.Visible = false;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
@@ -94,18 +89,13 @@
         public void SetNormalView()
         {
             this.colDbLocked.Visible = true;
-            this.colCode.Visible = true;
             this.colName.Visible = true;
+            this.colCode.Visible = true;
             this.colModelType.Visible = true;
-            this.colHasDb.Visible = true;
-            this.colQuality.Visible = false;
             this.colElev.Visible = true;
             this.colMinorLoss.Visible = true;
-            this.colDemand.Visible = true;
-            this.colDemandPattern.Visible = false;
-            this.colCalcuPress.Visible = false;
-            this.colCalcuHead.Visible = false;
-            this.colCalcuDemand.Visible = false;
+            this.colCalcuPr.Visible = false;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
@@ -116,18 +106,13 @@
         public void SetCalcuView()
         {
             this.colDbLocked.Visible = true;
-            this.colCode.Visible = true;
             this.colName.Visible = true;
+            this.colCode.Visible = true;
             this.colModelType.Visible = true;
-            this.colHasDb.Visible = true;
-            this.colQuality.Visible = false;
             this.colElev.Visible = true;
             this.colMinorLoss.Visible = true;
-            this.colDemand.Visible = true;
-            this.colDemandPattern.Visible = false;
-            this.colCalcuPress.Visible = true;
-            this.colCalcuHead.Visible = true;
-            this.colCalcuDemand.Visible = true;
+            this.colCalcuPr.Visible = true;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }

--
Gitblit v1.9.3