20230920 HSE管理月报

This commit is contained in:
2023-09-20 13:55:00 +08:00
parent 47f9a0e959
commit 374cad03f1
48 changed files with 6674 additions and 8104 deletions
@@ -16,7 +16,7 @@ namespace BLL
/// <returns></returns>
public static List<Model.Manager_Month_HazardC> GetHazardByMonthReportId(string monthReportId)
{
return (from x in Funs.DB.Manager_Month_HazardC where x.MonthReportId == monthReportId orderby x.SortIndex select x).ToList();
return (from x in Funs.DB.Manager_Month_HazardC where x.MonthReportId == monthReportId select x).ToList();
}
/// <summary>
@@ -31,10 +31,10 @@ namespace BLL
HazardId = SQLHelper.GetNewID(typeof(Model.Manager_Month_HazardC)),
MonthReportId = hazard.MonthReportId,
WorkArea = hazard.WorkArea,
Subcontractor = hazard.Subcontractor,
DangerousSource = hazard.DangerousSource,
EnvironmentalFactors = hazard.EnvironmentalFactors,
Consequence = hazard.Consequence,
ControlMeasures = hazard.ControlMeasures,
SortIndex = hazard.SortIndex
IsMajor = hazard.IsMajor
};
db.Manager_Month_HazardC.InsertOnSubmit(newHazard);
db.SubmitChanges();