}// function SendNotice /// <summary> /// 会议管理员下达任务单或回执 /// </summary> /// <param name="UId">查询的用户ID</param> /// <param name="topic">邮件标题</param> /// <param name="body">邮件正文</param> /// 作者:王宇昊 /// 创建时间:2014-09-18 /// 修改时间: public void SendTask(int UId, string topic, string body) { EmployeeModel Emp = new EmployeeModel(); EmployeeDAL EDAL = new EmployeeDAL(); Emp = EDAL.GetARecord(UId); string receive = Emp.EmEmail; MailSendBLL.sendMail(topic, body, receive); }// function SendTask
}//function GetTopicInfo /// <summary> /// 审核议题 /// </summary> /// <param name="status"></param> /// <param name="topic"></param> /// <returns></returns> /// 作者:吴若彤 /// 创建时间:2014-09-19 /// 修改时间:2014-09-19 public bool VerifyTopic(char status, TopicModel topic) { try { topic.TopicStatus = status; TopicDAL topicdal = new TopicDAL(); topicdal.UpdateARecord(topic); EmployeeDAL ed = new EmployeeDAL(); EmployeeModel em = ed.GetARecord(topic.TopicApplicantId); MailSendBLL.sendMail("议题审核通过", "您的议题“" + topic.TopicHead + "”已经通过审核,可以申请会议。", em.EmEmail); return(true); } catch (Exception ex) { throw new Exception(ex.Message); } }//function VerifyTopic
}//function AddTopic /// <summary> /// 修改议题 /// </summary> /// <param name="topic"></param> /// <returns></returns> /// 作者:吴若彤 /// 创建时间:2014-09-19 /// 修改时间:2014-09-19 public bool UpdateTopic(TopicModel topic) { try { TopicDAL topicdal = new TopicDAL(); if (topicdal.UpdateARecord(topic)) { EmployeeDAL ed = new EmployeeDAL(); EmployeeModel em = ed.GetARecord(topic.TopicApplicantId); MailSendBLL.sendMail("议题审核通过", "您的议题“" + topic.TopicHead + "”已经通过审核,可以申请会议。", em.EmEmail); return(true); } else { throw new Exception("议题修改失败"); } } catch (Exception ex) { throw new Exception(ex.Message); } } //function UpdateTopic
}// function UpdateResouce /// <summary> /// 会议管理员发布会议通知 /// </summary> /// <param name="conference">会议实体类的实例化对象</param> /// <param name="topic">邮件标题</param> /// <param name="body">邮件正文</param> /// 作者:王宇昊 /// 创建时间:2014-09-18 /// 修改时间: public void SendNotice(ConferenceModel conference, string topic, string body) { InConMemberDAL ICMBDAL = new InConMemberDAL(); OutConMemberDAL OCMBDAL = new OutConMemberDAL(); List <EmployeeModel> Employee = new List <EmployeeModel>(); List <OutConMemberModel> OutCon = new List <OutConMemberModel>(); Employee = ICMBDAL.GetConRecord(conference.ConId); foreach (EmployeeModel Emp in Employee) { string receive = Emp.EmEmail; MailSendBLL.sendMail(topic, body, receive); Thread.Sleep(1000); } OutCon = OCMBDAL.GetConRecord(conference.ConId); foreach (OutConMemberModel Oot in OutCon) { string receive = Oot.ConEmail; MailSendBLL.sendMail(topic, body, receive); Thread.Sleep(1000); } }// function SendNotice