|
@@ -70,6 +70,12 @@ class GroupCustomerListFragment : BaseFragment<FragmentGroupCustomerListBinding>
|
|
|
override fun initEvents() {
|
|
|
|
|
|
binding.add.setOnClickListener {
|
|
|
+
|
|
|
+ if (OASystem.groupOperationRequest.visitPNumber == OASystem.groupInfoGroupCustomerList.size) {
|
|
|
+ showMessage(resources.getString(R.string.visit_member_max_hint))
|
|
|
+ return@setOnClickListener
|
|
|
+ }
|
|
|
+
|
|
|
val groupCustomerDetailFragment = GroupCustomerDetailFragment()
|
|
|
val bundle = Bundle()
|
|
|
|
|
@@ -112,6 +118,11 @@ class GroupCustomerListFragment : BaseFragment<FragmentGroupCustomerListBinding>
|
|
|
|
|
|
binding.nextPage.setOnClickListener {
|
|
|
|
|
|
+ if (OASystem.groupOperationRequest.visitPNumber > OASystem.groupInfoGroupCustomerList.size) {
|
|
|
+ showMessage(resources.getString(R.string.visit_member_over_hint))
|
|
|
+ return@setOnClickListener
|
|
|
+ }
|
|
|
+
|
|
|
for ((i, item) in OASystem.groupInfoGroupCustomerList.withIndex()) {
|
|
|
if (item.companyFullName == resources.getString(R.string.no_info) || item.companyFullName.isBlank()) {
|
|
|
showMessage(String.format(resources.getString(R.string.client_company_hint), i + 1))
|