git-svn-id: http://192.168.1.226/svn/proxy@559 454eff88-639b-444f-9e54-f578c98de674
| | |
| | | public static class Page {
|
| | | public static final String PAGE_SIZE = "pageSize";
|
| | | public static final String PAGE_NUM = "pageNum";
|
| | | public static final String DEFAULT_PAGE_SIZE = "7";
|
| | | public static final int hasMorePages = 1;
|
| | | public static final int noMorePage = 2;
|
| | | public static final int reachBottom = 3;
|
| | |
| | | public static final String OUT = "2";
|
| | | }
|
| | |
|
| | |
|
| | | /*{
|
| | | "ret":0,
|
| | | "count":3,
|
| | | "result":[[-1,123],[2,456],[0,0]]
|
| | | }*/
|
| | |
|
| | | /**
|
| | | * [-1RecogonizeResult
|
| | | */
|
| | | public static class RecognizeResult {
|
| | | public static final int RET = 0;
|
| | | public static final int FIRST_ELEMENT_NOT_FOUND = 0;
|
| | |
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.ATTENDANCE_QUERY);
|
| | | params.addBodyParameter(AttendanceQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "20");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, CommonVariables.Page.DEFAULT_PAGE_SIZE);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<AttendanceQueryItem> list = getList(AttendanceQueryItem.class);
|
| | |
| | | itemList.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (itemList.size() > 0) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | itemList.add(CommonVariables.Page.noMorePage);
|
| | | //itemList.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | params.addBodyParameter(CheckInQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "20");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, CommonVariables.Page.DEFAULT_PAGE_SIZE);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | List<CheckInQueryItem> list = getList(CheckInQueryItem.class);
|
| | |
| | | allItems.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | allItems.add(CommonVariables.Page.reachBottom);
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (allItems.size() > 0) {
|
| | | allItems.add(CommonVariables.Page.reachBottom);
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | allItems.add(CommonVariables.Page.noMorePage);
|
| | | //allItems.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.PHONE_CALL_QUERY);
|
| | | params.addBodyParameter(PhoneCallQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "20");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, CommonVariables.Page.DEFAULT_PAGE_SIZE);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | |
| | | allItems.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | allItems.add(CommonVariables.Page.reachBottom);
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (allItems.size() > 0) {
|
| | | allItems.add(CommonVariables.Page.reachBottom);
|
| | | //allItems.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | allItems.add(CommonVariables.Page.noMorePage);
|
| | | //allItems.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.VISIT_QUERY);
|
| | | params.addBodyParameter(VisitQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "20");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, CommonVariables.Page.DEFAULT_PAGE_SIZE);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | |
| | | itemList.add(CommonVariables.Page.hasMorePages);
|
| | | } else {
|
| | | if (getPageNum() > 1) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | if (itemList.size() > 0) {
|
| | | itemList.add(CommonVariables.Page.reachBottom);
|
| | | //itemList.add(CommonVariables.Page.reachBottom);
|
| | | } else {
|
| | | itemList.add(CommonVariables.Page.noMorePage);
|
| | | //itemList.add(CommonVariables.Page.noMorePage);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | android:layout_width="match_parent"
|
| | | android:layout_height="wrap_content"
|
| | | android:paddingTop="12dp"
|
| | | android:paddingBottom="12dp">
|
| | | android:paddingBottom="12dp"
|
| | | >
|
| | | <TextView
|
| | | android:id="@+id/fragment_check_in_left_visitor_row_name"
|
| | | android:layout_width="wrap_content"
|