| | |
| | | params.addBodyParameter("base64Photo", Base64.encodeToString(byteArray, 0, len, Base64.DEFAULT));
|
| | | params.addBodyParameter("deviceCompanyId", BaseApplication.getInstance().getDevice().getDeviceCompanyId());
|
| | | params.addBodyParameter("deviceId", BaseApplication.getInstance().getDevice().getDeviceId());
|
| | | params.addBodyParameter("enterOrExit", CommonVariables.EnterOrExit.ENTER+"");
|
| | | params.addBodyParameter("InOrOutCamera", CommonVariables.Camera.IN+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<SurveillanceQueryItem> items = getList(SurveillanceQueryItem.class);
|
| | | List list = SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().getPrevList();
|
| | |
|
| | | for (int i = 0; i < items.size(); i++) {
|
| | | List newList = new ArrayList();
|
| | |
|
| | | for (int i = 0; items != null && i < items.size(); i++) {
|
| | | SurveillanceQueryItem item = items.get(i);
|
| | | int type = item.getType();
|
| | | if (type == CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE
|
| | | || type == CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE
|
| | | ) {
|
| | | list.add(0, item);
|
| | | }
|
| | | if (i < bitmapList.size()) {
|
| | | item.setBitmap(bitmapList.get(i));
|
| | | newList.add(0, item);
|
| | | if (i < bitmapList.size()) {
|
| | | item.setBitmap(bitmapList.get(i));
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
|
| | | if (newList.size() > 0) {
|
| | |
|
| | | fillBlank(list, doubleList);
|
| | | List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
|
| | |
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | list.addAll(0, newList);
|
| | |
|
| | | fillBlank(list, doubleList);
|
| | |
|
| | | SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
|
| | | }
|
| | |
|
| | | }
|
| | | });
|
| | | }
|