| | |
| | | import android.widget.Toast;
|
| | |
|
| | | import cn.com.basic.face.base.BaseApplication;
|
| | | import cn.com.basic.face.fragment.HomeFragment;
|
| | | import cn.com.basic.face.fragment.CheckInFragment;
|
| | | import cn.com.basic.face.util.AppApi;
|
| | |
|
| | |
| | | import cn.com.basic.face.discern.query.condition.VisitorQueryCondition;
|
| | | import cn.com.basic.face.discern.query.item.CheckInQueryItem;
|
| | |
|
| | | /**
|
| | | * 来访登记
|
| | | */
|
| | |
|
| | | public class CheckInMng {
|
| | |
|
| | | public static CheckInMng instance = new CheckInMng();
|
| | |
| | | return instance;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询来访人员列表
|
| | | */
|
| | | public void findVisitorList(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 findVisitorList() {
|
| | | //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() {
|
| | | //HomeFragment.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) {
|
| | |
| | | }
|
| | | });
|
| | | }
|
| | |
|
| | | /**
|
| | | * 查询拜访事由列表
|
| | | */
|
| | |
|
| | | }
|