package com.jasamedika.medifirst2000.entities;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

/**
 *  class StrukPelayananDNoBatch
 * 
 * @author Generator
 */
@Entity
@Table(name = "StrukPelayananDNoBatch_T")
public class StrukPelayananDNoBatch extends BaseTransaction {
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectAsalProdukFk")
	@NotNull(message="Object Asal Produk Harus Diisi")
	@Caption(value="Object Asal Produk")
	private AsalProduk kdasalproduk;

	@Column(name = "ObjectAsalProdukFk", insertable=false,updatable=false)
	private Integer ObjectAsalProdukId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectProdukFk")
	@NotNull(message="Object Produk Harus Diisi")
	@Caption(value="Object Produk")
	private Produk kdproduk;

	@Column(name = "ObjectProdukFk", insertable=false,updatable=false)
	private Integer ObjectProdukId;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "ObjectRuanganFk")
	@NotNull(message="Object Ruangan Harus Diisi")
	@Caption(value="Object Ruangan")
	private Ruangan kdruangan;

	@Column(name = "ObjectRuanganFk", insertable=false,updatable=false)
	private Integer ObjectRuanganId;

	@Caption(value="Keterangan Lainnya")
	@Column(name = "KeteranganLainnya", nullable = true , length = 150)
	private String keteranganlainnya;

	@Caption(value="No Batch")
	@Column(name = "NoBatch", nullable = false , length = 50)
	private String nobatch;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "NoClosingFk")
	@Caption(value="No Closing")
	private StrukClosing noclosing;

	@Column(name = "NoClosingFk", insertable=false,updatable=false)
	private String NoClosingId;

	@Caption(value="No Kantong Kemasan")
	@Column(name = "NoKantongKemasan", nullable = true , length = 15)
	private String nokantongkemasan;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name = "NoStrukFk")
	@NotNull(message="No Struk Harus Diisi")
	@Caption(value="No Struk")
	private StrukPelayananDetail nostruk;

	@Column(name = "NoStrukFk", insertable=false,updatable=false)
	private String NoStrukId;

	@Caption(value="Qty Produk")
	@Column(name = "QtyProduk", nullable = false )
	private Double qtyproduk;
	
	@Caption(value="Volumen")
	@Column(name = "Volumen", nullable = false )
	private Double volumen;

	public Double getVolumen() {
		return volumen;
	}

	public void setVolumen(Double volumen) {
		this.volumen = volumen;
	}

	@Caption(value="Qty Produk Out Ext")
	@Column(name = "QtyProdukOutExt", nullable = false )
	private Double qtyprodukoutext;

	@Caption(value="Qty Produk Out Int")
	@Column(name = "QtyProdukOutInt", nullable = false )
	private Double qtyprodukoutint;

	@Caption(value="Tanggal Kadaluarsa")
	@Column(name = "TglKadaluarsa", nullable = true )
	private Date tglkadaluarsa;

	@Caption(value="Tanggal Pelayanan")
	@Column(name = "TglPelayanan", nullable = false )
	private Date tglpelayanan;

	@Caption(value="Tanggal Produksi")
	@Column(name = "TglProduksi", nullable = true )
	private Date tglproduksi;

	@ManyToOne
	@JoinColumn(name = "ObjectStatusDarahFk")
	@Caption(value="Status Darah")
	private StatusDarah statusDarah;

	@Column(name = "ObjectStatusDarahFk", insertable=false,updatable=false)
	private Integer statusDarahId;

	@ManyToOne
	@JoinColumn(name = "ObjectSupplierDarahFk")
	@Caption(value="Supplier Darah")
	private SupplierDarah supplierDarah;
	
	@Column(name = "ObjectSupplierDarahFk", insertable=false,updatable=false)
	private Integer supplierDarahId;

	@ManyToOne
	@JoinColumn(name = "ObjectLokasiDarahFk")
	@Caption(value="Lokasi Darah")
	private LokasiDarah lokasiDarah;

	@Column(name = "ObjectLokasiDarahFk", insertable=false,updatable=false)
	private Integer lokasiDarahId;

	public AsalProduk getKdasalproduk() {
		return kdasalproduk;
	}

	public void setKdasalproduk(AsalProduk kdasalproduk) {
		this.kdasalproduk = kdasalproduk;
	}

	public Integer getObjectAsalProdukId() {
		return ObjectAsalProdukId;
	}

	public void setObjectAsalProdukId(Integer objectAsalProdukId) {
		ObjectAsalProdukId = objectAsalProdukId;
	}

	public Produk getKdproduk() {
		return kdproduk;
	}

	public void setKdproduk(Produk kdproduk) {
		this.kdproduk = kdproduk;
	}

	public Integer getObjectProdukId() {
		return ObjectProdukId;
	}

	public void setObjectProdukId(Integer objectProdukId) {
		ObjectProdukId = objectProdukId;
	}

	public Ruangan getKdruangan() {
		return kdruangan;
	}

	public void setKdruangan(Ruangan kdruangan) {
		this.kdruangan = kdruangan;
	}

	public Integer getObjectRuanganId() {
		return ObjectRuanganId;
	}

	public void setObjectRuanganId(Integer objectRuanganId) {
		ObjectRuanganId = objectRuanganId;
	}

	public String getKeteranganlainnya() {
		return keteranganlainnya;
	}

	public void setKeteranganlainnya(String keteranganlainnya) {
		this.keteranganlainnya = keteranganlainnya;
	}

	public String getNobatch() {
		return nobatch;
	}

	public void setNobatch(String nobatch) {
		this.nobatch = nobatch;
	}

	public StrukClosing getNoclosing() {
		return noclosing;
	}

	public void setNoclosing(StrukClosing noclosing) {
		this.noclosing = noclosing;
	}

	public String getNoClosingId() {
		return NoClosingId;
	}

	public void setNoClosingId(String noClosingId) {
		NoClosingId = noClosingId;
	}

	public String getNokantongkemasan() {
		return nokantongkemasan;
	}

	public void setNokantongkemasan(String nokantongkemasan) {
		this.nokantongkemasan = nokantongkemasan;
	}

	public StrukPelayananDetail getNostruk() {
		return nostruk;
	}

	public void setNostruk(StrukPelayananDetail nostruk) {
		this.nostruk = nostruk;
	}

	public String getNoStrukId() {
		return NoStrukId;
	}

	public void setNoStrukId(String noStrukId) {
		NoStrukId = noStrukId;
	}

	public Double getQtyproduk() {
		return qtyproduk;
	}

	public void setQtyproduk(Double qtyproduk) {
		this.qtyproduk = qtyproduk;
	}

	public Double getQtyprodukoutext() {
		return qtyprodukoutext;
	}

	public void setQtyprodukoutext(Double qtyprodukoutext) {
		this.qtyprodukoutext = qtyprodukoutext;
	}

	public Double getQtyprodukoutint() {
		return qtyprodukoutint;
	}

	public void setQtyprodukoutint(Double qtyprodukoutint) {
		this.qtyprodukoutint = qtyprodukoutint;
	}

	public Date getTglkadaluarsa() {
		return tglkadaluarsa;
	}

	public void setTglkadaluarsa(Date tglkadaluarsa) {
		this.tglkadaluarsa = tglkadaluarsa;
	}

	public Date getTglpelayanan() {
		return tglpelayanan;
	}

	public void setTglpelayanan(Date tglpelayanan) {
		this.tglpelayanan = tglpelayanan;
	}

	public Date getTglproduksi() {
		return tglproduksi;
	}

	public void setTglproduksi(Date tglproduksi) {
		this.tglproduksi = tglproduksi;
	}

	public StatusDarah getStatusDarah() {
		return statusDarah;
	}

	public void setStatusDarah(StatusDarah statusDarah) {
		this.statusDarah = statusDarah;
	}

	public SupplierDarah getSupplierDarah() {
		return supplierDarah;
	}

	public void setSupplierDarah(SupplierDarah supplierDarah) {
		this.supplierDarah = supplierDarah;
	}

	public LokasiDarah getLokasiDarah() {
		return lokasiDarah;
	}

	public void setLokasiDarah(LokasiDarah lokasiDarah) {
		this.lokasiDarah = lokasiDarah;
	}

}

