public static string GetPurviewSystemTitle() { string _PurviewSystemTitle = ""; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); _PurviewSystemTitle = info.PurviewSystemTitle; return(_PurviewSystemTitle); }
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); }
public static int GetCurrentUserID() { int _UserID = 0; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { _UserID = info.UserID; } return(_UserID); }
public static string GetCurrentOpCode() { string _OpName = ""; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { _OpName = info.OpCode; } return(_OpName); }
public static string GetCurrentUserRolePurview() { string _Purview = ""; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { _Purview = info.UserRolePurview; } return(_Purview); }
public static string GetLastComputerName() { string _LastComputerName = ""; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { _LastComputerName = info.LastComputerName; } return(_LastComputerName); }
public static string GetLastIp() { string _LastIp = ""; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { _LastIp = info.LastIp; } return(_LastIp); }
public static bool GetSysIsLogined() { bool bLogined = false; UserInfo info = (UserInfo)UserCommonOperation.GetUserInfo(); if (info != null) { bLogined = true; } return(bLogined); }
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); //} } }
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); }