From 49f7ea62188c126354d31f36ac791fb0683b1029 Mon Sep 17 00:00:00 2001 From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 05 四月 2017 18:03:51 +0800 Subject: [PATCH] --- VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java | 60 +++++------------------------------------------------------- 1 files changed, 5 insertions(+), 55 deletions(-) diff --git a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java index 80a5df8..fe5c918 100644 --- a/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java +++ b/VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/service/CheckInMng.java @@ -4,7 +4,6 @@ import cn.com.basic.face.base.BaseApplication; import cn.com.basic.face.fragment.CheckInFragment; -import cn.com.basic.face.fragment.SupervisoryFragment; import cn.com.basic.face.util.AppApi; import org.xutils.http.RequestParams; @@ -26,55 +25,7 @@ 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 @@ -82,7 +33,6 @@ Toast.makeText(BaseApplication.getInstance(),"娣诲姞鎴愬姛", Toast.LENGTH_SHORT).show(); } }); - } public void findCheckInLeftList(final boolean isVisitorList, final boolean isSortByDept, String searchText) { @@ -97,7 +47,11 @@ public void success() { List<CheckInQueryItem> list = getList(CheckInQueryItem.class); sort(list, isSortByDept); - CheckInFragment.getInstance().get_fragment_check_in_left_list_view().show(list, isVisitorList); + if (isVisitorList) { + CheckInFragment.getInstance().get_fragment_check_in_left_visitor().show(list); + } else { + CheckInFragment.getInstance().get_fragment_check_in_left_interviewee().show(list); + } } }); } @@ -119,9 +73,5 @@ } }); } - - /** - * 鏌ヨ鎷滆浜嬬敱鍒楄〃 - */ } -- Gitblit v1.8.0