Example #1
0
        private void BuildSubmitMailBody(MailBody mailBody, Account to)
        {
            string        subject     = string.Format("{0}取消职位申请,请审批", _PositionApplication.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(PositionApplicationMail.BuildBody(_PositionApplication));
            if (to != null)
            {
                PositionApplicationMail.BulidConfirmAddress(mailContent, to, _PositionApplication.PKID);
            }
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }
Example #2
0
        private void BuildSubmitMailBody(MailBody mailBody, Account to, bool addConfirmAddress)
        {
            string        subject     = string.Format("请审批{0}的职位申请", _PositionApplication.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(PositionApplicationMail.BuildBody(_PositionApplication));
            if (addConfirmAddress)
            {
                PositionApplicationMail.BulidConfirmAddress(mailContent, to, _PositionApplication.PKID);
            }
            mailBody.MailTo     = HrmisUtility.GetMail(to);
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }
Example #3
0
        /// <summary>
        /// ·¢ËÍÉóºË½áÊøÓʼþ
        /// </summary>
        public void ConfirmOverMail()
        {
            bool over = true;

            over &= _PositionApplication.Status.Id == RequestStatus.ApproveCancelFail.Id ||
                    _PositionApplication.Status.Id == RequestStatus.ApproveCancelPass.Id ||
                    _PositionApplication.Status.Id == RequestStatus.ApproveFail.Id ||
                    _PositionApplication.Status.Id == RequestStatus.ApprovePass.Id;
            if (over)
            {
                MailBody mailBody = new MailBody();
                mailBody.Subject =
                    string.Format("ÉóºËÍê±Ï{0}µÄְλÉêÇë", _PositionApplication.Account.Name);
                StringBuilder body = new StringBuilder();
                body.AppendFormat(PositionApplicationMail.BuildBody(_PositionApplication));
                mailBody.Body       = body.ToString();
                mailBody.IsHtmlBody = true;
                mailBody.MailTo     = HrmisUtility.GetMail(_PositionApplication.Account);
                mailBody.MailCc     = new GetDiyProcess(_DalEmployeeDiyProcess).GetAccountMailListByDiyProcessIDAccountID(
                    _CurrentStep, _PositionApplication.Account.Id);
                _MailGateWay.Send(mailBody);
            }
        }