綜合報表

This commit is contained in:
b110212000 2022-01-13 15:29:11 +08:00
parent 0551a094a8
commit 6619ec231e
2 changed files with 8 additions and 6 deletions

View File

@ -3256,7 +3256,7 @@ namespace SolarPower.Controllers
var sitecheck = await powerStationRepository.Check4table(powerStation.Code, powerStation.SiteDB); var sitecheck = await powerStationRepository.Check4table(powerStation.Code, powerStation.SiteDB);
if(powerStation.Code != sitecheck.Avg && sitecheck.Avg != null) if(powerStation.Code != sitecheck.Avg && sitecheck.Avg != null)
{ {
status.Add($"s{powerStation.Code}01_avg SITEID錯誤"); status.Add($"s{powerStation.Code}01_sensoravg SITEID錯誤");
} }
if (powerStation.Code != sitecheck.Inv_site && sitecheck.Inv_site != null) if (powerStation.Code != sitecheck.Inv_site && sitecheck.Inv_site != null)
{ {

View File

@ -1285,11 +1285,11 @@
PowerStation: selecterd_invert PowerStation: selecterd_invert
} }
var url = "/StationReport/GetMaxForm"; var url = "/StationReport/GetMaxForm";
var StrInfoBody; var StrInfoBody = "";
var CityArray = []; var CityArray = [];
var CityInfoBody; var CityInfoBody = "";
var TotalHead; var TotalHead = "";
var TotalBody; var TotalBody = "";
var kwhkwp = 0; var kwhkwp = 0;
var kwp = 0; var kwp = 0;
$.post(url, send_data, function (rel) { $.post(url, send_data, function (rel) {
@ -1365,7 +1365,8 @@
StrInfoBody += "<td>" + data.avgIrradiance.toFixed(2) + "</td>"; StrInfoBody += "<td>" + data.avgIrradiance.toFixed(2) + "</td>";
StrInfoBody += "<td>" + data.avgPR.toFixed(2) + "</td>"; StrInfoBody += "<td>" + data.avgPR.toFixed(2) + "</td>";
if (showmoney == 1) { if (showmoney == 1) {
StrInfoBody += "<td>" + toThousands(main_system_guid) + "</td>";
StrInfoBody += "<td>" + toThousands(Math.round(data.todayMoney)) + "</td>";
StrInfoBody += "<td>" + toThousands(Math.round(data.todayMoney * hirerate * 0.01))+ "</td>"; StrInfoBody += "<td>" + toThousands(Math.round(data.todayMoney * hirerate * 0.01))+ "</td>";
@ -1426,6 +1427,7 @@
$('#detailtable').show(); $('#detailtable').show();
nowform = 2; nowform = 2;
$('#all').show();
}) })
} }