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 @@ + +