public void FindSystemUserPwd(string loginName, string newPwd, string applicationID, int?mastersysno = null) { SystemUser user = SystemUserDA.LoadSystemUserByLoginName(loginName, applicationID); if (user == null || (mastersysno.HasValue && mastersysno.Value > 0 && user.MasterSysNo != mastersysno.Value)) { throw new BusinessException(string.Format("登录账号【{0}】不存在!", loginName)); } SystemUserDA.FindSystemUserPwd(user.SysNo, newPwd); }
public static SystemUser LoadSystemUserByLoginNameAndCellPhone(string loginname, string applicationID) { return(SystemUserDA.LoadSystemUserByLoginName(loginname, applicationID)); }