| | |
| | | import java.util.List;
|
| | |
|
| | | import cn.com.basic.face.adapter.CheckInLeftListViewAdapter;
|
| | | import cn.com.basic.face.fragment.CheckInFragment;
|
| | | import cn.com.basic.face.service.CheckInMng;
|
| | | import cn.com.basic.face.util.Constant;
|
| | |
|
| | | public class CheckInLeftListView extends EasyRecyclerView {
|
| | |
|
| | | CheckInLeftListViewAdapter mAdapter;
|
| | | private CheckInLeftListViewAdapter mAdapter;
|
| | | private List list = new ArrayList();
|
| | |
|
| | | public void setAdapter(Context context) {
|
| | |
| | | setAdapter(context);
|
| | | }
|
| | |
|
| | | public void loadVisitorList(String name) {
|
| | | CheckInMng.getInstance().findVisitorList("1", name, true);
|
| | | mAdapter.setVisitorRow();
|
| | | }
|
| | |
|
| | | public void loadIntervieweeListSortByName(String name) {
|
| | | mAdapter.setIntervieweeRow();
|
| | |
|
| | | CheckInMng.getInstance().findIntervieweeList("1", name, true);
|
| | | }
|
| | |
|
| | | public void loadIntervieweeListSortByDept(String name) {
|
| | | mAdapter.setIntervieweeRow();
|
| | | CheckInMng.getInstance().findIntervieweeList("1", name, true);
|
| | | }
|
| | |
|
| | | public void reloadCheckInLeftList(boolean isVisitorList, boolean isSortByName, String searchText) {
|
| | | List list = new ArrayList();
|
| | | CheckInFragment.getInstance().get_fragment_check_in_left_list_view().show(list, isVisitorList);
|
| | | }
|
| | |
|
| | | public void show(List list, boolean isVisitorList) {
|
| | | mAdapter.setRowType(isVisitorList? Constant.CheckIn.VISITOR_ROW:Constant.CheckIn.INTERVIEWEE_ROW);
|
| | | refresh();
|
| | | }
|
| | |
|
| | | public void refresh() {
|
| | | this.list.clear();
|
| | | mAdapter.setRowType(isVisitorList? Constant.VISITOR_ROW:Constant.INTERVIEWEE_ROW);
|
| | | this.list.addAll(list);
|
| | | mAdapter.setList(this.list);
|
| | | this.setAdapter(mAdapter);
|