Merge pull request 'Fixes bug#AL-4556' (!784) from AL-4556 into master
Reviewed-on: adm/VentaBoletosAdm#784 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>master 1.155.1
commit
9058c5b569
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.155.0</version>
|
||||
<version>1.155.1</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -59,23 +59,11 @@ public class InformeViajesOcasionalesExpresosController extends MyGenericForward
|
|||
Date fechaInicio = dtInicio.getValue();
|
||||
if(fechaInicio != null) {
|
||||
buscarExpresos.addFilterGreaterOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.inicioFecha(fechaInicio));
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error.dataObrigatoria"),
|
||||
Labels.getLabel("winInformeViajesOcasionalesExpresos.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
Date fechaFin = dtFim.getValue();
|
||||
if(fechaFin != null) {
|
||||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
||||
}else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Error.dataObrigatoria"),
|
||||
Labels.getLabel("winInformeViajesOcasionalesExpresos.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
|
||||
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.util.Date;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -63,5 +64,4 @@ public class SeguimientoExpresosController extends MyGenericForwardComposer{
|
|||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -60,7 +60,7 @@ public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
|||
lc.setParent(item);
|
||||
}
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getValorCotizacion().toString()); //Valor expreso
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getValorCotizacion() == null ? "N/A" : expresos.getSolicitudExpresoId().getValorCotizacion().toString()); //Valor expreso
|
||||
lc.setParent(item);
|
||||
|
||||
//Usuario
|
||||
|
@ -72,16 +72,16 @@ public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
|||
lc = new Listcell(expresos.getTrayectoExpresoId().toString()); //ID trayecto
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadOrigen().getDescparada()); //Origen
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadOrigen().getDescparada() == null ? "" : expresos.getSolicitudExpresoId().getCiudadOrigen().getDescparada()); //Origen
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadDestino().getDescparada()); //Destino
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getCiudadDestino().getDescparada() == null ? "" : expresos.getSolicitudExpresoId().getCiudadOrigen().getDescparada()); //Destino
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Observaciones
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda(), "dd/MM/yyyy hh:mm:ss")); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(""); //Servicio
|
||||
|
|
|
@ -35,10 +35,10 @@ public class RenderSeguimientoExpresos implements ListitemRenderer {
|
|||
lc = new Listcell(expresos.getSolicitudExpresoId().getIndViajeRedondo() == true ? Labels.getLabel("expressosPorCotizarController.lhIdaRegreso.label") : Labels.getLabel("expresosController.lbl.idaVuelta")); //Ruta
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraIda(), "dd/MM/yyyy hh:mm:ss")); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraRegreso()), "dd/MM/yyyy hh:mm:ss"); //Fecha salida
|
||||
lc = new Listcell(DateUtil.getStringDate(expresos.getSolicitudExpresoId().getFechaHoraRegreso(), "dd/MM/yyyy hh:mm:ss")); //Fecha salida
|
||||
lc.setParent(item);
|
||||
|
||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDescSitioPartidaIda());
|
||||
|
|
|
@ -26,12 +26,14 @@
|
|||
value="${c:l('lb.dataIni.value')}" />
|
||||
<datebox id="dtInicio" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
format="dd/MM/yyyy" maxlength="10"
|
||||
constraint="no empty" />
|
||||
<label
|
||||
value="${c:l('lb.dataFin.value')}" />
|
||||
<datebox id="dtFim" width="40%" mold="rounded"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||
format="dd/MM/yyyy" maxlength="10" />
|
||||
format="dd/MM/yyyy" maxlength="10"
|
||||
constraint="no empty" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||
<button id="btnImprimir" image="/gui/img/pdf.png"
|
||||
label="${c:l('tooltiptext.btnImprimir')}"/>
|
||||
</toolbar>
|
||||
<paging id="pagingExpresos" pageSize="20" />
|
||||
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
|
|
Loading…
Reference in New Issue