/// <summary> /// 会议管理员删除会议 /// </summary> /// <param name="conference">会议表实体类</param> /// <returns>true:申请提交成功;false:申请提交失败</returns> /// 作者:王宇昊 /// 创建时间:2014-09-18 /// 修改时间: public bool DelConference(ConferenceModel conference) { try { ConferenceDAL ConDAL = new ConferenceDAL(); if (conference.ConStatus == '0') { ConDAL.DelARecord(conference); } else { ConDAL.DelARecord(conference); BoardroomDAL BdrDAL = new BoardroomDAL(); List <BoardroomModel> BoardroomList = new List <BoardroomModel>(); BoardroomList = BdrDAL.GetAllRecord(conference.ConPlace.ToString()); BoardroomModel Boardroom = new BoardroomModel(); foreach (BoardroomModel Bdr in BoardroomList) { if (Bdr.BdrId == conference.ConPlace) { Boardroom = Bdr; } } ConDAL.UpdateARecord(conference); string Topic = string.Format("{0}会议取消通知", conference.ConName); string Body = string.Format("会议名称:{0}<br />会议地点:{1}<br />主办单位:{2}<br />会议时间:{3}<br />会议由于特殊原因取消,请诸位告知", conference.ConName, Boardroom.BdrName, conference.ConHost, conference.ConStartTime); SendTask(conference.ConSubMen, Topic, Body); //向会议申请人发送会议取消的消息 SendNotice(conference, Topic, Body); //查找与会人员通过邮件发布会议取消的信息 SendTask(conference.ConStaffMen, Topic, Body); //发送新任务单信息给会务人员 } return(true); } catch { return(false); } }// function DelConference
}// function ConApply /// <summary> /// 对已提交申请但未审核的会议进行删除 /// </summary> /// <param name="conference">会议表实体类</param> /// <returns>true:申请提交成功;false:申请提交失败</returns> /// 作者:王宇昊 /// 创建时间:2014-09-18 /// 修改时间: public bool DelCon(ConferenceModel conference) { try { ConferenceDAL ConDAL = new ConferenceDAL(); if (conference.ConStatus == '0') { ConDAL.DelARecord(conference); return(true); } else { return(false); } } catch (Exception ex) { throw new Exception(ex.Message); } }// function DelCon