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

public class KeluhanPelangganVO extends BaseMasterVO {
	
	@NotNull(message="Nama Pasien tidak boleh kosong")
	@Column(name = "NamaPasien", nullable = false , length = 200)
	@Caption(value="Nama Pasien")
	private String namaPasien;
	
	@NotNull(message="No RM tidak boleh kosong")
	@Column(name = "NoRm", nullable = false , length = 200)
	@Caption(value="No RM")
	private String noRm;
	
	@ManyToOne
	@JoinColumn(name = "ObjectRuanganFk")
	@NotNull(message="Ruangan tidak boleh kosong")
	@Caption(value="Ruangan")
	private RuanganVO ruangan;

	@Column(name = "Alamat", nullable = true)
	@Caption(value="Alamat")
	private String alamat;
	
	@NotNull(message="Email tidak boleh kosong")
	@Column(name = "Email", nullable = true , length = 200)
	@Caption(value="Email")
	private String email;
	
	@Column(name = "NoTlp", nullable = true, length = 200)
	@Caption(value="NoTlp")
	private String noTlp;
	
	@ManyToOne
	@JoinColumn(name = "ObjectPekerjaanFk")
	@Caption(value="Pekerjaan")
	private PekerjaanVO pekerjaan;

	@Column(name = "Keluhan", nullable = true , length = 200)
	@Caption(value="Keluhan")
	private String keluhan;
	
	@Column(name = "Saran", nullable = true , length = 200)
	@Caption(value="Saran")
	private String saran;
	
	@Column(name = "Umur", nullable = true)
	@Caption(value="Umur")
	private Integer umur;
	
	//add by iwankasan 160617
	@Caption(value = "Tgl Keluhan")
	private Date tglKeluhan;
	
	//add by iwankasan 160617
	@Caption(value = "Tgl Order")
	private Date tglOrder;
	
	public Integer getUmur() {
		return umur;
	}

	public void setUmur(Integer umur) {
		this.umur = umur;
	}
	
	public String getNamaPasien() {
		return namaPasien;
	}

	public void setNamaPasien(String namaPasien) {
		this.namaPasien = namaPasien;
	}

	public String getNoRm() {
		return noRm;
	}

	public void setNoRm(String noRm) {
		this.noRm = noRm;
	}

	public RuanganVO getRuangan() {
		return ruangan;
	}

	public void setRuangan(RuanganVO ruangan) {
		this.ruangan = ruangan;
	}

	public String getAlamat() {
		return alamat;
	}

	public void setAlamat(String alamat) {
		this.alamat = alamat;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getNoTlp() {
		return noTlp;
	}

	public void setNoTlp(String noTlp) {
		this.noTlp = noTlp;
	}

	public PekerjaanVO getPekerjaan() {
		return pekerjaan;
	}

	public void setPekerjaan(PekerjaanVO pekerjaan) {
		this.pekerjaan = pekerjaan;
	}

	public String getKeluhan() {
		return keluhan;
	}

	public void setKeluhan(String keluhan) {
		this.keluhan = keluhan;
	}

	public String getSaran() {
		return saran;
	}

	public void setSaran(String saran) {
		this.saran = saran;
	}

	public Date getTglKeluhan() {
		return tglKeluhan;
	}

	public void setTglKeluhan(Date tglKeluhan) {
		this.tglKeluhan = tglKeluhan;
	}

	public Date getTglOrder() {
		return tglOrder;
	}

	public void setTglOrder(Date tglOrder) {
		this.tglOrder = tglOrder;
	}
	
	
	
	
}
