예제 #1
0
        /// <summary>
        /// 获取MQ用户信息
        /// </summary>
        /// <param name="UID">MQID</param>
        /// <returns>用户信息</returns>
        public UserInfo GetMQUserInfo(int MQID)
        {
            //GetCache();
            UserInfo User = (UserInfo)EyouSoftSSOCache.GetCache(CacheTag.MQ.MQUser + MQID.ToString());

            return(User);
        }
예제 #2
0
 /// <summary>
 /// 更新用户信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateUserInfo(UserInfo User)
 {
     //SetCache();
     EyouSoftSSOCache.Remove(CacheTag.Company.CompanyUser + User.UserName.ToLower());
     EyouSoftSSOCache.Add(CacheTag.Company.CompanyUser + User.UserName.ToLower(), User, DateTime.Now.AddHours(12));
     return;
 }
예제 #3
0
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="UID">用户编号</param>
        /// <returns>用户信息</returns>
        public UserInfo GetUserInfo(string UID)
        {
            //GetCache();
            UserInfo User = (UserInfo)EyouSoftSSOCache.GetCache(CacheTag.Company.CompanyUser + UID.ToLower());

            return(User);
        }
예제 #4
0
        /// <summary>
        /// 获取管理员信息
        /// </summary>
        /// <param name="UID">用户名</param>
        /// <returns>管理员信息</returns>
        public MasterUserInfo GetMasterInfo(string UID)
        {
            MasterUserInfo User = (MasterUserInfo)EyouSoftSSOCache.GetCache(CacheTag.System.SystemUser + UID);;

            //GetCache();
            return(User);
        }
예제 #5
0
파일: UserLogin.cs 프로젝트: windygu/bbl
        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <param name="UID">用户编号</param>
        /// <returns>用户信息</returns>
        public UserInfo GetUserInfo(int CompanyId, string UID)
        {
            //GetCache();
            string   cacheKey = string.Format(EyouSoft.Cache.Tag.Company.CompanyUser, CompanyId.ToString(), UID.ToLower());
            UserInfo User     = (UserInfo)EyouSoftSSOCache.GetCache(cacheKey);

            return(User);
        }
예제 #6
0
파일: UserLogin.cs 프로젝트: windygu/bbl
        /// <summary>
        /// 用户退出
        /// </summary>
        /// <param name="CompanyId">公司编号</param>
        /// <param name="UID">用户编号</param>
        /// <returns>是否成功</returns>
        public bool UserLogout(int CompanyId, string UID)
        {
            //RemoveCache();
            string cacheKey = string.Format(EyouSoft.Cache.Tag.Company.CompanyUser, CompanyId.ToString(), UID.ToLower());

            EyouSoftSSOCache.Remove(cacheKey);
            return(true);
        }
예제 #7
0
파일: UserLogin.cs 프로젝트: windygu/bbl
        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="User">用户信息</param>
        public void UpdateUserInfo(UserInfo User)
        {
            //SetCache();
            string cacheKey = string.Format(EyouSoft.Cache.Tag.Company.CompanyUser, User.CompanyID.ToString(), User.UserName.ToLower());

            EyouSoftSSOCache.Remove(cacheKey);
            EyouSoftSSOCache.Add(cacheKey, User, DateTime.Now.AddHours(12));
            return;
        }
예제 #8
0
파일: UserLogin.cs 프로젝트: windygu/bbl
 /// <summary>
 /// 管理员退出
 /// </summary>
 /// <param name="UID">用户名</param>
 /// <returns></returns>
 public void MasterLogout(string UID)
 {
     EyouSoftSSOCache.Remove(EyouSoft.Cache.Tag.System.SystemUser + UID);
     return;
 }
예제 #9
0
파일: UserLogin.cs 프로젝트: windygu/bbl
 /// <summary>
 /// 更新管理员信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateMasterInfo(MasterUserInfo User)
 {
     EyouSoftSSOCache.Add(EyouSoft.Cache.Tag.System.SystemUser + User.Username, User, DateTime.Now.AddHours(12));
     return;
 }
예제 #10
0
 /// <summary>
 /// 用户退出
 /// </summary>
 /// <param name="UID">用户编号</param>
 /// <returns>是否成功</returns>
 public bool UserLogout(string UID)
 {
     //RemoveCache();
     EyouSoftSSOCache.Remove(CacheTag.Company.CompanyUser + UID.ToLower());
     return(true);
 }
예제 #11
0
 /// <summary>
 /// 更新管理员信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateMasterInfo(MasterUserInfo User)
 {
     //SetCache();
     EyouSoftSSOCache.Add(CacheTag.System.SystemUser + User.UserName, User, DateTime.Now.AddHours(12));
     return;
 }
예제 #12
0
 /// <summary>
 /// 管理员退出
 /// </summary>
 /// <param name="UID">用户名</param>
 /// <returns></returns>
 public void MasterLogout(string UID)
 {
     //RemoveCache();
     EyouSoftSSOCache.Remove(CacheTag.System.SystemUser + UID);
     return;
 }