|
|
|
|
|
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
binding.tvPlateColor.setText(detailData.plateColor != null ? detailData.plateColor : "暂无");
|
|
|
|
|
|
|
|
|
binding.tvPlateColor.setText(detailData.plateColor != null ? getPlateColorText(detailData.plateColor) : "暂无");
|
|
|
|
|
|
|
|
|
// 卡信息
|
|
|
// 卡信息
|
|
|
binding.tvCardId.setText(detailData.cardId != null ? detailData.cardId : "暂无");
|
|
|
binding.tvCardId.setText(detailData.cardId != null ? detailData.cardId : "暂无");
|
|
|
|
|
|
|
|
|
return "未知证件类型";
|
|
|
return "未知证件类型";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 获取车牌颜色文本
|
|
|
|
|
|
*/
|
|
|
|
|
|
private String getPlateColorText(String plateColor) {
|
|
|
|
|
|
if (plateColor == null) return "请选择车牌颜色";
|
|
|
|
|
|
|
|
|
|
|
|
// 根据车牌颜色枚举获取对应的名称
|
|
|
|
|
|
for (EnumBean enumBean : EnumBean.VEHICLE_COLOR) {
|
|
|
|
|
|
if (plateColor.equals(enumBean.getKey())) {
|
|
|
|
|
|
return enumBean.getValue();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return "未知车牌颜色";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* 通过按钮点击
|
|
|
* 通过按钮点击
|
|
|
*/
|
|
|
*/
|