xuxiuxi
2017-04-24 c34f11fb7407594f7c1eb69b11f84a45d13cfa1a
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/SurveillanceMng.java
@@ -31,32 +31,32 @@
        if (!BaseApplication.deviceAvailable) {
            return;
        }
        RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.SURVEILLANCE_QUERY);
        params.addBodyParameter(CommonVariables.Page.PAGE_NUM, "1");
        params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "10");
        x.http().post(params, new BaseCommonCallBack() {
            public void success() {
                List<SurveillanceQueryItem> list = getList(SurveillanceQueryItem.class);
                if (isVisit) {
                    int i = 0;
                    for (SurveillanceQueryItem item : list) {
                        if (i % 5 == 0) {
                            item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE);
                        } else {
                            item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
                        }
                        i++;
                    }
                    List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
                    fillBlank(list, doubleList);
                    SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
                } else {
                    SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(list, true);
                }
            }
        });
//        RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.SURVEILLANCE_QUERY);
//        params.addBodyParameter(CommonVariables.Page.PAGE_NUM, "1");
//        params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "10");
//        x.http().post(params, new BaseCommonCallBack() {
//            public void success() {
//                List<SurveillanceQueryItem> list = getList(SurveillanceQueryItem.class);
//                if (isVisit) {
//                    int i = 0;
//                    for (SurveillanceQueryItem item : list) {
//                        if (i % 5 == 0) {
//                            item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_REGISTER_ITEM_TYPE);
//                        } else {
//                            item.setRegisterOrCheckIn(CommonVariables.Surveillance.VISIT_CHECK_IN_ITEM_TYPE);
//                        }
//                        i++;
//                    }
//
//                    List<SurveillanceQueryItem> doubleList = new ArrayList<SurveillanceQueryItem>();
//                    fillBlank(list, doubleList);
//
//                    SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_visit_list_view().show(doubleList, true);
//                } else {
//                    SurveillanceFragment.getInstance().get_fragment_supervisory_bottom_attendance_list_view().show(list, true);
//                }
//            }
//        });
    }
    public void addBitmap(final List<Bitmap> bitmapList, byte[] byteArray, int len) {