From c13c5de7ec6b7aa44298d919a05557bb64cba5a9 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Wed, 12 Jul 2023 17:07:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=80=81=E7=8E=AF?= =?UTF-8?q?=E4=BF=9D=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SGGLDB_CD_V2023-07-12-001.sql | 4 + .../ProjectEPSummaryReportService.cs | 2 + SGGL/BLL/WebService/CNCECHSSEWebService.cs | 19 ++--- .../Information/EPSummaryReportService.cs | 6 +- .../InformationProject/EPSummaryReport.aspx | 17 ++++- .../EPSummaryReport.aspx.cs | 12 ++- .../EPSummaryReport.aspx.designer.cs | 9 +++ .../EPSummaryReportEdit.aspx | 2 + .../EPSummaryReportEdit.aspx.cs | 20 +++-- .../EPSummaryReportEdit.aspx.designer.cs | 9 +++ .../ZHGL/Information/EPSummaryReport.aspx | 15 ++-- .../ZHGL/Information/EPSummaryReport.aspx.cs | 76 +++++++++++++------ .../EPSummaryReport.aspx.designer.cs | 27 ++++--- .../ZHGL/Information/EPSummaryReportEdit.aspx | 6 +- .../Information/EPSummaryReportEdit.aspx.cs | 47 +++++++++--- .../EPSummaryReportEdit.aspx.designer.cs | 9 +++ SGGL/Model/APIItem/EPSummaryReport.cs | 9 +++ SGGL/Model/Model.cs | 48 ++++++++++++ 18 files changed, 266 insertions(+), 71 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_CD_V2023-07-12-001.sql diff --git a/DataBase/版本日志/SGGLDB_CD_V2023-07-12-001.sql b/DataBase/版本日志/SGGLDB_CD_V2023-07-12-001.sql new file mode 100644 index 00000000..15c8ecf2 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_CD_V2023-07-12-001.sql @@ -0,0 +1,4 @@ +alter table [dbo].[Information_EPSummaryReport] add Quarter int null +GO +alter table [dbo].[InformationProject_EPSummaryReport] add Quarter int null +GO \ No newline at end of file diff --git a/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs index 54b63751..adc32ad9 100644 --- a/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs +++ b/SGGL/BLL/HSSE/InformationProject/ProjectEPSummaryReportService.cs @@ -33,6 +33,7 @@ namespace BLL ProjectId = ePSummaryReport.ProjectId, UnitId = ePSummaryReport.UnitId, YearId = ePSummaryReport.YearId, + Quarter= ePSummaryReport.Quarter, ResponsiblePerson = ePSummaryReport.ResponsiblePerson, ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel, ContactPerson = ePSummaryReport.ContactPerson, @@ -63,6 +64,7 @@ namespace BLL { newReport.UnitId = ePSummaryReport.UnitId; newReport.YearId = ePSummaryReport.YearId; + newReport.Quarter = ePSummaryReport.Quarter; newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson; newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel; newReport.ContactPerson = ePSummaryReport.ContactPerson; diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs index c6854e9d..c366cb8e 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -803,7 +803,7 @@ { try { - + var upReport = from x in db.Environmental_ChemicalReport where x.ChemicalReportId == chemicalReportId select new Model.ChemicalReport @@ -965,7 +965,7 @@ { try { - + var upReport = from x in db.Environmental_EnergyReport where x.EnergyReportId == energyReportId select new Model.EnergyReport @@ -1072,7 +1072,7 @@ { try { - + var upReport = from x in db.Environmental_ArchitectureReport where x.ArchitectureReportId == chemicalReportId select new Model.ArchitectureReport @@ -1167,7 +1167,7 @@ { try { - + var upReport = from x in db.Information_WorkSummaryReport where x.WorkSummaryReportId == workSummaryReportId select new Model.WorkSummaryReport @@ -1259,7 +1259,7 @@ { try { - + var upReport = from x in db.Information_QualityWorkSummaryReport where x.QualityWorkSummaryReportId == qualityWorkSummaryReportId select new Model.QualityWorkSummaryReport @@ -1350,7 +1350,7 @@ { try { - + var upReport = from x in db.Information_SafetyBriefing where x.SafetyBriefingId == safetyBriefingId select new Model.SafetyBriefing @@ -1443,7 +1443,7 @@ { try { - + var upReport = from x in db.Information_QuarterlyProjectQuality where x.QuarterlyProjectQualityId == quarterlyProjectQualityId select new Model.QuarterlyProjectQuality @@ -1549,7 +1549,7 @@ { try { - + var upReport = from x in db.Information_EPSummaryReport where x.EPSummaryReportId == ePSummaryReportId select new Model.EPSummaryReport @@ -1557,6 +1557,7 @@ EPSummaryReportId = x.EPSummaryReportId, UnitId = x.UnitId, YearId = x.YearId, + Quarter = x.Quarter, ResponsiblePerson = x.ResponsiblePerson, ResponsiblePersonTel = x.ResponsiblePersonTel, ContactPerson = x.ContactPerson, @@ -6788,5 +6789,5 @@ } } } - } + } } diff --git a/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs index 0d0ac6e3..690e8fc2 100644 --- a/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs +++ b/SGGL/BLL/ZHGL/Information/EPSummaryReportService.cs @@ -27,9 +27,9 @@ namespace BLL /// /// /// - public static Model.Information_EPSummaryReport GetEPSummaryReportByUnitIdAndYearId(string unitId, int yearId) + public static Model.Information_EPSummaryReport GetEPSummaryReportByUnitIdAndYearIdAndQuarters(string unitId, int yearId, int quarters) { - return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId); + return Funs.DB.Information_EPSummaryReport.FirstOrDefault(e => e.UnitId == unitId && e.YearId == yearId && e.Quarter == quarters); } /// @@ -43,6 +43,7 @@ namespace BLL EPSummaryReportId = ePSummaryReport.EPSummaryReportId, UnitId = ePSummaryReport.UnitId, YearId = ePSummaryReport.YearId, + Quarter = ePSummaryReport.Quarter, ResponsiblePerson = ePSummaryReport.ResponsiblePerson, ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel, ContactPerson = ePSummaryReport.ContactPerson, @@ -73,6 +74,7 @@ namespace BLL { newReport.UnitId = ePSummaryReport.UnitId; newReport.YearId = ePSummaryReport.YearId; + newReport.Quarter = ePSummaryReport.Quarter; newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson; newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel; newReport.ContactPerson = ePSummaryReport.ContactPerson; diff --git a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx index b8e12ec3..5e7590ff 100644 --- a/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx +++ b/SGGL/FineUIPro.Web/HSSE/InformationProject/EPSummaryReport.aspx @@ -26,6 +26,9 @@ + +