From 9a3ae0cda2a4335842a7365f5e9a5b763b4be072 Mon Sep 17 00:00:00 2001 From: hj615 Date: Wed, 27 Aug 2025 10:44:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=83=81=EC=9E=90=EA=B7=B8=EB=A6=BC=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=EA=B8=B0=EB=8A=A5=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DataAnalisys/WaterQualityVO.cs | 27 +- SmartAquaViewer/View/MonitoringView.xaml | 237 ++++++++-------- SmartAquaViewer/View/MonitoringView.xaml.cs | 16 +- SmartAquaViewer/ViewModel/EnergyViewModel.cs | 8 +- .../ViewModel/GraphControlViewModel.cs | 257 ++++++++++-------- SmartAquaViewer/ViewModel/MainViewModel.cs | 16 +- .../ViewModel/MonitoringViewModel.cs | 133 ++++++--- 7 files changed, 423 insertions(+), 271 deletions(-) diff --git a/SmartAquaViewer/DataAnalisys/WaterQualityVO.cs b/SmartAquaViewer/DataAnalisys/WaterQualityVO.cs index 5903099..95571e4 100644 --- a/SmartAquaViewer/DataAnalisys/WaterQualityVO.cs +++ b/SmartAquaViewer/DataAnalisys/WaterQualityVO.cs @@ -22,6 +22,8 @@ namespace SmartAquaViewer.DataAnalysis /// public WaterTank Tank { get; set; } = new(); + public List Tanks { get; set; } = new(); + /// /// 여과 시스템 /// @@ -111,7 +113,6 @@ namespace SmartAquaViewer.DataAnalysis { DateTime ts = start.AddSeconds(stepSeconds * i); - var vo = new WaterQualityVO { RecordedTime = ts, @@ -123,6 +124,30 @@ namespace SmartAquaViewer.DataAnalysis temperature: Math.Round(rand.NextDouble() * 10 + 15, 2), flowRate: Math.Round(rand.NextDouble() * 5 + 1, 2) ), + Tanks = new List() + { + new WaterTank( + number: 1, + doValue: Math.Round(rand.NextDouble() * 5 + 5, 2), + ph: Math.Round(rand.NextDouble() * 2 + 6, 2), + orp: Math.Round(rand.NextDouble() * 200 + 100, 2), + temperature: Math.Round(rand.NextDouble() * 10 + 15, 2), + flowRate: Math.Round(rand.NextDouble() * 5 + 1, 2)), + new WaterTank( + number: 2, + doValue: Math.Round(rand.NextDouble() * 5 + 5, 2), + ph: Math.Round(rand.NextDouble() * 2 + 6, 2), + orp: Math.Round(rand.NextDouble() * 200 + 100, 2), + temperature: Math.Round(rand.NextDouble() * 10 + 15, 2), + flowRate: Math.Round(rand.NextDouble() * 5 + 1, 2)), + new WaterTank( + number: 3, + doValue: Math.Round(rand.NextDouble() * 5 + 5, 2), + ph: Math.Round(rand.NextDouble() * 2 + 6, 2), + orp: Math.Round(rand.NextDouble() * 200 + 100, 2), + temperature: Math.Round(rand.NextDouble() * 10 + 15, 2), + flowRate: Math.Round(rand.NextDouble() * 5 + 1, 2)), + }, Filtering = new FilteringSystem( sandFilterPower: rand.Next(0, 2) == 1, sandFilterEnergy: Math.Round(rand.NextDouble() * 2 + 0.5, 2), diff --git a/SmartAquaViewer/View/MonitoringView.xaml b/SmartAquaViewer/View/MonitoringView.xaml index f684447..cab3038 100644 --- a/SmartAquaViewer/View/MonitoringView.xaml +++ b/SmartAquaViewer/View/MonitoringView.xaml @@ -32,119 +32,133 @@ SelectedTab="{Binding SelectedTab, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - - - - + + - - - - - - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +