From 24ec8c3cf6e75efdcb5f12d73ada86b53c677959 Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期一, 21 十月 2024 15:24:26 +0800
Subject: [PATCH] 完善构件明细

---
 WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/02-emitter/02-nozzle/HydroNozzleListCtrl.cs |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/02-emitter/02-nozzle/HydroNozzleListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/02-emitter/02-nozzle/HydroNozzleListCtrl.cs
index 35542bc..4278ef4 100644
--- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/02-emitter/02-nozzle/HydroNozzleListCtrl.cs
+++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/02-emitter/02-nozzle/HydroNozzleListCtrl.cs
@@ -55,6 +55,14 @@
             }
             this.hydroNozzleViewModelBindingSource.DataSource = _allBindingList;
             this.hydroNozzleViewModelBindingSource.ResetBindings(false);
+            if (allCalcuResultList == null || allCalcuResultList.Count < 1)
+            {
+                SetNormalView();
+            }
+            else
+            {
+                SetCalcuView();
+            }
         }
 
         /// <summary>
@@ -66,15 +74,17 @@
             this.colCode.Visible = true;
             this.colName.Visible = true;
             this.colModelType.Visible = true;
-            this.colFlagsString.Visible = false;
-            this.colCoefficient.Visible = false;
+            this.colHasDb.Visible = true;
+            this.colCoefficient.Visible = true;
             this.colQuality.Visible = false;
-            this.colElev.Visible = true;
-            this.colDemand.Visible = true;
+            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.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
 
@@ -87,15 +97,17 @@
             this.colCode.Visible = true;
             this.colName.Visible = true;
             this.colModelType.Visible = true;
-            this.colFlagsString.Visible = true;
+            this.colHasDb.Visible = true;
             this.colCoefficient.Visible = true;
-            this.colQuality.Visible = true;
+            this.colQuality.Visible = false;
             this.colElev.Visible = true;
+            this.colMinorLoss.Visible = true;
             this.colDemand.Visible = true;
-            this.colDemandPattern.Visible = true;
+            this.colDemandPattern.Visible = false;
             this.colCalcuPress.Visible = false;
             this.colCalcuHead.Visible = false;
             this.colCalcuDemand.Visible = false;
+            this.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
 
@@ -108,15 +120,17 @@
             this.colCode.Visible = true;
             this.colName.Visible = true;
             this.colModelType.Visible = true;
-            this.colFlagsString.Visible = false;
+            this.colHasDb.Visible = true;
             this.colCoefficient.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.colFlagsString.Visible = true;
             this.colDescription.Visible = true;
         }
 

--
Gitblit v1.9.3