| | |
| | |
|
| | | import cn.com.basic.face.discern.common.BaseCommonCallBack;
|
| | | import cn.com.basic.face.discern.query.condition.VisitorQueryCondition;
|
| | | import cn.com.basic.face.discern.query.item.VisitorQueryItem;
|
| | | import cn.com.basic.face.discern.query.item.CheckInQueryItem;
|
| | |
|
| | | /**
|
| | | * 来访登记
|
| | |
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | CheckInFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | CheckInFragment.getInstance().listChanged(getList(CheckInQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.notCompanyId, BaseApplication.getInstance().getPlace().getCompanyId());
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | HomeFragment.getInstance().visitorListChanged(getList(VisitorQueryItem.class));
|
| | | HomeFragment.getInstance().visitorListChanged(getList(CheckInQueryItem.class));
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | * 查询被访问人员列表
|
| | | */
|
| | | public void findIntervieweeList(String pageNum, String name, final boolean isClear) {
|
| | | // RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.DICTIONARY_TYPE_LIST);
|
| | | // params.addBodyParameter(IntervieweeQueryCondition.FieldNames.companyId, "1");
|
| | | // params.addBodyParameter(IntervieweeQueryCondition.FieldNames.name, name);
|
| | | // x.http().post(params, new BaseCommonCallBack() {
|
| | | // public void success() {
|
| | | // VisitorRegisterFragment.getInstance().listChanged(getList(IntervieweeQueryItem.class), isClear);
|
| | | // }
|
| | | // });
|
| | | RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.VISITOR_LIST);
|
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.companyId, BaseApplication.getInstance().getPlace().getCompanyId());
|
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | CheckInFragment.getInstance().listChanged(getList(VisitorQueryItem.class), isClear);
|
| | | CheckInFragment.getInstance().listChanged(getList(CheckInQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|