//用户证件类型枚举 public static EnumBean[] ID_TYPE = { Add("101", "身份证(含临时身份证)"), Add("102", "护照(限外籍人士)"), Add("103", "港澳居民来往内地通行证"), Add("104", "台湾居民来往大陆通行证"), Add("105", "军官证"), Add("106", "武警警察身份证"), Add("113", "澳门永久/非永久居民身份证"), Add("114", "香港永久/非永久居民身份证"), Add("201", "统一社会信用代码证书"), Add("202", "组织机构代码证"), Add("203", "营业执照"), Add("204", "事业单位法人证书"), Add("205", "社会团体法人登记证书"), Add("206", "律师事务所执业许可证"), Add("217", "公司商业登记副本(3个月内)"), Add("219", "公司营业税开业/更改M1副本"), };GZBranch
@@ -12,6 +12,7 @@ import com.google.gson.internal.LinkedTreeMap; | |||
import com.huntersun.vkyes.etcopencard.R; | |||
import com.huntersun.vkyes.etcopencard.databinding.ActivityReleaseVehicleDetailBinding; | |||
import com.huntersun.vkyes.etcopencard.project.api.MyRetrofit; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.EnumBean; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.IFCode; | |||
import com.huntersun.vkyes.etcopencard.project.api.bean.ResultBean; | |||
import com.huntersun.vkyes.etcopencard.project.tool.MyShared; | |||
@@ -247,7 +248,7 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa | |||
binding.tvUserName.setText(detailData.userName != null ? detailData.userName : "暂无"); | |||
binding.tvIdNumber.setText(detailData.idNumber != null ? detailData.idNumber : "暂无"); | |||
binding.tvMobile.setText(detailData.mobile != null ? detailData.mobile : "暂无"); | |||
binding.tvUserType.setText(getUserTypeText(detailData.userIdType)); | |||
binding.tvUserType.setText(getUserIdTypeText(detailData.userIdType)); | |||
// 车辆信息 - 更新车牌号显示 | |||
if (detailData.plateNum != null && detailData.plateNum.length() >= 2) { | |||
@@ -327,19 +328,19 @@ public class ReleaseVehicleDetailActivity extends AppActivity implements TitleBa | |||
} | |||
/** | |||
* 获取用户类型文本 | |||
* 获取证件类型文本 | |||
*/ | |||
private String getUserTypeText(String userIdType) { | |||
if (userIdType == null) return "请选择用户类型"; | |||
private String getUserIdTypeText(String userIdType) { | |||
if (userIdType == null) return "请选择证件类型"; | |||
switch (userIdType) { | |||
case "1": | |||
return "个人用户"; | |||
case "2": | |||
return "单位用户"; | |||
default: | |||
return "未知类型"; | |||
// 根据证件类型枚举获取对应的名称 | |||
for (EnumBean enumBean : EnumBean.ID_TYPE) { | |||
if (userIdType.equals(enumBean.getKey())) { | |||
return enumBean.getValue(); | |||
} | |||
} | |||
return "未知证件类型"; | |||
} | |||
/** |
@@ -99,7 +99,7 @@ | |||
<TextView | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:text="·用户类型" | |||
android:text="·证件类型" | |||
android:textColor="@color/black" | |||
android:textSize="@dimen/sp_14" /> | |||