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/03-link/01-pipe/02-exchanger/HydroExchangerListCtrl.cs | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/03-link/01-pipe/02-exchanger/HydroExchangerListCtrl.cs b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/03-link/01-pipe/02-exchanger/HydroExchangerListCtrl.cs index d9a89a3..1aea7c9 100644 --- a/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/03-link/01-pipe/02-exchanger/HydroExchangerListCtrl.cs +++ b/WinFrmUI/Yw.WinFrmUI.Hydro.Core/04-parter/03-link/01-pipe/02-exchanger/HydroExchangerListCtrl.cs @@ -55,6 +55,14 @@ } this.hydroExchangerViewModelBindingSource.DataSource = _allBindingList; this.hydroExchangerViewModelBindingSource.ResetBindings(false); + if (allCalcuResultList == null || allCalcuResultList.Count < 1) + { + SetNormalView(); + } + else + { + SetCalcuView(); + } } /// <summary> @@ -66,18 +74,19 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = false; + this.colHasDb.Visible = true; this.colStartCode.Visible = false; this.colEndCode.Visible = false; this.colLinkStatus.Visible = true; - this.colDiameter.Visible = true; - this.colLength.Visible = true; - this.colMaterial.Visible = true; + this.colDiameter.Visible = false; + this.colLength.Visible = false; + this.colMaterial.Visible = false; this.colRoughness.Visible = true; this.colMinorLoss.Visible = true; this.colCalcuFlow.Visible = false; this.colCalcuVelocity.Visible = false; this.colCalcuHeadLoss.Visible = false; + this.colFlagsString.Visible = true; this.colDescription.Visible = true; } @@ -90,7 +99,7 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = true; + this.colHasDb.Visible = true; this.colStartCode.Visible = false; this.colEndCode.Visible = false; this.colLinkStatus.Visible = true; @@ -102,6 +111,7 @@ this.colCalcuFlow.Visible = false; this.colCalcuVelocity.Visible = false; this.colCalcuHeadLoss.Visible = false; + this.colFlagsString.Visible = true; this.colDescription.Visible = true; } @@ -114,7 +124,7 @@ this.colCode.Visible = true; this.colName.Visible = true; this.colModelType.Visible = true; - this.colFlagsString.Visible = false; + this.colHasDb.Visible = true; this.colStartCode.Visible = false; this.colEndCode.Visible = false; this.colLinkStatus.Visible = true; @@ -126,9 +136,9 @@ this.colCalcuFlow.Visible = true; this.colCalcuVelocity.Visible = true; this.colCalcuHeadLoss.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