package com.jasamedika.medifirst2000.vo;

import java.util.Date;

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

import com.jasamedika.medifirst2000.base.vo.BaseTransactionVO;
import com.jasamedika.medifirst2000.helper.Caption;

public class PencatatanSuhuMesinVO extends BaseTransactionVO {

	@Column(name = "Tanggal", nullable = true)
	@Caption(value = "Tanggal")
	private Date tanggal;
	
	@ManyToOne
	@JoinColumn(name = "ObjectMesinFk")
	@NotNull(message = "Mesin tidak boleh kosong") 
	@Caption(value="Object Mesin")
	private MesinVO mesin;
	
	@Column(name = "ObjectMesinFk", insertable = false, updatable = false, nullable = false)
	private Integer mesinId;
	
	@Column(name = "ProgramMesin", nullable = true)
	@Caption(value = "Program Mesin")
	private String programMesin;
	
	@Column(name = "WaktuMulai", nullable = true)
	@Caption(value = "Waktu Mulai")
	private String waktuMulai;
	
	@Column(name = "WaktuSelesai", nullable = true)
	@Caption(value = "Waktu Selesai")
	private String waktuSelesai;
	
	@Column(name = "Suhu", nullable = true)
	@Caption(value = "Suhu")
	private String suhu;
	
	@Column(name = "Tekanan", nullable = true)
	@Caption(value = "Tekanan")
	private String tekanan;
	
	@Column(name = "LamaProses", nullable = true)
	@Caption(value = "Lama Proses")
	private String lamaProses;
	
	@ManyToOne
	@JoinColumn(name = "ObjectPetugasFk")
	@NotNull(message = "Petugas tidak boleh kosong") 
	@Caption(value="Object Petugas")
	private PegawaiVO petugas;
	
	@Column(name = "ObjectPetugasFk", insertable = false, updatable = false, nullable = false)
	private Integer petugasId;
	
	private String keterangan;

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public MesinVO getMesin() {
		return mesin;
	}

	public void setMesin(MesinVO mesin) {
		this.mesin = mesin;
	}

	public String getProgramMesin() {
		return programMesin;
	}

	public void setProgramMesin(String programMesin) {
		this.programMesin = programMesin;
	}

	public String getWaktuMulai() {
		return waktuMulai;
	}

	public void setWaktuMulai(String waktuMulai) {
		this.waktuMulai = waktuMulai;
	}

	public String getWaktuSelesai() {
		return waktuSelesai;
	}

	public void setWaktuSelesai(String waktuSelesai) {
		this.waktuSelesai = waktuSelesai;
	}

	public String getSuhu() {
		return suhu;
	}

	public void setSuhu(String suhu) {
		this.suhu = suhu;
	}

	public String getTekanan() {
		return tekanan;
	}

	public void setTekanan(String tekanan) {
		this.tekanan = tekanan;
	}

	public String getLamaProses() {
		return lamaProses;
	}

	public void setLamaProses(String lamaProses) {
		this.lamaProses = lamaProses;
	}

	public PegawaiVO getPetugas() {
		return petugas;
	}

	public void setPetugas(PegawaiVO petugas) {
		this.petugas = petugas;
	}

	public String getKeterangan() {
		return keterangan;
	}

	public void setKeterangan(String keterangan) {
		this.keterangan = keterangan;
	}
	
	
}
