@Override
    public void onClick(View v) {
      IdentifyLicense entity = context.task_detail_entity.getLicense().getIdentifyLicense();
      if (UIUtils.isEmpty(entity.getIdentifyImage())) {
        ToastUtils.showToast("未上传身份证正面照片");
        return;
      }
      if (UIUtils.isEmpty(entity.getIdentifyBackImage())) {
        ToastUtils.showToast("未上传身份证背面照片");
        return;
      }
      if (!"3".equals(entity.getIdentityNumberStatus())) {
        ToastUtils.showToast("未完成身份信息验证");
        return;
      }

      if (UIUtils.isEmpty(
          ((TextView) identity_card_verify_view.findViewById(R.id.tv_date_out_line))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("请选择有效期");
        return;
      }

      String date_str =
          ((TextView) identity_card_verify_view.findViewById(R.id.tv_date_out_line))
              .getText()
              .toString()
              .trim();
      if (!UIUtils.checkDateValidity(date_str)) {
        ToastUtils.showToast("身份证已过有效期");
        return;
      }

      if (UIUtils.isEmpty(
          ((TextView) identity_card_verify_view.findViewById(R.id.tv_address))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("请选择地址");
        return;
      }

      requestPass();
    }
  public void requestSave() {
    HashMap<String, String> hashMap = new HashMap<String, String>();
    if (!UIUtils.isEmpty(
        ((EditText) identity_card_verify_view.findViewById(R.id.et_name))
            .getText()
            .toString()
            .trim())) {
      hashMap.put(
          "fill_name",
          ((EditText) identity_card_verify_view.findViewById(R.id.et_name))
              .getText()
              .toString()
              .trim());
    }
    if (!UIUtils.isEmpty(
        ((EditText) identity_card_verify_view.findViewById(R.id.et_identity_card_num))
            .getText()
            .toString()
            .trim())) {
      hashMap.put(
          "card_id",
          ((EditText) identity_card_verify_view.findViewById(R.id.et_identity_card_num))
              .getText()
              .toString()
              .trim());
    }
    if (!UIUtils.isEmpty(
        context.task_detail_entity.getLicense().getIdentifyLicense().getDeadLine())) {
      hashMap.put(
          "certificate_end_time",
          context.task_detail_entity.getLicense().getIdentifyLicense().getDeadLine());
    }
    if (!UIUtils.isEmpty(
        context.task_detail_entity.getLicense().getIdentifyLicense().getProvince())) {
      hashMap.put(
          "city", context.task_detail_entity.getLicense().getIdentifyLicense().getProvince());
    }
    if (!UIUtils.isEmpty(context.task_detail_entity.getLicense().getIdentifyLicense().getCity())) {
      hashMap.put("area", context.task_detail_entity.getLicense().getIdentifyLicense().getCity());
    }
    if (hashMap.size() == 0) {
      ToastUtils.showToast("暂无信息需要保存");
      return;
    }
    context.TAG_NO_FIRST_REQUEST = "tag_request_save";
    hashMap.put("car_id", context.task_detail_entity.getCarId());
    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);
                  context
                      .task_detail_entity
                      .getLicense()
                      .getIdentifyLicense()
                      .setUsername(
                          ((EditText) identity_card_verify_view.findViewById(R.id.et_name))
                              .getText()
                              .toString()
                              .trim());
                  context
                      .task_detail_entity
                      .getLicense()
                      .getIdentifyLicense()
                      .setCardNumber(
                          ((EditText)
                                  identity_card_verify_view.findViewById(R.id.et_identity_card_num))
                              .getText()
                              .toString()
                              .trim());
                  if ("2"
                          .equals(
                              context
                                  .task_detail_entity
                                  .getLicense()
                                  .getIdentifyLicense()
                                  .getStatus())
                      || "1"
                          .equals(
                              context
                                  .task_detail_entity
                                  .getLicense()
                                  .getIdentifyLicense()
                                  .getStatus())) {
                    context.task_detail_entity.getLicense().getIdentifyLicense().setStatus("0");
                  }
                  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) {
      if ("3"
          .equals(
              context
                  .task_detail_entity
                  .getLicense()
                  .getIdentifyLicense()
                  .getIdentityNumberStatus())) { // 身份信息已通过验证;
        ((Button) identity_card_verify_view.findViewById(R.id.btn_verify_identity_card))
            .setText("验证身份信息");
        context.task_detail_entity.getLicense().getIdentifyLicense().setIdentityNumberStatus("0");
        identity_card_verify_view.findViewById(R.id.et_name).setEnabled(true);
        identity_card_verify_view.findViewById(R.id.et_identity_card_num).setEnabled(true);
        return;
      }
      if (!IDUtils.validateCard(
          ((EditText) identity_card_verify_view.findViewById(R.id.et_identity_card_num))
              .getText()
              .toString()
              .trim())) {
        ToastUtils.showToast("身份证号码无效");
        return;
      }

      HashMap<String, String> hashMap = new HashMap<String, String>();
      hashMap.put(
          "username",
          ((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("user_id", context.task_detail_entity.getOwner().getUser_id());
      context.TAG_NO_FIRST_REQUEST = "verify_identity_card";
      CCWaitingDialog.show(context);
      new CCHttpEngine(
              context,
              NetConstants.NET_ID_VERIFY_IDENTITY_CARD_INFO,
              hashMap,
              context.TAG_NO_FIRST_REQUEST,
              new HttpCallBack() {

                @Override
                public void onSuccess(ResponseBean responseBean) {
                  CCWaitingDialog.dismiss(context);
                  if (responseBean.getCode() == 0) {
                    ToastUtils.showToast("身份信息验证通过");
                    context
                        .task_detail_entity
                        .getLicense()
                        .getIdentifyLicense()
                        .setIdentityNumberStatus("3");
                    ((Button) identity_card_verify_view.findViewById(R.id.btn_verify_identity_card))
                        .setText("修改身份信息");
                    identity_card_verify_view.findViewById(R.id.et_name).setEnabled(false);
                    identity_card_verify_view
                        .findViewById(R.id.et_identity_card_num)
                        .setEnabled(false);
                  } else {
                    ToastUtils.showToast(responseBean.getMessage());
                  }
                }

                @Override
                public void onNetUnavailable(String net_unAvailabel) {
                  CCWaitingDialog.dismiss(context);
                  ToastUtils.showToast(net_unAvailabel);
                }

                @Override
                public void onFailure(IOException e) {
                  CCWaitingDialog.dismiss(context);
                  ToastUtils.showToast(e.getMessage());
                }
              })
          .executeTask();
    }
  public void requestSave() {
    final CarDetail cardetail_entity = context.task_detail_entity.getCarDetail();
    final DriverLicense driverLicense_entity =
        context.task_detail_entity.getLicense().getDriverLicense();
    final HashMap<String, String> hashMap = new HashMap<String, String>();
    if (!UIUtils.isEmpty(cardetail_entity.getCarTypeId())) {
      hashMap.put("car_type_id", cardetail_entity.getCarTypeId());
    }

    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())) {
      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());
    }

    if (!UIUtils.isEmpty(
        ((EditText) driving_license_card_verify_view.findViewById(R.id.et_name))
            .getText()
            .toString()
            .trim())) {
      hashMap.put(
          "c_license_username",
          ((EditText) driving_license_card_verify_view.findViewById(R.id.et_name))
              .getText()
              .toString()
              .trim());
    }
    if (!UIUtils.isEmpty(driverLicense_entity.getOwnerType())) { // 所有人性质;
      hashMap.put("car_owner_type", driverLicense_entity.getOwnerType());
    }

    if (!UIUtils.isEmpty(driverLicense_entity.getUseType())) {
      hashMap.put("car_type", driverLicense_entity.getUseType());
    }

    if (!UIUtils.isEmpty(driverLicense_entity.getCapacity())) {
      hashMap.put("capacity", driverLicense_entity.getCapacity());
    }

    if (!UIUtils.isEmpty(
        ((EditText)
                (driving_license_card_verify_view.findViewById(R.id.et_che_liang_shibie_daihao)))
            .getText()
            .toString()
            .trim())) {
      hashMap.put(
          "code",
          ((EditText)
                  (driving_license_card_verify_view.findViewById(R.id.et_che_liang_shibie_daihao)))
              .getText()
              .toString()
              .trim());
    }

    if (!UIUtils.isEmpty(
        ((EditText) (driving_license_card_verify_view.findViewById(R.id.et_engine_num)))
            .getText()
            .toString()
            .trim())) {
      hashMap.put(
          "engine_number",
          ((EditText) (driving_license_card_verify_view.findViewById(R.id.et_engine_num)))
              .getText()
              .toString()
              .trim());
    }

    if (!UIUtils.isEmpty(driverLicense_entity.getRegisteDate())) {
      hashMap.put("license_register_date", driverLicense_entity.getRegisteDate());
    }

    if (!UIUtils.isEmpty(driverLicense_entity.getLicenseEndTime())) {
      hashMap.put("license_end_time", driverLicense_entity.getLicenseEndTime());
    }

    if (hashMap.size() == 0) {
      ToastUtils.showToast("暂无信息需要保存");
      return;
    }
    context.TAG_NO_FIRST_REQUEST = "tag_request_save";
    hashMap.put("car_id", context.task_detail_entity.getCarId());

    new CCHttpEngine(
            context,
            NetConstants.NET_ID_DRIVING_LICENSE_INFO_PASS_SAVE,
            hashMap,
            context.TAG_NO_FIRST_REQUEST,
            new HttpCallBack() {

              @Override
              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);
                  cardetail_entity.setCarPlateNo(hashMap.get("car_number"));
                  driverLicense_entity.setCode(hashMap.get("code"));
                  driverLicense_entity.setEngerNumber(hashMap.get("engine_number"));
                  driverLicense_entity.setOwnerName(hashMap.get("c_license_username"));
                  if ("3"
                          .equals(
                              context
                                  .task_detail_entity
                                  .getLicense()
                                  .getDriverLicense()
                                  .getStatus())
                      || "2"
                          .equals(
                              context
                                  .task_detail_entity
                                  .getLicense()
                                  .getDriverLicense()
                                  .getStatus())) {
                    context.task_detail_entity.getLicense().getDriverLicense().setStatus("0");
                  }

                  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();
    }