| | |
| | | }
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.Query.PHONE_CALL_QUERY);
|
| | | params.addBodyParameter(PhoneCallQueryCondition.FieldNames.username, searchText);
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_SIZE, "5");
|
| | | params.addBodyParameter(CommonVariables.Page.PAGE_NUM, pageNum+"");
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | |
|
| | | List<PhoneCallQueryItem> list = getList(PhoneCallQueryItem.class);
|
| | |
|
| | | if (append) {
|
| | | List prevList = PhoneCallFragment.getInstance().get_fragment_phone_call_left_list_view().getPrevList();
|
| | | if (prevList != null && prevList.size() > 0) {
|
| | | for (int i = 0; i < prevList.size(); i++) {
|
| | | Object item = prevList.get(i);
|
| | | if (item instanceof PhoneCallQueryItem) {
|
| | | list.add((PhoneCallQueryItem)item);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | | sort(list, isSortByDept);
|
| | | List allItems = new ArrayList();
|
| | | String name = "";
|
| | |
| | | Toast.makeText(MainActivity.getInstance(), "请先选择被访人", Toast.LENGTH_SHORT).show();
|
| | | return;
|
| | | }
|
| | | Toast.makeText(MainActivity.getInstance(), "已添加到呼叫记录", Toast.LENGTH_SHORT).show();
|
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
| | | RequestParams params = new RequestParams(AppApi.BASE_URL +AppApi.PHONE_CALL_ADD);
|
| | | params.addBodyParameter(PhoneCall.FieldNames.date, sdf.format(new Date()));
|