2023-03-31 报表升级
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user