| | |
| | | }
|
| | |
|
| | | //所有监控图片
|
| | | private static List<SurveillanceQueryItem> allItems = new ArrayList<>();
|
| | | public static List<SurveillanceQueryItem> allItems = new ArrayList<>();
|
| | | //访客选项卡的分类(未注册/人员类型、来访状态、标签状态)
|
| | | //考勤选项卡(考勤人员类型:教师、学生、员工,来访状态:签到、签退)
|
| | | //第一行显示未注册,第二行显示来访
|
| | | private static List<SurveillanceQueryItem> visitorTwoRows = new ArrayList<>();
|
| | | public static List<SurveillanceQueryItem> visitorTwoRows = new ArrayList<>();
|
| | | //第一行显示签到,第二行显示签退
|
| | | private static List<SurveillanceQueryItem> attendanceTwoRows = new ArrayList<>();
|
| | | public static List<SurveillanceQueryItem> attendanceTwoRows = new ArrayList<>();
|
| | | //未注册的访客列表, 选择时用
|
| | | private static List<SurveillanceQueryItem> allUnregisterVisitorTwoRowsForSelect = new ArrayList();
|
| | | public static List<SurveillanceQueryItem> allUnregisterVisitorTwoRowsForSelect = new ArrayList();
|
| | | //未注册的考勤列表, 选择时用
|
| | | private static List<SurveillanceQueryItem> allUnregisterAttenderTwoRowsForSelect = new ArrayList();
|
| | | public static List<SurveillanceQueryItem> allUnregisterAttenderTwoRowsForSelect = new ArrayList();
|
| | |
|
| | | public void addItems(List<SurveillanceQueryItem> returnItems, List<SurveillanceQueryItem> requestItems, String cameraInOrOut) {
|
| | | for ( int i = 0; i < returnItems.size(); i++) {
|
| | |
| | |
|
| | | public void removeTimeoutItemAndShow() {
|
| | | List itemsToRemove = new ArrayList();
|
| | | for (SurveillanceQueryItem item : allItems) {
|
| | | if (item.getRegisterOrCheckIn() == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE) {
|
| | | Date now = new Date();
|
| | | Date createTime = item.getCreateTime();
|
| | | double minutes = (now.getTime() - createTime.getTime())*1.0 / 1000 / 60;
|
| | | if (minutes >= 5) {
|
| | | itemsToRemove.add(item);
|
| | | }
|
| | | }
|
| | | }
|
| | | // for (SurveillanceQueryItem item : allItems) {
|
| | | // if (item.getRegisterOrCheckIn() == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE) {
|
| | | // Date now = new Date();
|
| | | // Date createTime = item.getCreateTime();
|
| | | // double minutes = (now.getTime() - createTime.getTime())*1.0 / 1000 / 60;
|
| | | // if (minutes >= 5) {
|
| | | // itemsToRemove.add(item);
|
| | | // }
|
| | | // }
|
| | | // }
|
| | | allItems.removeAll(itemsToRemove);
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visitor_list_view().show(SurveillanceQueryItemUtil.getInstance().getVisitorTwoRows());
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(SurveillanceQueryItemUtil.getInstance().getAttendanceTwoRows());
|