Ejemplo n.º 1
0
        }//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
Ejemplo n.º 2
0
        }//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