public static bool HasRight(int nRightID) { var vUserState = UserState.GetInstance(_cook); if (!vUserState.IsLogin) { return(false); } var loginUser = vUserState.GetLoginUser(); return(SysUserInfo.HasRight(loginUser.AdName, nRightID)); }
internal static void Login(UserBasicInfo domainUser) { var vUserState = UserState.GetInstance(_cook); vUserState.Login(domainUser); }
public static void Logout() { var vUserState = UserState.GetInstance(_cook); vUserState.Logout(); }
public static bool IsLogin() { var vUserState = UserState.GetInstance(_cook); return(vUserState.IsLogin); }