コード例 #1
0
        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));
        }
コード例 #2
0
        internal static void Login(UserBasicInfo domainUser)
        {
            var vUserState = UserState.GetInstance(_cook);

            vUserState.Login(domainUser);
        }
コード例 #3
0
        public static void Logout()
        {
            var vUserState = UserState.GetInstance(_cook);

            vUserState.Logout();
        }
コード例 #4
0
        public static bool IsLogin()
        {
            var vUserState = UserState.GetInstance(_cook);

            return(vUserState.IsLogin);
        }