From e08f18c84c96ca794407f4fcb737b26fa76c0a1f Mon Sep 17 00:00:00 2001
From: tangxu <tangxu76880903>
Date: 星期二, 11 六月 2024 09:35:03 +0800
Subject: [PATCH] 改了配置类

---
 WinFrmUI/IStation.WinFrmUI.CalcErQu/Wizard/pageCalcResult.cs |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/WinFrmUI/IStation.WinFrmUI.CalcErQu/Wizard/pageCalcResult.cs b/WinFrmUI/IStation.WinFrmUI.CalcErQu/Wizard/pageCalcResult.cs
index 876c8b4..6b85da8 100644
--- a/WinFrmUI/IStation.WinFrmUI.CalcErQu/Wizard/pageCalcResult.cs
+++ b/WinFrmUI/IStation.WinFrmUI.CalcErQu/Wizard/pageCalcResult.cs
@@ -470,12 +470,12 @@
 
             listBoxControl1.Items.Add("-----------姘翠綅鍙傛暟--------");
 
-
-            DateTime max_wt_dt = current_prj.PointTimes.First().Time;
-            DateTime min_wt_dt = current_prj.PointTimes.First().Time;
+            var allTime = current_prj.GetAllPointTimeList();
+            DateTime max_wt_dt = allTime.First().Time;
+            DateTime min_wt_dt = allTime.First().Time;
             double max_wt = double.MinValue;
             double min_wt = double.MaxValue;
-            foreach (var pt in current_prj.PointTimes)
+            foreach (var pt in allTime)
             {
                 if (max_wt < pt.WaterLevelH)
                 {
@@ -489,7 +489,7 @@
                 }
             }
 
-            var wt_list = from x in current_prj.PointTimes select x.WaterLevelH;
+            var wt_list = from x in allTime select x.WaterLevelH;
             var avr_wt = wt_list.Average();
             listBoxControl1.Items.Add(string.Format("鏈�鍒濇按浣�: {0:N2} m (0鏃�)", anaRequest.CurrentWaterBoxLevel));
             listBoxControl1.Items.Add(string.Format("鏈�楂樻按浣�: {1:N2} m ({0})", max_wt_dt.ToString("HH:mm"), Math.Round(max_wt, 2)));

--
Gitblit v1.9.3