| | |
| | | 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) {
|