| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | public void findSurveillanceBottomList(final boolean isVisit) {
|
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | public static class SurveillanceListThread extends Thread {
|
| | | @Override
|
| | | public void run() {
|
| | |
| | | if (type == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE
|
| | | || type == CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE
|
| | | ) {
|
| | | //item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
|
| | | if (prevVisitorList.size() > 3 ) {
|
| | |
|
| | | }
|
| | | item.setCreateTime(new Date());
|
| | | newVisitorList.add(0, item);
|
| | | if (i < bitmapList.size()) {
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | public List getSurveillancePhotoList() {
|
| | | public List getSurveillancePhotoList(long selectedId) {
|
| | | List<SurveillanceQueryItem> prevVisitorList = SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visitor_list_view().getPrevList();
|
| | | List<SurveillanceQueryItem> registerList = new ArrayList();
|
| | | int n = 9;
|
| | | int countPerRow = 9;
|
| | | for (SurveillanceQueryItem surveillanceQueryItem : prevVisitorList) {
|
| | | if (surveillanceQueryItem.getRegisterOrCheckIn() == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE) {
|
| | | if (registerList.size() > n*2) {
|
| | | if (registerList.size() > countPerRow*2) {
|
| | | break;
|
| | | }
|
| | | surveillanceQueryItem.setSurveillancePhotoSelected(false);
|
| | | if (surveillanceQueryItem.getIdForSelect() == selectedId) {
|
| | | surveillanceQueryItem.setSurveillancePhotoSelected(true);
|
| | | } else {
|
| | | surveillanceQueryItem.setSurveillancePhotoSelected(false);
|
| | | }
|
| | | registerList.add(surveillanceQueryItem);
|
| | | }
|
| | | }
|
| | | SurveillanceQueryItem item;
|
| | | List items = new ArrayList();
|
| | | int m = 0;
|
| | | for (int i = 0; i < n*2; i++) {
|
| | | int m = 0, n = 0;
|
| | | for (int i = 0; i < countPerRow*2; i++) {
|
| | | if (i % 2 == 0) {
|
| | | if (m < registerList.size()) {
|
| | | item = registerList.get(m);
|
| | |
| | | item = getBlankItem();
|
| | | }
|
| | | } else {
|
| | | if (n < registerList.size()) {
|
| | | item = registerList.get(n);
|
| | | if (n < registerList.size() - countPerRow) {
|
| | | item = registerList.get(countPerRow+n);
|
| | | n++;
|
| | | } else {
|
| | | item = getBlankItem();
|