/// <summary> /// Clear authority /// </summary> /// <remarks> /// Author: Nguyen Quy Vinh Loc. FPTSS. /// Created date: 9/04/2008 /// </remarks> public int ChangeCustCode(string oldcustcode, string newcustcode) { int intResult; clsAutUserDAO changeCC; try { changeCC = new clsAutUserDAO(); DataTable dt = changeCC.ChangeCustCode(oldcustcode, newcustcode, out intResult); return intResult; } catch(Exception ex) { log.Error(ex.ToString()); throw new Exception("clsAutUserBO.ChangeCustCode error"); } }
/// <summary> /// Login /// </summary> /// <param name="username"></param> /// <param name="password"></param> /// <returns></returns> /// <remarks> /// Author: PhatLT. FPTSS. /// Created date: 14/02/2011 /// </remarks> public int Login(string username, string password) { int intResult; clsAutUserDAO login; int intExpiredDays; try { login = new clsAutUserDAO(); //intExpiredDays = int.Parse(dao.GetParameterValue(clsConstants.EXPIRED_DAYS)); ;//Convert.ToInt32(ConfigurationManager.AppSettings["ExpiredDays"]); DataTable dt = login.Login(username, password, 90, out intResult); if(intResult == clsConstants.LOGIN_SUCCESS) { m_dtAuthority = dt; } return intResult; } catch(Exception ex) { log.Error(ex.ToString()); throw new Exception("clsAutUserBO.LogIn error"); } }