コード例 #1
0
ファイル: SysParams.cs プロジェクト: Kingxindd/jtgslry
        public static string GetPurviewSystemTitle()
        {
            string   _PurviewSystemTitle = "";
            UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();

            _PurviewSystemTitle = info.PurviewSystemTitle;
            return(_PurviewSystemTitle);
        }
コード例 #2
0
ファイル: SysParams.cs プロジェクト: Kingxindd/jtgslry
        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);
        }