예제 #1
0
        public static string GetPurviewSystemTitle()
        {
            string   _PurviewSystemTitle = "";
            UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();

            _PurviewSystemTitle = info.PurviewSystemTitle;
            return(_PurviewSystemTitle);
        }
예제 #2
0
        public static int PurviewAdmin_TrainingDocCls = 96;      //技术资料分类


        //public static int PurviewSystemID = 1;

        public static int GetPurviewSystemID()
        {
            int      _PurviewSystemID = 1;
            UserInfo info             = (UserInfo)UserCommonOperation.GetUserInfo();

            _PurviewSystemID = info.PurviewSystemID;
            return(_PurviewSystemID);
        }
예제 #3
0
        public static int GetCurrentUserID()
        {
            int      _UserID = 0;
            UserInfo info    = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                _UserID = info.UserID;
            }
            return(_UserID);
        }
예제 #4
0
        public static string GetCurrentOpCode()
        {
            string   _OpName = "";
            UserInfo info    = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                _OpName = info.OpCode;
            }
            return(_OpName);
        }
예제 #5
0
        public static string GetCurrentUserRolePurview()
        {
            string   _Purview = "";
            UserInfo info     = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                _Purview = info.UserRolePurview;
            }
            return(_Purview);
        }
예제 #6
0
        public static string GetLastComputerName()
        {
            string   _LastComputerName = "";
            UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                _LastComputerName = info.LastComputerName;
            }
            return(_LastComputerName);
        }
예제 #7
0
        public static string GetLastIp()
        {
            string   _LastIp = "";
            UserInfo info    = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                _LastIp = info.LastIp;
            }
            return(_LastIp);
        }
예제 #8
0
        public static bool GetSysIsLogined()
        {
            bool     bLogined = false;
            UserInfo info     = (UserInfo)UserCommonOperation.GetUserInfo();

            if (info != null)
            {
                bLogined = true;
            }
            return(bLogined);
        }
예제 #9
0
 public static void ClearPersonRefreshTime(HttpSessionState session)
 {
     if (session != null)
     {
         UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();
         //if (info != null)
         //{
         //    string SqlText = "Update TSys_Person Set FRefreshTime=null Where FGuid='" + info.CurrentUserGUID + "'";
         //    DataCommon.QueryData(SqlText);
         //}
     }
 }
예제 #10
0
        public static void UpdatePurviewSystemID(int _PurviewSystemID, string _SystemTitle)
        {
            UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();

            info.PurviewSystemID    = _PurviewSystemID;
            info.PurviewSystemTitle = _SystemTitle;
            UserCommonOperation.StoreUserInfo(info);

            info.UserRolePurview = SysClass.SysUser.GetPurviewByUserID(info.UserID);
            info.Purview         = info.UserRolePurview;
            UserCommonOperation.StoreUserInfo(info);
        }