2023-03-31 报表升级
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 生态环保工作总结报告
|
||||
/// </summary>
|
||||
public static class ProjectEPSummaryReportService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取生态环保工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="ePSummaryReportId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.InformationProject_EPSummaryReport GetEPSummaryReportById(string ePSummaryReportId)
|
||||
{
|
||||
return Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加生态环保工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="ePSummaryReport"></param>
|
||||
public static void AddEPSummaryReport(Model.InformationProject_EPSummaryReport ePSummaryReport)
|
||||
{
|
||||
Model.InformationProject_EPSummaryReport newReport = new Model.InformationProject_EPSummaryReport
|
||||
{
|
||||
EPSummaryReportId = ePSummaryReport.EPSummaryReportId,
|
||||
ProjectId = ePSummaryReport.ProjectId,
|
||||
UnitId = ePSummaryReport.UnitId,
|
||||
YearId = ePSummaryReport.YearId,
|
||||
ResponsiblePerson = ePSummaryReport.ResponsiblePerson,
|
||||
ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel,
|
||||
ContactPerson = ePSummaryReport.ContactPerson,
|
||||
ContactPersonTel = ePSummaryReport.ContactPersonTel,
|
||||
ReportDate = ePSummaryReport.ReportDate,
|
||||
Description1 = ePSummaryReport.Description1,
|
||||
Description2 = ePSummaryReport.Description2,
|
||||
Description3 = ePSummaryReport.Description3,
|
||||
Description4 = ePSummaryReport.Description4,
|
||||
Description5 = ePSummaryReport.Description5,
|
||||
Description6 = ePSummaryReport.Description6,
|
||||
Description7 = ePSummaryReport.Description7,
|
||||
Description8 = ePSummaryReport.Description8,
|
||||
Description9 = ePSummaryReport.Description9
|
||||
};
|
||||
Funs.DB.InformationProject_EPSummaryReport.InsertOnSubmit(newReport);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改生态环保工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="ePSummaryReport"></param>
|
||||
public static void UpdateEPSummaryReport(Model.InformationProject_EPSummaryReport ePSummaryReport)
|
||||
{
|
||||
Model.InformationProject_EPSummaryReport newReport = Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReport.EPSummaryReportId);
|
||||
if (newReport != null)
|
||||
{
|
||||
newReport.UnitId = ePSummaryReport.UnitId;
|
||||
newReport.YearId = ePSummaryReport.YearId;
|
||||
newReport.ResponsiblePerson = ePSummaryReport.ResponsiblePerson;
|
||||
newReport.ResponsiblePersonTel = ePSummaryReport.ResponsiblePersonTel;
|
||||
newReport.ContactPerson = ePSummaryReport.ContactPerson;
|
||||
newReport.ContactPersonTel = ePSummaryReport.ContactPersonTel;
|
||||
newReport.ReportDate = ePSummaryReport.ReportDate;
|
||||
newReport.Description1 = ePSummaryReport.Description1;
|
||||
newReport.Description2 = ePSummaryReport.Description2;
|
||||
newReport.Description3 = ePSummaryReport.Description3;
|
||||
newReport.Description4 = ePSummaryReport.Description4;
|
||||
newReport.Description5 = ePSummaryReport.Description5;
|
||||
newReport.Description6 = ePSummaryReport.Description6;
|
||||
newReport.Description7 = ePSummaryReport.Description7;
|
||||
newReport.Description8 = ePSummaryReport.Description8;
|
||||
newReport.Description9 = ePSummaryReport.Description9;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除生态环保工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="ePSummaryReportId"></param>
|
||||
public static void DeleteEPSummaryReportById(string ePSummaryReportId)
|
||||
{
|
||||
Model.InformationProject_EPSummaryReport ePSummaryReport = Funs.DB.InformationProject_EPSummaryReport.FirstOrDefault(e => e.EPSummaryReportId == ePSummaryReportId);
|
||||
if (ePSummaryReport != null)
|
||||
{
|
||||
Funs.DB.InformationProject_EPSummaryReport.DeleteOnSubmit(ePSummaryReport);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,14 +6,14 @@ using System.Text;
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 百万工时安全统计月报
|
||||
/// 企业安全数据统计月报
|
||||
/// </summary>
|
||||
public static class ProjectMillionsMonthlyReportService
|
||||
{
|
||||
public static Model.SGGLDB db = Funs.DB;
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键获取百万工时安全统计月报
|
||||
/// 根据主键获取企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="millionsMonthlyReport"></param>
|
||||
/// <returns></returns>
|
||||
@@ -23,7 +23,7 @@ namespace BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加百万工时安全统计月报
|
||||
/// 添加企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="millionsMonthlyReport"></param>
|
||||
public static void AddMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
|
||||
@@ -45,6 +45,9 @@ namespace BLL
|
||||
ContractorNum = millionsMonthlyReport.ContractorNum,
|
||||
SumPersonNum = millionsMonthlyReport.SumPersonNum,
|
||||
TotalWorkNum = millionsMonthlyReport.TotalWorkNum,
|
||||
DeathAccidentNum = millionsMonthlyReport.DeathAccidentNum,
|
||||
DeathAccidentPersonNum = millionsMonthlyReport.DeathAccidentPersonNum,
|
||||
DeathAccidentLossHour = millionsMonthlyReport.DeathAccidentLossHour,
|
||||
SeriousInjuriesNum = millionsMonthlyReport.SeriousInjuriesNum,
|
||||
SeriousInjuriesPersonNum = millionsMonthlyReport.SeriousInjuriesPersonNum,
|
||||
SeriousInjuriesLossHour = millionsMonthlyReport.SeriousInjuriesLossHour,
|
||||
@@ -60,20 +63,37 @@ namespace BLL
|
||||
MedicalTreatmentLossHour = millionsMonthlyReport.MedicalTreatmentLossHour,
|
||||
FireNum = millionsMonthlyReport.FireNum,
|
||||
ExplosionNum = millionsMonthlyReport.ExplosionNum,
|
||||
EnvironmenNum = millionsMonthlyReport.EnvironmenNum,
|
||||
TrafficNum = millionsMonthlyReport.TrafficNum,
|
||||
EquipmentNum = millionsMonthlyReport.EquipmentNum,
|
||||
QualityNum = millionsMonthlyReport.QualityNum,
|
||||
OtherNum = millionsMonthlyReport.OtherNum,
|
||||
FirstAidDressingsNum = millionsMonthlyReport.FirstAidDressingsNum,
|
||||
AttemptedEventNum = millionsMonthlyReport.AttemptedEventNum,
|
||||
LossDayNum = millionsMonthlyReport.LossDayNum
|
||||
LossDayNum = millionsMonthlyReport.LossDayNum,
|
||||
InputCosts = millionsMonthlyReport.InputCosts,
|
||||
TrainNum = millionsMonthlyReport.TrainNum,
|
||||
GeneralHazardNum = millionsMonthlyReport.GeneralHazardNum,
|
||||
MajorHazardNum = millionsMonthlyReport.MajorHazardNum,
|
||||
NotProofLargeProjectNum = millionsMonthlyReport.NotProofLargeProjectNum,
|
||||
ProofLargeProjectNum = millionsMonthlyReport.ProofLargeProjectNum,
|
||||
FireLicenseNum = millionsMonthlyReport.FireLicenseNum,
|
||||
LimitLicenseNum = millionsMonthlyReport.LimitLicenseNum,
|
||||
HighLicenseNum = millionsMonthlyReport.HighLicenseNum,
|
||||
HoistingLicenseNum = millionsMonthlyReport.HoistingLicenseNum,
|
||||
BreakGroundLicenseNum = millionsMonthlyReport.BreakGroundLicenseNum,
|
||||
ElectricityLicenseNum = millionsMonthlyReport.ElectricityLicenseNum,
|
||||
RTLicenseNum = millionsMonthlyReport.RTLicenseNum,
|
||||
NightLicenseNum = millionsMonthlyReport.NightLicenseNum,
|
||||
CommissionerNum = millionsMonthlyReport.CommissionerNum,
|
||||
SoleDutyNum = millionsMonthlyReport.SoleDutyNum,
|
||||
};
|
||||
db.InformationProject_MillionsMonthlyReport.InsertOnSubmit(newMillionsMonthlyReport);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改百万工时安全统计月报
|
||||
/// 修改企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="millionsMonthlyReport"></param>
|
||||
public static void UpdateMillionsMonthlyReport(Model.InformationProject_MillionsMonthlyReport millionsMonthlyReport)
|
||||
@@ -95,6 +115,9 @@ namespace BLL
|
||||
newMillionsMonthlyReport.ContractorNum = millionsMonthlyReport.ContractorNum;
|
||||
newMillionsMonthlyReport.SumPersonNum = millionsMonthlyReport.SumPersonNum;
|
||||
newMillionsMonthlyReport.TotalWorkNum = millionsMonthlyReport.TotalWorkNum;
|
||||
newMillionsMonthlyReport.DeathAccidentNum = millionsMonthlyReport.DeathAccidentNum;
|
||||
newMillionsMonthlyReport.DeathAccidentPersonNum = millionsMonthlyReport.DeathAccidentPersonNum;
|
||||
newMillionsMonthlyReport.DeathAccidentLossHour = millionsMonthlyReport.DeathAccidentLossHour;
|
||||
newMillionsMonthlyReport.SeriousInjuriesNum = millionsMonthlyReport.SeriousInjuriesNum;
|
||||
newMillionsMonthlyReport.SeriousInjuriesPersonNum = millionsMonthlyReport.SeriousInjuriesPersonNum;
|
||||
newMillionsMonthlyReport.SeriousInjuriesLossHour = millionsMonthlyReport.SeriousInjuriesLossHour;
|
||||
@@ -110,6 +133,7 @@ namespace BLL
|
||||
newMillionsMonthlyReport.MedicalTreatmentLossHour = millionsMonthlyReport.MedicalTreatmentLossHour;
|
||||
newMillionsMonthlyReport.FireNum = millionsMonthlyReport.FireNum;
|
||||
newMillionsMonthlyReport.ExplosionNum = millionsMonthlyReport.ExplosionNum;
|
||||
newMillionsMonthlyReport.EnvironmenNum = millionsMonthlyReport.EnvironmenNum;
|
||||
newMillionsMonthlyReport.TrafficNum = millionsMonthlyReport.TrafficNum;
|
||||
newMillionsMonthlyReport.EquipmentNum = millionsMonthlyReport.EquipmentNum;
|
||||
newMillionsMonthlyReport.QualityNum = millionsMonthlyReport.QualityNum;
|
||||
@@ -117,12 +141,29 @@ namespace BLL
|
||||
newMillionsMonthlyReport.FirstAidDressingsNum = millionsMonthlyReport.FirstAidDressingsNum;
|
||||
newMillionsMonthlyReport.AttemptedEventNum = millionsMonthlyReport.AttemptedEventNum;
|
||||
newMillionsMonthlyReport.LossDayNum = millionsMonthlyReport.LossDayNum;
|
||||
newMillionsMonthlyReport.InputCosts = millionsMonthlyReport.InputCosts;
|
||||
newMillionsMonthlyReport.TrainNum = millionsMonthlyReport.TrainNum;
|
||||
newMillionsMonthlyReport.GeneralHazardNum = millionsMonthlyReport.GeneralHazardNum;
|
||||
newMillionsMonthlyReport.MajorHazardNum = millionsMonthlyReport.MajorHazardNum;
|
||||
newMillionsMonthlyReport.NotProofLargeProjectNum = millionsMonthlyReport.NotProofLargeProjectNum;
|
||||
newMillionsMonthlyReport.ProofLargeProjectNum = millionsMonthlyReport.ProofLargeProjectNum;
|
||||
newMillionsMonthlyReport.FireLicenseNum = millionsMonthlyReport.FireLicenseNum;
|
||||
newMillionsMonthlyReport.LimitLicenseNum = millionsMonthlyReport.LimitLicenseNum;
|
||||
newMillionsMonthlyReport.HighLicenseNum = millionsMonthlyReport.HighLicenseNum;
|
||||
newMillionsMonthlyReport.HoistingLicenseNum = millionsMonthlyReport.HoistingLicenseNum;
|
||||
newMillionsMonthlyReport.BreakGroundLicenseNum = millionsMonthlyReport.BreakGroundLicenseNum;
|
||||
newMillionsMonthlyReport.ElectricityLicenseNum = millionsMonthlyReport.ElectricityLicenseNum;
|
||||
newMillionsMonthlyReport.RTLicenseNum = millionsMonthlyReport.RTLicenseNum;
|
||||
newMillionsMonthlyReport.NightLicenseNum = millionsMonthlyReport.NightLicenseNum;
|
||||
newMillionsMonthlyReport.CommissionerNum = millionsMonthlyReport.CommissionerNum;
|
||||
newMillionsMonthlyReport.SoleDutyNum = millionsMonthlyReport.SoleDutyNum;
|
||||
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除百万工时安全统计月报
|
||||
/// 根据主键删除企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="millionsMonthlyReportId"></param>
|
||||
public static void DeleteMillionsMonthlyReportById(string millionsMonthlyReportId)
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
/// <summary>
|
||||
/// 安全管理工作总结报告
|
||||
/// </summary>
|
||||
public static class ProjectWorkSummaryReportService
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据主键获取安全管理工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="workSummaryReportId"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.InformationProject_WorkSummaryReport GetWorkSummaryReportById(string workSummaryReportId)
|
||||
{
|
||||
return Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加安全管理工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="workSummaryReport"></param>
|
||||
public static void AddWorkSummaryReport(Model.InformationProject_WorkSummaryReport workSummaryReport)
|
||||
{
|
||||
Model.InformationProject_WorkSummaryReport newWorkSummaryReport = new Model.InformationProject_WorkSummaryReport
|
||||
{
|
||||
WorkSummaryReportId = workSummaryReport.WorkSummaryReportId,
|
||||
ProjectId=workSummaryReport.ProjectId,
|
||||
YearId = workSummaryReport.YearId,
|
||||
UnitId = workSummaryReport.UnitId,
|
||||
ResponsiblePerson = workSummaryReport.ResponsiblePerson,
|
||||
ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel,
|
||||
ContactPerson = workSummaryReport.ContactPerson,
|
||||
ContactPersonTel = workSummaryReport.ContactPersonTel,
|
||||
ReportDate = workSummaryReport.ReportDate,
|
||||
SafeLaborTime = workSummaryReport.SafeLaborTime,
|
||||
SafetyObjectives = workSummaryReport.SafetyObjectives,
|
||||
AccidentSituation = workSummaryReport.AccidentSituation,
|
||||
Awards = workSummaryReport.Awards,
|
||||
WorkDevelopment = workSummaryReport.WorkDevelopment,
|
||||
PersonnelTraining = workSummaryReport.PersonnelTraining,
|
||||
GovernanceSituation = workSummaryReport.GovernanceSituation,
|
||||
ManagementActivity = workSummaryReport.ManagementActivity,
|
||||
WorkExperience = workSummaryReport.WorkExperience,
|
||||
Countermeasures = workSummaryReport.Countermeasures,
|
||||
NextYearWorkPlan = workSummaryReport.NextYearWorkPlan,
|
||||
JobSuggestion = workSummaryReport.JobSuggestion,
|
||||
CompileMan=workSummaryReport.CompileMan,
|
||||
CompileDate=workSummaryReport.CompileDate
|
||||
};
|
||||
Funs.DB.InformationProject_WorkSummaryReport.InsertOnSubmit(newWorkSummaryReport);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改安全管理工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="workSummaryReport"></param>
|
||||
public static void UpdateWorkSummaryReport(Model.InformationProject_WorkSummaryReport workSummaryReport)
|
||||
{
|
||||
Model.InformationProject_WorkSummaryReport newWorkSummaryReport = Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReport.WorkSummaryReportId);
|
||||
if (newWorkSummaryReport != null)
|
||||
{
|
||||
newWorkSummaryReport.UnitId = workSummaryReport.UnitId;
|
||||
newWorkSummaryReport.YearId = workSummaryReport.YearId;
|
||||
newWorkSummaryReport.ResponsiblePerson = workSummaryReport.ResponsiblePerson;
|
||||
newWorkSummaryReport.ResponsiblePersonTel = workSummaryReport.ResponsiblePersonTel;
|
||||
newWorkSummaryReport.ContactPerson = workSummaryReport.ContactPerson;
|
||||
newWorkSummaryReport.ContactPersonTel = workSummaryReport.ContactPersonTel;
|
||||
newWorkSummaryReport.ReportDate = workSummaryReport.ReportDate;
|
||||
newWorkSummaryReport.SafeLaborTime = workSummaryReport.SafeLaborTime;
|
||||
newWorkSummaryReport.SafetyObjectives = workSummaryReport.SafetyObjectives;
|
||||
newWorkSummaryReport.AccidentSituation = workSummaryReport.AccidentSituation;
|
||||
newWorkSummaryReport.Awards = workSummaryReport.Awards;
|
||||
newWorkSummaryReport.WorkDevelopment = workSummaryReport.WorkDevelopment;
|
||||
newWorkSummaryReport.PersonnelTraining = workSummaryReport.PersonnelTraining;
|
||||
newWorkSummaryReport.GovernanceSituation = workSummaryReport.GovernanceSituation;
|
||||
newWorkSummaryReport.ManagementActivity = workSummaryReport.ManagementActivity;
|
||||
newWorkSummaryReport.WorkExperience = workSummaryReport.WorkExperience;
|
||||
newWorkSummaryReport.Countermeasures = workSummaryReport.Countermeasures;
|
||||
newWorkSummaryReport.NextYearWorkPlan = workSummaryReport.NextYearWorkPlan;
|
||||
newWorkSummaryReport.JobSuggestion = workSummaryReport.JobSuggestion;
|
||||
newWorkSummaryReport.CompileMan = workSummaryReport.CompileMan;
|
||||
newWorkSummaryReport.CompileDate = workSummaryReport.CompileDate;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除安全管理工作总结报告
|
||||
/// </summary>
|
||||
/// <param name="workSummaryReportId"></param>
|
||||
public static void DeleteWorkSummaryReportById(string workSummaryReportId)
|
||||
{
|
||||
Model.InformationProject_WorkSummaryReport workSummaryReport = Funs.DB.InformationProject_WorkSummaryReport.FirstOrDefault(e => e.WorkSummaryReportId == workSummaryReportId);
|
||||
if (workSummaryReport != null)
|
||||
{
|
||||
Funs.DB.InformationProject_WorkSummaryReport.DeleteOnSubmit(workSummaryReport);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user