diff --git a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs index e2f69a7..2c34bf0 100644 --- a/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs +++ b/SolarPower/Quartz/Jobs/CalcPowerStationJob.cs @@ -216,7 +216,7 @@ namespace SolarPower.Quartz.Jobs } #endregion - #region step2-2. 取得該電站的當前這小時的日照度歷史資料 + #region step2-2. 取得該電站的當前這小時的設備歷史資料 //1. 找出該電站所有日照計設備(包含共享 logger.LogInformation("【CalcPowerStationJob】【開始取得電站[{0}]在{1}的日照計設備資訊】", powerStation.Code, dateTime); var deviceInfos = await powerStationRepository.GetListPyrheliometerByPowerStationId(powerStation.Id, powerStation.SiteDB); diff --git a/SolarPower/Repository/Implement/PowerStationRepository.cs b/SolarPower/Repository/Implement/PowerStationRepository.cs index cb40f09..0b75581 100644 --- a/SolarPower/Repository/Implement/PowerStationRepository.cs +++ b/SolarPower/Repository/Implement/PowerStationRepository.cs @@ -4050,7 +4050,7 @@ namespace SolarPower.Repository.Implement { try { - var sql = $"SELECT * FROM {tableName} ps"; + var sql = $"SELECT ps.* FROM {tableName} ps"; if (myUser.Role.Layer == 2) { diff --git a/SolarPower/Views/AnalysisInverter/Index.cshtml b/SolarPower/Views/AnalysisInverter/Index.cshtml index a5722fc..a13cffe 100644 --- a/SolarPower/Views/AnalysisInverter/Index.cshtml +++ b/SolarPower/Views/AnalysisInverter/Index.cshtml @@ -474,9 +474,9 @@ '
' + ''; diff --git a/SolarPower/Views/AnalysisStationCombine/Index.cshtml b/SolarPower/Views/AnalysisStationCombine/Index.cshtml index 6016f8c..1ae647c 100644 --- a/SolarPower/Views/AnalysisStationCombine/Index.cshtml +++ b/SolarPower/Views/AnalysisStationCombine/Index.cshtml @@ -664,11 +664,11 @@ '
' + '' + - '
' + powerStationkey + '
' + - '
' + powerStationkey + '
' + + '
' + powerStationkey + '
' + + '
' + powerStationkey + '
' + '
' + '' + '
' + diff --git a/SolarPower/Views/ElectricitySoldRecord/Index.cshtml b/SolarPower/Views/ElectricitySoldRecord/Index.cshtml index 13fefa3..fc62836 100644 --- a/SolarPower/Views/ElectricitySoldRecord/Index.cshtml +++ b/SolarPower/Views/ElectricitySoldRecord/Index.cshtml @@ -394,21 +394,21 @@ }); if (on == true) { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } else { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } diff --git a/SolarPower/Views/NoticeSchedule/Index.cshtml b/SolarPower/Views/NoticeSchedule/Index.cshtml index f302c7b..7ba588e 100644 --- a/SolarPower/Views/NoticeSchedule/Index.cshtml +++ b/SolarPower/Views/NoticeSchedule/Index.cshtml @@ -498,21 +498,21 @@ }); if (on == true) { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } else { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } diff --git a/SolarPower/Views/PowerGeneration/Index.cshtml b/SolarPower/Views/PowerGeneration/Index.cshtml index 806efda..bbfe799 100644 --- a/SolarPower/Views/PowerGeneration/Index.cshtml +++ b/SolarPower/Views/PowerGeneration/Index.cshtml @@ -406,21 +406,21 @@ }); if (on == true) { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } else { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } diff --git a/SolarPower/Views/StationOverview/Index.cshtml b/SolarPower/Views/StationOverview/Index.cshtml index 60619cc..671e2ba 100644 --- a/SolarPower/Views/StationOverview/Index.cshtml +++ b/SolarPower/Views/StationOverview/Index.cshtml @@ -381,9 +381,9 @@ $('#templateCard').find('.col-xl-3').clone().attr('id', 'card_' + val.id).appendTo($('#areaCard')); var statusicon; switch (val.healthStatus) { - case 1: statusicon = ""; break; - case 2: statusicon = ""; break; - case 3: statusicon = ""; break; + case 1: statusicon = ""; break; + case 2: statusicon = ""; break; + case 3: statusicon = ""; break; default: statusicon = 'NULL'; break; } diff --git a/SolarPower/Views/StationReport/Index.cshtml b/SolarPower/Views/StationReport/Index.cshtml index 698e8df..33b94ed 100644 --- a/SolarPower/Views/StationReport/Index.cshtml +++ b/SolarPower/Views/StationReport/Index.cshtml @@ -610,21 +610,21 @@ }); if (on == true) { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } else { str += '
  • ' + - '
    ' + - '

    ' + inverter.powerStationName + '

    ' + - '
    ' + + '
    ' + + '
    ' + '' + '
    ' + + '

    ' + inverter.powerStationName + '

    ' + '
    ' + '
  • '; } diff --git a/SolarPower/appsettings.Development.json b/SolarPower/appsettings.Development.json index 2c8090f..2b2bfc9 100644 --- a/SolarPower/appsettings.Development.json +++ b/SolarPower/appsettings.Development.json @@ -23,10 +23,10 @@ //}, "BackgroundServiceCron": { "CalcPowerStationJob": "0 5 * * * ?", - "CalcAvgPowerStationJob": "0/10 * * * * ?", + "CalcAvgPowerStationJob": "0 0 2 * * ?", "OperationScheduleJob": "0 0 2 * * ?", "CalcInverter15minJob": "0 2/15 * * * ?", - "SendEmailJob": "0/10 * * * * ?", + "SendEmailJob": "0 0/5 * * * ?", "ExceptionSchedule": "0 0/5 * * * ?" }, "SMTPConfig": { diff --git a/SolarPower/wwwroot/js/site.js b/SolarPower/wwwroot/js/site.js index 6812e01..da943a0 100644 --- a/SolarPower/wwwroot/js/site.js +++ b/SolarPower/wwwroot/js/site.js @@ -77,7 +77,7 @@ function SavePersonalInfo() { //#region 變更密碼表單驗證 $(function () { jQuery.validator.addMethod("pwcheck", function (value, element) { - var xxx = /^[A-Za-z0-9\d=!@#$%^&+=]*$/.test(value); + var xxx = /^[A-Za-z0-9\d!@#$%^&*()_=|]*$/.test(value); return xxx;// consists of only these //&& /[a-z]/.test(value) // has a lowercase letter //&& /\d/.test(value) // has a digit @@ -103,10 +103,10 @@ $(function () { }, messages: { new_password_modal: { - pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號【!@#$%^&+=】" + pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號" }, again_password_modal: { - pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號【!@#$%^&+=】", + pwcheck: "密碼格式錯誤,格式需為大小寫英文或數字或特殊符號", equalTo: "兩次密碼輸入不同" } }