git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24588 d1611594-4594-4d17-8e1d-87c2c4800839
parent
d9e7dbbdc2
commit
7b9b9af884
|
@ -39,7 +39,7 @@ import com.rjconsultores.ventaboletos.entidad.TramoServicio;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Via;
|
import com.rjconsultores.ventaboletos.entidad.Via;
|
||||||
import com.rjconsultores.ventaboletos.service.TramoService;
|
import com.rjconsultores.ventaboletos.service.TramoService;
|
||||||
import com.rjconsultores.ventaboletos.service.TramoServicioService;
|
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.vo.esquemaoperacional.SecuenciaRutaTramoVO;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.ConstraintNumberBD;
|
import com.rjconsultores.ventaboletos.web.utilerias.ConstraintNumberBD;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||||
|
@ -372,7 +372,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
||||||
if (cboVia.getSelectedItem() != null) {
|
if (cboVia.getSelectedItem() != null) {
|
||||||
|
|
||||||
BigDecimal kmRealAntigo = secuenciaRutaTramoVO.getKmReal();
|
BigDecimal kmRealAntigo = secuenciaRutaTramoVO.getKmReal();
|
||||||
Hora tiempoRecorridoAntigo = secuenciaRutaTramoVO.getTiempoRecorrido();
|
HoraSistema tiempoRecorridoAntigo = secuenciaRutaTramoVO.getTiempoRecorrido();
|
||||||
|
|
||||||
secuenciaRutaTramoVO.setVia((Via) cboVia.getSelectedItem().getValue());
|
secuenciaRutaTramoVO.setVia((Via) cboVia.getSelectedItem().getValue());
|
||||||
llenarTramo(secuenciaRutaTramoVO);
|
llenarTramo(secuenciaRutaTramoVO);
|
||||||
|
@ -439,7 +439,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
||||||
hbox.appendChild(spMinuto);
|
hbox.appendChild(spMinuto);
|
||||||
|
|
||||||
if (secuenciaRutaTramoVO.getTiempoRecorrido() != null) {
|
if (secuenciaRutaTramoVO.getTiempoRecorrido() != null) {
|
||||||
Hora hora = secuenciaRutaTramoVO.getTiempoRecorrido();
|
HoraSistema hora = secuenciaRutaTramoVO.getTiempoRecorrido();
|
||||||
spHora.setValue(hora.getHora());
|
spHora.setValue(hora.getHora());
|
||||||
spMinuto.setValue(hora.getMinuto());
|
spMinuto.setValue(hora.getMinuto());
|
||||||
}
|
}
|
||||||
|
@ -469,7 +469,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
||||||
List<Parada> lsParadas = new ArrayList<Parada>();
|
List<Parada> lsParadas = new ArrayList<Parada>();
|
||||||
|
|
||||||
BigDecimal totalKmRealRemovido = BigDecimal.ZERO;
|
BigDecimal totalKmRealRemovido = BigDecimal.ZERO;
|
||||||
Hora totalTiempoRecorridoRemovido = new Hora();
|
HoraSistema totalTiempoRecorridoRemovido = new HoraSistema();
|
||||||
|
|
||||||
for (SecuenciaRutaTramoVO s : lsSecuenciaRutaTramoVO) {
|
for (SecuenciaRutaTramoVO s : lsSecuenciaRutaTramoVO) {
|
||||||
if (!s.getOrigen().equals(parada)) {
|
if (!s.getOrigen().equals(parada)) {
|
||||||
|
@ -583,7 +583,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tramoServicio != null) {
|
if (tramoServicio != null) {
|
||||||
Hora hora = new Hora(tramoServicio.getTiemporecorrido());
|
HoraSistema hora = new HoraSistema(tramoServicio.getTiemporecorrido());
|
||||||
secuenciaRutaTramoVO.setTiempoRecorrido(hora);
|
secuenciaRutaTramoVO.setTiempoRecorrido(hora);
|
||||||
secuenciaRutaTramoVO.setTramoServicioId(tramoServicio.getTramoservicioId());
|
secuenciaRutaTramoVO.setTramoServicioId(tramoServicio.getTramoservicioId());
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -88,7 +88,6 @@ public class BusquedaTaxaEmbarqueKmController extends MyGenericForwardComposer {
|
||||||
|
|
||||||
Map args = new HashMap();
|
Map args = new HashMap();
|
||||||
args.put("orgao", o);
|
args.put("orgao", o);
|
||||||
args.put("taxaEmbarqueKm", null);
|
|
||||||
args.put("taxaEmbarqueKmList", taxaEmbarqueKmList);
|
args.put("taxaEmbarqueKmList", taxaEmbarqueKmList);
|
||||||
|
|
||||||
openWindow("/gui/tarifas/editarTaxaEmbarqueKm.zul",
|
openWindow("/gui/tarifas/editarTaxaEmbarqueKm.zul",
|
||||||
|
|
|
@ -4,11 +4,8 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas;
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.Collections;
|
|
||||||
import java.util.Comparator;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
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.Executions;
|
||||||
import org.zkoss.zk.ui.event.Event;
|
import org.zkoss.zk.ui.event.Event;
|
||||||
import org.zkoss.zul.Button;
|
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.entidad.TaxaEmbarqueKm;
|
||||||
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
import com.rjconsultores.ventaboletos.service.OrgaoConcedenteService;
|
||||||
import com.rjconsultores.ventaboletos.service.TaxaEmbarqueKmService;
|
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.MyListbox;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTaxaEmbarqueKm;
|
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);
|
super.doAfterCompose(comp);
|
||||||
|
|
||||||
orgao = (OrgaoConcedente) Executions.getCurrent().getArg().get("orgao");
|
orgao = (OrgaoConcedente) Executions.getCurrent().getArg().get("orgao");
|
||||||
taxaEmbarqueKm = (TaxaEmbarqueKm) Executions.getCurrent().getArg().get("taxaEmbarqueKm");
|
|
||||||
|
|
||||||
taxaEmbarqueKmList.setItemRenderer(new RenderTaxaEmbarqueKm());
|
taxaEmbarqueKmList.setItemRenderer(new RenderTaxaEmbarqueKm());
|
||||||
lsTaxaEmbarqueKm = new ArrayList<TaxaEmbarqueKm>();
|
lsTaxaEmbarqueKm = new ArrayList<TaxaEmbarqueKm>();
|
||||||
|
|
||||||
|
@ -203,7 +199,7 @@ public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer {
|
||||||
txtValor.getValue();
|
txtValor.getValue();
|
||||||
|
|
||||||
if (lsTaxaEmbarqueKm.isEmpty()) {
|
if (lsTaxaEmbarqueKm.isEmpty()) {
|
||||||
lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao(taxaEmbarqueKm.getOrgaoconcedenteId());
|
lsTaxaEmbarqueKm = taxaEmbarqueKmService.buscarPorOrgao( (OrgaoConcedente) cmbOrgao.getSelectedItem().getValue());
|
||||||
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
taxaEmbarqueKmList.setData(lsTaxaEmbarqueKm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,7 +216,9 @@ public class EditarTaxaEmbarqueKmController extends MyGenericForwardComposer {
|
||||||
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.existe"),
|
Labels.getLabel("editarTaxaEmbarqueKmController.MSG.existe"),
|
||||||
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
Labels.getLabel("editarTaxaEmbarqueKmController.window.title"),
|
||||||
Messagebox.OK, Messagebox.INFORMATION);
|
Messagebox.OK, Messagebox.INFORMATION);
|
||||||
|
|
||||||
limparInput();
|
limparInput();
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
# <controler>. <id>. <propiedade> = XXX
|
# <controler>. <id>. <propiedade> = XXX
|
||||||
|
|
||||||
#Versao do VentaBoleto:
|
#Versao do VentaBoleto:
|
||||||
versao = ADM_20130220_1RC116
|
versao = ADM_20130222_1RC117
|
||||||
|
|
||||||
# MSG Defaut:
|
# MSG Defaut:
|
||||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<window id="winBusquedaCorrida"
|
<window id="winBusquedaCorrida"
|
||||||
title="${c:l('selecionarServicosGerarController.window.title')}"
|
title="${c:l('selecionarServicosGerarController.window.title')}"
|
||||||
apply="${selecionarServicosGerarController}"
|
apply="${selecionarServicosGerarController}"
|
||||||
contentStyle="overflow:auto" width="900px" height="550px"
|
contentStyle="overflow:auto" width="900px" height="560px"
|
||||||
border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
border="normal" xmlns:h="http://www.w3.org/1999/xhtml">
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<button id="btnCerrar"
|
<button id="btnCerrar"
|
||||||
|
@ -106,7 +106,7 @@
|
||||||
<paging id="pagingEsquemaCorrida" pageSize="20" />
|
<paging id="pagingEsquemaCorrida" pageSize="20" />
|
||||||
<listbox id="esquemaCorridaList" checkmark="true"
|
<listbox id="esquemaCorridaList" checkmark="true"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||||
multiple="true" vflex="true" height="50%">
|
multiple="true" vflex="true" height="200px%">
|
||||||
<listhead sizable="true">
|
<listhead sizable="true">
|
||||||
<listheader width="60px" image="/gui/img/builder.gif"
|
<listheader width="60px" image="/gui/img/builder.gif"
|
||||||
label="${c:l('busquedaConfiguracionCorridaController.lhId.label')}"
|
label="${c:l('busquedaConfiguracionCorridaController.lhId.label')}"
|
||||||
|
|
Loading…
Reference in New Issue