|
@@ -444,32 +444,36 @@ public class IndexFragment extends LatteDelegate {
|
|
|
waterMeter.setUserAddr(smBhTaskBean.getUser_addr());
|
|
|
waterMeter.setCheckUser(smBhTaskBean.getInspect_user_name());
|
|
|
waterMeter.setCreateTime(smBhTaskBean.getInspect_time());
|
|
|
- if ("31001".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表不存在,是否进行非在册用水登记?", false, (dialog, which) -> {
|
|
|
- long count = DaoUtilsStore.getInstance().getDictEntityDbUtils().queryCountByQueryBuilder(DictEntityDao.Properties.DictCode.eq("noregistered_type"));
|
|
|
- if (count > 0) {
|
|
|
- Intent intent = new Intent(requireActivity(), UnRegisterActivity.class);
|
|
|
- intent.putExtra("idCard", smBhTaskBean.getUser_num());
|
|
|
- startActivity(intent);
|
|
|
+ }
|
|
|
+ if ("31001".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表不存在,是否进行非在册用水登记?", false, (dialog, which) -> {
|
|
|
+ long count = DaoUtilsStore.getInstance().getDictEntityDbUtils().queryCountByQueryBuilder(DictEntityDao.Properties.DictCode.eq("noregistered_type"));
|
|
|
+ if (count > 0) {
|
|
|
+ Intent intent = new Intent(requireActivity(), UnRegisterActivity.class);
|
|
|
+ if (type == 0) {
|
|
|
+ intent.putExtra("idCard", smbh);
|
|
|
} else {
|
|
|
- onMessage("基础数据加载失败");
|
|
|
+ intent.putExtra("sbbsh", smbh);
|
|
|
}
|
|
|
- });
|
|
|
- } else if ("31002".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表未下发核查任务,是否添加到您的临时任务中?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
- } else if ("31003".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表已下发给" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "核查,是否要转派到您的临时任务中?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
- } else if ("31004".equals(baseResponse.getCode())) {
|
|
|
- DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
- DialogUtils.showDialog(requireContext(), "提示", "该水表" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "已核查完毕,是否要继续核查?", false, (dialog, which) ->
|
|
|
- download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
- } else {
|
|
|
- onMessage(baseResponse.getMessage());
|
|
|
- }
|
|
|
+ startActivity(intent);
|
|
|
+ } else {
|
|
|
+ onMessage("基础数据加载失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ } else if ("31002".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表未下发核查任务,是否添加到您的临时任务中?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else if ("31003".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表已下发给" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "核查,是否要转派到您的临时任务中?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else if ("31004".equals(baseResponse.getCode())) {
|
|
|
+ DialogUtils.YhInfoDialog(requireContext(), false, waterMeter, smBhTaskBean == null ? "" : smBhTaskBean.getCommitType(), yhbh ->
|
|
|
+ DialogUtils.showDialog(requireContext(), "提示", "该水表" + (smBhTaskBean == null ? "" : smBhTaskBean.getInspect_user_name()) + "已核查完毕,是否要继续核查?", false, (dialog, which) ->
|
|
|
+ download(baseResponse.getCode(), smBhTaskBean.getUser_num())));
|
|
|
+ } else {
|
|
|
+ onMessage(baseResponse.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|