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();
  }
    @Override
    public void onClick(View v) {
      CarDetail cardetail_entity = context.task_detail_entity.getCarDetail();
      DriverLicense driverLicense_entity =
          context.task_detail_entity.getLicense().getDriverLicense();
      if (UIUtils.isEmpty(driverLicense_entity.getLicenseImage())) {
        ToastUtils.showToast("未上传行驶证正面照片");
        return;
      }
      if (UIUtils.isEmpty(driverLicense_entity.getLicenseBackImage())) {
        ToastUtils.showToast("未上传行驶证副页照片");
        return;
      }

      if (UIUtils.isEmpty(cardetail_entity.getCarTypeId())) {
        ToastUtils.showToast("未选择品牌型号");
        return;
      }

      if (UIUtils.isEmpty(
              ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate1))
                  .getText()
                  .toString()
                  .trim())
          || UIUtils.isEmpty(
              ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate2))
                  .getText()
                  .toString()
                  .trim())
          || UIUtils.isEmpty(
              ((TextView) driving_license_card_verify_view.findViewById(R.id.tv_car_plate3))
                  .getText()
                  .toString()
                  .trim())) {
        ToastUtils.showToast("请检查车牌号码");
        return;
      }

      if (UIUtils.isEmpty(
          ((EditText) driving_license_card_verify_view.findViewById(R.id.et_name))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("请输入所有人姓名");
        return;
      }
      if (UIUtils.isEmpty(driverLicense_entity.getOwnerType())) { // 所有人性质;
        ToastUtils.showToast("请选择所有性质");
        return;
      }

      if (UIUtils.isEmpty(driverLicense_entity.getUseType())) {
        ToastUtils.showToast("请选择使用性质");
        return;
      }

      if (UIUtils.isEmpty(driverLicense_entity.getCapacity())) {
        ToastUtils.showToast("请选择可载人数");
        return;
      }

      if (UIUtils.isEmpty(
          ((EditText)
                  (driving_license_card_verify_view.findViewById(R.id.et_che_liang_shibie_daihao)))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("请输入车辆识别号");
        return;
      }

      if (UIUtils.isEmpty(
          ((EditText) (driving_license_card_verify_view.findViewById(R.id.et_engine_num)))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("请输入发动机号");
        return;
      }

      if (UIUtils.isEmpty(driverLicense_entity.getRegisteDate())) {
        ToastUtils.showToast("请选择注册日期");
        return;
      }

      if (UIUtils.isEmpty(driverLicense_entity.getLicenseEndTime())) {
        ToastUtils.showToast("请选择年检有效期");
        return;
      }

      String registeDate = driverLicense_entity.getRegisteDate();
      if (UIUtils.checkDateValidity(registeDate)) {
        ToastUtils.showToast("注册日期无效");
        return;
      }

      String outlineDate = driverLicense_entity.getLicenseEndTime();
      if (!UIUtils.checkDateValidity(outlineDate)) {
        ToastUtils.showToast("车检已过有效期");
        return;
      }

      requestPass();
    }