private void BuildSubmitMailBody(MailBody mailBody, Account to)
        {
            string        subject     = string.Format("{0}È¡Ïû¼Ó°àÉêÇ룬ÇëÉóÅú", _OverWork.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(OverWorkMail.BuildBody(_OverWork));
            OverWorkMail.BulidConfirmAddress(mailContent, to, _OverWork.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}加班申请,", _OverWork.Account.Name);
            StringBuilder mailContent = new StringBuilder();

            mailContent.Append(OverWorkMail.BuildBody(_OverWork));
            if (addConfirmAddress)
            {
                OverWorkMail.BulidConfirmAddress(mailContent, to, _OverWork.PKID);
            }
            mailBody.MailTo     = RequestUtility.GetMail(to);
            mailBody.Body       = mailContent.ToString();
            mailBody.Subject    = subject;
            mailBody.IsHtmlBody = true;
        }