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/02-flowmeter/HydroFlowmeterListCtrl.cs |   43 ++++++++++++++++---------------------------
 1 files changed, 16 insertions(+), 27 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/02-flowmeter/HydroFlowmeterListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/02-flowmeter/HydroFlowmeterListCtrl.cs
index e55c2be..36a41b5 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/02-flowmeter/HydroFlowmeterListCtrl.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-other/02-flowmeter/HydroFlowmeterListCtrl.cs
@@ -41,7 +41,6 @@
         /// <summary>
         /// 缁戝畾鏁版嵁
         /// </summary>
-        /// <param name="allFlowmeterList"></param>
         public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroCalcuResult> allCalcuResultList)
         {
             _allBindingList = new List<HydroFlowmeterViewModel>();
@@ -49,8 +48,8 @@
             {
                 foreach (var flowmeter in hydroInfo.Flowmeters)
                 {
-                    var calcuNodeResult = allCalcuResultList?.Find(x => x.Code == flowmeter.Code) as HydroCalcuNodeResult;
-                    var vm = new HydroFlowmeterViewModel(flowmeter, calcuNodeResult);
+                    var calcuResult = allCalcuResultList?.Find(x => x.Code == flowmeter.Code) as HydroCalcuFlowmeterResult;
+                    var vm = new HydroFlowmeterViewModel(flowmeter, calcuResult);
                     _allBindingList.Add(vm);
                 }
             }
@@ -72,18 +71,14 @@
         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.colCurrentFlow.Visible = true;
+            this.colCalcuQ.Visible = false;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
@@ -94,18 +89,14 @@
         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.colCurrentFlow.Visible = true;
+            this.colCalcuQ.Visible = false;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
@@ -116,18 +107,14 @@
         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.colCurrentFlow.Visible = true;
+            this.colCalcuQ.Visible = true;
+            this.colHasDb.Visible = true;
             this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
@@ -142,5 +129,7 @@
             }
             this.HydroClickEvent?.Invoke(row.Vmo);
         }
+
+
     }
 }

--
Gitblit v1.9.3