git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20848 d1611594-4594-4d17-8e1d-87c2c4800839
parent
c39423aac3
commit
a31086ec68
|
@ -8,6 +8,8 @@ import java.util.ArrayList;
|
|||
import java.util.Calendar;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.collections.Predicate;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
|
@ -110,6 +112,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
private Combobox cmbCoeficiente2;
|
||||
private Combobox cmbCoeficiente3;
|
||||
private Combobox cmbOrgaoConcedente;
|
||||
private Combobox cmbClaseServicioCoeficiente;
|
||||
private Textbox txKmReal;
|
||||
private Textbox txtNome;
|
||||
private Intbox itxCantkmpagoconductor;
|
||||
|
@ -654,19 +657,78 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
Comboitem cbiOrgaoConcedente = cmbOrgaoConcedente.getSelectedItem();
|
||||
OrgaoConcedente orgaoConcedente = null;
|
||||
final OrgaoConcedente orgaoConcedente;
|
||||
if (cbiOrgaoConcedente == null) {
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.orgaoObligatorio"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Comboitem cbiClaseServicio = cmbClaseServicioCoeficiente.getSelectedItem();
|
||||
final ClaseServicio claseServicio;
|
||||
if (cbiClaseServicio == null) {
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.tipoClaseObligatorio"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
orgaoConcedente = (OrgaoConcedente) cbiOrgaoConcedente.getValue();
|
||||
claseServicio = (ClaseServicio) cbiClaseServicio.getValue();
|
||||
|
||||
|
||||
Integer kmCoeficiente1 = txtKMCoeficiente1.getValue();
|
||||
Integer kmCoeficiente2 = txtKMCoeficiente2.getValue();
|
||||
Integer kmCoeficiente3 = txtKMCoeficiente3.getValue();
|
||||
|
||||
|
||||
|
||||
if ( (coeficienteTarifa1 == null) && (kmCoeficiente1 == null)){
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.coeficiente1Obligatorio"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ((coeficienteTarifa1 != null) && (kmCoeficiente1 == null)) || ((coeficienteTarifa1 == null) && (kmCoeficiente1 != null))){
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.coeficiente1ObligatorioDados"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
if ( ((coeficienteTarifa2 != null) && (kmCoeficiente2 == null)) || ((coeficienteTarifa2 == null) && (kmCoeficiente2 != null))){
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.coeficiente2ObligatorioDados"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
if ( ((coeficienteTarifa3 != null) && (kmCoeficiente3 == null)) || ((coeficienteTarifa3 == null) && (kmCoeficiente3 != null))){
|
||||
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.coeficiente3ObligatorioDados"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
boolean orgaoClaseJahInformado = CollectionUtils.exists(lsOrgamoTramo, new Predicate() {
|
||||
|
||||
@Override
|
||||
public boolean evaluate(Object obj) {
|
||||
OrgaoTramo ot = (OrgaoTramo)obj;
|
||||
return (ot.getActivo() && ot.getOrgaoConcedente().equals(orgaoConcedente) && ot.getClaseServicio().equals(claseServicio) );
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
if (orgaoClaseJahInformado){
|
||||
Messagebox.show(Labels.getLabel("editarTramosController.msg.orgaoJahInformado"),
|
||||
Labels.getLabel("editarTramosController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
OrgaoTramo orgaoTramo = new OrgaoTramo();
|
||||
orgaoTramo.setCoeficienteTarifa1(coeficienteTarifa1);
|
||||
orgaoTramo.setCoeficienteTarifa2(coeficienteTarifa2);
|
||||
|
@ -679,6 +741,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
orgaoTramo.setActivo(Boolean.TRUE);
|
||||
orgaoTramo.setFecmodif(Calendar.getInstance().getTime());
|
||||
orgaoTramo.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
orgaoTramo.setClaseServicio(claseServicio);
|
||||
|
||||
lsOrgamoTramo.add(orgaoTramo);
|
||||
|
||||
|
@ -688,6 +751,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
cmbCoeficiente2.setSelectedItem(null);
|
||||
cmbCoeficiente3.setSelectedItem(null);
|
||||
cmbOrgaoConcedente.setSelectedItem(null);
|
||||
cmbClaseServicioCoeficiente.setSelectedItem(null);
|
||||
txtKMCoeficiente1.setValue(null);
|
||||
txtKMCoeficiente2.setValue(null);
|
||||
txtKMCoeficiente3.setValue(null);
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa;
|
||||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||
import com.rjconsultores.ventaboletos.entidad.OrgaoTramo;
|
||||
|
@ -16,6 +19,8 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
|||
Listcell lc = new Listcell();
|
||||
|
||||
if (orgaoTramo.getActivo()) {
|
||||
Integer totalKm = 0;
|
||||
|
||||
CoeficienteTarifa coeficienteTarifa1 = orgaoTramo.getCoeficienteTarifa1();
|
||||
if (coeficienteTarifa1 != null) {
|
||||
lc = new Listcell(coeficienteTarifa1.toString());
|
||||
|
@ -26,6 +31,7 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
|||
|
||||
Integer kmCoeficienteTarifa1 = orgaoTramo.getKmCoeficiente1();
|
||||
if (kmCoeficienteTarifa1 != null) {
|
||||
totalKm += kmCoeficienteTarifa1;
|
||||
lc = new Listcell(kmCoeficienteTarifa1.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
|
@ -42,6 +48,7 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
|||
|
||||
Integer kmCoeficienteTarifa2 = orgaoTramo.getKmCoeficiente2();
|
||||
if (kmCoeficienteTarifa2 != null) {
|
||||
totalKm += kmCoeficienteTarifa2;
|
||||
lc = new Listcell(kmCoeficienteTarifa2.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
|
@ -58,7 +65,8 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
|||
|
||||
Integer kmCoeficienteTarifa3 = orgaoTramo.getKmCoeficiente3();
|
||||
if (kmCoeficienteTarifa3 != null) {
|
||||
lc = new Listcell(kmCoeficienteTarifa1.toString());
|
||||
totalKm += kmCoeficienteTarifa3;
|
||||
lc = new Listcell(kmCoeficienteTarifa3.toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
|
@ -72,6 +80,18 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
ClaseServicio claseServicio = orgaoTramo.getClaseServicio();
|
||||
if (claseServicio != null) {
|
||||
lc = new Listcell(claseServicio.getDescclase());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(totalKm.toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
||||
lstm.setAttribute("data", orgaoTramo);
|
||||
} else {
|
||||
lstm.setVisible(Boolean.FALSE);
|
||||
|
|
|
@ -968,7 +968,7 @@ busquedaCatalogoDeRutaController.lbClase.value = Tipo de Classe
|
|||
busquedaCatalogoDeRutaController.msg.validactionRemocionParada=Não é possível quitar a localidade "{0}" da linha pues já existe(n) serviço(s) que a ocupa. Quite a localidade "{0}" de as seguintes serviços : ({1}) para depois quitar na linha.
|
||||
|
||||
# Pantalla Editar Linha
|
||||
editarCatalogoDeRutaController.msg.validacionCambionEnCombinaciones = Al incluir o quitar uma localidade as combinatorias serán remplazadas. É necessário revisar as combinatorias em caso de que exista alguna configuração específica para uma(s) de ella(s). Confirma a grabación?
|
||||
editarCatalogoDeRutaController.msg.validacionCambionEnCombinaciones = Ao incluir ou remover uma localidade as combinações serão refeitas. É necessário revisar as combinações em caso de que exista alguna configuração específica para uma(s) de dela(s). Confirmar alteração?
|
||||
editarCatalogoDeRutaController.msg.cambioSecuencia = Não é possível alterar a origem Inicial ou destino Final para uma linha já existente
|
||||
editarCatalogoDeRutaController.msg.validacion.paradas = Deve informar as secuencias da linha
|
||||
editarCatalogoDeRutaController.msg.validacion.empresa = Deve informar a empresa da linha
|
||||
|
@ -1110,15 +1110,23 @@ editarTramosController.btnSalvarExceptioneKm.tooltiptext = Salva Trecho Km
|
|||
editarTramosController.MSG.selecioneTramoKm = Selecione uma exceção de Km.
|
||||
editarTramosController.MSG.borrarTramoKm = Elimina exceção de Km?
|
||||
editarTramosController.labelCoeficiente1.value = Coeficiente 1
|
||||
editarTramosController.labelKMCoeficiente1.value = KM Coeficiente 1
|
||||
editarTramosController.labelKMCoeficiente1.value = KM 1
|
||||
editarTramosController.labelCoeficiente2.value = Coeficiente 2
|
||||
editarTramosController.labelKMCoeficiente2.value = KM Coeficiente 2
|
||||
editarTramosController.labelKMCoeficiente2.value = KM 2
|
||||
editarTramosController.labelCoeficiente3.value = Coeficiente 3
|
||||
editarTramosController.labelKMCoeficiente3.value = KM Coeficiente 3
|
||||
editarTramosController.labelKMCoeficiente3.value = KM 3
|
||||
editarTramosController.labelOrgaoConcedente.value = Órgão Concedente
|
||||
editarTramosController.labelClase.value = Tipo de Classe
|
||||
editarTramosController.labelTotalKm.value = Total KM
|
||||
editarTramosController.btnApagarCoeficiente.tooltiptext = Eliminar Coeficiente
|
||||
editarTramosController.btnSalvarCoeficiente.tooltiptext = Salvar Coeficiente
|
||||
editarTramosController.msg.orgaoObligatorio = Informe o Órgão Concedente
|
||||
editarTramosController.msg.tipoClaseObligatorio = Informe o Tipo da Classe do Coeficiente
|
||||
editarTramosController.msg.coeficiente1ObligatorioDados = Informe todos os dados para o coeficiente 1
|
||||
editarTramosController.msg.coeficiente2ObligatorioDados = Informe todos os dados para o coeficiente 2
|
||||
editarTramosController.msg.coeficiente3ObligatorioDados = Informe todos os dados para o coeficiente 3
|
||||
editarTramosController.msg.coeficiente1Obligatorio = O coeficiente 1 é obrigatório
|
||||
editarTramosController.msg.orgaoJahInformado=Já está cadastrado coeficiente para esse Órgão e Tipo de Classe
|
||||
|
||||
#Panatalla VentaBoletos Comissionistas
|
||||
pantalla.VentaBoletosTDO.window.title = Grupo Senda - Comissionista onLine
|
||||
|
|
|
@ -5,36 +5,23 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winEditarTramos" border="normal"
|
||||
apply="${editarTramosController}" width="950px" height="400px"
|
||||
title="${c:l('editarTramosController.window.title')}">
|
||||
<window id="winEditarTramos" border="normal" apply="${editarTramosController}" width="950px" height="400px" title="${c:l('editarTramosController.window.title')}">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarTramos.detach()"
|
||||
<button id="btnApagar" height="20" image="/gui/img/remove.png" width="35px" tooltiptext="${c:l('editarTramosController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20" image="/gui/img/save.png" width="35px" tooltiptext="${c:l('editarTramosController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20" image="/gui/img/exit.png" width="35px" onClick="winEditarTramos.detach()"
|
||||
tooltiptext="${c:l('editarTramosController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
|
||||
<tabbox>
|
||||
<tabs>
|
||||
<tab id="tabTramos"
|
||||
label="${c:l('editarTramosController.tabTramos.label')}" />
|
||||
<tab id="tabServicio"
|
||||
label="${c:l('editarTramosController.tabServicio.label')}" />
|
||||
<tab id="tabTiempo"
|
||||
label="${c:l('editarTramosController.tabTiempo.label')}" />
|
||||
<tab id="tabExcepcionesKm"
|
||||
label="${c:l('editarTramosController.tabExcepcionesKm.label')}" />
|
||||
<tab id="tabOrgaoCoeficientes"
|
||||
label="${c:l('editarTramosController.tabOrgaoCoeficientes.label')}" />
|
||||
<tab id="tabTramos" label="${c:l('editarTramosController.tabTramos.label')}" />
|
||||
<tab id="tabServicio" label="${c:l('editarTramosController.tabServicio.label')}" />
|
||||
<tab id="tabTiempo" label="${c:l('editarTramosController.tabTiempo.label')}" />
|
||||
<tab id="tabExcepcionesKm" label="${c:l('editarTramosController.tabExcepcionesKm.label')}" />
|
||||
<tab id="tabOrgaoCoeficientes" label="${c:l('editarTramosController.tabOrgaoCoeficientes.label')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
|
@ -45,41 +32,24 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbNome"
|
||||
value="${c:l('editarTramosController.lbNome.value')}" />
|
||||
<textbox id="txtNome"
|
||||
constraint="no empty" width="80%" maxlength="20"
|
||||
value="@{winEditarTramos$composer.tramo.desctramo}"
|
||||
<label id="lbNome" value="${c:l('editarTramosController.lbNome.value')}" />
|
||||
<textbox id="txtNome" constraint="no empty" width="80%" maxlength="20" value="@{winEditarTramos$composer.tramo.desctramo}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigem"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="80%"
|
||||
initialValue="@{winEditarTramos$composer.tramo.origem}"
|
||||
selectedItem="@{winEditarTramos$composer.tramo.origem}" />
|
||||
<label value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigem" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded"
|
||||
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.origem}" selectedItem="@{winEditarTramos$composer.tramo.origem}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestino"
|
||||
constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="80%"
|
||||
initialValue="@{winEditarTramos$composer.tramo.destino}"
|
||||
selectedItem="@{winEditarTramos$composer.tramo.destino}" />
|
||||
<label value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestino" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded"
|
||||
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.destino}" selectedItem="@{winEditarTramos$composer.tramo.destino}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelVia.value')}" />
|
||||
<combobox id="cmbVia"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
width="80%" model="@{winEditarTramos$composer.lsVias}"
|
||||
selectedItem="@{winEditarTramos$composer.tramo.via}" />
|
||||
<label value="${c:l('editarTramosController.labelVia.value')}" />
|
||||
<combobox id="cmbVia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" mold="rounded"
|
||||
buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsVias}" selectedItem="@{winEditarTramos$composer.tramo.via}" />
|
||||
</row>
|
||||
<!--row>
|
||||
<label id="lbKmReal" value="${c:l('editarTramosController.lbKmReal.value')}"/>
|
||||
|
@ -92,11 +62,8 @@
|
|||
value="@{winEditarTramos$composer.tramo.kmPagoConductor}"/>
|
||||
</row-->
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.lbKmReal.value')}" />
|
||||
<textbox id="txKmReal" width="80%"
|
||||
maxlength="11"
|
||||
value="@{winEditarTramos$composer.tramo.kmReal}" />
|
||||
<label value="${c:l('editarTramosController.lbKmReal.value')}" />
|
||||
<textbox id="txKmReal" width="80%" constraint="no empty" maxlength="11" value="@{winEditarTramos$composer.tramo.kmReal}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
@ -109,26 +76,18 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbClaseServicio"
|
||||
value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||
<combobox id="cmbClaseServicio"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||
<label id="lbClaseServicio" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||
<combobox id="cmbClaseServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded" buttonVisible="true"
|
||||
width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.lbTiempoRecorrido.value')}" />
|
||||
<label value="${c:l('editarTramosController.lbTiempoRecorrido.value')}" />
|
||||
<hbox>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<spinner id="spHora"
|
||||
value="00" width="50px" maxlength="2"
|
||||
constraint="max 99,no negative" mold="rounded" />
|
||||
<spinner id="spHora" value="00" width="50px" maxlength="2" constraint="max 99,no negative" mold="rounded" />
|
||||
<label value=":" />
|
||||
<spinner id="spMinuto"
|
||||
value="00" width="50px" maxlength="2"
|
||||
constraint="max 59,no negative" mold="rounded" />
|
||||
<spinner id="spMinuto" value="00" width="50px" maxlength="2" constraint="max 59,no negative" mold="rounded" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
|
@ -136,24 +95,17 @@
|
|||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px"
|
||||
align="right">
|
||||
<button id="btnApagarServicio" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagarServicio" height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnApagarAtributo.tooltiptext')}" />
|
||||
<button id="btnSalvarServicio" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
<button id="btnSalvarServicio" height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnSalvarAtributo.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<listbox id="servicioList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listbox id="servicioList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.ClaseServicio.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
@ -165,111 +117,65 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label id="lbClaseServicioTiempo"
|
||||
value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||
<combobox id="cmbClaseServicioTiempo"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
width="80%"
|
||||
model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||
<label id="lbClaseServicioTiempo" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||
<combobox id="cmbClaseServicioTiempo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
||||
mold="rounded" buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbTiemporecorrido"
|
||||
value="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||
<label id="lbTiemporecorrido" value="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||
<hbox>
|
||||
<vbox>
|
||||
<hbox>
|
||||
<spinner id="spHoraTiempo"
|
||||
value="00" width="50px" maxlength="2"
|
||||
constraint="max 99,no negative" mold="rounded" />
|
||||
<spinner id="spHoraTiempo" value="00" width="50px" maxlength="2" constraint="max 99,no negative" mold="rounded" />
|
||||
<label value=":" />
|
||||
<spinner id="spMinutoTiempo"
|
||||
value="00" width="50px" maxlength="2"
|
||||
constraint="max 59,no negative" mold="rounded" />
|
||||
<spinner id="spMinutoTiempo" value="00" width="50px" maxlength="2" constraint="max 59,no negative" mold="rounded" />
|
||||
</hbox>
|
||||
</vbox>
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbHorainicio"
|
||||
value="${c:l('editarTramosController.lbHorainicio.value')}" />
|
||||
<timebox id="horainicio" cols="14"
|
||||
format="HH:mm" mold="rounded" constraint="no empty" />
|
||||
<label id="lbHorainicio" value="${c:l('editarTramosController.lbHorainicio.value')}" />
|
||||
<timebox id="horainicio" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbHorafin"
|
||||
value="${c:l('editarTramosController.lbHorafin.value')}" />
|
||||
<timebox id="horafin" cols="14"
|
||||
format="HH:mm" mold="rounded" constraint="no empty" />
|
||||
<label id="lbHorafin" value="${c:l('editarTramosController.lbHorafin.value')}" />
|
||||
<timebox id="horafin" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionReservacionController.lbDias.value')}" />
|
||||
<label value="${c:l('editarConfiguracionReservacionController.lbDias.value')}" />
|
||||
<hbox>
|
||||
<checkbox id="lun"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbLun.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="mar"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMar.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="mie"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMie.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="jue"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbJue.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="vie"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbVie.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="sab"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbSab.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="dom"
|
||||
label="${c:l('editarConfiguracionReservacionController.lbDom.value')}"
|
||||
checked="false" />
|
||||
<checkbox id="lun" label="${c:l('editarConfiguracionReservacionController.lbLun.value')}" checked="false" />
|
||||
<checkbox id="mar" label="${c:l('editarConfiguracionReservacionController.lbMar.value')}" checked="false" />
|
||||
<checkbox id="mie" label="${c:l('editarConfiguracionReservacionController.lbMie.value')}" checked="false" />
|
||||
<checkbox id="jue" label="${c:l('editarConfiguracionReservacionController.lbJue.value')}" checked="false" />
|
||||
<checkbox id="vie" label="${c:l('editarConfiguracionReservacionController.lbVie.value')}" checked="false" />
|
||||
<checkbox id="sab" label="${c:l('editarConfiguracionReservacionController.lbSab.value')}" checked="false" />
|
||||
<checkbox id="dom" label="${c:l('editarConfiguracionReservacionController.lbDom.value')}" checked="false" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px"
|
||||
align="right">
|
||||
<button id="btnApagarTiempo" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagarTiempo" height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnApagarTiempo.tooltiptext')}" />
|
||||
<button id="btnSalvarTiempo" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
<button id="btnSalvarTiempo" height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnSalvarTiempo.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<listbox id="tiempoList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listbox id="tiempoList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhTiempoClaseServico"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.ClaseServicio.value')}"
|
||||
width="30%" />
|
||||
<listheader id="lhTiempoHorainicio"
|
||||
label="${c:l('editarTramosController.lhTiempoHorainicio.value')}" />
|
||||
<listheader id="lhTiempoHorafin"
|
||||
label="${c:l('editarTramosController.lhTiempoHorafin.value')}" />
|
||||
<listheader id="lhTiempoTiemporecorrido"
|
||||
label="${c:l('editarTramosController.lhTiempoTiemporecorrido.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbLunM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMarM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbMieM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbJueM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbVieM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbSabM.value')}" />
|
||||
<listheader
|
||||
label="${c:l('editarConfiguracionReservacionController.lbDomM.value')}" />
|
||||
<listheader id="lhTiempoClaseServico" image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" width="30%" />
|
||||
<listheader id="lhTiempoHorainicio" label="${c:l('editarTramosController.lhTiempoHorainicio.value')}" />
|
||||
<listheader id="lhTiempoHorafin" label="${c:l('editarTramosController.lhTiempoHorafin.value')}" />
|
||||
<listheader id="lhTiempoTiemporecorrido" label="${c:l('editarTramosController.lhTiempoTiemporecorrido.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbLunM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbMarM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbMieM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbJueM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbVieM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbSabM.value')}" />
|
||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbDomM.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
@ -281,42 +187,28 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" />
|
||||
<intbox id="itxCantkmpagoconductor"
|
||||
width="80%" maxlength="7" constraint="no empty" />
|
||||
<label value="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" />
|
||||
<intbox id="itxCantkmpagoconductor" width="80%" maxlength="7" constraint="no empty" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
model="@{winEditarTramos$composer.lsEmpresa}" width="80%" />
|
||||
<label value="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa" constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" model="@{winEditarTramos$composer.lsEmpresa}" width="80%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px"
|
||||
align="right">
|
||||
<button id="btnApagarExcepcioneKm"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagarExcepcioneKm" height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnApagarExcepcioneKm.tooltiptext')}" />
|
||||
<button id="btnSalvarExceptioneKm"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
<button id="btnSalvarExceptioneKm" height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnSalvarExceptioneKm.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<listbox id="tramoKmEmpresaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listbox id="tramoKmEmpresaList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhKm"
|
||||
image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}"
|
||||
width="30%" />
|
||||
<listheader id="lhEmpresa"
|
||||
label="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||
<listheader id="lhKm" image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" width="30%" />
|
||||
<listheader id="lhEmpresa" label="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
@ -331,80 +223,59 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row spans="1,1,1,1">
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
||||
<combobox id="cmbCoeficiente1"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
<label value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
||||
<combobox id="cmbCoeficiente1" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
||||
<label value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
||||
<intbox id="txtKMCoeficiente1" />
|
||||
</row>
|
||||
<row spans="1,1,1,1">
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
||||
<combobox id="cmbCoeficiente2"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
<label value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
||||
<combobox id="cmbCoeficiente2" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
||||
<label value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
||||
<intbox id="txtKMCoeficiente2" />
|
||||
</row>
|
||||
<row spans="1,1,1,1">
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
||||
<combobox id="cmbCoeficiente3"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
<label value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
||||
<combobox id="cmbCoeficiente3" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
||||
<label value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
||||
<intbox id="txtKMCoeficiente3" />
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
||||
<combobox id="cmbOrgaoConcedente"
|
||||
mold="rounded" buttonVisible="true" width="35%"
|
||||
model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
|
||||
<row spans="1,1,1,1">
|
||||
<label value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
||||
<combobox id="cmbOrgaoConcedente" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||
|
||||
<label value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||
<combobox id="cmbClaseServicioCoeficiente" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded"
|
||||
buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px"
|
||||
align="right">
|
||||
<button id="btnApagarCoeficiente"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagarCoeficiente" height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnApagarCoeficiente.tooltiptext')}" />
|
||||
<button id="btnSalvarCoeficiente"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
<button id="btnSalvarCoeficiente" height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramosController.btnSalvarCoeficiente.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<listbox id="tramoCoeficientesList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listbox id="tramoCoeficientesList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox" multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente1.value')}" width="15%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente1.value')}" width="6%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente2.value')}" width="15%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente2.value')}" width="6%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente3.value')}" width="15%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente3.value')}" width="7%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelOrgaoConcedente.value')}" width="15%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelClase.value')}" width="12%" />
|
||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelTotalKm.value')}" width="9%" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</tabpanel>
|
||||
|
|
Loading…
Reference in New Issue