Ajuste na tela de buscar pricing
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@23943 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
68934d50c4
commit
0af390fbee
|
@ -5,6 +5,7 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.pricing;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -59,8 +60,7 @@ public class BusquedaPricingController extends MyGenericForwardComposer {
|
|||
private Textbox txtNome;
|
||||
private Datebox fechaInicio;
|
||||
private Datebox fechaFin;
|
||||
private static Logger log = Logger
|
||||
.getLogger(BusquedaPricingController.class);
|
||||
private static Logger log = Logger.getLogger(BusquedaPricingController.class);
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -113,15 +113,15 @@ public class BusquedaPricingController extends MyGenericForwardComposer {
|
|||
pricingSearch.addFilterILike("nombPricing", txtNome.getValue()
|
||||
+ "%");
|
||||
}
|
||||
|
||||
if (fechaInicio.getValue() != null) {
|
||||
pricingSearch.addFilterGreaterOrEqual(
|
||||
"pricingVigenciaList.fecinicioviaje", fechaInicio.getValue());
|
||||
|
||||
if (fechaInicio.getValue() != null){
|
||||
pricingSearch.addFilterGreaterOrEqual("pricingVigenciaList.fecinicioviaje", fechaInicio.getValue());
|
||||
}
|
||||
if (fechaFin.getValue() != null) {
|
||||
pricingSearch.addFilterLessOrEqual(
|
||||
"pricingVigenciaList.fecfinviaje", fechaFin.getValue());
|
||||
pricingSearch.addFilterLessOrEqual("pricingVigenciaList.fecfinviaje", fechaFin.getValue());
|
||||
}
|
||||
|
||||
|
||||
|
||||
pricingSearch.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ public class RenderPricing implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yyyy");
|
||||
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yyyy HH:mm");
|
||||
if (!p.getPricingVigenciaList().isEmpty()) {
|
||||
String data = "";
|
||||
for(PricingVigencia pv : p.getPricingVigenciaList()){
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaPricing" title="${c:l('busquedaPricingController.window.title')}"
|
||||
apply="${busquedaPricingController}" contentStyle="overflow:auto"
|
||||
height="520px" width="700px" border="normal" >
|
||||
height="520px" width="720px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaPricingController.btnRefresh.tooltiptext')}" />
|
||||
|
@ -43,9 +43,9 @@
|
|||
|
||||
<label value="${c:l('editarPricingController.vigHoraInicioViaje.value')}"/>
|
||||
<hbox>
|
||||
<datebox width="150px" id="fechaInicio" format="dd/MM/yyyy HH:mm" mold="rounded" lenient="false"/>
|
||||
<datebox width="150px" id="fechaInicio" mold="rounded" lenient="false"/>
|
||||
<label value="${c:l('editarPricingController.vigHoraFinViaje.value')}"/>
|
||||
<datebox width="150px" id="fechaFin" format="dd/MM/yyyy HH:mm" mold="rounded" lenient="false"/>
|
||||
<datebox width="150px" id="fechaFin" mold="rounded" lenient="false"/>
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
|
@ -69,7 +69,7 @@
|
|||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaPricingController.lhEmpresa.label')}"
|
||||
sort="auto(empresa.nombempresa)"/>
|
||||
<listheader image="/gui/img/create_doc.gif" width="160px"
|
||||
<listheader image="/gui/img/create_doc.gif" width="230px"
|
||||
label="${c:l('busquedaPricingController.lhDataInicioFimViagem.label')}"
|
||||
/>
|
||||
</listhead>
|
||||
|
|
Loading…
Reference in New Issue