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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.*;
import java.util.Date;

/**
 * 代采定单
 * 
 * @author hejq
 * @time 创建时间：2017年3月19日
 */
@Entity
@Table(name = "purc$deputyorders")
public class DeputyOrder implements Serializable {

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

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

	/**
	 * 流水号
	 */
	@Column(name = "deo_code")
	private String code;

	/**
	 * 状态
	 */
	@Column(name = "deo_status")
	private String status;
	
	/**
	 * 状态码
	 */
	@Column(name = "deo_statuscode")
	private Integer statuscode;

	/**
	 * 录入状态
	 */
	@Column(name = "deo_entrystatus")
	private String entrystatus;

	/**
	 * ERP下载状态
	 */
	@Column(name = "deo_downloadstatus")
	private String downloadstatus;

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

	/**
	 * 终端供应商名称
	 */
	@Column(name = "deo_tervendor")
	private String tervendor;

	/**
	 * 录入时间
	 */
	@Column(name = "deo_date")
	private Date date;

	/**
	 * 代采企业名称
	 */
	@Column(name = "deo_deputyname")
	private String deputyname;

	/**
	 * 订单编号
	 */
	@Column(name = "deo_salecode")
	private String salecode;

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

    /**
     * 录入企业uu
     */
    @Transient
    private String enName;


    public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

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

	public String getStatus() {
		return status;
	}

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

	public Integer getStatuscode() {
		return statuscode;
	}

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

	public String getEntrystatus() {
		return entrystatus;
	}

	public void setEntrystatus(String entrystatus) {
		this.entrystatus = entrystatus;
	}

	public String getDownloadstatus() {
		return downloadstatus;
	}

	public void setDownloadstatus(String downloadstatus) {
		this.downloadstatus = downloadstatus;
	}

	public Date getEntrydate() {
		return entrydate;
	}

	public void setEntrydate(Date entrydate) {
		this.entrydate = entrydate;
	}

	public String getTervendor() {
		return tervendor;
	}

	public void setTervendor(String tervendor) {
		this.tervendor = tervendor;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getDeputyname() {
		return deputyname;
	}

	public void setDeputyname(String deputyname) {
		this.deputyname = deputyname;
	}

	public String getSalecode() {
		return salecode;
	}

	public void setSalecode(String salecode) {
		this.salecode = salecode;
	}

	public Long getEnuu() {
		return enuu;
	}

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

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }
}
