private void GetMailToCc(MailBody mailBody) { if (mailBody == null) { return; } List <List <string> > emails; List <Account> accounts; if (_AssessActivity.NextStepIndex != -1) { accounts = _AssessActivity.DiyProcess.DiySteps[_AssessActivity.NextStepIndex].MailAccount; Account nextOperator = new GetAssessActivity().GetDiyStepAccount(_AssessActivity.ItsEmployee.Account.Id, _AssessActivity.DiyProcess.DiySteps[ _AssessActivity.NextStepIndex]); if (nextOperator != null) { accounts.Add(nextOperator); } } else { Department dept = BllInstance.DepartmentBllInstance.GetDept(_AssessActivity.ItsEmployee.Account.Id, new Account(Account.AdminPkid, "", "")); accounts = new AuthDal().GetAccountsByAuthIdAndDeptId(HrmisPowers.A704, dept.Id); } emails = BllUtility.GetEmailsByAccountIds(accounts); mailBody.MailTo = emails[0]; mailBody.MailCc = emails[1]; return; }
private AuthManager() { authDal = AuthDal.GetInstance(); }