報表 改有效日照小時 -含輸出
This commit is contained in:
parent
7b15afbbb9
commit
d682223874
@ -420,7 +420,7 @@ namespace SolarPower.Controllers
|
||||
"日發電量(kWh)",
|
||||
"日發電量百分比(%)",
|
||||
"日照小時(hr)",
|
||||
"kWH/kWP",
|
||||
"有效發電小時",
|
||||
"PR%",
|
||||
"日平均日照度(W/㎡)",
|
||||
"日平均模組溫度(°C)"
|
||||
@ -518,7 +518,7 @@ namespace SolarPower.Controllers
|
||||
cell.CellStyle = styleLine12;
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue("kWH/kWP平均(日)");
|
||||
cell.SetCellValue("平均有效發電小時(日)");
|
||||
cell.CellStyle = styleLine12;
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
@ -666,7 +666,7 @@ namespace SolarPower.Controllers
|
||||
"月發電量(kWh)",
|
||||
"月發電量百分比(%)",
|
||||
"日照小時(hr)",
|
||||
"kWH/kWP",
|
||||
"有效發電小時",
|
||||
"PR%",
|
||||
"月平均日照度(W/㎡)",
|
||||
"月平均模組溫度(°C)"
|
||||
@ -764,7 +764,7 @@ namespace SolarPower.Controllers
|
||||
cell.CellStyle = styleLine12;
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue("kWH/kWP平均(月)");
|
||||
cell.SetCellValue("平均有效發電小時(月)");
|
||||
cell.CellStyle = styleLine12;
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
@ -1141,7 +1141,7 @@ namespace SolarPower.Controllers
|
||||
index = 0;
|
||||
row = sheet.CreateRow(RowPosition);
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue("kWH/kWP:");
|
||||
cell.SetCellValue("有效發電小時:");
|
||||
cell.CellStyle = styleLine12;
|
||||
cell = row.CreateCell(1);
|
||||
cell.SetCellValue(!string.IsNullOrEmpty(kWhkwp) ? Convert.ToDouble(kWhkwp) : 0);
|
||||
@ -1220,7 +1220,7 @@ namespace SolarPower.Controllers
|
||||
"日發電量(kWh)",
|
||||
"日發電量百分比(%)",
|
||||
"日照小時(hr)",
|
||||
"kWH/kWP",
|
||||
"有效發電小時",
|
||||
"PR%",
|
||||
"日平均日照度(W/㎡)",
|
||||
"日平均模組溫度(°C)"
|
||||
@ -1574,7 +1574,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue(Math.Round(form.SolarHour,2));
|
||||
cell.SetCellValue(Math.Round(form.AvgKWHKWP,2));
|
||||
cell.CellStyle = styleLine12;
|
||||
|
||||
index++;
|
||||
@ -1634,7 +1634,8 @@ namespace SolarPower.Controllers
|
||||
City = form.CityName,
|
||||
Count = 1,
|
||||
Kwh = form.Kwh,
|
||||
SolarHour = form.SolarHour
|
||||
SolarHour = form.SolarHour,
|
||||
Kwhkwp = form.AvgKWHKWP
|
||||
};
|
||||
if( cityArrays.Where(a=>a.City == form.CityName).Count() > 0)
|
||||
{
|
||||
@ -1642,6 +1643,7 @@ namespace SolarPower.Controllers
|
||||
city.Count += cityinfo.Count;
|
||||
city.Kwh += cityinfo.Kwh;
|
||||
city.SolarHour += cityinfo.SolarHour;
|
||||
city.Kwhkwp += cityinfo.Kwhkwp;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1659,7 +1661,7 @@ namespace SolarPower.Controllers
|
||||
"區域",
|
||||
"電站名稱",
|
||||
"發電量",
|
||||
"發電小時",
|
||||
"有效發電小時",
|
||||
"平均日照",
|
||||
"PR"
|
||||
};
|
||||
@ -1708,7 +1710,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue(Math.Round((cityArray.SolarHour / cityArray.Count), 2));
|
||||
cell.SetCellValue(Math.Round((cityArray.Kwhkwp / cityArray.Count), 2));
|
||||
cell.CellStyle = styleLine12;
|
||||
region = new CellRangeAddress(cityRowPosition, cityRowPosition, index, index + 1);
|
||||
sheet.AddMergedRegion(region);
|
||||
@ -1742,7 +1744,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue("發電時間(小時)");
|
||||
cell.SetCellValue("有效發電小時");
|
||||
cell.CellStyle = styleLine12;
|
||||
region = new CellRangeAddress(RowPosition, RowPosition, index, index + 1);
|
||||
sheet.AddMergedRegion(region);
|
||||
@ -1919,7 +1921,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue(Math.Round(form.SolarHour, 2));
|
||||
cell.SetCellValue(Math.Round(form.AvgKWHKWP, 2));
|
||||
cell.CellStyle = styleLine12;
|
||||
|
||||
index++;
|
||||
@ -1979,7 +1981,8 @@ namespace SolarPower.Controllers
|
||||
City = form.CityName,
|
||||
Count = 1,
|
||||
Kwh = form.Kwh,
|
||||
SolarHour = form.SolarHour
|
||||
SolarHour = form.SolarHour,
|
||||
Kwhkwp = form.AvgKWHKWP
|
||||
};
|
||||
if (cityArrays.Where(a => a.City == form.CityName).Count() > 0)
|
||||
{
|
||||
@ -1987,6 +1990,7 @@ namespace SolarPower.Controllers
|
||||
city.Count += cityinfo.Count;
|
||||
city.Kwh += cityinfo.Kwh;
|
||||
city.SolarHour += cityinfo.SolarHour;
|
||||
city.Kwhkwp += cityinfo.Kwhkwp;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -2004,7 +2008,7 @@ namespace SolarPower.Controllers
|
||||
"區域",
|
||||
"電站名稱",
|
||||
"發電量",
|
||||
"發電小時",
|
||||
"有效發電小時",
|
||||
"平均日照",
|
||||
"PR"
|
||||
};
|
||||
@ -2053,7 +2057,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue(Math.Round((cityArray.SolarHour / cityArray.Count), 2));
|
||||
cell.SetCellValue(Math.Round((cityArray.Kwhkwp / cityArray.Count), 2));
|
||||
cell.CellStyle = styleLine12;
|
||||
region = new CellRangeAddress(cityRowPosition, cityRowPosition, index, index + 1);
|
||||
sheet.AddMergedRegion(region);
|
||||
@ -2087,7 +2091,7 @@ namespace SolarPower.Controllers
|
||||
|
||||
index++;
|
||||
cell = row.CreateCell(index);
|
||||
cell.SetCellValue("發電時間(小時)");
|
||||
cell.SetCellValue("有效發電小時");
|
||||
cell.CellStyle = styleLine12;
|
||||
region = new CellRangeAddress(RowPosition, RowPosition, index, index + 1);
|
||||
sheet.AddMergedRegion(region);
|
||||
|
||||
@ -106,6 +106,7 @@ namespace SolarPower.Models
|
||||
public double Kwh { get; set; }
|
||||
public double SolarHour { get; set; }
|
||||
public int Count { get; set; }
|
||||
public double Kwhkwp { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -266,7 +266,7 @@
|
||||
<tr>
|
||||
<th>縣市</th>
|
||||
<th>平均發電量(kWp)</th>
|
||||
<th>發電時間(小時)</th>
|
||||
<th>有效發電小時</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="maxtableBody">
|
||||
@ -783,7 +783,7 @@
|
||||
str += "<th>日<br />發電量<br />(kWh)</th>";
|
||||
str += "<th>日<br />發電量<br />百分比<br />(%)</th>";
|
||||
str += "<th>日照小時(hr)</th>";
|
||||
str += "<th>kWH/kWP</th>";
|
||||
str += "<th>有效發電小時</th>";
|
||||
str += "<th>PR%</th>";
|
||||
str += "<th>日<br />平均<br />日照度<br />(W/㎡)</th>";
|
||||
str += "<th>日<br />平均<br />模組溫度<br />(°C)</th>";
|
||||
@ -795,7 +795,7 @@
|
||||
str += "<th>區域</th>";
|
||||
str += "<th>電站名稱</th>";
|
||||
str += "<th>發電量</th>";
|
||||
str += "<th>發電小時</th>";
|
||||
str += "<th>有效發電小時</th>";
|
||||
str += "<th>平均日照</th>";
|
||||
str += "<th>PR</th>";
|
||||
if (rel.data.showMoney == 1) {
|
||||
@ -813,7 +813,7 @@
|
||||
str += "<th>月<br />發電量<br />(kWh)</th>";
|
||||
str += "<th>月<br />發電量<br />百分比<br />(%)</th>";
|
||||
str += "<th>日照小時(hr)</th>";
|
||||
str += "<th>kWH/kWP</th>";
|
||||
str += "<th>有效發電小時</th>";
|
||||
str += "<th>PR%</th>";
|
||||
str += "<th>月<br />平均<br />日照度<br />(W/㎡)</th>";
|
||||
str += "<th>月<br />平均<br />模組溫度<br />(°C)</th>";
|
||||
@ -940,7 +940,7 @@
|
||||
})
|
||||
var stc = "<tr>";
|
||||
stc += "<th>" + '日照小時' + "</th>";
|
||||
stc += "<th>" + 'kWH/kWP' + "</th>";
|
||||
stc += "<th>" + '有效發電小時' + "</th>";
|
||||
stc += "<th>" + 'PR%' + "</th>";
|
||||
stc += "<th>" + '日發電量(kWh)' + "</th>";
|
||||
if (showmoney == 1) {
|
||||
@ -1018,7 +1018,7 @@
|
||||
|
||||
var stc = "<tr>";
|
||||
stc += "<th>" + '日照平均(日)' + "</th>";
|
||||
stc += "<th>" + 'kWH/kWP(日)' + "</th>";
|
||||
stc += "<th>" + '有效發電小時(日)' + "</th>";
|
||||
stc += "<th>" + '發電量平均(kWh)(日)' + "</th>";
|
||||
stc += "<th>" + '發電量(kWh)(月)' + "</th>";
|
||||
if (showmoney == 1) {
|
||||
@ -1138,7 +1138,7 @@
|
||||
|
||||
var stc = "<tr>";
|
||||
stc += "<th>" + '日照平均(月)' + "</th>";
|
||||
stc += "<th>" + 'kWH/kWP(月)' + "</th>";
|
||||
stc += "<th>" + '有效發電小時(月)' + "</th>";
|
||||
stc += "<th>" + '發電量平均(kWh)(月)' + "</th>";
|
||||
stc += "<th>" + '發電量(kWh)(年)' + "</th>";
|
||||
if (showmoney == 1) {
|
||||
@ -1297,6 +1297,7 @@
|
||||
city: data.cityName,
|
||||
kwp: data.kwh,
|
||||
hour: data.solarHour,
|
||||
kwhkwp: data.avgKWHKWP,
|
||||
count : 1
|
||||
}
|
||||
if (CityArray.length == 0) {
|
||||
@ -1310,6 +1311,7 @@
|
||||
n.kwp += cityinfo.kwp;
|
||||
n.hour += cityinfo.hour;
|
||||
n.count += cityinfo.count;
|
||||
n.kwhkwp += cityinfo.kwhkwp
|
||||
npush = false;
|
||||
}
|
||||
});
|
||||
@ -1323,7 +1325,7 @@
|
||||
StrInfoBody += "<td>" + data.cityName + data.areaName + "</td>";
|
||||
StrInfoBody += "<td>" + data.powerstationName + "</td>";
|
||||
StrInfoBody += "<td>" + data.kwh.toFixed(2) + "</td>";
|
||||
StrInfoBody += "<td>" + data.solarHour.toFixed(2) + "</td>";
|
||||
StrInfoBody += "<td>" + data.avgKWHKWP.toFixed(2) + "</td>";
|
||||
StrInfoBody += "<td>" + data.avgIrradiance.toFixed(2) + "</td>";
|
||||
StrInfoBody += "<td>" + data.avgPR.toFixed(2) + "</td>";
|
||||
if (showmoney == 1) {
|
||||
@ -1346,7 +1348,7 @@
|
||||
CityInfoBody += "<tr>";
|
||||
CityInfoBody += "<td>" + data.city + "</td>";
|
||||
CityInfoBody += "<td>" + (data.kwp / data.count).toFixed(2) + "</td>";
|
||||
CityInfoBody += "<td>" + (data.hour / data.count).toFixed(2) + "</td>";
|
||||
CityInfoBody += "<td>" + (data.kwhkwp / data.count).toFixed(2) + "</td>";
|
||||
CityInfoBody += "</tr>";
|
||||
})
|
||||
//上面
|
||||
|
||||
Loading…
Reference in New Issue
Block a user