| | |
| | | //补卡写卡 |
| | | homeBinding.homeReplacement.setOnClickListener(v -> { |
| | | replacementDialog = new ChooseReplacementDialog(this, type -> { |
| | | Intent intent = new Intent(HomeActivity.this, UserSearchActivity.class); |
| | | intent.putExtra("type", type); |
| | | startActivity(intent); |
| | | if (type == BaseCommon.REPLACE_WRITE) { |
| | | //补卡写卡 |
| | | Intent intent = new Intent(HomeActivity.this, ManagerReadActivity.class); |
| | | intent.putExtra("replaceType", BaseCommon.REPLACE_HAS_CARD); |
| | | startActivity(intent); |
| | | } else { |
| | | Intent intent = new Intent(HomeActivity.this, UserSearchActivity.class); |
| | | intent.putExtra("type", type); |
| | | startActivity(intent); |
| | | } |
| | | replacementDialog.dismiss(); |
| | | }); |
| | | replacementDialog.show(); |
| | | }); |
| | | //补卡写卡 |
| | | homeBinding.homeReplacementWrite.setOnClickListener(v -> { |
| | | Intent intent = new Intent(HomeActivity.this, ManagerReadActivity.class); |
| | | intent.putExtra("replaceType", BaseCommon.REPLACE_HAS_CARD); |
| | | startActivity(intent); |
| | | }); |
| | | } |
| | | |