bug#11689
dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@83971 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
093c41164d
commit
5c999c648f
|
@ -23,6 +23,8 @@ import javax.persistence.Table;
|
||||||
import javax.persistence.Temporal;
|
import javax.persistence.Temporal;
|
||||||
import javax.persistence.TemporalType;
|
import javax.persistence.TemporalType;
|
||||||
|
|
||||||
|
import org.zkoss.util.resource.Labels;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author Administrador
|
* @author Administrador
|
||||||
|
@ -100,6 +102,8 @@ public class ReservacionCtrl implements Serializable {
|
||||||
private Date tiempoliberacioninternetCaduc;
|
private Date tiempoliberacioninternetCaduc;
|
||||||
@Column(name = "INDTIPORESERVA")
|
@Column(name = "INDTIPORESERVA")
|
||||||
private Boolean indTipoReserva;
|
private Boolean indTipoReserva;
|
||||||
|
@Column(name = "INDSEMLIBAUTOMATICA")
|
||||||
|
private Boolean indSemLiberacaoAutomatica;
|
||||||
|
|
||||||
public ReservacionCtrl() {
|
public ReservacionCtrl() {
|
||||||
}
|
}
|
||||||
|
@ -488,4 +492,23 @@ public class ReservacionCtrl implements Serializable {
|
||||||
public void setIndTipoReserva(Boolean indTipoReserva) {
|
public void setIndTipoReserva(Boolean indTipoReserva) {
|
||||||
this.indTipoReserva = 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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue