修改hsse安全月报

This commit is contained in:
2024-08-27 17:36:01 +08:00
parent ba55ac64e4
commit 2d0bb16490
11 changed files with 4320 additions and 166 deletions
@@ -60,7 +60,7 @@ namespace FineUIPro.Web.HSSE.Manager
string strSql = @"SELECT MonthReport.MonthReportId,MonthReport.ProjectId,MonthReport.Months,CodeRecords.Code AS MonthReportCode,Users.UserName as ReportManName"
+ @" FROM Manager_MonthReportC AS MonthReport "
+ @" LEFT JOIN Sys_User AS Users ON MonthReport.ReportMan=Users.UserId "
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE 1=1 ";
+ @" LEFT JOIN Sys_CodeRecords AS CodeRecords ON MonthReport.MonthReportId=CodeRecords.DataId WHERE MonthReportType='1' ";
List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND MonthReport.ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
@@ -238,44 +238,49 @@ namespace FineUIPro.Web.HSSE.Manager
var mont = BLL.MonthReportCService.GetMonthReportByMonthReportId(rowID);
if (mont != null)
{
InjuryAccidentCService.DeleteInjuryAccidengtByMonthReportId(rowID);
PersonSortCService.DeleteManager_Attempted(rowID);
PersonSortCService.DeleteManager_DrillRecordList(rowID);
PersonSortCService.DeleteManager_EmergencyPlan(rowID);
PersonSortCService.DeleteManager_ProjectAssignment(rowID);
PersonSortCService.DeleteManager_HiddenDanger(rowID);
BLL.ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(rowID);
BLL.RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(rowID);
BLL.PersonSortCService.DeletePersonSortsByMonthReportId(rowID);
BLL.HazardSortCService.DeleteHazardSortsByMonthReportId(rowID);
BLL.AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID);
BLL.HseCostCService.DeleteHseCostsByMonthReportId(rowID);
BLL.TrainSortCService.DeleteTrainSortsByMonthReportId(rowID);
BLL.TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(rowID);
BLL.MeetingSortCService.DeleteMeetingSortsByMonthReportId(rowID);
BLL.CheckSortCService.DeleteCheckSortsByMonthReportId(rowID);
BLL.CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(rowID);
BLL.PromotionalActiviteSortCService.DeletePromotionalActiviteSortsByMonthReportId(rowID);
BLL.EmergencySortCService.DeleteEmergencySortsByMonthReportId(rowID);
BLL.DrillSortCService.DeleteDrillSortsByMonthReportId(rowID);
BLL.IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(rowID);
BLL.OtherActiveSortCService.DeleteOtherActiveSortsByMonthReportId(rowID);
BLL.ActivityDesCService.DeleteActivityDesByMonthReportId(rowID);
BLL.OtherManagementCService.DeleteOtherManagementByMonthReportId(rowID);
BLL.PlanCService.DeletePlanByMonthReportId(rowID);
BLL.ReviewRecordCService.DeleteReviewRecordByMonthReportId(rowID);
BLL.FileManageCService.DeleteFileManageByMonthReportId(rowID);
BLL.FiveExpenseCService.DeleteFiveExpenseByMonthReportId(rowID);
BLL.SubExpenseCService.DeleteSubExpenseByMonthReportId(rowID);
BLL.AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(rowID);
BLL.AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(rowID);
BLL.OtherWorkCService.DeleteOtherWorkByMonthReportId(rowID);
BLL.HazardCService.DeleteHazardByMonthReportId(rowID);
BLL.TrainCService.DeleteTrainByMonthReportId(rowID);
BLL.CheckCService.DeleteCheckByMonthReportId(rowID);
BLL.MeetingCService.DeleteMeetingByMonthReportId(rowID);
BLL.ActivitiesCService.DeleteActivitiesByMonthReportId(rowID);
BLL.EmergencyPlanCService.DeleteEmergencyPlanByMonthReportId(rowID);
BLL.EmergencyExercisesCService.DeleteEmergencyExercisesByMonthReportId(rowID);
BLL.CostInvestmentPlanCService.DeleteCostInvestmentPlanByMonthReportId(rowID);
BLL.ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID);
BLL.OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID);
BLL.MonthReportCService.DeleteMonthReportByMonthReportId(rowID);
ComplianceObligationsCService.DeleteComplianceObligationsCByMonthReportId(rowID);
RewardAndPunishSortCService.DeleteRewardAndPunishSortCByMonthReportId(rowID);
PersonSortCService.DeletePersonSortsByMonthReportId(rowID);
HazardSortCService.DeleteHazardSortsByMonthReportId(rowID);
AccidentSortCService.DeleteAccidentSortsByMonthReportId(rowID);
HseCostCService.DeleteHseCostsByMonthReportId(rowID);
TrainSortCService.DeleteTrainSortsByMonthReportId(rowID);
TrainActivitySortCService.DeleteTrainActivitySortsByMonthReportId(rowID);
MeetingSortCService.DeleteMeetingSortsByMonthReportId(rowID);
CheckSortCService.DeleteCheckSortsByMonthReportId(rowID);
CheckDetailSortCService.DeleteCheckDetailSortsByMonthReportId(rowID);
PromotionalActiviteSortCService.DeletePromotionalActiviteSortsByMonthReportId(rowID);
EmergencySortCService.DeleteEmergencySortsByMonthReportId(rowID);
DrillSortCService.DeleteDrillSortsByMonthReportId(rowID);
IncentiveSortCService.DeleteIncentiveSortsByMonthReportId(rowID);
OtherActiveSortCService.DeleteOtherActiveSortsByMonthReportId(rowID);
ActivityDesCService.DeleteActivityDesByMonthReportId(rowID);
OtherManagementCService.DeleteOtherManagementByMonthReportId(rowID);
PlanCService.DeletePlanByMonthReportId(rowID);
ReviewRecordCService.DeleteReviewRecordByMonthReportId(rowID);
FileManageCService.DeleteFileManageByMonthReportId(rowID);
FiveExpenseCService.DeleteFiveExpenseByMonthReportId(rowID);
SubExpenseCService.DeleteSubExpenseByMonthReportId(rowID);
AccidentDesciptionItemCService.DeleteAccidentDesciptionItemByMonthReportId(rowID);
AccidentDesciptionCService.DeleteAccidentDesciptionByMonthReportId(rowID);
OtherWorkCService.DeleteOtherWorkByMonthReportId(rowID);
HazardCService.DeleteHazardByMonthReportId(rowID);
TrainCService.DeleteTrainByMonthReportId(rowID);
CheckCService.DeleteCheckByMonthReportId(rowID);
MeetingCService.DeleteMeetingByMonthReportId(rowID);
ActivitiesCService.DeleteActivitiesByMonthReportId(rowID);
EmergencyPlanCService.DeleteEmergencyPlanByMonthReportId(rowID);
EmergencyExercisesCService.DeleteEmergencyExercisesByMonthReportId(rowID);
CostInvestmentPlanCService.DeleteCostInvestmentPlanByMonthReportId(rowID);
ManageDocPlanCService.DeleteManageDocPlanByMonthReportId(rowID);
OtherWorkPlanCService.DeleteOtherWorkPlanByMonthReportId(rowID);
MonthReportCService.DeleteMonthReportByMonthReportId(rowID);
}
}