| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询来访人员列表
|
| | | */
|
| | | public void findSupervisoryBottomList(String pageNum, String name, final boolean isClear) {
|
| | | //id,名称,头像路径,联系电话,公司名称,证件编号
|
| | | RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.CheckInQuery);
|
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.notCompanyId, BaseApplication.getInstance().getPlace().getCompanyId());
|
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.name, name);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | //CheckInFragment.getInstance().listChanged(getList(CheckInQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询来访人员列表
|
| | | */
|
| | | public void findSupervisoryBottomList() {
|
| | | //id,名称,头像路径,联系电话,公司名称,证件编号
|
| | | RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.CheckInQuery);
|
| | | params.addBodyParameter(VisitorQueryCondition.FieldNames.notCompanyId, BaseApplication.getInstance().getPlace().getCompanyId());
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | public void success() {
|
| | | //SupervisoryFragment.getInstance().visitorListChanged(getList(CheckInQueryItem.class));
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询被访问人员列表
|
| | | */
|
| | | public void findIntervieweeList(String pageNum, String name, final boolean isClear) {
|
| | | RequestParams params = new RequestParams(AppApi.BASEURL+AppApi.CheckInQuery);
|
| | | 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(CheckInQueryItem.class), isClear);
|
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 添加访客记录
|
| | | * @param params
|
| | | */
|
| | | public void add(RequestParams params) {
|
| | |
|
| | | params.setUri(AppApi.BASEURL+AppApi.CHECK_IN_ADD);
|
| | | x.http().post(params, new BaseCommonCallBack() {
|
| | | @Override
|
| | |
| | | Toast.makeText(BaseApplication.getInstance(),"添加成功", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | | });
|
| | |
|
| | | }
|
| | |
|
| | | public void findCheckInLeftList(final boolean isVisitorList, final boolean isSortByDept, String searchText) {
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询拜访事由列表
|
| | | */
|
| | |
|
| | | }
|