package com.uas.platform.b2b.model;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.alibaba.fastjson.annotation.JSONField;

@Table(name = "bar$sendnotify")
@Entity
public class BarSendNotify implements Serializable{

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

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "bsn_id")
	private Long id;
	
	@Column(name = "bsn_barcode")
	private String barcode;
	
	@Column(name = "bsn_barid")
	private String barid;
	
	@Column(name = "bsn_ssid")
	private Long ssid;
	
	@Column(name = "bsn_sscode")
	private String sscode;
	
	/**
	 * 发货单明细表ID
	 */
	@ManyToOne(cascade = CascadeType.REFRESH)
	@JoinColumn(name = "bsn_siid", nullable = false)
	private SaleSendItemAll saleSendItem;
	
	/**
	 * 发货单明细序号
	 */
	@Column(name = "bsn_sinumber")
	private Short sinumber;
	
	@Column(name = "bsn_prodcode")
	private String prodcode;
	
	@Column(name = "bsn_prodid")
	private Long prodid;
	
	/**
	 * 条码数量
	 */
	@Column(name = "bsn_qty")
	private Double qty;
	
	/**
	 * 供应商UU
	 */
	@Column(name = "bsn_vendcode")
	private Long vendcode;
	
	/**
	 * 箱号
	 */
	@Column(name = "bsn_outboxcode")
	private String outboxcode;
	
	@Column(name = "bsn_outboxid")
	private Long outboxid;
	
	/**
	 * （对买家）传输状态
	 */
	@Column(name = "bsn_sendstatus")
	private Short sendStatus;
	
	public Long getId() {
		return id;
	}

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

	public String getBarcode() {
		return barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	public String getBarid() {
		return barid;
	}

	public void setBarid(String barid) {
		this.barid = barid;
	}

	public Long getSsid() {
		return ssid;
	}

	public void setSsid(Long ssid) {
		this.ssid = ssid;
	}

	public String getSscode() {
		return sscode;
	}

	public void setSscode(String sscode) {
		this.sscode = sscode;
	}
	public Short getSinumber() {
		return sinumber;
	}

	public void setSinumber(Short sinumber) {
		this.sinumber = sinumber;
	}

	public String getProdcode() {
		return prodcode;
	}

	public void setProdcode(String prodcode) {
		this.prodcode = prodcode;
	}

	public Long getProdid() {
		return prodid;
	}

	public void setProdid(Long prodid) {
		this.prodid = prodid;
	}

	public Double getQty() {
		return qty;
	}

	public void setQty(Double qty) {
		this.qty = qty;
	}

	public Long getVendcode() {
		return vendcode;
	}

	public void setVendcode(Long vendcode) {
		this.vendcode = vendcode;
	}

	public String getOutboxcode() {
		return outboxcode;
	}

	public void setOutboxcode(String outboxcode) {
		this.outboxcode = outboxcode;
	}

	public Long getOutboxid() {
		return outboxid;
	}

	public void setOutboxid(Long outboxid) {
		this.outboxid = outboxid;
	}

	public String getStatus() {
		return status;
	}

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

	public String getPrintstatus() {
		return printstatus;
	}

	public void setPrintstatus(String printstatus) {
		this.printstatus = printstatus;
	}

	/**
	 * @return the saleSendItem
	 */
	@JsonIgnore
	@JSONField(serialize = false)
	public SaleSendItemAll getSaleSendItem() {
		return saleSendItem;
	}

	/**
	 * @param saleSendItem the saleSendItem to set
	 */
	public void setSaleSendItem(SaleSendItemAll saleSendItem) {
		this.saleSendItem = saleSendItem;
	}

	public Short getSendStatus() {
		return sendStatus;
	}

	public void setSendStatus(Short sendStatus) {
		this.sendStatus = sendStatus;
	}

	@Column(name = "bsn_status")
	private String status;
	
	/**
	 * 打印状态
	 */
	@Column(name = "bsn_printstatus")
	private String printstatus;
	
}
