From 26da763cbb146f02c50651caa3ba6bab627d4501 Mon Sep 17 00:00:00 2001 From: jiahao Date: Tue, 1 Aug 2023 17:37:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=EF=BC=9AstationOverview=20-?= =?UTF-8?q?=20=E9=81=8B=E7=B6=AD=E7=95=AB=E9=9D=A2=E9=A0=90=E8=A8=AD?= =?UTF-8?q?=E5=80=BC=E7=82=BA=EF=BC=9A2=20=E7=B6=AD=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Implement/OperationRepository.cs | 4 +- .../StationOverviewInfo.cshtml | 2 +- solarApp/Service/archiveLowData.cs | 9 +-- solarApp/Service/procSyncError.cs | 63 ++++++++++--------- solarApp/fmArchive.Designer.cs | 2 +- solarApp/fmArchive.cs | 9 +-- 6 files changed, 48 insertions(+), 41 deletions(-) diff --git a/SolarPower/Repository/Implement/OperationRepository.cs b/SolarPower/Repository/Implement/OperationRepository.cs index 2ba0976..df19ea0 100644 --- a/SolarPower/Repository/Implement/OperationRepository.cs +++ b/SolarPower/Repository/Implement/OperationRepository.cs @@ -219,7 +219,7 @@ namespace SolarPower.Repository.Implement try { string where = ""; - if (filter.Status == 2) + if (filter.Status == 2) //狀態 0:未完成 1:完成 2:未完成-過期 3:完成-過期 { where = $"opr.Deleted = 1 "; } @@ -247,7 +247,7 @@ namespace SolarPower.Repository.Implement sql += " AND opr.EndTime >= @StartDate"; } - if (filter.WorkType > 0) + if (filter.WorkType > 0)//工作項目, 0:清洗 1:巡檢 2:維修 { filter.WorkType -= 1; sql += @" AND opr.WorkType = @WorkType"; diff --git a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml index af188e6..7736323 100644 --- a/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml +++ b/SolarPower/Views/StationOverview/StationOverviewInfo.cshtml @@ -162,7 +162,7 @@