From 865ca7b89bde6b1793641c8421fc466695d48f6a Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 04 十一月 2024 22:25:59 +0800 Subject: [PATCH] 部分水力属性修改 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs | 64 +++++++++++++++++++++++++++++--- 1 files changed, 58 insertions(+), 6 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs index 832ba33..2cf45bb 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs @@ -556,8 +556,17 @@ { return; } + var allCalcuResultList = GetCalcuResultList(); var parterListCtrl = GetParterListCtrl(); - parterListCtrl.SetBindingData(_hydroInfo, GetCalcuResultList()); + parterListCtrl.SetBindingData(_hydroInfo, allCalcuResultList); + if (allCalcuResultList == null || allCalcuResultList.Count < 1) + { + parterListCtrl.SetNormalView(); + } + else + { + parterListCtrl.SetCalcuView(); + } this.controlContainerBottom.Controls.Clear(); this.controlContainerBottom.Controls.Add(parterListCtrl); this.docPnlBottom.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible; @@ -619,8 +628,22 @@ { return; } - var dlg = new HydroWaterboxBulkSetListDlg(); + var dlg = new SetHydroWaterboxListDlg(); dlg.SetBindingData(_hydroInfo); + dlg.HydroClickEvent += async (obj) => + { + if (obj == null) + { + return; + } + _parter = obj; + await _bimfaceCtrl?.ZoomAndSelectComponent(obj.Code); + ShowProperty(); + }; + dlg.HydroChangedEvent += (obj) => + { + + }; dlg.ShowDialog(); }; //杩炴帴鑺傜偣 @@ -636,7 +659,22 @@ { return; } - var dlg = new HydroBluntheadBulkSetListDlg(); + var dlg = new SetHydroBluntheadListDlg(); + dlg.SetBindingData(_hydroInfo); + dlg.HydroClickEvent += async (obj) => + { + if (obj == null) + { + return; + } + _parter = obj; + await _bimfaceCtrl?.ZoomAndSelectComponent(obj.Code); + ShowProperty(); + }; + dlg.HydroChangedEvent += (obj) => + { + + }; dlg.ShowDialog(); }; //寮ご @@ -646,8 +684,22 @@ { return; } - var dlg = new HydroElbowBulkSetListDlg(); + var dlg = new SetHydroElbowListDlg(); dlg.SetBindingData(_hydroInfo); + dlg.HydroClickEvent += async (obj) => + { + if (obj == null) + { + return; + } + _parter = obj; + await _bimfaceCtrl?.ZoomAndSelectComponent(obj.Code); + ShowProperty(); + }; + dlg.HydroChangedEvent += (obj) => + { + + }; dlg.ShowDialog(); }; //涓夐�� @@ -657,7 +709,7 @@ { return; } - var dlg = new HydroThreelinkBulkSetListDlg(); + var dlg = new SetHydroThreelinkListDlg(); dlg.SetBindingData(_hydroInfo); dlg.ShowDialog(); }; @@ -668,7 +720,7 @@ { return; } - var dlg = new HydroFourlinkBulkSetListDlg(); + var dlg = new SetHydroFourlinkListDlg(); dlg.SetBindingData(_hydroInfo); dlg.ShowDialog(); }; -- Gitblit v1.9.3