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}"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - + - - - - - - + + - - - - - - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +