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; } }
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; } }
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; } }
public DataSet GetT_User_Dynamic(string WhereCondition) { SSOLib.SSOLibDAL _objssolibdal = new SSOLib.SSOLibDAL(); try { return(_objssolibdal.GetListUserByWhere(WhereCondition)); } catch (Exception ex) { throw ex; } }
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); } }
public override T_Users GetUserByUserName_ID(int userID) { SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL(); return(_ssolibdal.GetT_UsersByUserId(userID)); }
public override T_Users GetUserByUserName(string userName) { SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL(); return(_ssolibdal.GetT_UsersByUserName(userName)); }
public override T_Users GetUserByUserPass(string userName, string passWord) { SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL(); return(_ssolibdal.LogInAuthen(userName, passWord)); }
public int InsertT_Users(T_Users obj) { SSOLib.SSOLibDAL _ssolibdal = new SSOLib.SSOLibDAL(); return(_ssolibdal.InsertUpdateT_Users(obj)); }