| | |
| | | if (!BaseApplication.deviceAvailable) {
|
| | | return;
|
| | | }
|
| | | List attendanceList = new ArrayList();
|
| | | for (int i = 0; i < 10; i++) {
|
| | | SurveillanceQueryItem item = new SurveillanceQueryItem();
|
| | | item.setInOrOutCamera(CommonVariables.Camera.IN);
|
| | | item.setUsername("zhangsan");
|
| | | item.setStatus("签到");
|
| | | attendanceList.add(item);
|
| | | }
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(attendanceList);
|
| | | }
|
| | |
|
| | | public void addBitmap(final List<SurveillanceQueryItem> bitmapList, byte[] byteArray, int len, String cameraInOrOut) {
|
| | |
| | | }
|
| | | if (type == CommonVariables.Surveillance.VISIT_ATTENDANCE_ITEM_TYPE) {
|
| | | newAttendanceList.add(item);
|
| | | if (i < bitmapList.size()) {
|
| | | SurveillanceQueryItem surveillanceQueryItem = bitmapList.get(i);
|
| | | item.setBitmap(surveillanceQueryItem.getBitmap());
|
| | | item.setBase64Image(surveillanceQueryItem.getBase64Image());
|
| | | item.setWidth(surveillanceQueryItem.getWidth());
|
| | | item.setHeight(surveillanceQueryItem.getHeight());
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | });
|
| | | }
|
| | |
|
| | | 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>();
|