添加周例会删除功能
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,13 +97,22 @@ namespace WebAPI.Controllers
|
||||
#endregion
|
||||
|
||||
#region 根据ID删除会议
|
||||
// type C
|
||||
[HttpDelete]
|
||||
public Model.ResponeData DeleteMeeting(string meetingId)
|
||||
public Model.ResponeData DeleteMeeting(string meetingId, string type)
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
BLL.ClassMeetingService.DeleteClassMeetingById(meetingId);
|
||||
if(type == "C")
|
||||
{
|
||||
|
||||
BLL.ClassMeetingService.DeleteClassMeetingById(meetingId);
|
||||
}
|
||||
if(type == "W")
|
||||
{
|
||||
BLL.ClassMeetingService.DeleteWeekMeetingById(meetingId);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user