2023-03-31 报表升级
This commit is contained in:
@@ -6,41 +6,41 @@ namespace BLL
|
||||
public static class MillionsMonthlyReportService
|
||||
{
|
||||
/// <summary>
|
||||
/// 百万工时安全统计月报表
|
||||
/// 企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="MillionsMonthlyReportId">百万工时安全统计月报表Id</param>
|
||||
/// <returns>百万工时安全统计月报表</returns>
|
||||
/// <param name="MillionsMonthlyReportId">企业安全数据统计月报Id</param>
|
||||
/// <returns>企业安全数据统计月报</returns>
|
||||
public static Model.Information_MillionsMonthlyReport GetMillionsMonthlyReportByMillionsMonthlyReportId(string MillionsMonthlyReportId)
|
||||
{
|
||||
return Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == MillionsMonthlyReportId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 百万工时安全统计月报表
|
||||
/// 企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="unitId">单位Id</param>
|
||||
/// <param name = "year" > 年度 </ param >
|
||||
/// <param name="month">月份</param>
|
||||
/// <returns>百万工时安全统计月报表</returns>
|
||||
/// <returns>企业安全数据统计月报</returns>
|
||||
public static Model.Information_MillionsMonthlyReport GetMillionsMonthlyReportByUnitIdAndYearAndMonth(string unitId, int year, int month)
|
||||
{
|
||||
return Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.UnitId == unitId && e.Month == month && e.Year == year);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据单位Id获取百万工时安全统计月报表集合
|
||||
/// 根据单位Id获取企业安全数据统计月报集合
|
||||
/// </summary>
|
||||
/// <param name="UnitId">单位Id</param>
|
||||
/// <returns>百万工时安全统计月报表集合</returns>
|
||||
/// <returns>企业安全数据统计月报集合</returns>
|
||||
public static List<Model.View_Information_MillionsMonthlyReport> GetMillionsMonthlyReportsByUnitId(string UnitId)
|
||||
{
|
||||
return (from x in Funs.DB.View_Information_MillionsMonthlyReport where x.UnitId == UnitId orderby x.FillingDate descending select x).ToList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 增加百万工时安全统计月报表
|
||||
/// 增加企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="MillionsMonthlyReport">百万工时安全统计月报表实体</param>
|
||||
/// <param name="MillionsMonthlyReport">企业安全数据统计月报实体</param>
|
||||
public static void AddMillionsMonthlyReport(Model.Information_MillionsMonthlyReport MillionsMonthlyReport)
|
||||
{
|
||||
Model.Information_MillionsMonthlyReport newMillionsMonthlyReport = new Model.Information_MillionsMonthlyReport
|
||||
@@ -59,7 +59,23 @@ namespace BLL
|
||||
FillingMan = MillionsMonthlyReport.FillingMan,
|
||||
UpState = MillionsMonthlyReport.UpState,
|
||||
HandleState = MillionsMonthlyReport.HandleState,
|
||||
HandleMan = MillionsMonthlyReport.HandleMan
|
||||
HandleMan = MillionsMonthlyReport.HandleMan,
|
||||
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,
|
||||
};
|
||||
|
||||
Funs.DB.Information_MillionsMonthlyReport.InsertOnSubmit(newMillionsMonthlyReport);
|
||||
@@ -67,9 +83,9 @@ namespace BLL
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改百万工时安全统计月报表
|
||||
/// 修改企业安全数据统计月报
|
||||
/// </summary>
|
||||
/// <param name="MillionsMonthlyReport">百万工时安全统计月报表实体</param>
|
||||
/// <param name="MillionsMonthlyReport">企业安全数据统计月报实体</param>
|
||||
public static void UpdateMillionsMonthlyReport(Model.Information_MillionsMonthlyReport MillionsMonthlyReport)
|
||||
{
|
||||
Model.Information_MillionsMonthlyReport newMillionsMonthlyReport = Funs.DB.Information_MillionsMonthlyReport.FirstOrDefault(e => e.MillionsMonthlyReportId == MillionsMonthlyReport.MillionsMonthlyReportId);
|
||||
@@ -88,6 +104,22 @@ namespace BLL
|
||||
newMillionsMonthlyReport.UpState = MillionsMonthlyReport.UpState;
|
||||
newMillionsMonthlyReport.HandleState = MillionsMonthlyReport.HandleState;
|
||||
newMillionsMonthlyReport.HandleMan = MillionsMonthlyReport.HandleMan;
|
||||
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;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user