| | |
| | | import android.widget.TextView;
|
| | | import android.widget.Toast;
|
| | |
|
| | | import com.alibaba.fastjson.JSON;
|
| | | import com.bsk.zhangbo.demoforbsk.R;
|
| | | import com.lidroid.xutils.ViewUtils;
|
| | | import com.lidroid.xutils.view.annotation.ViewInject;
|
| | | import com.lidroid.xutils.view.annotation.event.OnClick;
|
| | |
|
| | | import cn.com.basic.face.base.MainActivity;
|
| | | import cn.com.basic.face.discern.query.item.CheckInQueryItem;
|
| | | import cn.com.basic.face.service.vo.PhoneCallFragment;
|
| | | import cn.com.basic.face.discern.query.item.PhoneCallQueryItem;
|
| | | import cn.com.basic.face.util.AppApi;
|
| | | import cn.com.basic.face.widget.checkin.CheckInIntervieweeCell;
|
| | |
|
| | | public class PhoneCallRightIntervieweeCell extends LinearLayout {
|
| | |
|
| | |
| | | @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo)
|
| | | private ImageView fragment_check_in_right_interviewee_cell_photo;
|
| | |
|
| | | private PhoneCallFragment.PhoneCallQueryItem item = new PhoneCallFragment.PhoneCallQueryItem();
|
| | | private PhoneCallQueryItem item = new PhoneCallQueryItem();
|
| | |
|
| | | public PhoneCallRightIntervieweeCell(Context context) {
|
| | | super(context);
|
| | |
| | | ViewUtils.inject(this, view);
|
| | | }
|
| | |
|
| | | public void setIntervieweeInfo(final PhoneCallFragment.PhoneCallQueryItem item) {
|
| | | public void setIntervieweeInfo(final PhoneCallQueryItem item) {
|
| | | if (item == null) return;
|
| | | this.item = item;
|
| | | fragment_check_in_right_interviewee_cell_name.setText(item.getName());
|
| | | fragment_check_in_right_interviewee_cell_dept.setText(item.getDeptName());
|
| | | fragment_check_in_right_interviewee_cell_post.setText(item.getPostName());
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGEURL_BASE + item.getImagePath()));
|
| | | fragment_check_in_right_interviewee_cell_photo.setImageURI(Uri.parse(AppApi.IMAGE_URL_BASE + item.getImagePath()));
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_tel)
|
| | | public void fragment_check_in_right_interviewee_cell_call_tel_click(View view) {
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫座机"+item.getPhone(), Toast.LENGTH_SHORT).show();
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫座机"+item.getTel(), Toast.LENGTH_SHORT).show();
|
| | | }
|
| | |
|
| | | @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_mobile)
|
| | | public void fragment_check_in_right_interviewee_cell_call_mobile_click(View view) {
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫手机"+item.getPhone(), Toast.LENGTH_SHORT).show();
|
| | | Toast.makeText(MainActivity.getInstance(), "正在呼叫手机"+item.getMobilePhone(), Toast.LENGTH_SHORT).show();
|
| | | }
|
| | |
|
| | | }
|