From 7b9b9af884b2b7441c71d780c9e91030b128dcf7 Mon Sep 17 00:00:00 2001 From: gleimar Date: Fri, 22 Feb 2013 17:23:13 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24588 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../componente/esquemaoperacional/GridRutaTramo.java | 10 +++++----- .../tarifas/BusquedaTaxaEmbarqueKmController.java | 1 - .../tarifas/EditarTaxaEmbarqueKmController.java | 12 +++++------- web/WEB-INF/i3-label_pt_BR.label | 2 +- .../esquema_operacional/selecionarServicosGerar.zul | 4 ++-- 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/componente/esquemaoperacional/GridRutaTramo.java b/src/java/com/rjconsultores/ventaboletos/web/gui/componente/esquemaoperacional/GridRutaTramo.java index 266ad449d..b4885e1db 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/componente/esquemaoperacional/GridRutaTramo.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/componente/esquemaoperacional/GridRutaTramo.java @@ -39,7 +39,7 @@ import com.rjconsultores.ventaboletos.entidad.TramoServicio; import com.rjconsultores.ventaboletos.entidad.Via; import com.rjconsultores.ventaboletos.service.TramoService; import com.rjconsultores.ventaboletos.service.TramoServicioService; -import com.rjconsultores.ventaboletos.utilerias.DateUtil.Hora; +import com.rjconsultores.ventaboletos.utilerias.HoraSistema; import com.rjconsultores.ventaboletos.vo.esquemaoperacional.SecuenciaRutaTramoVO; import com.rjconsultores.ventaboletos.web.utilerias.ConstraintNumberBD; import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria; @@ -372,7 +372,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl { if (cboVia.getSelectedItem() != null) { BigDecimal kmRealAntigo = secuenciaRutaTramoVO.getKmReal(); - Hora tiempoRecorridoAntigo = secuenciaRutaTramoVO.getTiempoRecorrido(); + HoraSistema tiempoRecorridoAntigo = secuenciaRutaTramoVO.getTiempoRecorrido(); secuenciaRutaTramoVO.setVia((Via) cboVia.getSelectedItem().getValue()); llenarTramo(secuenciaRutaTramoVO); @@ -439,7 +439,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl { hbox.appendChild(spMinuto); if (secuenciaRutaTramoVO.getTiempoRecorrido() != null) { - Hora hora = secuenciaRutaTramoVO.getTiempoRecorrido(); + HoraSistema hora = secuenciaRutaTramoVO.getTiempoRecorrido(); spHora.setValue(hora.getHora()); spMinuto.setValue(hora.getMinuto()); } @@ -469,7 +469,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl { List lsParadas = new ArrayList(); BigDecimal totalKmRealRemovido = BigDecimal.ZERO; - Hora totalTiempoRecorridoRemovido = new Hora(); + HoraSistema totalTiempoRecorridoRemovido = new HoraSistema(); for (SecuenciaRutaTramoVO s : lsSecuenciaRutaTramoVO) { if (!s.getOrigen().equals(parada)) { @@ -583,7 +583,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl { } if (tramoServicio != null) { - Hora hora = new Hora(tramoServicio.getTiemporecorrido()); + HoraSistema hora = new HoraSistema(tramoServicio.getTiemporecorrido()); secuenciaRutaTramoVO.setTiempoRecorrido(hora); secuenciaRutaTramoVO.setTramoServicioId(tramoServicio.getTramoservicioId()); } else { diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaTaxaEmbarqueKmController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaTaxaEmbarqueKmController.java index 889f4396c..da0562628 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaTaxaEmbarqueKmController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/BusquedaTaxaEmbarqueKmController.java @@ -88,7 +88,6 @@ public class BusquedaTaxaEmbarqueKmController extends MyGenericForwardComposer { Map args = new HashMap(); args.put("orgao", o); - args.put("taxaEmbarqueKm", null); args.put("taxaEmbarqueKmList", taxaEmbarqueKmList); openWindow("/gui/tarifas/editarTaxaEmbarqueKm.zul", diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarTaxaEmbarqueKmController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarTaxaEmbarqueKmController.java index 9e99a1a6b..e9c519bd1 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarTaxaEmbarqueKmController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarTaxaEmbarqueKmController.java @@ -4,11 +4,8 @@ */ package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas; -import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import java.util.ArrayList; import java.util.Calendar; -import java.util.Collections; -import java.util.Comparator; import java.util.List; import org.apache.log4j.Logger; @@ -21,7 +18,9 @@ import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zul.Button; +import org.zkoss.zul.Intbox; +import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente; import com.rjconsultores.ventaboletos.entidad.TaxaEmbarqueKm; import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService; import com.rjconsultores.ventaboletos.service.TaxaEmbarqueKmService; @@ -31,7 +30,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTaxaEmbarqueKm; -import org.zkoss.zul.Intbox; /** * @@ -121,8 +119,6 @@ public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer { super.doAfterCompose(comp); orgao = (OrgaoConcedente) Executions.getCurrent().getArg().get("orgao"); - taxaEmbarqueKm = (TaxaEmbarqueKm) Executions.getCurrent().getArg().get("taxaEmbarqueKm"); - taxaEmbarqueKmList.setItemRenderer(new RenderTaxaEmbarqueKm()); lsTaxaEmbarqueKm = new ArrayList(); @@ -203,7 +199,7 @@ public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer { txtValor.getValue(); if (lsTaxaEmbarqueKm.isEmpty()) { - lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao(taxaEmbarqueKm.getOrgaoconcedenteId()); + lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao( (OrgaoConcedente) cmbOrgao.getSelectedItem().getValue()); taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm); } @@ -220,7 +216,9 @@ public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer { Labels.getLabel("editarTaxaEmbarqueKmController.MSG.existe"), Labels.getLabel("editarTaxaEmbarqueKmController.window.title"), Messagebox.OK, Messagebox.INFORMATION); + limparInput(); + return; } diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index f72ab1b71..5d374bf26 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -7,7 +7,7 @@ # . . = XXX #Versao do VentaBoleto: -versao = ADM_20130220_1RC116 +versao = ADM_20130222_1RC117 # MSG Defaut: MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100 diff --git a/web/gui/esquema_operacional/selecionarServicosGerar.zul b/web/gui/esquema_operacional/selecionarServicosGerar.zul index 5a98a1c5e..360d80ea9 100644 --- a/web/gui/esquema_operacional/selecionarServicosGerar.zul +++ b/web/gui/esquema_operacional/selecionarServicosGerar.zul @@ -8,7 +8,7 @@