From 0567483eba25193fc9bff0c52b5bd226056af6bd Mon Sep 17 00:00:00 2001 From: Kai Date: Wed, 25 Aug 2021 17:00:05 +0800 Subject: [PATCH] 1. bug fix --- SolarPower/Controllers/AnalysisStationInfoController.cs | 4 ++-- SolarPower/Views/AnalysisStationInfo/Index.cshtml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SolarPower/Controllers/AnalysisStationInfoController.cs b/SolarPower/Controllers/AnalysisStationInfoController.cs index 7ebccc2..6b3d2d9 100644 --- a/SolarPower/Controllers/AnalysisStationInfoController.cs +++ b/SolarPower/Controllers/AnalysisStationInfoController.cs @@ -276,8 +276,8 @@ namespace SolarPower.Controllers analysisDevice.Series.Add(PR); DeviceHistoryInfo modelTemperature = new DeviceHistoryInfo(); - modelTemperature.Name = string.Format("{0}:{1}", powerStation.Name, analysisDevice.MultipleYaxes["ModelTemperature"]); - modelTemperature.YaxesKey = "ModelTemperature"; + modelTemperature.Name = string.Format("{0}:{1}", powerStation.Name, analysisDevice.MultipleYaxes["Temperature"]); + modelTemperature.YaxesKey = "Temperature"; modelTemperature.Values = new List(); foreach (var history in temp_item) { diff --git a/SolarPower/Views/AnalysisStationInfo/Index.cshtml b/SolarPower/Views/AnalysisStationInfo/Index.cshtml index 70eb257..ca8844b 100644 --- a/SolarPower/Views/AnalysisStationInfo/Index.cshtml +++ b/SolarPower/Views/AnalysisStationInfo/Index.cshtml @@ -126,7 +126,7 @@ { key: "Irradiance", title: "日照度", default: true }, { key: "KWHKWP", title: "發電小時", default: false }, { key: "PR", title: "PR %", default: false }, - { key: "ModelTemperature", title: "模組溫度", default: false }, + { key: "Temperature", title: "模組溫度", default: false }, { key: "SolarHour", title: "日照小時", default: false } ] var PWR_compare_col = [