(sql,new { ids = ids}, commandTimeout: 300)).ToList();
}
catch (Exception exception)
diff --git a/SolarPower/Views/StationReport/Index.cshtml b/SolarPower/Views/StationReport/Index.cshtml
index 57e6ecf..4e427b0 100644
--- a/SolarPower/Views/StationReport/Index.cshtml
+++ b/SolarPower/Views/StationReport/Index.cshtml
@@ -751,20 +751,16 @@
$("#year2btn").html('年報表').attr("disabled", false);
$(".btn-station").attr("disabled", false);
break;
- }
-
-
+ }
return;
}
-
-
-
+
$('#TableHead').empty();
var str = "";
switch (form)
{
- case 0:
+ case 0: // 日報
str += "| Date | ";
$.each(rel.data.inv, function (index, inverter) {
haveinvertName.push(inverter);
@@ -778,7 +774,7 @@
str += "小時 售電 金額 (NTD) | ";
}
break;
- case 1:
+ case 1: // 月報
str += "Date | ";
$.each(rel.data.inv, function (index, inverter) {
haveinvertName.push(inverter);
@@ -795,7 +791,7 @@
str += "日 售電金額 (NTD) | ";
}
break;
- case 2:
+ case 2: //綜合報表
str += "區域 | ";
str += "電站名稱 | ";
str += "發電量 | ";
@@ -828,9 +824,12 @@
}
str += "
";
$('#TableHead').append(str);
+
if (form != 2) {
+ // 日月年 報
tablebody(form, rel.data.showMoney);
} else {
+ //綜合報表
maxtableinfobody(rel.data.showMoney);
}
}, 'json');
@@ -932,8 +931,8 @@
});
sta += "" + Number(inverter.hourKWH) + " | ";
sta += "" + Number(inverter.hourKWHp) + " | ";
- sta += "" + Number(inverter.irradiance) + " | ";
- sta += "" + Number(inverter.temperature) + " | ";
+ sta += "" + Number(inverter.irradiance) + " | "; // body 小時平均日照度
+ sta += "" + Number(inverter.temperature) + " | "; //body 小時平均模組溫度
if (showmoney == 1) {
sta += "" + toThousands(Math.round(Number(inverter.hourmoney))) + " | ";
}
@@ -941,7 +940,7 @@
thour = inverter.tothour ? inverter.tothour.toFixed(2) : 0;
tpr = inverter.pr ? inverter.pr.toFixed(2) : 0;
tkwh = inverter.totKWH ? inverter.totKWH.toFixed(2) : 0;
- kWhkwp = inverter.totKWHKWP ? inverter.totKWHKWP.toFixed(2) : 0;
+ kWhkwp = inverter.totKWHKWP ? inverter.totKWHKWP.toFixed(2) : 0; // 日報 有效發電小時
ntd = inverter.totmoney ? Math.round(inverter.totmoney) : 0;
ntdone = inverter.totmoney / inverter.totKWH ? Math.round(inverter.totmoney / inverter.totKWH * 10000) / 10000 : 0;
GeneratingCapacity = inverter.GeneratingCapacity;
@@ -961,8 +960,8 @@
var stb = "";
/* stb += "| " + thour + " | ";*/
- stb += "" + kWhkwp + " | ";
- stb += "" + tpr + " | ";
+ stb += "" + kWhkwp + " | "; //header - 有效發電小時
+ stb += "" + tpr + " | "; //
stb += "" + tkwh + " | ";
stb += "" + GeneratingCapacity + " | ";
if (showmoney == 1) {
@@ -1274,7 +1273,7 @@
}
}
}
-
+ // 綜合報表
function maxtableinfobody(showmoney)
{
var send_data =
@@ -1320,9 +1319,6 @@
mintime = data.mintime;
}
-
-
-
var hirerate = 0;
if (data.powerstationType == 1)
{
@@ -1358,11 +1354,11 @@
StrInfoBody += "
";
- StrInfoBody += "| " + data.cityName + data.areaName + " | ";
+ StrInfoBody += "" + data.cityName + data.areaName + " | ";
StrInfoBody += "" + data.powerstationName + " | ";
- StrInfoBody += "" + data.kwh.toFixed(2) + " | ";
- StrInfoBody += "" + data.avgKWHKWP.toFixed(2) + " | ";
- StrInfoBody += "" + data.avgIrradiance.toFixed(2) + " | ";
+ StrInfoBody += "" + data.kwh.toFixed(2) + " | "; // 發電量
+ StrInfoBody += "" + data.avgKWHKWP.toFixed(2) + " | "; // 有效發電小時
+ StrInfoBody += "" + data.avgIrradiance.toFixed(2) + " | "; // 平均日照
StrInfoBody += "" + data.avgPR.toFixed(2) + " | ";
if (showmoney == 1) {
diff --git a/SolarPower/appsettings.Development.json b/SolarPower/appsettings.Development.json
index 2949b04..67ee146 100644
--- a/SolarPower/appsettings.Development.json
+++ b/SolarPower/appsettings.Development.json
@@ -8,21 +8,21 @@
},
"LoginExpireMinute": 60, //nJɶA()
"GoBackDay": 1, //v(I(C))A^Ѽ
- "DBConfig": {
- "Server": "MVgHWzR3rGDgD57TUoFunA==",
- "port": "r4AoXMUDodcQjIzofGNCcg==",
- "Database": "z8TVtiXZ6MwgWbUEAOXA/fiHzd7c0iUhFqn1mHzxhKo=",
- "Root": "mWlR2HshQNhRRE34jg4kdg==",
- "Password": "y4uPqlH9ncTgR/I07qpwaA=="
- },
- "mySql": "server=210.61.91.43;user=idafenweb;Database=solar_master;Port=10068;password=P@ssw0rd;charset='utf8';pooling=true;sslmode=none;",
//"DBConfig": {
- // "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
- // "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
- // "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
- // "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
- // "Password": "8WMHBEWuT0XoAB4kzduQHA=="
+ // "Server": "MVgHWzR3rGDgD57TUoFunA==",
+ // "port": "r4AoXMUDodcQjIzofGNCcg==",
+ // "Database": "z8TVtiXZ6MwgWbUEAOXA/fiHzd7c0iUhFqn1mHzxhKo=",
+ // "Root": "mWlR2HshQNhRRE34jg4kdg==",
+ // "Password": "y4uPqlH9ncTgR/I07qpwaA=="
//},
+ "mySql": "server=210.61.91.43;user=idafenweb;Database=solar_master;Port=10068;password=P@ssw0rd;charset='utf8';pooling=true;sslmode=none;",
+ "DBConfig": {
+ "Server": "AVXfxd+IRlLtJ0MCi9HU1g==",
+ "port": "CrEmevYrUsSo7Mkb7Gxn8A==",
+ "Database": "CEyYZnO8B5+yTXQcFSsiBA==",
+ "Root": "Aph7AzoiwAmmBHCfS1rqeQ==",
+ "Password": "8WMHBEWuT0XoAB4kzduQHA=="
+ },
"BackgroundServiceCron": {
"CalcPowerStationJob": "0 5 * * * ?",
"CalcAvgPowerStationJob": "0 0 2 * * ?",
diff --git a/solarApp/Service/procInvSvc.cs b/solarApp/Service/procInvSvc.cs
index 67f15af..dacc466 100644
--- a/solarApp/Service/procInvSvc.cs
+++ b/solarApp/Service/procInvSvc.cs
@@ -107,7 +107,7 @@ namespace solarApp.Service
clearData();
insert_inv();
//日報表
- insert_report_invDay(); //get_ck_invDay_list
+ //insert_report_invDay(); //get_ck_invDay_list
return result;
}