定制版企业安全报表调整

This commit is contained in:
2025-07-18 18:05:12 +08:00
parent a37272cdea
commit 3e28b8025d
11 changed files with 368 additions and 28 deletions
+3 -4
View File
@@ -92,16 +92,15 @@
{
try
{
CNCECHSSEService.HSSEServiceClient hsseC = new CNCECHSSEService.HSSEServiceClient();
var upReport = from x in db.Information_MillionsMonthlyReport
where x.MillionsMonthlyReportId == millionsMonthlyReportId
select new CNCECHSSEService.Information_MillionsMonthlyReport
select new Information_MillionsMonthlyReport
{
MillionsMonthlyReportId = x.MillionsMonthlyReportId,
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,
@@ -129,7 +128,7 @@
var upReportItem = from x in db.Information_MillionsMonthlyReportItem
where x.MillionsMonthlyReportId == millionsMonthlyReportId
select new CNCECHSSEService.Information_MillionsMonthlyReportItem
select new Information_MillionsMonthlyReportItem
{
MillionsMonthlyReportItemId = x.MillionsMonthlyReportItemId,
MillionsMonthlyReportId = x.MillionsMonthlyReportId,
@@ -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();
}