xuxiuxi
2017-04-05 34b7c20da820761c393392a80ad1351a3e414c29
VisitFace/DemoForBsk/app/src/main/java/cn/com/basic/face/widget/phonecall/PhoneCallRightIntervieweeCell.java
@@ -10,26 +10,27 @@
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.util.AppApi;
import cn.com.basic.face.widget.checkin.CheckInIntervieweeCell;
public class PhoneCallRightIntervieweeCell extends LinearLayout {
    public void setIntervieweeInfo(PhoneCallFragment.PhoneCallQueryItem item) {
        setIntervieweeInfo(JSON.parseObject(JSON.toJSONString(item), CheckInQueryItem.class));
    }
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_name)
    private TextView fragment_check_in_right_interviewee_cell_name;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_dept)
    private TextView fragment_check_in_right_interviewee_cell_dept;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_post)
    private TextView fragment_check_in_right_interviewee_cell_post;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo)
    private ImageView fragment_check_in_right_interviewee_cell_photo;
    private CheckInQueryItem item = new CheckInQueryItem();
    private PhoneCallFragment.PhoneCallQueryItem item = new PhoneCallFragment.PhoneCallQueryItem();
    public PhoneCallRightIntervieweeCell(Context context) {
        super(context);
@@ -42,26 +43,13 @@
        ViewUtils.inject(this, view);
    }
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_name)
    private TextView fragment_check_in_right_interviewee_cell_name;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_dept)
    private TextView fragment_check_in_right_interviewee_cell_dept;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_post)
    private TextView fragment_check_in_right_interviewee_cell_post;
    @ViewInject(R.id.fragment_check_in_right_interviewee_cell_photo)
    private ImageView fragment_check_in_right_interviewee_cell_photo;
    public void setIntervieweeInfo(final CheckInQueryItem item) {
    public void setIntervieweeInfo(final PhoneCallFragment.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()));
    }
    public CheckInQueryItem getInterviewee() {
        return item;
    }
    @OnClick(R.id.fragment_check_in_right_interviewee_cell_call_tel)