修改安全月报

This commit is contained in:
2024-08-23 08:58:55 +08:00
parent 2c7ad19fb1
commit 17d502e842
20 changed files with 2814 additions and 361 deletions
@@ -78,8 +78,11 @@ namespace BLL
public static void DeleteHseCostsByMonthReportId(string monthReportId)
{
var q = (from x in db.Manager_HseCostC where x.MonthReportId == monthReportId select x).ToList();
db.Manager_HseCostC.DeleteAllOnSubmit(q);
db.SubmitChanges();
if (q.Count>0)
{
db.Manager_HseCostC.DeleteAllOnSubmit(q);
db.SubmitChanges();
}
}
}
}