Exemple #1
0
 /// <summary>
 /// 更新实时通信用户列表
 /// </summary>
 private void UpdateIMUserList(string keyValue, bool isAdd, AppUserEntity userEntity)
 {
     try
     {
         IMUserModel      entity = new IMUserModel();
         AppOrganizeBLL   bll    = new AppOrganizeBLL();
         AppDepartmentBLL dbll   = new AppDepartmentBLL();
         entity.UserId = keyValue;
         if (userEntity != null)
         {
             entity.RealName     = userEntity.UserName;
             entity.DepartmentId = "";// dbll.GetEntity(userEntity.DepartmentId).FullName;
             //entity.Gender = (int)userEntity.Gender;
             //entity.HeadIcon = userEntity.HeadIcon;
             //entity.OrganizeId = bll.GetEntity(userEntity.OrganizeId).FullName; ;
         }
         SendHubs.callMethod("upDateUserList", entity, isAdd);
     }
     catch
     {
     }
 }