correcao (bug 5967)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@40914 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
ca3909ecf7
commit
e6b3c5693f
|
@ -92,6 +92,12 @@ public class ReservacionCtrl implements Serializable {
|
|||
private List<ReservacionClase> reservacionClaseList;
|
||||
@OneToMany(mappedBy = "reservacionCtrl", cascade = CascadeType.ALL)
|
||||
private List<ReservacionPuntoVenta> reservacionPuntoVentaList;
|
||||
@Column(name = "TIEMPOLIBERACIONCADUC")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date tiempoliberacionCaduc;
|
||||
@Column(name = "TIEMPOLIBERACIONINTERNETCADUC")
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date tiempoliberacioninternetCaduc;
|
||||
|
||||
public ReservacionCtrl() {
|
||||
}
|
||||
|
@ -384,6 +390,56 @@ public class ReservacionCtrl implements Serializable {
|
|||
this.descConfig = descConfig;
|
||||
}
|
||||
|
||||
public Date getTiempoliberacionCaduc() {
|
||||
return tiempoliberacionCaduc;
|
||||
}
|
||||
|
||||
public void setTiempoliberacionCaduc(Date tiempoliberacionCaduc) {
|
||||
this.tiempoliberacionCaduc = tiempoliberacionCaduc;
|
||||
}
|
||||
|
||||
public Date getTiempoliberacioninternetCaduc() {
|
||||
return tiempoliberacioninternetCaduc;
|
||||
}
|
||||
|
||||
public void setTiempoliberacioninternetCaduc(Date tiempoliberacioninternetCaduc) {
|
||||
this.tiempoliberacioninternetCaduc = tiempoliberacioninternetCaduc;
|
||||
}
|
||||
|
||||
public void setTiempoliberacionCaduc(Integer hora, Integer minuto) {
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.set(Calendar.YEAR, 1970);
|
||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||
c.set(Calendar.MONTH, 0);
|
||||
c.set(Calendar.HOUR_OF_DAY, 0);
|
||||
c.set(Calendar.MINUTE, 0);
|
||||
c.set(Calendar.MILLISECOND, 0);
|
||||
c.set(Calendar.SECOND, 0);
|
||||
c.set(Calendar.HOUR_OF_DAY, 0);
|
||||
c.set(Calendar.MINUTE, 0);
|
||||
c.add(Calendar.HOUR_OF_DAY, hora);
|
||||
c.add(Calendar.MINUTE, minuto);
|
||||
|
||||
setTiempoliberacionCaduc(c.getTime());
|
||||
}
|
||||
|
||||
public void setTiempoliberacioninternetCaduc(Integer hora, Integer minuto) {
|
||||
Calendar c = Calendar.getInstance();
|
||||
c.set(Calendar.YEAR, 1970);
|
||||
c.set(Calendar.DAY_OF_MONTH, 1);
|
||||
c.set(Calendar.MONTH, 0);
|
||||
c.set(Calendar.HOUR_OF_DAY, 0);
|
||||
c.set(Calendar.MINUTE, 0);
|
||||
c.set(Calendar.MILLISECOND, 0);
|
||||
c.set(Calendar.SECOND, 0);
|
||||
c.set(Calendar.HOUR_OF_DAY, 0);
|
||||
c.set(Calendar.MINUTE, 0);
|
||||
c.add(Calendar.HOUR_OF_DAY, hora);
|
||||
c.add(Calendar.MINUTE, minuto);
|
||||
|
||||
setTiempoliberacioninternetCaduc(c.getTime());
|
||||
}
|
||||
|
||||
public List<ReservacionPuntoVenta> getReservacionPuntoVentaList() {
|
||||
List<ReservacionPuntoVenta> rpvList = new ArrayList<ReservacionPuntoVenta>();
|
||||
for (ReservacionPuntoVenta rpv : this.reservacionPuntoVentaList) {
|
||||
|
|
Loading…
Reference in New Issue