package com.uas.platform.b2b.mobile.model;

import org.hibernate.validator.constraints.Length;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 拜访记录表
 * 
 * @author hejq
 * @time 创建时间：2017年3月27日
 */
@Entity
@Table(name = "mobile$visitrecord")
public class VisitRecord implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "vr_id")
	private Long vr_id;

	/**
	 * 拜访类别
	 */
	@Column(name = "vr_class")
	private String vr_class;

	/**
	 * 编号
	 */
	@Column(name = "vr_code")
	private String code;

	/**
	 * 录入日期
	 */
	@Column(name = "vr_date")
	private Date vr_date;

	/**
	 * 开始时间
	 */
	@Column(name = "vr_startdate")
	private Date vr_startdate;

	/**
	 * 结束时间
	 */
	@Column(name = "vr_enddate")
	private Date vr_enddate;

	/**
	 * 录入人uu
	 */
	@Column(name = "vr_emuu")
	private Long emuu;

	/**
	 * 录入人姓名
	 */
	@Column(name = "vr_emname")
	private String vr_emname;

	/**
	 * 企业uu
	 */
	@Column(name = "vr_enuu")
	private Long enuu;

	/**
	 * 状态
	 */
	@Column(name = "vr_status")
	private String status;

	/**
	 * 状态码
	 */
	@Column(name = "vr_statuscode")
	private String statuscode;

	/**
	 * 拜访类型
	 */
	@Column(name = "vr_title")
	private String vr_title;
	
	/**
	 * 拜访内容
	 */
	@Column(name = "vr_detail")
	@Length(max = 2000)
	private String vr_detail;
	
	/**
	 * 客户编号
	 */
	@Column(name = "vr_cucode")
	private String vr_cucode;
	
	/**
	 * 客户姓名
	 */
	@Column(name = "vr_cuname")
	private String vr_cuname;

	/**
	 * 客户地址
	 */
	@Column(name = "vr_cuaddress")
	@Length(max = 500)
	private String vr_cuaddress;

	/**
	 * 客户联系人
	 */
	@Column(name = "vr_cucontact")
	private String vr_cucontact;

	public Long getVr_id() {
		return vr_id;
	}

	public void setVr_id(Long vr_id) {
		this.vr_id = vr_id;
	}

	public String getVr_class() {
		return vr_class;
	}

	public void setVr_class(String vr_class) {
		this.vr_class = vr_class;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getVr_date() {
		return vr_date;
	}

	public void setVr_date(Date vr_date) {
		this.vr_date = vr_date;
	}

	public Date getVr_startdate() {
		return vr_startdate;
	}

	public void setVr_startdate(Date vr_startdate) {
		this.vr_startdate = vr_startdate;
	}

	public Date getVr_enddate() {
		return vr_enddate;
	}

	public void setVr_enddate(Date vr_enddate) {
		this.vr_enddate = vr_enddate;
	}

	public Long getEmuu() {
		return emuu;
	}

	public void setEmuu(Long emuu) {
		this.emuu = emuu;
	}

	public String getVr_emname() {
		return vr_emname;
	}

	public void setVr_emname(String vr_emname) {
		this.vr_emname = vr_emname;
	}

	public Long getEnuu() {
		return enuu;
	}

	public void setEnuu(Long enuu) {
		this.enuu = enuu;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatuscode() {
		return statuscode;
	}

	public void setStatuscode(String statuscode) {
		this.statuscode = statuscode;
	}

	public String getVr_title() {
		return vr_title;
	}

	public void setVr_title(String vr_title) {
		this.vr_title = vr_title;
	}

	public String getVr_detail() {
		return vr_detail;
	}

	public void setVr_detail(String vr_detail) {
		this.vr_detail = vr_detail;
	}

	public String getVr_cucode() {
		return vr_cucode;
	}

	public void setVr_cucode(String vr_cucode) {
		this.vr_cucode = vr_cucode;
	}

	public String getVr_cuname() {
		return vr_cuname;
	}

	public void setVr_cuname(String vr_cuname) {
		this.vr_cuname = vr_cuname;
	}

	public String getVr_cuaddress() {
		return vr_cuaddress;
	}

	public void setVr_cuaddress(String vr_cuaddress) {
		this.vr_cuaddress = vr_cuaddress;
	}

	public String getVr_cucontact() {
		return vr_cucontact;
	}

	public void setVr_cucontact(String vr_cucontact) {
		this.vr_cucontact = vr_cucontact;
	}

}
