/** 账号管理信息 */
 @Background
 void findAccountsInfo() {
   userService
       .findUserAccountManagerDTOByUserId(getUserId())
       .identify(
           kREQ_ID_findUserAccountManagerDTOByUserId = RequestChannel.getChannelUniqueID(), this);
 }
 @Background
 void bindWechatAccount(String openId) {
   // TODO Auto-generated method stub
   userService
       .bindAccount(getUserId(), BUND_TYPE_WECHAT, openId)
       .identify(kREQ_ID_bindWechatAccount = RequestChannel.getChannelUniqueID(), this);
 }
 /** 用第三方的头像更新 */
 @Background
 void bindThirdPhoto(String bindType, String bindValue, String imgUrl) {
   ImgAttachDTO headImg = null;
   if (!StringUtils.isBlank(imgUrl)) {
     byte[] fileBytes = new SimpleDownloader().download(imgUrl);
     if (fileBytes != null && fileBytes.length > 0) {
       headImg = new ImgAttachDTO();
       headImg.setFileBytes(fileBytes);
       headImg.setFileExtension("png");
       headImg.setUserId(getUserId());
     }
   }
   userService
       .bindThirdPortrait(bindType, bindValue, headImg)
       .identify(kREQ_ID_bindThirdPortrait = RequestChannel.getChannelUniqueID(), this);
 }
  /** 用第三方修改头像 */
  @Background
  void modifyUserPhotoInThird(String url) {
    if (!TextUtils.isEmpty(url)) {
      byte[] bytes = new SimpleDownloader().download(url);
      if (bytes != null && bytes.length > 0) {
        modifiedUserPhoto = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);

        ImgAttachDTO imgAttachDTO = new ImgAttachDTO();
        imgAttachDTO.setFileExtension("png");
        imgAttachDTO.setUserId(ZcdhApplication.getInstance().getZcdh_uid());

        imgAttachDTO.setFileBytes(bytes);
        userService
            .updateImgInUserHomePage(imgAttachDTO)
            .identify(kREQ_ID_updateImgInUserHomePage = RequestChannel.getChannelUniqueID(), this);
      }
    }
  }
 /** 修改头像 */
 @Background
 void modifyUserPhoto(String fileName) {
   Log.i(TAG, "modifyUserPhoto:" + fileName);
   File imgFile = new File(fileName);
   ImgAttachDTO imgAttachDTO = new ImgAttachDTO();
   try {
     imgAttachDTO.setFileBytes(FileIoUtil.read(imgFile));
   } catch (IOException e) {
     e.printStackTrace();
   }
   imgAttachDTO.setFileExtension("jpg");
   imgAttachDTO.setFileName(fileName);
   imgAttachDTO.setFileSize(imgFile.length());
   imgAttachDTO.setUserId(ZcdhApplication.getInstance().getZcdh_uid());
   userService
       .updateImgInUserHomePage(imgAttachDTO)
       .identify(kREQ_ID_updateImgInUserHomePage = RequestChannel.getChannelUniqueID(), this);
 }
 @OptionsItem(R.id.action_tijiao)
 void onCommit() {
   String msg = msgEditText.getText().toString();
   if (!StringUtils.isBlank(msg)) {
     if (msg.length() < 10) {
       Toast.makeText(this, "输入内容不小于10个字", Toast.LENGTH_SHORT).show();
       return;
     }
     LeaveMsgDTO leaveMessages = new LeaveMsgDTO();
     leaveMessages.setContent(msg);
     leaveMessages.setEntId(entId);
     leaveMessages.setIsUserSubmit(1);
     leaveMessages.setUserId(ZcdhApplication.getInstance().getZcdh_uid());
     leaveMessages.setType("003");
     enterpriseService
         .addLeaveMessage(leaveMessages)
         .identify(kREQ_ID_addLeaveMessage = RequestChannel.getChannelUniqueID(), this);
   }
 }
 @Background
 void unbindQQAccount() {
   userService
       .unBindAccount(getUserId(), BUND_TYPE_QQ, qqOpenId)
       .identify(kREQ_ID_unbindQQAccount = RequestChannel.getChannelUniqueID(), this);
 }
 @Background
 void unbindWeiBoAccount() {
   userService
       .unBindAccount(getUserId(), BUND_TYPE_WEIBO, weiboOpenId)
       .identify(kREQ_ID_unbindWeiboAccount = RequestChannel.getChannelUniqueID(), this);
 }
 @Background
 void bindWeiboAccount(String openId) {
   userService
       .bindAccount(getUserId(), BUND_TYPE_WEIBO, openId)
       .identify(kREQ_ID_bindWeiboAccount = RequestChannel.getChannelUniqueID(), this);
 }
 /** 查找用户头像 */
 @Background
 void findUserHeadPhoto() {
   userService
       .findThirdImgURLDTOByUserId(getUserId())
       .identify(kREQ_ID_findThirdImgURLDTOByUserId = RequestChannel.getChannelUniqueID(), this);
 }