From 701340a6acf3cccc33864d0e1a1053870b2238bb Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期一, 23 十二月 2024 10:25:58 +0800
Subject: [PATCH] 查询线

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/11-pump/03-analy/SimulationPumpAnalyChartCtrl.cs |   26 +++++++++++++++++---------
 1 files changed, 17 insertions(+), 9 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..3bea060 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
@@ -82,16 +82,24 @@
         public void SetBindingData(PumpRunViewViewModel vm)
         {
             this.pumpRunViewChart1.SetBindingData(vm);
+            this.barCheckE.Checked = this.pumpRunViewChart1.QEVisible;
+            this.barCheckP.Checked = this.pumpRunViewChart1.QPVisble;
             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)}%";
             }
         }
 
@@ -321,13 +329,13 @@
         //鏁堢巼绾�
         private void barCheckE_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
         {
-            //this.pumpRunViewChart1.SetEQVisible
+            this.pumpRunViewChart1.QEVisible = this.barCheckE.Checked;
         }
 
         //鍔熺巼绾�
         private void barCheckP_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
         {
-
+            this.pumpRunViewChart1.QPVisble = this.barCheckP.Checked;
         }
 
         //璁剧疆鍧愭爣杞�

--
Gitblit v1.9.3