diff --git a/src/com/rjconsultores/ventaboletos/entidad/ReservacionCtrl.java b/src/com/rjconsultores/ventaboletos/entidad/ReservacionCtrl.java index a2f9da200..719ea2225 100644 --- a/src/com/rjconsultores/ventaboletos/entidad/ReservacionCtrl.java +++ b/src/com/rjconsultores/ventaboletos/entidad/ReservacionCtrl.java @@ -23,6 +23,8 @@ import javax.persistence.Table; import javax.persistence.Temporal; import javax.persistence.TemporalType; +import org.zkoss.util.resource.Labels; + /** * * @author Administrador @@ -100,6 +102,8 @@ public class ReservacionCtrl implements Serializable { private Date tiempoliberacioninternetCaduc; @Column(name = "INDTIPORESERVA") private Boolean indTipoReserva; + @Column(name = "INDSEMLIBAUTOMATICA") + private Boolean indSemLiberacaoAutomatica; public ReservacionCtrl() { } @@ -488,4 +492,23 @@ public class ReservacionCtrl implements Serializable { public void setIndTipoReserva(Boolean indTipoReserva) { this.indTipoReserva = indTipoReserva; } + + public Boolean getIndSemLiberacaoAutomatica() { + return indSemLiberacaoAutomatica; + } + + public void setIndSemLiberacaoAutomatica(Boolean indSemLiberacaoAutomatica) { + this.indSemLiberacaoAutomatica = indSemLiberacaoAutomatica; + } + + public String getDescTipoReserva() { + if(getIndSemLiberacaoAutomatica() != null && getIndSemLiberacaoAutomatica()) { + return Labels.getLabel("editarConfiguracionReservacionController.ra3.value"); + } else if(getIndTipoReserva() != null && getIndTipoReserva()) { + return Labels.getLabel("editarConfiguracionReservacionController.ra2.value"); + } else { + return Labels.getLabel("editarConfiguracionReservacionController.ra1.value"); + } + } + }