git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20575 d1611594-4594-4d17-8e1d-87c2c4800839
parent
08d2e30c53
commit
a2c7cc96de
|
@ -252,15 +252,15 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
columns.appendChild(columnSecuencia);
|
||||
|
||||
Column columnOrigen = new Column(Labels.getLabel("gridRutaSecuencia.columnOrigen.label"));
|
||||
columnOrigen.setWidth("15%");
|
||||
columnOrigen.setWidth("25%");
|
||||
columns.appendChild(columnOrigen);
|
||||
|
||||
Column columnDestino = new Column(Labels.getLabel("gridRutaSecuencia.columnDestino.label"));
|
||||
columnDestino.setWidth("15%");
|
||||
columnDestino.setWidth("25%");
|
||||
columns.appendChild(columnDestino);
|
||||
|
||||
Column columnVia = new Column(Labels.getLabel("gridRutaSecuencia.columnVia.label"));
|
||||
columnVia.setWidth("30%");
|
||||
columnVia.setWidth("25%");
|
||||
columns.appendChild(columnVia);
|
||||
|
||||
Column kmsReal = new Column(Labels.getLabel("gridRutaSecuencia.columnKmsReal.label"));
|
||||
|
@ -268,7 +268,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
columns.appendChild(kmsReal);
|
||||
|
||||
Column tiempoRecorrido = new Column(Labels.getLabel("gridRutaSecuencia.columnTiempoRecorrido.label"));
|
||||
tiempoRecorrido.setWidth("20%");
|
||||
tiempoRecorrido.setWidth("15%");
|
||||
columns.appendChild(tiempoRecorrido);
|
||||
|
||||
Column columnIDTramo = new Column(Labels.getLabel("gridRutaSecuencia.columnIDTramo.label"));
|
||||
|
@ -291,7 +291,8 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
row.appendChild(ibxSumSecuencia);
|
||||
|
||||
// Cell Origen
|
||||
Label lblOrigen = new Label(secuenciaRutaTramoVO.getOrigen().getCveparada());
|
||||
String strOrigem = secuenciaRutaTramoVO.getOrigen().getCveparada() + " - " + secuenciaRutaTramoVO.getOrigen().getDescparada();
|
||||
Label lblOrigen = new Label(strOrigem);
|
||||
lblOrigen.setWidth("80%");
|
||||
Menupopup mnuOrigen = new Menupopup();
|
||||
|
||||
|
@ -325,7 +326,8 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
row.appendChild(lblOrigen);
|
||||
|
||||
// Cell Destino
|
||||
Label lblDestino = new Label(secuenciaRutaTramoVO.getDestino().getCveparada());
|
||||
String strDestino = secuenciaRutaTramoVO.getDestino().getCveparada() + " - " + secuenciaRutaTramoVO.getDestino().getDescparada();
|
||||
Label lblDestino = new Label(strDestino);
|
||||
lblDestino.setWidth("80%");
|
||||
Menupopup mnuDestino = new Menupopup();
|
||||
|
||||
|
@ -625,6 +627,8 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
|
||||
class MyCustomTextboxDecimal extends Textbox {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public MyCustomTextboxDecimal() {
|
||||
super();
|
||||
this.setConstraint(new ConstraintNumberBD(8, 2, true));
|
||||
|
|
|
@ -67,7 +67,6 @@ public class NuevaParadaController extends MyGenericForwardComposer {
|
|||
cmbParadaOrigen.setConstraint("no empty");
|
||||
cmbParadaOrigen.setFocus(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void validar() {
|
||||
|
@ -90,18 +89,20 @@ public class NuevaParadaController extends MyGenericForwardComposer {
|
|||
.getSelectedItem().getValue(), (Via) cmbVia.getSelectedItem().getValue());
|
||||
|
||||
if (txtDscRuta != null) {
|
||||
String dscOrigen = gridRutaSecuencia.getPrimeraParada().getCveparada();
|
||||
String dscDestino = gridRutaSecuencia.getUltimaParada().getCveparada();
|
||||
String dscClase = gridRutaSecuencia.getClaseServicio().getDescclase();
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(dscOrigen);
|
||||
stringBuilder.append(" - ");
|
||||
stringBuilder.append(dscDestino);
|
||||
stringBuilder.append("(");
|
||||
stringBuilder.append(dscClase);
|
||||
stringBuilder.append(")");
|
||||
if (txtDscRuta.getValue().isEmpty()) {
|
||||
String dscOrigen = gridRutaSecuencia.getPrimeraParada().getCveparada();
|
||||
String dscDestino = gridRutaSecuencia.getUltimaParada().getCveparada();
|
||||
String dscClase = gridRutaSecuencia.getClaseServicio().getDescclase();
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
stringBuilder.append(dscOrigen);
|
||||
stringBuilder.append(" - ");
|
||||
stringBuilder.append(dscDestino);
|
||||
stringBuilder.append("(");
|
||||
stringBuilder.append(dscClase);
|
||||
stringBuilder.append(")");
|
||||
|
||||
txtDscRuta.setText(stringBuilder.toString());
|
||||
txtDscRuta.setText(stringBuilder.toString());
|
||||
}
|
||||
}
|
||||
|
||||
} catch (IllegalArgumentException e1) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20120817_1RC45
|
||||
versao = ADM_20120817_1RC46
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
@ -90,7 +90,7 @@ indexController.mniMotivoReimpresion.label = Motivo da Reimpressão
|
|||
indexController.mniCategoria.label = Tipo de Passageiro
|
||||
indexController.mniPuntoVenta.label = Ponto de Venda
|
||||
indexController.mniEmpresa.label = Empresa
|
||||
indexController.mniTipoServicio.label = Tipo de Classe
|
||||
indexController.mniTipoServicio.label = Tipo de Viagem
|
||||
indexController.mniTipoVenta.label = Tipo de Venda
|
||||
indexController.mniDiagramaAutoBus.label = Tipos de Carro
|
||||
indexController.mniAsociacionClaseServicioMarca.label = Associação Tipo de Classe e Marca
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
<window id="winEditarTramoRuta" border="normal" width="750px"
|
||||
<window id="winEditarTramoRuta" border="normal" width="950px"
|
||||
apply="${editarTramoRutaController}" height="550px">
|
||||
<style dynamic="true">
|
||||
.z-textbox{background: #ffa99c}
|
||||
|
@ -34,7 +34,7 @@
|
|||
<label
|
||||
value="${c:l('editarTramoRutaController.lblRuta.value')}" />
|
||||
<textbox id="txtDscRuta" width="89%" sclass="mydb"
|
||||
readonly="true" />
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblClase.value')}" />
|
||||
<combobox id="cmbClaseServicio"
|
||||
|
|
Loading…
Reference in New Issue