diff --git a/DataBase/版本日志/SGGLDB_WH_2023-07-11.sql b/DataBase/版本日志/SGGLDB_WH_2023-07-11.sql new file mode 100644 index 00000000..15c8ecf2 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_WH_2023-07-11.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/Common/CommonService.cs b/SGGL/BLL/Common/CommonService.cs index b3b112fd..8dc7f996 100644 --- a/SGGL/BLL/Common/CommonService.cs +++ b/SGGL/BLL/Common/CommonService.cs @@ -605,5 +605,16 @@ namespace BLL if (now.Month < birthDate.Month || (now.Month == birthDate.Month && now.Day < birthDate.Day)) age--; return age; } + + /// + /// 得到本单位Id + /// + /// + public static string GetThisUnitId() + { + string unitId = Const.UnitId_CWCEC; + + return unitId; + } } } 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 90f6befc..f1da6f0c 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -1775,6 +1775,7 @@ EPSummaryReportId = x.EPSummaryReportId, UnitId = x.UnitId, YearId = x.YearId, + Quarter = x.Quarter, ResponsiblePerson = x.ResponsiblePerson, ResponsiblePersonTel = x.ResponsiblePersonTel, ContactPerson = x.ContactPerson, @@ -3286,4 +3287,4 @@ } -} +} \ No newline at end of file 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 @@ + +