package com.uas.platform.b2b.model;

import java.util.Date;

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

import org.codehaus.jackson.annotate.JsonIgnore;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * 平台里面，供应商发起的发货单明细（明细表角度）
 * 
 * @author yingp
 * 
 */
@Table(name = "sale$senditemverify")
@Entity
public class SaleSendItemVerify {

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

	/**
	 * 客户UU号（为了好查询）
	 */
	@Column(name = "siv_custuu")
	private Long custUU;
	
	/**
	 * 检验单号
	 */
	@Column(name = "siv_code")
	private String code;
	
	/**
	 * 检验数量
	 */
	@Column(name = "siv_qty")
	private Double qty;
	
	/**
	 * 检验合格数
	 */
	@Column(name = "siv_okqty")
	private Double okQty;
	
	/**
	 * 检验不合格数
	 */
	@Column(name = "siv_notokqty")
	private Double notokQty;
	
	/**
	 * 检验日期
	 */
	@Column(name = "siv_date")
	private Date date;
	
	/**
	 * 检验员
	 */
	@Column(name = "siv_testman")
	private String testman;
	
	/**
	 * 备注
	 */
	@Column(name = "siv_remark")
	private String remark;
	
	/**
	 * 来源ID（买方ERP）
	 */
	@Column(name = "siv_sourceid")
	private Long sourceId;
	
	/**
	 * 发货单明细ID
	 */
	@Column(name = "siv_senditemid")
	private Long sendItemId;

	public Long getId() {
		return id;
	}

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

	@JsonIgnore
	@JSONField(serialize = false)
	public Long getCustUU() {
		return custUU;
	}

	public void setCustUU(Long custUU) {
		this.custUU = custUU;
	}

	public String getCode() {
		return code;
	}

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

	public Double getQty() {
		return qty;
	}

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

	public Double getOkQty() {
		return okQty;
	}

	public void setOkQty(Double okQty) {
		this.okQty = okQty;
	}

	public Double getNotokQty() {
		return notokQty;
	}

	public void setNotokQty(Double notokQty) {
		this.notokQty = notokQty;
	}

	public Date getDate() {
		return date;
	}

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

	public String getTestman() {
		return testman;
	}

	public void setTestman(String testman) {
		this.testman = testman;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getSourceId() {
		return sourceId;
	}

	public void setSourceId(Long sourceId) {
		this.sourceId = sourceId;
	}

	public Long getSendItemId() {
		return sendItemId;
	}

	public void setSendItemId(Long sendItemId) {
		this.sendItemId = sendItemId;
	}
	
	
	
}
