| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 访客->人员注册
|
| | | * 人员注册
|
| | | */
|
| | | private void RegisterCellViewFillData(EasyRecyclerViewHolder holder, int position){
|
| | |
|
| | |
| | | }
|
| | |
|
| | | /**
|
| | | * 访客->来访登记
|
| | | * 来访登记
|
| | | */
|
| | | private void checkInCellViewFillData(EasyRecyclerViewHolder holder, int position){
|
| | |
|
| | |
| | | TextView fragment_home_bottom_visitor_cell_status = (TextView) mLayout.findViewById(R.id.fragment_home_bottom_visitor_cell_status);
|
| | |
|
| | | Object data = this.getItem(position);
|
| | | if (data instanceof FacePhotoItem) {
|
| | | final FacePhotoItem item = (FacePhotoItem) data;
|
| | |
|
| | | if (item.getWarning().length() > 0 && "来访登记".equals(item.getStatus())) {
|
| | | //warningTv.setText("警告");
|
| | | fragment_home_bottom_visitor_cell_warning.setVisibility(View.VISIBLE);
|
| | | } else {
|
| | | fragment_home_bottom_visitor_cell_warning.setVisibility(View.GONE);
|
| | | }
|
| | |
|
| | | fragment_home_bottom_visitor_cell_name.setText(item.getName());
|
| | |
|
| | | fragment_home_bottom_visitor_cell_status.setText(item.getStatus());
|
| | | if ("来访登记".equals(item.getStatus())) {
|
| | | fragment_home_bottom_visitor_cell_status.setBackground(context.getDrawable(R.drawable.rectangle_textview));
|
| | |
|
| | | fragment_home_bottom_visitor_cell_status.setHeight((int)(context.getResources().getDisplayMetrics().density * 45));
|
| | | fragment_home_bottom_visitor_cell_status.setOnClickListener(new View.OnClickListener(){
|
| | | @Override
|
| | | public void onClick(View view) {
|
| | | MainActivity.selectPage(2);
|
| | | }
|
| | | });
|
| | | } else {
|
| | | fragment_home_bottom_visitor_cell_status.setBackground(null);
|
| | | fragment_home_bottom_visitor_cell_status.setOnClickListener(null);
|
| | | }
|
| | | }
|
| | | // if (data instanceof FacePhotoItem) {
|
| | | // final FacePhotoItem item = (FacePhotoItem) data;
|
| | | //
|
| | | // if (item.getWarning().length() > 0 && "来访登记".equals(item.getStatus())) {
|
| | | // //warningTv.setText("警告");
|
| | | // fragment_home_bottom_visitor_cell_warning.setVisibility(View.VISIBLE);
|
| | | // } else {
|
| | | // fragment_home_bottom_visitor_cell_warning.setVisibility(View.GONE);
|
| | | // }
|
| | | //
|
| | | // fragment_home_bottom_visitor_cell_name.setText(item.getName());
|
| | | //
|
| | | // fragment_home_bottom_visitor_cell_status.setText(item.getStatus());
|
| | | // if ("来访登记".equals(item.getStatus())) {
|
| | | // fragment_home_bottom_visitor_cell_status.setBackground(context.getDrawable(R.drawable.rectangle_textview));
|
| | | //
|
| | | // fragment_home_bottom_visitor_cell_status.setHeight((int)(context.getResources().getDisplayMetrics().density * 45));
|
| | | // fragment_home_bottom_visitor_cell_status.setOnClickListener(new View.OnClickListener(){
|
| | | // @Override
|
| | | // public void onClick(View view) {
|
| | | // MainActivity.selectPage(2);
|
| | | // }
|
| | | // });
|
| | | // } else {
|
| | | // fragment_home_bottom_visitor_cell_status.setBackground(null);
|
| | | // fragment_home_bottom_visitor_cell_status.setOnClickListener(null);
|
| | | // }
|
| | | // }
|
| | |
|
| | | fragment_home_bottom_visitor_cell_name.setText("");
|
| | | if (data instanceof SurveillanceQueryItem) {
|
| | |
| | | cn.com.basic.face.fragment.CheckInFragment.getInstance().
|
| | | getFragment_check_in_right_visitor_cell()
|
| | | .setVisitorInfo(getVo(item));
|
| | | if (item.getBitmap() != null) {
|
| | | if (item.getBitmap() != null && (item.getImagePath() == null || "".equals(item.getImagePath()))) {
|
| | | cn.com.basic.face.fragment.CheckInFragment.getInstance().
|
| | | getFragment_check_in_right_visitor_cell().setPhoto(item.getBitmap());
|
| | | }
|