修改bug
This commit is contained in:
parent
cad4cbe7f0
commit
3080ba8ede
@ -359,9 +359,12 @@ namespace SolarPower.Controllers
|
|||||||
foreach (ExceptionDataTable a in exceptionDataTable)
|
foreach (ExceptionDataTable a in exceptionDataTable)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(a.FormId))
|
if (string.IsNullOrEmpty(a.FormId))
|
||||||
|
{
|
||||||
|
if(a.Err_status == 1)
|
||||||
{
|
{
|
||||||
a.Function = @$"<a href='javascript:;' class='btn btn-success waves-effect waves-themed mb-3 mr-2 add-btn'>填寫表單</a>";
|
a.Function = @$"<a href='javascript:;' class='btn btn-success waves-effect waves-themed mb-3 mr-2 add-btn'>填寫表單</a>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
a.Function = @$"<a href='javascript:;' class='waves-effect waves-themed mb-3 mr-2 edit-btn'>{a.FormId}</a>";
|
a.Function = @$"<a href='javascript:;' class='waves-effect waves-themed mb-3 mr-2 edit-btn'>{a.FormId}</a>";
|
||||||
|
|||||||
@ -27,7 +27,7 @@ namespace SolarPower.Repository.Implement
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string sql = @"SELECT ";
|
string sql = @"SELECT AVG(KWHKWP),TOTALMONEY,TOTALKWH,TOTALCARBON,PR";
|
||||||
|
|
||||||
a = await conn.QueryFirstOrDefaultAsync<AnalysisStationCombine>(sql);
|
a = await conn.QueryFirstOrDefaultAsync<AnalysisStationCombine>(sql);
|
||||||
|
|
||||||
|
|||||||
@ -2171,11 +2171,11 @@
|
|||||||
if (val.length != 0) {
|
if (val.length != 0) {
|
||||||
$('#HistoryDetailTable').append('<tr>' +
|
$('#HistoryDetailTable').append('<tr>' +
|
||||||
'<td>' + val.timestamp + '</td>' +
|
'<td>' + val.timestamp + '</td>' +
|
||||||
'<td>' + val.kwh + '</td>' +
|
'<td>' + val.kwh.toFixed(2) + '</td>' +
|
||||||
'<td>' + val.diffSOLARHOUR + '</td>' +
|
'<td>' + val.diffSOLARHOUR.toFixed(2) + '</td>' +
|
||||||
'<td>' + val.irradiance + '</td>' +
|
'<td>' + val.irradiance.toFixed(2) + '</td>' +
|
||||||
'<td>' + val.pr + '</td>' +
|
'<td>' + val.pr.toFixed(2) + '</td>' +
|
||||||
'<td>' + val.temp + '</td>' +
|
'<td>' + val.temp.toFixed(2) + '</td>' +
|
||||||
'</tr>');
|
'</tr>');
|
||||||
listmonth.push(val.timestamp);
|
listmonth.push(val.timestamp);
|
||||||
listkwh.push(val.kwh);
|
listkwh.push(val.kwh);
|
||||||
@ -2197,15 +2197,15 @@
|
|||||||
datasets: [{
|
datasets: [{
|
||||||
type: 'line',
|
type: 'line',
|
||||||
label: '日照度(kWh/㎡)',
|
label: '日照度(kWh/㎡)',
|
||||||
borderColor: listcolor,
|
borderColor: 'rgba(190, 45, 45,1)',
|
||||||
pointRadius: 4,
|
pointRadius: 4,
|
||||||
yAxisID: 'B',
|
yAxisID: 'B',
|
||||||
fill: false,
|
fill: false,
|
||||||
data: listirradiance
|
data: listirradiance
|
||||||
}, {
|
}, {
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
borderColor: listcolor2,
|
borderColor: 'rgba(103, 180, 172, 1)',
|
||||||
backgroundColor: listcolor2,
|
backgroundColor: 'rgba(103, 180, 172, 0.2)',
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
label: '發電量(kWh)',
|
label: '發電量(kWh)',
|
||||||
yAxisID: 'A',
|
yAxisID: 'A',
|
||||||
@ -2259,11 +2259,11 @@
|
|||||||
{
|
{
|
||||||
$('#HistoryTotalTable').append('<tr>' +
|
$('#HistoryTotalTable').append('<tr>' +
|
||||||
'<td>' + TimestampALL + '</td>' +
|
'<td>' + TimestampALL + '</td>' +
|
||||||
'<td>' + kwhALL + '</td>' +
|
'<td>' + kwhALL.toFixed(2) + '</td>' +
|
||||||
'<td>' + diffSOLARHOURALL + '</td>' +
|
'<td>' + diffSOLARHOURALL.toFixed(2) + '</td>' +
|
||||||
'<td>' + irradianceALL + '</td>' +
|
'<td>' + irradianceALL.toFixed(2) + '</td>' +
|
||||||
'<td>' + prALL + '</td>' +
|
'<td>' + prALL.toFixed(2) + '</td>' +
|
||||||
'<td>' + tempALL + '</td>' +
|
'<td>' + tempALL.toFixed(2) + '</td>' +
|
||||||
'</tr>');
|
'</tr>');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user