diff --git a/SolarPower/Controllers/StationOverviewController.cs b/SolarPower/Controllers/StationOverviewController.cs index 11f682d..f95e50b 100644 --- a/SolarPower/Controllers/StationOverviewController.cs +++ b/SolarPower/Controllers/StationOverviewController.cs @@ -182,6 +182,7 @@ namespace SolarPower.Controllers stationOverview.TodayWeatherTemp = powerStation.TodayWeatherTemp; stationOverview.RateOfRain = powerStation.RateOfRain; stationOverview.StationName = powerStation.Name; + stationOverview.HealthStatus = powerStation.HealthStatus; apiResult.Code = "0000"; apiResult.Data = stationOverview; diff --git a/SolarPower/Models/Overview.cs b/SolarPower/Models/Overview.cs index 7777442..29616cb 100644 --- a/SolarPower/Models/Overview.cs +++ b/SolarPower/Models/Overview.cs @@ -61,6 +61,7 @@ namespace SolarPower.Models public double TodayWeatherTemp { get; set; } public string StationName { get; set; } public string CityName { get; set; } + public byte HealthStatus { get; set; } } public class ChartUptoDate diff --git a/SolarPower/Views/AnalysisInverter/Index.cshtml b/SolarPower/Views/AnalysisInverter/Index.cshtml index 6b1a4a0..9b42293 100644 --- a/SolarPower/Views/AnalysisInverter/Index.cshtml +++ b/SolarPower/Views/AnalysisInverter/Index.cshtml @@ -3,5 +3,456 @@ ViewData["SubNum"] = "3"; ViewData["Title"] = "逆變器交叉分析"; } -@using SolarPower.Models.Role -@model RoleLayerEnum \ No newline at end of file + +
+
+ +
+ +
+ + + +
+ +
+

+ @ViewData["Title"] +

+
+ + +
+
+
+
+
+
+
+
+ + + + +
+
+
+ + +
+ +
+
+ +
+
+ +
+
+
+ +
+ +
+ +
+
+
總結
+ + + + + + + + + + + + + + + + + + + + + +
時間發電量(kWh)發電小時日射量(kWh/m2)PR(%)溫度修正PR(%)
2021-05126,121.7119.04140.3984.891.9
+
+
+ +
+
+
+
+
+
+ + +
+
+
+
+
+
+ + +
+
+
+
+ +
+ +
+

放圖表

+
+
+
+
+
+
+
+
+
+
+ +@section Scripts{ + +} diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index ef2f5e8..623bf82 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -21,11 +21,7 @@

- - - - - + 新竹巨城站

@@ -195,7 +191,18 @@ $("#today_carbon").html(stationOverview.today_carbon.toFixed(2)); $("#total_carbon").html(stationOverview.total_carbon.toFixed(2)); $("#update_at").html(stationOverview.updatedAt); + + var statusicon; + switch (stationOverview.healthStatus) { + case 1: statusicon = ""; break; + case 2: statusicon = ""; break; + case 3: statusicon = ""; break; + default: + statusicon = ''; break; + } + $('#power-station-healthStatus').html(statusicon); $('#power-station-title').html(stationOverview.stationName); + $('#weather-temp').html(stationOverview.todayWeatherTemp + '°C
降雨幾率: ' + stationOverview.rateOfRain + '%'); $('#weather-icon')[0].setAttribute("class", 'fal fa-' + stationOverview.todayWeather + ' fa-3x'); $('#breadcrumbname').html(stationOverview.stationName);