From 7da0da3c8d58f40c7dd8e14e64146b9577b33340 Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期二, 22 十月 2024 15:19:19 +0800 Subject: [PATCH] 综合分析Models --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/06-simulation/XhsProjectSimulationCorePage.cs | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 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 ccd2fc9..66c2bcd 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 @@ -13,7 +13,7 @@ this.PageTitle.Caption = "姘村姏妯℃嫙"; this.PageTitle.HeaderSvgImage = this.svgImg32[0]; this.docPnlBottom.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; - this.docPnlRight.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Visible; + this.docPnlRight.Visibility = DevExpress.XtraBars.Docking.DockVisibility.Hidden; } private HStation.Vmo.XhsProjectVmo _project = null;//椤圭洰 @@ -72,6 +72,8 @@ this.tabPageQ3d.Controls.Clear(); this.tabPageQ3d.Controls.Add(q3dCtrl); q3dCtrl.InitialData(() => _hydroInfo); + ShowPropertyCtrl(); + } #region Bimface @@ -682,15 +684,16 @@ { return; } - if (_calcuResult == null) - { - return; - } - if (!_calcuResult.Succeed) - { - return; - } - var pumps = _hydroInfo.Pumps; + //if (_calcuResult == null) + //{ + // return; + //} + //if (!_calcuResult.Succeed) + //{ + // return; + //} + var pumps = _hydroInfo.Pumps?.Where(x => x.LinkStatus == Yw.Hydro.LinkStatus.Open).ToList(); + var curve_list = _hydroInfo.Curves; if (curve_list == null || !curve_list.Any()) { @@ -721,7 +724,7 @@ var vm = new Yw.WinFrmUI.Phart.PumpSerialParallelViewModel(); vm.Id = x.Code; - vm.Name = x.Code; + vm.Name = x.Name; //vm.IsBp = ; vm.RatedSpeed = rated_speed; vm.CurrentSpeed = Math.Round(rated_speed * speed_ratio); @@ -738,7 +741,7 @@ dlg.ShowDialog(); } - #endregion 鎬ц兘鏇茬嚎 + #endregion #region 姘村姏璁$畻 -- Gitblit v1.9.3