| | |
| | | }
|
| | |
|
| | | if (newList.size() > 0) {
|
| | |
|
| | | List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
|
| | |
|
| | | prevList.addAll(0, newList);
|
| | |
|
| | | registerTopAndCheckInBottom(prevList, doubleList);
|
| | |
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | registerTopAndCheckInBottom(prevList);
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(prevList);
|
| | | }
|
| | |
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | private void registerTopAndCheckInBottom(List<SurveillanceQueryItem> list, List<SurveillanceQueryItem> doubleList) {
|
| | | doubleList.clear();
|
| | | private void registerTopAndCheckInBottom(List<SurveillanceQueryItem> list) {
|
| | | List<SurveillanceQueryItem> registerList = new ArrayList<SurveillanceQueryItem>();
|
| | | List<SurveillanceQueryItem> checkInList = new ArrayList<SurveillanceQueryItem>();
|
| | | removeDuplicateCheckIn(list);
|
| | | int maxRegister = 20;
|
| | | int i1 = 0, j = 0;
|
| | | int maxRegister = 20;
|
| | | int maxCheckIn = 20;
|
| | | for (SurveillanceQueryItem item : list) {
|
| | | if (item.getRegisterOrCheckIn() == Constant.Surveillance.VISIT_REGISTER_ITEM_TYPE) {
|
| | |
| | | }
|
| | |
|
| | | int max = registerList.size() > checkInList.size() ? registerList.size() : checkInList.size();
|
| | |
|
| | | List tempList = new ArrayList();
|
| | |
|
| | | int m = 0, n = 0;
|
| | | for (int i = 0; i < max * 2; i++) {
|
| | |
| | | }
|
| | | n++;
|
| | | }
|
| | | doubleList.add(item);
|
| | | tempList.add(item);
|
| | | }
|
| | |
|
| | | list.clear();
|
| | | list.addAll(tempList);
|
| | | }
|
| | |
|
| | | private void removeDuplicateCheckIn(List<SurveillanceQueryItem> list) {
|