From 4a8dc99d1f4a509251457394c718e295dffdfea9 Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Fri, 18 Jul 2025 14:18:43 +0800 Subject: [PATCH] 1 --- .../SGGLDB_V2025-07-18-001-gaofei.sql | 44 ++ SGGL/BLL/WebService/CNCECHSSEWebService.cs | 2 +- .../MillionsMonthlyReportService.cs | 6 + .../Information/MillionsMonthlyReport.aspx | 16 +- .../Information/MillionsMonthlyReport.aspx.cs | 36 +- .../MillionsMonthlyReport.aspx.designer.cs | 45 ++ .../MillionsMonthlyReportSave.aspx | 26 +- .../MillionsMonthlyReportSave.aspx.cs | 30 +- ...MillionsMonthlyReportSave.aspx.designer.cs | 45 ++ SGGL/Model/Model.cs | 444 +++++++++++------- 10 files changed, 519 insertions(+), 175 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql diff --git a/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql b/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql new file mode 100644 index 00000000..290e0ce2 --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2025-07-18-001-gaofei.sql @@ -0,0 +1,44 @@ +alter table Information_MillionsMonthlyReport add KeyWorkNum int null +alter table Information_MillionsMonthlyReport add KeyWorkOKNum int null +alter table Information_MillionsMonthlyReport add KeyWorkOKRate nvarchar(20) null +GO + + +/*************ҵʱȫͳ±**************/ +ALTER VIEW [dbo].[View_Information_MillionsMonthlyReport] +AS +SELECT +Report.MillionsMonthlyReportId, +Report.UnitId, +Report.FillingDate, +Report.UpState, +(ISNULL(Group_0008.ConstText,'-') + ISNULL(Group_0009.ConstText,'-')) AS ReportDate, +Group_0008.ConstText as YearStr, +Group_0009.ConstText as MonthStr, +U.UnitName, +Report.Year, +Report.Month, +Report.DutyPerson, +Report.RecordableIncidentRate, +Report.LostTimeRate, +Report.LostTimeInjuryRate, +Report.DeathAccidentFrequency, +Report.AccidentMortality, +Report.HandleState, +Report.KeyWorkNum, +Report.KeyWorkOKNum, +Report.KeyWorkOKRate, +Report.HandleMan, +US.PersonName AS UserName +FROM dbo.Information_MillionsMonthlyReport AS Report +LEFT JOIN Base_Unit AS U ON U.UnitId=Report.UnitId +LEFT JOIN Sys_Const AS Group_0008 ON Group_0008.GroupId='0008' AND Group_0008.ConstValue =Report.[Year] +LEFT JOIN Sys_Const AS Group_0009 ON Group_0009.GroupId='0009' AND Group_0009.ConstValue =Report.[Month] +LEFT JOIN Person_Persons AS US ON US.PersonId=Report.HandleMan + + + +GO + + + diff --git a/SGGL/BLL/WebService/CNCECHSSEWebService.cs b/SGGL/BLL/WebService/CNCECHSSEWebService.cs index dc79d0a5..2f314f9b 100644 --- a/SGGL/BLL/WebService/CNCECHSSEWebService.cs +++ b/SGGL/BLL/WebService/CNCECHSSEWebService.cs @@ -100,7 +100,7 @@ UnitId = x.UnitId, Year = x.Year, Month = x.Month, - FillingMan = x.FillingMan, + FillingMan = x.FillingMan + "|" + (x.KeyWorkNum ?? 0).ToString() + "|" + (x.KeyWorkOKNum ?? 0).ToString() + "|" + (x.KeyWorkOKRate ?? ""), FillingDate = x.FillingDate, DutyPerson = x.DutyPerson, RecordableIncidentRate = x.RecordableIncidentRate, diff --git a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs index a807d8fa..b19cb2fa 100644 --- a/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs +++ b/SGGL/BLL/ZHGL/Information/MillionsMonthlyReportService.cs @@ -73,6 +73,9 @@ namespace BLL BreakGroundLicenseNum = MillionsMonthlyReport.BreakGroundLicenseNum, ElectricityLicenseNum = MillionsMonthlyReport.ElectricityLicenseNum, RTLicenseNum = MillionsMonthlyReport.RTLicenseNum, + KeyWorkNum = MillionsMonthlyReport.KeyWorkNum, + KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum, + KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate, NightLicenseNum = MillionsMonthlyReport.NightLicenseNum, CommissionerNum = MillionsMonthlyReport.CommissionerNum, SoleDutyNum = MillionsMonthlyReport.SoleDutyNum, @@ -120,6 +123,9 @@ namespace BLL newMillionsMonthlyReport.NightLicenseNum = MillionsMonthlyReport.NightLicenseNum; newMillionsMonthlyReport.CommissionerNum = MillionsMonthlyReport.CommissionerNum; newMillionsMonthlyReport.SoleDutyNum = MillionsMonthlyReport.SoleDutyNum; + newMillionsMonthlyReport.KeyWorkNum = MillionsMonthlyReport.KeyWorkNum; + newMillionsMonthlyReport.KeyWorkOKNum = MillionsMonthlyReport.KeyWorkOKNum; + newMillionsMonthlyReport.KeyWorkOKRate = MillionsMonthlyReport.KeyWorkOKRate; Funs.DB.SubmitChanges(); } diff --git a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx index 76edd217..8b4822c9 100644 --- a/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx +++ b/SGGL/FineUIPro.Web/ZHGL/Information/MillionsMonthlyReport.aspx @@ -110,6 +110,20 @@ + + + + + + + + + + + + + +