集团三库

This commit is contained in:
2026-09-10 18:51:12 +08:00
parent dc6abc4cbb
commit 5be709c0e6
131 changed files with 25364 additions and 970 deletions
@@ -48,7 +48,17 @@ namespace BLL
DeathPersonNum = accidentHandle.DeathPersonNum,
InjuriesPersonNum = accidentHandle.InjuriesPersonNum,
MinorInjuriesPersonNum = accidentHandle.MinorInjuriesPersonNum,
WorkHoursLoss = accidentHandle.WorkHoursLoss
WorkHoursLoss = accidentHandle.WorkHoursLoss,
AccidentLevel = accidentHandle.AccidentLevel,
AccidentType = accidentHandle.AccidentType,
AccidentLocation = accidentHandle.AccidentLocation,
IndirectMoneyLoss = accidentHandle.IndirectMoneyLoss,
ContractingResponsibility = accidentHandle.ContractingResponsibility,
PositionName = accidentHandle.PositionName,
ResponsibilityType = accidentHandle.ResponsibilityType,
ResponsibilityDesc = accidentHandle.ResponsibilityDesc,
ResponsibleMan = accidentHandle.ResponsibleMan,
ResponsibleManName = accidentHandle.ResponsibleManName,
};
db.Accident_AccidentHandle.InsertOnSubmit(newAccidentHandle);
db.SubmitChanges();
@@ -82,6 +92,16 @@ namespace BLL
newAccidentHandle.InjuriesPersonNum = accidentHandle.InjuriesPersonNum;
newAccidentHandle.MinorInjuriesPersonNum = accidentHandle.MinorInjuriesPersonNum;
newAccidentHandle.WorkHoursLoss = accidentHandle.WorkHoursLoss;
newAccidentHandle.AccidentLevel = accidentHandle.AccidentLevel;
newAccidentHandle.AccidentType = accidentHandle.AccidentType;
newAccidentHandle.AccidentLocation = accidentHandle.AccidentLocation;
newAccidentHandle.IndirectMoneyLoss = accidentHandle.IndirectMoneyLoss;
newAccidentHandle.ContractingResponsibility = accidentHandle.ContractingResponsibility;
newAccidentHandle.PositionName = accidentHandle.PositionName;
newAccidentHandle.ResponsibilityType = accidentHandle.ResponsibilityType;
newAccidentHandle.ResponsibilityDesc = accidentHandle.ResponsibilityDesc;
newAccidentHandle.ResponsibleMan = accidentHandle.ResponsibleMan;
newAccidentHandle.ResponsibleManName = accidentHandle.ResponsibleManName;
db.SubmitChanges();
}
}
@@ -52,12 +52,15 @@ namespace BLL
ViolationDate = violationPerson.ViolationDate,
ViolationName = violationPerson.ViolationName,
ViolationType = violationPerson.ViolationType,
CompileMan = violationPerson.CompileMan
CompileMan = violationPerson.CompileMan,
CompileDate = violationPerson.CompileDate
};
newViolationPerson.ViolationDate = violationPerson.ViolationDate;
newViolationPerson.States = violationPerson.States;
newViolationPerson.HandleStep = violationPerson.HandleStep;
newViolationPerson.ViolationDef = violationPerson.ViolationDef;
newViolationPerson.RectificationStatus = violationPerson.RectificationStatus;
newViolationPerson.ViolationLevel = violationPerson.ViolationLevel;
db.Check_ViolationPerson.InsertOnSubmit(newViolationPerson);
db.SubmitChanges();
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectViolationPersonMenuId, violationPerson.ProjectId, null, violationPerson.ViolationPersonId, violationPerson.CompileDate);
@@ -86,6 +89,8 @@ namespace BLL
newViolationPerson.States = violationPerson.States;
newViolationPerson.HandleStep = violationPerson.HandleStep;
newViolationPerson.ViolationDef = violationPerson.ViolationDef;
newViolationPerson.RectificationStatus = violationPerson.RectificationStatus;
newViolationPerson.ViolationLevel = violationPerson.ViolationLevel;
db.SubmitChanges();
}
}
@@ -63,6 +63,13 @@ namespace BLL
newTestRecord.TestEndTime = testRecord.TestEndTime;
newTestRecord.IsFiled = testRecord.IsFiled;
db.SubmitChanges();
//更新三库考试考核
string message = string.Empty;
SanKuDataSummaryReportService.UpdateExaminationRecordItem(testRecord.TestRecordId, ref message);
//if (!string.IsNullOrWhiteSpace(message))
//{
// ShowNotify(message, MessageBoxIcon.Warning);
//}
}
}
@@ -1,8 +1,9 @@
using System;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace BLL
{
@@ -47,6 +48,8 @@ namespace BLL
Descriptions = largerHazard.Descriptions,
OperativesNum = largerHazard.OperativesNum,
ApprovalState = largerHazard.ApprovalState,
UnitId = largerHazard.UnitId,
StandbyPersonnelId = largerHazard.StandbyPersonnelId,
};
db.Solution_LargerHazard.InsertOnSubmit(newLargerHazard);
@@ -91,6 +94,8 @@ namespace BLL
newLargerHazard.IsUpdate = null;
newLargerHazard.OperativesNum = largerHazard.OperativesNum;
newLargerHazard.ApprovalState = largerHazard.ApprovalState;
newLargerHazard.UnitId = largerHazard.UnitId;
newLargerHazard.StandbyPersonnelId = largerHazard.StandbyPersonnelId;
db.SubmitChanges();
//判断是否有数据 有数据则更新 没有数据则添加
var majorPlanApproval = BLL.MajorPlanApprovalService.GetMajorPlanApprovalById(largerHazard.HazardId);