修改安全月报
This commit is contained in:
parent
1557fcc77d
commit
ad8f61470a
|
@ -77,9 +77,13 @@ namespace BLL
|
|||
/// <param name="monthReportId">月报告主键</param>
|
||||
public static void DeleteCheckSortsByMonthReportId(string monthReportId)
|
||||
{
|
||||
var q = (from x in db.Manager_CheckSortC where x.MonthReportId == monthReportId select x).ToList();
|
||||
db.Manager_CheckSortC.DeleteAllOnSubmit(q);
|
||||
db.SubmitChanges();
|
||||
var q = Funs.DB.Manager_CheckSortC.Where(x=>x.MonthReportId== monthReportId).ToList();
|
||||
if (q.Count>0)
|
||||
{
|
||||
Funs.DB.Manager_CheckSortC.DeleteAllOnSubmit(q);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue