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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ventaboletosadm</artifactId>
|
<artifactId>ventaboletosadm</artifactId>
|
||||||
<version>1.155.0</version>
|
<version>1.155.1</version>
|
||||||
<packaging>war</packaging>
|
<packaging>war</packaging>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
|
|
|
@ -59,23 +59,11 @@ public class InformeViajesOcasionalesExpresosController extends MyGenericForward
|
||||||
Date fechaInicio = dtInicio.getValue();
|
Date fechaInicio = dtInicio.getValue();
|
||||||
if(fechaInicio != null) {
|
if(fechaInicio != null) {
|
||||||
buscarExpresos.addFilterGreaterOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.inicioFecha(fechaInicio));
|
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();
|
Date fechaFin = dtFim.getValue();
|
||||||
if(fechaFin != null) {
|
if(fechaFin != null) {
|
||||||
buscarExpresos.addFilterLessOrEqual("solicitudExpresoId.fechaSolicitud", DateUtil.fimFecha(fechaFin));
|
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);
|
plwTrayectosExpresos.init(buscarExpresos, expresosList, pagingExpresos);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.expressos;
|
||||||
|
|
||||||
|
import java.sql.SQLException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
@ -63,5 +64,4 @@ public class SeguimientoExpresosController extends MyGenericForwardComposer{
|
||||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||||
refreshLista();
|
refreshLista();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
||||||
lc.setParent(item);
|
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);
|
lc.setParent(item);
|
||||||
|
|
||||||
//Usuario
|
//Usuario
|
||||||
|
@ -72,16 +72,16 @@ public class RenderInformeViajesOcasionales implements ListitemRenderer {
|
||||||
lc = new Listcell(expresos.getTrayectoExpresoId().toString()); //ID trayecto
|
lc = new Listcell(expresos.getTrayectoExpresoId().toString()); //ID trayecto
|
||||||
lc.setParent(item);
|
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.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.setParent(item);
|
||||||
|
|
||||||
lc = new Listcell(""); //Observaciones
|
lc = new Listcell(""); //Observaciones
|
||||||
lc.setParent(item);
|
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.setParent(item);
|
||||||
|
|
||||||
lc = new Listcell(""); //Servicio
|
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 = new Listcell(expresos.getSolicitudExpresoId().getIndViajeRedondo() == true ? Labels.getLabel("expressosPorCotizarController.lhIdaRegreso.label") : Labels.getLabel("expresosController.lbl.idaVuelta")); //Ruta
|
||||||
lc.setParent(item);
|
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.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.setParent(item);
|
||||||
|
|
||||||
lc = new Listcell(expresos.getSolicitudExpresoId().getDescSitioPartidaIda());
|
lc = new Listcell(expresos.getSolicitudExpresoId().getDescSitioPartidaIda());
|
||||||
|
|
|
@ -26,12 +26,14 @@
|
||||||
value="${c:l('lb.dataIni.value')}" />
|
value="${c:l('lb.dataIni.value')}" />
|
||||||
<datebox id="dtInicio" width="40%" mold="rounded"
|
<datebox id="dtInicio" width="40%" mold="rounded"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||||
format="dd/MM/yyyy" maxlength="10" />
|
format="dd/MM/yyyy" maxlength="10"
|
||||||
|
constraint="no empty" />
|
||||||
<label
|
<label
|
||||||
value="${c:l('lb.dataFin.value')}" />
|
value="${c:l('lb.dataFin.value')}" />
|
||||||
<datebox id="dtFim" width="40%" mold="rounded"
|
<datebox id="dtFim" width="40%" mold="rounded"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyDatebox"
|
||||||
format="dd/MM/yyyy" maxlength="10" />
|
format="dd/MM/yyyy" maxlength="10"
|
||||||
|
constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
|
|
@ -38,8 +38,6 @@
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||||
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
label="${c:l('tooltiptext.btnPesquisa')}"/>
|
||||||
<button id="btnImprimir" image="/gui/img/pdf.png"
|
|
||||||
label="${c:l('tooltiptext.btnImprimir')}"/>
|
|
||||||
</toolbar>
|
</toolbar>
|
||||||
<paging id="pagingExpresos" pageSize="20" />
|
<paging id="pagingExpresos" pageSize="20" />
|
||||||
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
<listbox id="expresosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
|
|
Loading…
Reference in New Issue