20230920 HSE管理月报
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user