public SMSSend() { departmentBLL = new P_DepartmentInfoBLL(); groupBLL = new P_GroupBLL(); personBLL = new P_PersonInfoBLL(); jobTemplateBLL = new J_JobTemplateBLL(); jobInfoBLL = new J_JobInfoBLL(); userInfoBLL = new UserInfoBLL(); smsContentBLL = new S_SMSContentBLL(); smsRecord_CurrentBLL = new S_SMSRecord_CurrentBLL(); SetRedisProperties(); }
private ExistEnum CheckTargetMsgIdContainsPhone(string msgid, string phone) { PMS.IBLL.IS_SMSContentBLL contentBLL = new S_SMSContentBLL(); var content_temp = contentBLL.GetListBy(c => c.msgId == msgid).FirstOrDefault(); var record_temp = from r in content_temp.S_SMSRecord_Current where r.PhoneNum == phone select r; if (record_temp != null) { return ExistEnum.isExist; } return ExistEnum.isNotExist; }