Ejemplo n.º 1
0
        public static string GetPurviewSystemTitle()
        {
            string   _PurviewSystemTitle = "";
            UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo();

            _PurviewSystemTitle = info.PurviewSystemTitle;
            return(_PurviewSystemTitle);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
        public static int GetCurrentUserID()
        {
            int      _UserID = 0;
            UserInfo info    = (UserInfo)UserCommonOperation.GetUserInfo();

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

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

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

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

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

            if (info != null)
            {
                bLogined = true;
            }
            return(bLogined);
        }
Ejemplo n.º 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);
         //}
     }
 }
Ejemplo n.º 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);
        }