public void requestReject() {
    context.TAG_NO_FIRST_REQUEST = "tag_request_reject";
    HashMap<String, String> hashMap = new HashMap<String, String>();
    hashMap.put("car_id", context.task_detail_entity.getCarId());
    hashMap.put(
        "status", context.task_detail_entity.getLicense().getIdentifyLicense().getRejectCode());
    new CCHttpEngine(
            context,
            NetConstants.NET_ID_IDENTITY_CARD_INFO_REJECT,
            hashMap,
            context.TAG_NO_FIRST_REQUEST,
            new HttpCallBack() {
              public void onSuccess(ResponseBean responseBean) {
                if (responseBean.getCode() == 0) {
                  ToastUtils.showToast("操作成功");
                  context.task_detail_entity.getLicense().getIdentifyLicense().setStatus("1");
                  context.initCardsCheckStatus();
                  context.initRedCircle();
                } else {
                  ToastUtils.showToast(responseBean.getMessage());
                }
              }

              @Override
              public void onNetUnavailable(String net_unAvailabel) {
                ToastUtils.showToast(R.string.net_unavailable);
              }

              @Override
              public void onFailure(IOException e) {
                ToastUtils.showToast(R.string.net_fail);
              }
            })
        .executeTask();
  }
  public void onUploadPicResult(String uri) {
    if (PhotoViewClickListener.CAR_PHOTO_VIEW_ID == R.id.iv_driving_license_page) {
      context.task_detail_entity.getLicense().getDriverLicense().setLicenseImage(uri);
    } else if (PhotoViewClickListener.CAR_PHOTO_VIEW_ID == R.id.iv_driving_license_vice_page) {
      context.task_detail_entity.getLicense().getDriverLicense().setLicenseBackImage(uri);
    }

    context.task_detail_entity.getLicense().getDriverLicense().setStatus("0");
    context.initCardsCheckStatus();
  }
 public void onUploadPicResult(String uri) {
   if (PhotoViewClickListener.CAR_PHOTO_VIEW_ID == R.id.iv_identity_card_face) { // 身份证正面;
     context.task_detail_entity.getLicense().getIdentifyLicense().setIdentifyImage(uri);
     ((TextView) identity_card_verify_view.findViewById(R.id.tv_face_2)).setText("上传成功,点击图片可重新上传");
   } else if (PhotoViewClickListener.CAR_PHOTO_VIEW_ID == R.id.iv_identity_card_back) {
     context.task_detail_entity.getLicense().getIdentifyLicense().setIdentifyBackImage(uri);
     ((TextView) identity_card_verify_view.findViewById(R.id.tv_back_2)).setText("上传成功,点击图片可重新上传");
   }
   context.task_detail_entity.getLicense().getIdentifyLicense().setStatus("0");
   context.initCardsCheckStatus();
 }
  public void requestPass() {
    context.TAG_NO_FIRST_REQUEST = "tag_request_pass";
    final IdentifyLicense entity = context.task_detail_entity.getLicense().getIdentifyLicense();
    HashMap<String, String> hashMap = new HashMap<String, String>();
    hashMap.put("car_id", context.task_detail_entity.getCarId());
    hashMap.put(
        "fill_name",
        ((EditText) identity_card_verify_view.findViewById(R.id.et_name))
            .getText()
            .toString()
            .trim());
    hashMap.put(
        "card_id",
        ((EditText) identity_card_verify_view.findViewById(R.id.et_identity_card_num))
            .getText()
            .toString()
            .trim());
    hashMap.put("certificate_end_time", entity.getDeadLine());
    hashMap.put("city", entity.getProvince());
    hashMap.put("area", entity.getCity());
    hashMap.put("audit", "1");
    new CCHttpEngine(
            context,
            NetConstants.NET_ID_IDENTITY_CARD_INFO_PASS_SAVE,
            hashMap,
            context.TAG_NO_FIRST_REQUEST,
            new HttpCallBack() {
              public void onSuccess(ResponseBean responseBean) {
                if (responseBean.getCode() == 0) {
                  ToastUtils.showToast("审核通过");
                  identity_card_verify_view
                      .findViewById(R.id.tv_reject_reason)
                      .setVisibility(View.GONE);
                  entity.setUsername(
                      ((EditText) identity_card_verify_view.findViewById(R.id.et_name))
                          .getText()
                          .toString()
                          .trim());
                  entity.setCardNumber(
                      ((EditText) identity_card_verify_view.findViewById(R.id.et_identity_card_num))
                          .getText()
                          .toString()
                          .trim());
                  context.task_detail_entity.getLicense().getIdentifyLicense().setStatus("2");
                  context.initCardsCheckStatus();
                  context.initRedCircle();
                } else {
                  ToastUtils.showToast(responseBean.getMessage());
                }
              }

              @Override
              public void onNetUnavailable(String net_unAvailabel) {
                ToastUtils.showToast(R.string.net_unavailable);
              }

              @Override
              public void onFailure(IOException e) {
                ToastUtils.showToast(R.string.net_fail);
              }
            })
        .executeTask();
  }
  public void requestPass() {
    context.TAG_NO_FIRST_REQUEST = "tag_request_pass";
    final DriverLicense entity = context.task_detail_entity.getLicense().getDriverLicense();
    final HashMap<String, String> hashMap = new HashMap<String, String>();
    hashMap.put("car_id", context.task_detail_entity.getCarId());
    hashMap.put(
        "car_number",
        ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate1))
                .getText()
                .toString()
                .trim()
            + ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate2))
                .getText()
                .toString()
                .trim()
            + ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate3))
                .getText()
                .toString()
                .trim());
    hashMap.put(
        "code",
        ((EditText)
                (driving_license_card_verify_view.findViewById(R.id.et_che_liang_shibie_daihao)))
            .getText()
            .toString()
            .trim());
    hashMap.put("capacity", entity.getCapacity());
    hashMap.put(
        "engine_number",
        ((EditText) (driving_license_card_verify_view.findViewById(R.id.et_engine_num)))
            .getText()
            .toString()
            .trim());
    hashMap.put("license_register_date", entity.getRegisteDate());
    hashMap.put("car_type", entity.getUseType());
    hashMap.put("car_owner_type", entity.getOwnerType());
    hashMap.put("car_type_id", context.task_detail_entity.getCarDetail().getCarTypeId());
    hashMap.put("license_end_time", entity.getLicenseEndTime());
    hashMap.put(
        "c_license_username",
        ((EditText) driving_license_card_verify_view.findViewById(R.id.et_name))
            .getText()
            .toString()
            .trim());
    hashMap.put("audit", "1");
    new CCHttpEngine(
            context,
            NetConstants.NET_ID_DRIVING_LICENSE_INFO_PASS_SAVE,
            hashMap,
            context.TAG_NO_FIRST_REQUEST,
            new HttpCallBack() {
              public void onSuccess(ResponseBean responseBean) {
                if (responseBean.getCode() == 0) {
                  ToastUtils.showToast("审核通过");
                  driving_license_card_verify_view
                      .findViewById(R.id.tv_reject_reason)
                      .setVisibility(View.GONE);
                  context
                      .task_detail_entity
                      .getCarDetail()
                      .setCarPlateNo(hashMap.get("car_number"));
                  entity.setCode(hashMap.get("code"));
                  entity.setEngerNumber(hashMap.get("engine_number"));
                  entity.setOwnerName(hashMap.get("c_license_username"));
                  context.task_detail_entity.getLicense().getDriverLicense().setStatus("3");

                  if (!UIUtils.isEmpty(car_brand_name) && !UIUtils.isEmpty(car_type_name)) {
                    context
                        .task_detail_entity
                        .getCarDetail()
                        .setCarName(car_brand_name + car_type_name);
                  }

                  context.initCardsCheckStatus();
                  context.initRedCircle();
                } else {
                  ToastUtils.showToast(responseBean.getMessage());
                }
              }

              @Override
              public void onNetUnavailable(String net_unAvailabel) {
                ToastUtils.showToast(R.string.net_unavailable);
              }

              @Override
              public void onFailure(IOException e) {
                ToastUtils.showToast(R.string.net_fail);
              }
            })
        .executeTask();
  }