package com.jasamedika.medifirst2000.entities;

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

import org.hibernate.envers.Audited;

import com.jasamedika.medifirst2000.base.BaseMaster;
import com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;import org.hibernate.envers.Audited;

/**
 *  class PenawaranHarga_T
 * 
 * @author Adik
 */
@Entity //@Audited
@Table(name = "PenawaranHargaSupplier_T")
public class PenawaranHargaSupplier extends BaseTransaction {
	
	@ManyToOne
	@JoinColumn(name = "ObjectPenawaranHargaFk")
	@Caption(value="Object Penawaran harga")
	private PenawaranHarga penawaranHarga;

	@Column(name = "ObjectPenawaranHargaFk", insertable=false,updatable=false)
	private String penawaranHargaId;
	
	@ManyToOne
	@JoinColumn(name = "ObjectKartuPengendaliDetail")
	@Caption(value="Kartu Pengendali Detail")
	private KartuPengendaliDetail kartuPengendaliDetail;

	@Column(name = "ObjectKartuPengendaliDetail", insertable=false,updatable=false)
	private String kartuPengendaliDetailId;
	
	@Column(name = "no")
	@Caption(value = "no")
    private String no;
    
	@Column(name = "namaDagang")
	@Caption(value = "namaDagang")
    private String namaDagang;
    
	@Column(name = "kemasan")
	@Caption(value = "kemasan")
    private String kemasan;
    
	@Column(name = "isiKemasan")
	@Caption(value = "isiKemasan")
    private Double isiKemasan;
    
	@Column(name = "hargaSatuanTerkecil")
	@Caption(value = "hargaSatuanTerkecil")
    private Double hargaSatuanTerkecil;
    
	@Column(name = "tipeObat")
	@Caption(value = "tipeObat")
    private String tipeObat;
    
	@Column(name = "spesifikasi")
	@Caption(value = "spesifikasi")
    private String spesifikasi;

	public PenawaranHarga getPenawaranHarga() {
		return penawaranHarga;
	}

	public void setPenawaranHarga(PenawaranHarga penawaranHarga) {
		this.penawaranHarga = penawaranHarga;
	}

	public String getPenawaranHargaId() {
		return penawaranHargaId;
	}

	public void setPenawaranHargaId(String penawaranHargaId) {
		this.penawaranHargaId = penawaranHargaId;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getNamaDagang() {
		return namaDagang;
	}

	public void setNamaDagang(String namaDagang) {
		this.namaDagang = namaDagang;
	}

	public String getKemasan() {
		return kemasan;
	}

	public void setKemasan(String kemasan) {
		this.kemasan = kemasan;
	}

	public Double getIsiKemasan() {
		return isiKemasan;
	}

	public void setIsiKemasan(Double isiKemasan) {
		this.isiKemasan = isiKemasan;
	}

	public Double getHargaSatuanTerkecil() {
		return hargaSatuanTerkecil;
	}

	public void setHargaSatuanTerkecil(Double hargaSatuanTerkecil) {
		this.hargaSatuanTerkecil = hargaSatuanTerkecil;
	}

	public String getTipeObat() {
		return tipeObat;
	}

	public void setTipeObat(String tipeObat) {
		this.tipeObat = tipeObat;
	}

	public String getSpesifikasi() {
		return spesifikasi;
	}

	public void setSpesifikasi(String spesifikasi) {
		this.spesifikasi = spesifikasi;
	}

	public KartuPengendaliDetail getKartuPengendaliDetail() {
		return kartuPengendaliDetail;
	}

	public void setKartuPengendaliDetail(KartuPengendaliDetail kartuPengendaliDetail) {
		this.kartuPengendaliDetail = kartuPengendaliDetail;
	}

	public String getKartuPengendaliDetailId() {
		return kartuPengendaliDetailId;
	}

	public void setKartuPengendaliDetailId(String kartuPengendaliDetailId) {
		this.kartuPengendaliDetailId = kartuPengendaliDetailId;
	}


}

