From 31a8e93cf1cc708b68456b88aa5b0031a41eb47a Mon Sep 17 00:00:00 2001
From: lixiaojun <1287241240@qq.com>
Date: 星期二, 10 十二月 2024 16:36:45 +0800
Subject: [PATCH] 能耗分析

---
 WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/09-energy/SimulationMultiWorkingEnergyDlg.cs |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/09-energy/SimulationMultiWorkingEnergyDlg.cs b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/09-energy/SimulationMultiWorkingEnergyDlg.cs
index 49bcf03..fa0c101 100644
--- a/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/09-energy/SimulationMultiWorkingEnergyDlg.cs
+++ b/WinFrmUI/HStation.WinFrmUI.Xhs.Core/03-simulation/09-energy/SimulationMultiWorkingEnergyDlg.cs
@@ -19,11 +19,12 @@
 
 
         private Yw.Model.HydroModelInfo _hydroInfo = null;//姘村姏淇℃伅
+        private List<HydroMonitorVmo> _allMonitorList = null;
 
         /// <summary>
         /// 缁戝畾鏁版嵁
         /// </summary>
-        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroWorkingVmo> allWorkingList)
+        public void SetBindingData(Yw.Model.HydroModelInfo hydroInfo, List<HydroMonitorVmo> allMonitorList, List<HydroWorkingVmo> allWorkingList)
         {
             if (hydroInfo == null)
             {
@@ -34,6 +35,7 @@
                 return;
             }
             _hydroInfo = hydroInfo;
+            _allMonitorList = allMonitorList;
             this.hydroWorkingListViewCtrl1.SetBindingData(allWorkingList);
             if (allWorkingList.Count < 2)
             {
@@ -66,7 +68,7 @@
             var hydroInfo = _hydroInfo.Adapt<Yw.Model.HydroModelInfo>();
             hydroInfo.UpdateWorkingInfo(working.WorkingInfo);
             var calcuResult = hydroInfo.Calcu(Yw.EPAnet.CalcuMode.MinorLoss);
-            this.simulationSingleWorkingEnergyCtrl1.SetBindingData(working, hydroInfo, calcuResult);
+            this.simulationSingleWorkingEnergyCtrl1.SetBindingData(working, hydroInfo, _allMonitorList, calcuResult);
         }
 
 

--
Gitblit v1.9.3