Beispiel #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;
        }
Beispiel #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;
        }