From 25f7d54d23dd47d6f2bfd91e7edfd218a4b9ec3e Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期一, 09 十二月 2024 18:57:21 +0800 Subject: [PATCH] 修复水泵分析 --- WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs index e659f6b..30041f0 100644 --- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs +++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs @@ -85,13 +85,19 @@ if (vm != null && vm.Items != null) { var item = vm.Items.FirstOrDefault(); - if (item != null) - { - this.barTxtQ.EditValue = $"{Math.Round(item.Q, 1)}m鲁/h"; - this.barTxtH.EditValue = $"{Math.Round(item.H, 2)}m"; - this.barTxtP.EditValue = $"{Math.Round(item.P ?? 0, 1)}kW"; - this.barTxtE.EditValue = $"{Math.Round(item.E ?? 0, 1)}%"; - } + SetCurrent(item); + } + } + + //璁剧疆褰撳墠 + private void SetCurrent(PumpRunViewItemViewModel item) + { + if (item != null) + { + this.barTxtQ.EditValue = $"{Math.Round(item.Q, 1)}m鲁/h"; + this.barTxtH.EditValue = $"{Math.Round(item.H, 2)}m"; + this.barTxtP.EditValue = $"{Math.Round(item.P ?? 0, 1)}kW"; + this.barTxtE.EditValue = $"{Math.Round(item.E ?? 0, 1)}%"; } } -- Gitblit v1.9.3