20240125本部检查调整
This commit is contained in:
@@ -75,13 +75,16 @@ namespace BLL
|
||||
/// <param name="checkNoticeId"></param>
|
||||
public static void DeleteRectifyByCheckNoticeId(string checkNoticeId)
|
||||
{
|
||||
Model.ProjectSupervision_Rectify newRectify = Funs.DB.ProjectSupervision_Rectify.FirstOrDefault(e => e.CheckNoticeId == checkNoticeId);
|
||||
if (newRectify != null)
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
Funs.DB.ProjectSupervision_Rectify.DeleteOnSubmit(newRectify);
|
||||
Funs.DB.SubmitChanges();
|
||||
var newRectify = db.ProjectSupervision_Rectify.FirstOrDefault(e => e.CheckNoticeId == checkNoticeId);
|
||||
if (newRectify != null)
|
||||
{
|
||||
ProjectSupervision_RectifyItemService.DeleteRectifyItemByRectifyId(newRectify.RectifyId);
|
||||
db.ProjectSupervision_Rectify.DeleteOnSubmit(newRectify);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user