예제 #1
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;
 }
예제 #2
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;
        }
예제 #3
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;
 }
예제 #4
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;
 }