| | |
| | | });
|
| | | }
|
| | |
|
| | | public List getSurveillancePhotoList() {
|
| | | List<SurveillanceQueryItem> prevVisitorList = SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visitor_list_view().getPrevList();
|
| | | List<SurveillanceQueryItem> registerList = new ArrayList();
|
| | | for (SurveillanceQueryItem surveillanceQueryItem : prevVisitorList) {
|
| | | if (surveillanceQueryItem.getRegisterOrCheckIn() == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE) {
|
| | | if (registerList.size() > 16) {
|
| | | break;
|
| | | }
|
| | | surveillanceQueryItem.setSurveillancePhotoSelected(false);
|
| | | registerList.add(surveillanceQueryItem);
|
| | | }
|
| | | }
|
| | | SurveillanceQueryItem item;
|
| | | List items = new ArrayList();
|
| | | int m = 0;
|
| | | int n = 8;
|
| | | for (int i = 0; i < 16; i++) {
|
| | | if (i % 2 == 0) {
|
| | | if (m < registerList.size()) {
|
| | | item = registerList.get(m);
|
| | | m++;
|
| | | } else {
|
| | | item = getBlankItem();
|
| | | }
|
| | | } else {
|
| | | if (n < registerList.size()) {
|
| | | item = registerList.get(n);
|
| | | n++;
|
| | | } else {
|
| | | item = getBlankItem();
|
| | | }
|
| | | }
|
| | | items.add(item);
|
| | | }
|
| | | return items;
|
| | | }
|
| | |
|
| | | private void registerTopAndCheckInBottom(List<SurveillanceQueryItem> list) {
|
| | | List<SurveillanceQueryItem> registerList = new ArrayList<SurveillanceQueryItem>();
|
| | | List<SurveillanceQueryItem> checkInList = new ArrayList<SurveillanceQueryItem>();
|