private void postInvitation(final boolean accepted) {
   Http.getInstance()
       .postTaskToken(
           NetURL.getInvitation(orderId),
           InvitationEntity.class,
           new OnResult() {
             @Override
             public void onResult(Object entity) {
               if (entity == null) {
                 T.show(getContext(), R.string.operate_failed_agen);
                 return;
               }
               if (entity instanceof InvitationEntity) {
                 if (((InvitationEntity) entity).isResult()) {
                   if (accepted) {
                     T.show(getContext(), R.string.accepted);
                   } else {
                     T.show(getContext(), R.string.rejected);
                   }
                   finish();
                 } else {
                   T.show(getContext(), ((InvitationEntity) entity).getMessage());
                 }
               }
             }
           },
           new BasicNameValuePair("accepted", String.valueOf(accepted)));
 }
 private void getOrderInfo(int orderId) {
   Http.getInstance()
       .getTaskToken(
           NetURL.getOrderInfo(orderId),
           "",
           OrderInfoEntity.class,
           new OnResult() {
             @Override
             public void onResult(Object entity) {
               if (entity == null) {
                 //                    T.show(getContext(), R.string.loading_data_failure);
                 return;
               }
               if (entity instanceof OrderInfoEntity) {
                 if (((OrderInfoEntity) entity).isResult()) {
                   orderType_str =
                       MyApplication.getInstance()
                           .getSkill(((OrderInfoEntity) entity).getData().getOrderType());
                   orderOwner_str =
                       ((OrderInfoEntity) entity).getData().getCooperator().getCorporationName();
                   shopsLocation_str =
                       ((OrderInfoEntity) entity).getData().getCooperator().getAddress();
                   shopsAlias_str =
                       ((OrderInfoEntity) entity).getData().getCooperator().getFullname();
                   setCooperator();
                 } else {
                   T.show(getContext(), R.string.load_cooperator_info_failure);
                   return;
                 }
               }
             }
           });
 }