예제 #1
0
 public void DeleteFromT_UserByID(int ID)
 {
     try
     {
         SSOLib.SSOLibDAL _objssolibdal = new SSOLib.SSOLibDAL();
         _objssolibdal.DeletByID("Sp_DeleteOneFromT_Users", "@UserID", ID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
 public void ActiveUser(bool UserActive, int userID)
 {
     try
     {
         SSOLib.SSOLibDAL _objssolibdal = new SSOLib.SSOLibDAL();
         _objssolibdal.ActiveOrNotActiveByID("Sp_UpdateUserActive", "@UserActive", "@ID", UserActive, userID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #3
0
 public void ResetPass(string pass, int userID)
 {
     try
     {
         SSOLib.SSOLibDAL _objssolibdal = new SSOLib.SSOLibDAL();
         _objssolibdal.ResetPassByID("Sp_UpdatePassReset", "@UserPass", "@ID", pass, userID);;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #4
0
 public DataSet GetT_User_Dynamic(string WhereCondition)
 {
     SSOLib.SSOLibDAL _objssolibdal = new SSOLib.SSOLibDAL();
     try
     {
         return(_objssolibdal.GetListUserByWhere(WhereCondition));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
예제 #5
0
 public static bool IsAccept(int MenuID)
 {
     try
     {
         HPCBusinessLogic.UltilFunc  _untilDAL  = new HPCBusinessLogic.UltilFunc();
         SSOLib.SSOLibDAL            _ssolibdal = new SSOLib.SSOLibDAL();
         SSOLib.ServiceAgent.T_Users user       = _ssolibdal.GetT_UsersByUserName(HPCSecurity.CurrentUser.Identity.Name);
         DataSet _ds = _untilDAL.GetStoreDataSet("SP_GetRole4UserMenu", new string[] { "@UserID", "@Menu_ID" }, new object[] { user.UserID, MenuID.ToString() });
         if (_ds.Tables[0].Rows.Count > 0)
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
     catch
     {
         return(false);
     }
 }
예제 #6
0
 public override T_Users GetUserByUserName_ID(int userID)
 {
     SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL();
     return(_ssolibdal.GetT_UsersByUserId(userID));
 }
예제 #7
0
 public override T_Users GetUserByUserName(string userName)
 {
     SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL();
     return(_ssolibdal.GetT_UsersByUserName(userName));
 }
예제 #8
0
 public override T_Users GetUserByUserPass(string userName, string passWord)
 {
     SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL();
     return(_ssolibdal.LogInAuthen(userName, passWord));
 }
예제 #9
0
 public int InsertT_Users(T_Users obj)
 {
     SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL();
     return(_ssolibdal.InsertUpdateT_Users(obj));
 }