> GetAllNoStatusAsync();
}
}
diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml
index 1f3d3ab..047b59e 100644
--- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml
+++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml
@@ -2445,8 +2445,7 @@
var today_format = today.toISOString().slice(0, 10).replace(/-/g, "-");
$('#DateGet').val(today_format);
historyRange = $('#DateGet').val();
- }
-
+ }
var send_data = {
GroupType: groupType,
@@ -2489,6 +2488,7 @@
kwhALL += val.kwh;
//diffSOLARHOURALL += val.diffSOLARHOUR;
irradianceALL += val.irradiance;
+ irr_day = val.irrDay;
prALL = val.pr;
tempALL += val.temp;
@@ -2555,11 +2555,7 @@
listsolarhour.push(parseFloat(val.solarhour.toFixed(2)));
listpr.push(parseFloat(val.pr.toFixed(2)));
listkwhkwp.push(parseFloat(val.kwhkwp.toFixed(2)));
- }
-
-
-
-
+ }
}
})
@@ -2802,7 +2798,8 @@
'| ' + TimestampALL + ' | ' +
'' + kwhALL.toFixed(2) + ' | ' +
'' + kwhkwp + ' | ' +
- '' + irradianceALL.toFixed(2) + ' | ' +
+ //'' + irradianceALL.toFixed(2) + ' | ' + // 改成累積日照 by jiahao 2022-04-30 00:444
+ '' + irr_day.toFixed(2) + ' | ' +
'' + prALL.toFixed(2) + ' | ' +
'' + tempALL.toFixed(2) + ' | ' +
'');
diff --git a/SolarPower/Views/StationOverview/_History.cshtml b/SolarPower/Views/StationOverview/_History.cshtml
index 17ad5e9..981d2df 100644
--- a/SolarPower/Views/StationOverview/_History.cshtml
+++ b/SolarPower/Views/StationOverview/_History.cshtml
@@ -60,7 +60,7 @@
時間 |
發電量(kWh) |
有效日照時數 |
- 日照度(kWh/m2) |
+ 累積日照量(W/m2) |
PR(%) |
溫度(℃) |
diff --git a/solarApp/Model/station_model.cs b/solarApp/Model/station_model.cs
index 0d808d9..b58e0c0 100644
--- a/solarApp/Model/station_model.cs
+++ b/solarApp/Model/station_model.cs
@@ -14,6 +14,10 @@ namespace solarApp.Model
public double PR { get; set; }
public double SOLARHOUR { get; set; }
public double kwhkwp { get; set; }
+ ///
+ /// 寫入 DB 時間
+ ///
+ public string insertTime { get; set; }
}
public class raw_station_day
diff --git a/solarApp/Service/getStationSvc.cs b/solarApp/Service/getStationSvc.cs
index 8fa46d1..0c76aa3 100644
--- a/solarApp/Service/getStationSvc.cs
+++ b/solarApp/Service/getStationSvc.cs
@@ -28,7 +28,7 @@ namespace solarApp.Service
{
conn.Open();
string sql = @"select id , FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H:%i') reportdate, siteid, round(KWH, 3) KWH, round(TODAYKWH, 3) TODAYKWH,
- round(TOTALKWH, 3)TOTALKWH, round(PR, 3) PR, round(SOLARHOUR, 3) SOLARHOUR , round(kwhkwp, 3) kwhkwp
+ round(TOTALKWH, 3)TOTALKWH, round(PR, 3) PR, round(SOLARHOUR, 3) SOLARHOUR , round(kwhkwp, 3) kwhkwp , insertTime
from " + siteDB + ".s" + siteID + @"_station
where FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d') = @reportDate";
try
diff --git a/solarApp/fmMain.cs b/solarApp/fmMain.cs
index 0ea1ffc..68b28c2 100644
--- a/solarApp/fmMain.cs
+++ b/solarApp/fmMain.cs
@@ -189,6 +189,7 @@ namespace solarApp
string date1 = dtselect_station1.Value.AddDays(-7).ToString("yyyy-MM-dd");
gv_fic_station_raw.DataSource = "";
gv_fic_station_day.DataSource = "";
+ //gv_fic_station_raw.column
try
{
gv_fic_station_raw.DataSource = stationSvc.get_station_raw(date2, lbSiteDB_inv.Text, lbSiteID_inv.Text);