添加周例会删除功能
This commit is contained in:
@@ -106,5 +106,24 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据主键删除周例会
|
||||
/// </summary>
|
||||
/// <param name="weekMeetingId"></param>
|
||||
public static void DeleteWeekMeetingById(string weekMeetingId)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Meeting_WeekMeeting weekMeeting = db.Meeting_WeekMeeting.FirstOrDefault(e => e.WeekMeetingId == weekMeetingId);
|
||||
if (weekMeeting != null)
|
||||
{
|
||||
BLL.CodeRecordsService.DeleteCodeRecordsByDataId(weekMeetingId);
|
||||
BLL.CommonService.DeleteAttachFileById(weekMeetingId);
|
||||
////删除审核流程表
|
||||
BLL.CommonService.DeleteFlowOperateByID(weekMeetingId);
|
||||
db.Meeting_WeekMeeting.DeleteOnSubmit(weekMeeting);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user