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 com.jasamedika.medifirst2000.base.BaseTransaction;
import com.jasamedika.medifirst2000.helper.Caption;

@Entity
@Table(name = "PlanningPelayananSistemPetugas_T")
public class PlanningPelayananSistemPetugas extends BaseTransaction {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "noPlanningFk")
	@Caption(value = "No Planning Fk")
	private StrukPlanning kdNoPlanning;
	
	@Column(name = "noPlanningFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String noPlanning;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "noOrderFk")
	@Caption(value = "No Order Fk")
	private StrukOrder kdNoOrder;
	
	@Column(name = "noOrderFk", columnDefinition = "CHAR(32)", insertable = false, updatable = false, nullable = false)
	private String noOrder;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ProdukFk")
	private Produk kdProduk;
	
	@Column(name = "ProdukFk", insertable = false, updatable = false)
	private Integer produkId;
	
	@Column(name = "NoOrder_D")
	private Integer noOrder_D;
	
	@Column(name = "TglPlanning")
	private Date tglPlanning;
		
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PegawaiFk")
	private Pegawai kdPegawai;
	
	@Column(name = "PegawaiFk", insertable = false, updatable = false)
	private Integer pegawaiId;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "JenisPetugasPeFk")
	private JenisPetugasPelaksana kdJenisPetugasPe;
	
	@Column(name = "JenisPetugasPeFk", insertable = false, updatable = false)
	private Integer jenisPetugasId;
	
	@Column(name = "IsPetugasPePJawab")
	private Integer isPetugasPePJawab;
	
	@Column(name = "DeskripsiTugasFungsi", length = 75)
	private String deskripsiTugasFungsi;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PegawaiExecFk")
	private Pegawai kdPegawaiExec;
	
	@Column(name = "PegawaiExecFk", insertable = false, updatable = false)
	private Integer pegawaiExecId;

	@Column(name = "TglPlanningExec")
	private Date tglPlanningExec;
	
	@Column(name = "TglFinishExec")
	private Date tglFinishExec;

	public String getNoPlanning() {
		return noPlanning;
	}

	public void setNoPlanning(String noPlanning) {
		this.noPlanning = noPlanning;
	}

	public String getNoOrder() {
		return noOrder;
	}

	public void setNoOrder(String noOrder) {
		this.noOrder = noOrder;
	}

	public Produk getKdProduk() {
		return kdProduk;
	}

	public void setKdProduk(Produk kdProduk) {
		this.kdProduk = kdProduk;
	}

	public Integer getProdukId() {
		return produkId;
	}

	public void setProdukId(Integer produkId) {
		this.produkId = produkId;
	}

	public Integer getNoOrder_D() {
		return noOrder_D;
	}

	public void setNoOrder_D(Integer noOrder_D) {
		this.noOrder_D = noOrder_D;
	}

	public Date getTglPlanning() {
		return tglPlanning;
	}

	public void setTglPlanning(Date tglPlanning) {
		this.tglPlanning = tglPlanning;
	}

	public Pegawai getKdPegawai() {
		return kdPegawai;
	}

	public void setKdPegawai(Pegawai kdPegawai) {
		this.kdPegawai = kdPegawai;
	}

	public Integer getPegawaiId() {
		return pegawaiId;
	}

	public void setPegawaiId(Integer pegawaiId) {
		this.pegawaiId = pegawaiId;
	}

	public JenisPetugasPelaksana getKdJenisPetugasPe() {
		return kdJenisPetugasPe;
	}

	public void setKdJenisPetugasPe(JenisPetugasPelaksana kdJenisPetugasPe) {
		this.kdJenisPetugasPe = kdJenisPetugasPe;
	}

	public Integer getJenisPetugasId() {
		return jenisPetugasId;
	}

	public void setJenisPetugasId(Integer jenisPetugasId) {
		this.jenisPetugasId = jenisPetugasId;
	}

	public Integer getIsPetugasPePJawab() {
		return isPetugasPePJawab;
	}

	public void setIsPetugasPePJawab(Integer isPetugasPePJawab) {
		this.isPetugasPePJawab = isPetugasPePJawab;
	}

	public String getDeskripsiTugasFungsi() {
		return deskripsiTugasFungsi;
	}

	public void setDeskripsiTugasFungsi(String deskripsiTugasFungsi) {
		this.deskripsiTugasFungsi = deskripsiTugasFungsi;
	}

	public Pegawai getKdPegawaiExec() {
		return kdPegawaiExec;
	}

	public void setKdPegawaiExec(Pegawai kdPegawaiExec) {
		this.kdPegawaiExec = kdPegawaiExec;
	}

	public Integer getPegawaiExecId() {
		return pegawaiExecId;
	}

	public void setPegawaiExecId(Integer pegawaiExecId) {
		this.pegawaiExecId = pegawaiExecId;
	}

	public Date getTglPlanningExec() {
		return tglPlanningExec;
	}

	public void setTglPlanningExec(Date tglPlanningExec) {
		this.tglPlanningExec = tglPlanningExec;
	}

	public Date getTglFinishExec() {
		return tglFinishExec;
	}

	public void setTglFinishExec(Date tglFinishExec) {
		this.tglFinishExec = tglFinishExec;
	}

	public StrukOrder getKdNoOrder() {
		return kdNoOrder;
	}

	public void setKdNoOrder(StrukOrder kdNoOrder) {
		this.kdNoOrder = kdNoOrder;
	}

	public StrukPlanning getKdNoPlanning() {
		return kdNoPlanning;
	}

	public void setKdNoPlanning(StrukPlanning kdNoPlanning) {
		this.kdNoPlanning = kdNoPlanning;
	}
	
}
