Esempio n. 1
0
        /// <summary>
        /// 生成内部与会人员信息
        /// </summary>
        /// <param name="conference">会议的实体类</param>
        /// <returns>一组员工信息</returns>
        /// 作者:王宇昊
        /// 创建时间:2014-09-19
        /// 修改时间:
        public List <EmployeeModel> GetInConMemberInfo(ConferenceModel conference)
        {
            List <EmployeeModel> list   = new List <EmployeeModel>();
            InConMemberDAL       ICMDAL = new InConMemberDAL();

            list = ICMDAL.GetConRecord(conference.ConId);
            return(list);
        }// function GetInConMemberInfo
Esempio n. 2
0
        }// 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