| | |
| | | import android.widget.LinearLayout;
|
| | | import android.widget.RadioGroup;
|
| | | import android.widget.TextView;
|
| | | import android.widget.Toast;
|
| | |
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import com.bsk.zhangbo.demoforbsk.adapter.VisitorRecyclerViewAdapter;
|
| | |
| | | private TextView identity;
|
| | | private ImageView visitorPhoto;
|
| | | private TextView fromPhone;
|
| | | private TextView mDepartmentTv;
|
| | | private TextView mDutyTv;
|
| | | private TextView mPhoneTv;
|
| | | private TextView mTelTv;
|
| | |
|
| | | public static VisitorRegisterFragment getInstance() {
|
| | | return instance;
|
| | |
| | |
|
| | |
|
| | | mVisitorTo = (VisitorView) mViewRight.findViewById(R.id.visitor_to);
|
| | |
|
| | | mDepartmentTv = (TextView)mVisitorTo.findViewById(R.id.view_visitor_to_deptartment);
|
| | | mDutyTv = (TextView)mVisitorTo.findViewById(R.id.view_visitor_to_duty);
|
| | |
|
| | | mPhoneTv = (TextView)mVisitorTo.findViewById(R.id.visitor_to_phone);
|
| | | mTelTv = (TextView)mVisitorTo.findViewById(R.id.visitor_to_tel);
|
| | |
|
| | | mVisitorFrom.setType(Constant.VISITOR_FROM);
|
| | | mVisitorTo.setType(Constant.VISITOR_TO);
|
| | | mVisitorFrom.setTitle("dasfasdfasdf");
|
| | |
| | | companyNameTv.setText(item.getCompanyName());
|
| | | identity.setText(item.getIdentify());
|
| | | fromPhone.setText(item.getPhone());
|
| | | }
|
| | |
|
| | | public void setIntervieweeInfo(VisitorQueryItem item) {
|
| | | mVisitorTo.setTitle(item.getName());
|
| | | mDepartmentTv.setText("部门");
|
| | | mDutyTv.setText("财务");
|
| | | mPhoneTv.setOnClickListener(new View.OnClickListener(){
|
| | | @Override
|
| | | public void onClick(View view) {
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫手机", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | | });
|
| | | mTelTv.setOnClickListener(new View.OnClickListener(){
|
| | | @Override
|
| | | public void onClick(View view) {
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫座机", Toast.LENGTH_SHORT).show();
|
| | | }
|
| | | });
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | | }
|