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/03-meter/HydroMeterListCtrl.cs | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-meter/HydroMeterListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-meter/HydroMeterListCtrl.cs index 227efe4..85b0e20 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-meter/HydroMeterListCtrl.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/02-node/02-junction/03-meter/HydroMeterListCtrl.cs @@ -55,6 +55,14 @@ } this.hydroMeterViewModelBindingSource.DataSource = _allBindingList; this.hydroMeterViewModelBindingSource.ResetBindings(false); + if (allCalcuResultList == null || allCalcuResultList.Count < 1) + { + SetNormalView(); + } + else + { + SetCalcuView(); + } } /// <summary> @@ -66,14 +74,16 @@ 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.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; } @@ -86,14 +96,16 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = true; - this.colQuality.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 = 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; } @@ -106,17 +118,18 @@ 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.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; } - //琛岀偣鍑讳簨浠� private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e) -- Gitblit v1.9.3