| | |
| | | import cn.com.basic.face.base.MainActivity;
|
| | | import cn.com.basic.face.dialog.wheelview.adapter.BaseWheelAdapter;
|
| | | import cn.com.basic.face.dialog.wheelview.widget.WheelView;
|
| | | import cn.com.basic.face.discern.common.CommonVariables;
|
| | | import cn.com.basic.face.util.Constant;
|
| | | import cn.com.basic.face.util.OkClickedListener;
|
| | | import cn.com.basic.face.util.SurveillanceQueryItemUtil;
|
| | |
| | | @ViewInject(R.id.dialog_surveillance_photo_select_list_view)
|
| | | private SurveillancePhotoSelectListView dialog_surveillance_photo_select_list_view;
|
| | |
|
| | | private List list = new ArrayList();
|
| | |
|
| | | public static List visitorTypeList = new ArrayList();
|
| | | public static List genderList = new ArrayList();
|
| | | public static List idTypeList = new ArrayList();
|
| | | public static List visitReasonList = new ArrayList();
|
| | |
|
| | | public static void setVisitorTypeList(List visitorTypeList) {
|
| | | AddDialog.visitorTypeList = visitorTypeList;
|
| | | }
|
| | |
|
| | | public static void setGenderList(List genderList) {
|
| | | AddDialog.genderList = genderList;
|
| | | }
|
| | |
|
| | | public static void setIdTypeList(List idTypeList) {
|
| | | AddDialog.idTypeList = idTypeList;
|
| | | }
|
| | |
|
| | | public SurveillancePhotoDialog(View parentView, int type, OkClickedListener okButtonClickedListener, long selectedId) {
|
| | | this.parentView = parentView;
|
| | | View view = LayoutInflater.from(MainActivity.getInstance()).inflate(R.layout.dialog_surveillance_photo_select,null);
|
| | | ViewUtils.inject(this, view);
|
| | |
|
| | | if (CommonVariables.Register.VISITOR_REGISTER_SELECTED) {
|
| | | dialog_surveillance_photo_select_list_view.show(SurveillanceQueryItemUtil.getInstance().getAllUnregisterVisitorTwoRowsForSelect(selectedId));
|
| | |
|
| | | } else {
|
| | | dialog_surveillance_photo_select_list_view.show(SurveillanceQueryItemUtil.getInstance().getAllUnregisterAttenderTwoRowsForSelect(selectedId));
|
| | | }
|
| | | setTitleAndList(type);
|
| | | WheelView.WheelViewStyle style = new WheelView.WheelViewStyle();
|
| | | style.selectedTextColor = Color.parseColor("#11c3e3");
|