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/01-source/02-tank/00-core/HydroTankListCtrl.cs | 37 +++++++++++++++++++++++-------------- 1 files changed, 23 insertions(+), 14 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/01-source/02-tank/00-core/HydroTankListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/01-source/02-tank/00-core/HydroTankListCtrl.cs index 6f6f0d4..97d074c 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/01-source/02-tank/00-core/HydroTankListCtrl.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/01-source/02-tank/00-core/HydroTankListCtrl.cs @@ -56,6 +56,14 @@ } this.hydroTankViewModelBindingSource.DataSource = _allBindingList; this.hydroTankViewModelBindingSource.ResetBindings(false); + if (allCalcuResultList == null || allCalcuResultList.Count < 1) + { + SetNormalView(); + } + else + { + SetCalcuView(); + } } /// <summary> @@ -67,18 +75,19 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = false; + this.colHasDb.Visible = true; this.colQuality.Visible = false; this.colPoolElev.Visible = true; - this.colInitLevel.Visible = true; - this.colMinLevel.Visible = true; - this.colMaxLevel.Visible = true; - this.colDiameter.Visible = true; - this.colMinVol.Visible = true; + this.colInitLevel.Visible = false; + this.colMinLevel.Visible = false; + this.colMaxLevel.Visible = false; + this.colDN.Visible = false; + this.colMinVol.Visible = false; this.colVolCurve.Visible = false; this.colCalcuPress.Visible = false; this.colCalcuHead.Visible = false; this.colCalcuDemand.Visible = false; + this.colFlagsString.Visible = true; this.colDescription.Visible = true; } @@ -91,19 +100,19 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = true; - this.colQuality.Visible = true; - this.colPoolElev.Visible = true; + this.colHasDb.Visible = true; + this.colQuality.Visible = false; this.colPoolElev.Visible = true; this.colInitLevel.Visible = true; this.colMinLevel.Visible = true; this.colMaxLevel.Visible = true; - this.colDiameter.Visible = true; + this.colDN.Visible = true; this.colMinVol.Visible = true; - this.colVolCurve.Visible = true; + this.colVolCurve.Visible = false; this.colCalcuPress.Visible = false; this.colCalcuHead.Visible = false; this.colCalcuDemand.Visible = false; + this.colFlagsString.Visible = true; this.colDescription.Visible = true; } @@ -116,19 +125,19 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = false; + this.colHasDb.Visible = true; this.colQuality.Visible = false; - this.colPoolElev.Visible = true; this.colPoolElev.Visible = true; this.colInitLevel.Visible = true; this.colMinLevel.Visible = true; this.colMaxLevel.Visible = true; - this.colDiameter.Visible = true; + this.colDN.Visible = true; this.colMinVol.Visible = true; this.colVolCurve.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