0004800: Quilometragem - Mudar para decimal
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@33326 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a607a3eff5
commit
621ec19de3
|
@ -201,9 +201,12 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
|
|
||||||
// Campos coeficientes tarifario
|
// Campos coeficientes tarifario
|
||||||
final Combobox cboCoeficiente1 = new Combobox();
|
final Combobox cboCoeficiente1 = new Combobox();
|
||||||
final Intbox ibxKm1 = new Intbox();
|
// final Intbox ibxKm1 = new Intbox();
|
||||||
|
final MyCustomTextboxDecimal ibxKm1 = new MyCustomTextboxDecimal();
|
||||||
|
|
||||||
final Combobox cboCoeficiente2 = new Combobox();
|
final Combobox cboCoeficiente2 = new Combobox();
|
||||||
final Intbox ibxKm2 = new Intbox();
|
// final Intbox ibxKm2 = new Intbox();
|
||||||
|
final MyCustomTextboxDecimal ibxKm2 = new MyCustomTextboxDecimal();
|
||||||
|
|
||||||
// Cell Via
|
// Cell Via
|
||||||
final Combobox cboVia = new Combobox();
|
final Combobox cboVia = new Combobox();
|
||||||
|
@ -228,7 +231,7 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
llenarTramo(secuenciaRutaTramoCoeficienteVO);
|
llenarTramo(secuenciaRutaTramoCoeficienteVO);
|
||||||
|
|
||||||
boolean tramoEditable = (secuenciaRutaTramoCoeficienteVO.getTramoId() == null);
|
boolean tramoEditable = (secuenciaRutaTramoCoeficienteVO.getTramoId() == null);
|
||||||
boolean tramoCoeficienteEditable = (secuenciaRutaTramoCoeficienteVO.getOrgaoTramoId()== null);
|
boolean tramoCoeficienteEditable = (secuenciaRutaTramoCoeficienteVO.getOrgaoTramoId() == null);
|
||||||
boolean tramoServicioEditable = (secuenciaRutaTramoCoeficienteVO.getTramoServicioId() == null);
|
boolean tramoServicioEditable = (secuenciaRutaTramoCoeficienteVO.getTramoServicioId() == null);
|
||||||
|
|
||||||
if (!tramoEditable) {// cuando el tramo no es editable, es porque ya existe. Entonces lleno la pantalla con los nuevos valores
|
if (!tramoEditable) {// cuando el tramo no es editable, es porque ya existe. Entonces lleno la pantalla con los nuevos valores
|
||||||
|
@ -246,16 +249,16 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
secuenciaRutaTramoCoeficienteVO.setTiempoRecorrido(tiempoRecorridoAntigo);
|
secuenciaRutaTramoCoeficienteVO.setTiempoRecorrido(tiempoRecorridoAntigo);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tramoCoeficienteEditable){
|
if (!tramoCoeficienteEditable) {
|
||||||
cboCoeficiente1.setText(secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa1().getDescCoeficiente());
|
cboCoeficiente1.setText(secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa1().getDescCoeficiente());
|
||||||
ibxKm1.setValue(secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1());
|
ibxKm1.setValueBigDecimal(secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1());
|
||||||
|
|
||||||
cboCoeficiente2.setSelectedIndex(-1);
|
cboCoeficiente2.setSelectedIndex(-1);
|
||||||
ibxKm2.setValue(0);
|
ibxKm2.setValueBigDecimal(BigDecimal.ZERO);
|
||||||
|
|
||||||
if (secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa2() != null){
|
if (secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa2() != null) {
|
||||||
cboCoeficiente2.setText(secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa2().getDescCoeficiente());
|
cboCoeficiente2.setText(secuenciaRutaTramoCoeficienteVO.getCoeficienteTarifa2().getDescCoeficiente());
|
||||||
ibxKm2.setValue(secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2());
|
ibxKm2.setValueBigDecimal(secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,7 +282,8 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
|
|
||||||
// Cell Kms Real
|
// Cell Kms Real
|
||||||
dKmsReal.setReadonly(!esTramoEditable);
|
dKmsReal.setReadonly(!esTramoEditable);
|
||||||
dataBinder.addBinding(dKmsReal, "value", row.getUuid() + ".kmReal", null, null, "save", "com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter", null, null, null);
|
dataBinder.addBinding(dKmsReal, "value", row.getUuid() + ".kmReal", null, null, "save",
|
||||||
|
"com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter", null, null, null);
|
||||||
row.appendChild(dKmsReal);
|
row.appendChild(dKmsReal);
|
||||||
|
|
||||||
// Cell Tiempo Recorrido
|
// Cell Tiempo Recorrido
|
||||||
|
@ -334,9 +338,9 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event arg0) throws Exception {
|
public void onEvent(Event arg0) throws Exception {
|
||||||
if (cboCoeficiente1.getSelectedItem() == null){
|
if (cboCoeficiente1.getSelectedItem() == null) {
|
||||||
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa1(null);
|
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa1(null);
|
||||||
}else{
|
} else {
|
||||||
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa1((CoeficienteTarifa) cboCoeficiente1.getSelectedItem().getValue());
|
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa1((CoeficienteTarifa) cboCoeficiente1.getSelectedItem().getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -344,10 +348,13 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
});
|
});
|
||||||
row.appendChild(cboCoeficiente1);
|
row.appendChild(cboCoeficiente1);
|
||||||
// Km 1 do coeficiente 1
|
// Km 1 do coeficiente 1
|
||||||
ibxKm1.setValue((secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1() != null) ? secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1() : 0);
|
ibxKm1.setValueBigDecimal((secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1() != null) ?
|
||||||
|
secuenciaRutaTramoCoeficienteVO.getKmCoeficiente1() : BigDecimal.ZERO);
|
||||||
|
|
||||||
ibxKm1.setWidth("80%");
|
ibxKm1.setWidth("80%");
|
||||||
ibxKm1.setReadonly(!esTramoCoeficienteEditable);
|
ibxKm1.setReadonly(!esTramoCoeficienteEditable);
|
||||||
dataBinder.addBinding(ibxKm1, "value", row.getUuid() + ".kmCoeficiente1", null, null, "save", null, null, null, null);
|
dataBinder.addBinding(ibxKm1, "value", row.getUuid() + ".kmCoeficiente1", null, null,
|
||||||
|
"save", "com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter", null, null, null);
|
||||||
row.appendChild(ibxKm1);
|
row.appendChild(ibxKm1);
|
||||||
// Coeficiente tarifário 2
|
// Coeficiente tarifário 2
|
||||||
cboCoeficiente2.setId(cboCoeficiente2.getUuid());
|
cboCoeficiente2.setId(cboCoeficiente2.getUuid());
|
||||||
|
@ -363,9 +370,9 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event arg0) throws Exception {
|
public void onEvent(Event arg0) throws Exception {
|
||||||
if (cboCoeficiente2.getSelectedItem() == null){
|
if (cboCoeficiente2.getSelectedItem() == null) {
|
||||||
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2(null);
|
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2(null);
|
||||||
}else{
|
} else {
|
||||||
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2((CoeficienteTarifa) cboCoeficiente2.getSelectedItem().getValue());
|
secuenciaRutaTramoCoeficienteVO.setCoeficienteTarifa2((CoeficienteTarifa) cboCoeficiente2.getSelectedItem().getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -374,16 +381,16 @@ public class GridRutaTramoCoeficiente extends Grid implements RowRenderer, Rende
|
||||||
|
|
||||||
row.appendChild(cboCoeficiente2);
|
row.appendChild(cboCoeficiente2);
|
||||||
// Km 2 do coeficiente 2
|
// Km 2 do coeficiente 2
|
||||||
ibxKm2.setValue((secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2() != null) ? secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2() : 0);
|
ibxKm2.setValueBigDecimal((secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2() != null) ?
|
||||||
|
secuenciaRutaTramoCoeficienteVO.getKmCoeficiente2() : BigDecimal.ZERO);
|
||||||
ibxKm2.setWidth("80%");
|
ibxKm2.setWidth("80%");
|
||||||
ibxKm2.setReadonly(!esTramoCoeficienteEditable);
|
ibxKm2.setReadonly(!esTramoCoeficienteEditable);
|
||||||
dataBinder.addBinding(ibxKm2, "value", row.getUuid() + ".kmCoeficiente2", null, null, "save", null, null, null, null);
|
dataBinder.addBinding(ibxKm2, "value", row.getUuid() + ".kmCoeficiente2", null, null,
|
||||||
|
"save", "com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter", null, null, null);
|
||||||
row.appendChild(ibxKm2);
|
row.appendChild(ibxKm2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Actualiza el modelo de grid
|
* Actualiza el modelo de grid
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -38,7 +38,7 @@ class MyCustomTextboxDecimal extends Textbox {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ejecutaJavaScript() {
|
private void ejecutaJavaScript() {
|
||||||
Clients.evalJavaScript("jQuery('#" + this.getUuid() + "').format({allow_negative:false,precision: 2,decimal:'.',autofix:true});");
|
Clients.evalJavaScript("jQuery('#" + this.getUuid() + "').format({allow_negative:false,precision: 2,decimal:',',autofix:true});");
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getBigDecimal(BigDecimal val) {
|
private String getBigDecimal(BigDecimal val) {
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
*/
|
*/
|
||||||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Calendar;
|
import java.util.Calendar;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -37,7 +38,6 @@ import com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
import com.rjconsultores.ventaboletos.entidad.OrgaoConcedente;
|
||||||
import com.rjconsultores.ventaboletos.entidad.OrgaoTramo;
|
import com.rjconsultores.ventaboletos.entidad.OrgaoTramo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
|
||||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TramoKm;
|
import com.rjconsultores.ventaboletos.entidad.TramoKm;
|
||||||
import com.rjconsultores.ventaboletos.entidad.TramoServicio;
|
import com.rjconsultores.ventaboletos.entidad.TramoServicio;
|
||||||
|
@ -59,6 +59,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.ConstraintNumberBD;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
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.render.RenderOrgaoTramo;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderOrgaoTramo;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTramoKm;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTramoKm;
|
||||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTramoServicio;
|
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderTramoServicio;
|
||||||
|
@ -121,9 +122,9 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
private Textbox txKmReal;
|
private Textbox txKmReal;
|
||||||
private Textbox txtNome;
|
private Textbox txtNome;
|
||||||
private Intbox itxCantkmpagoconductor;
|
private Intbox itxCantkmpagoconductor;
|
||||||
private Intbox txtKMCoeficiente1;
|
private MyTextboxDecimal txtKMCoeficiente1;
|
||||||
private Intbox txtKMCoeficiente2;
|
private MyTextboxDecimal txtKMCoeficiente2;
|
||||||
private Intbox txtKMCoeficiente3;
|
private MyTextboxDecimal txtKMCoeficiente3;
|
||||||
private Timebox horainicio;
|
private Timebox horainicio;
|
||||||
private Timebox horafin;
|
private Timebox horafin;
|
||||||
private Checkbox lun;
|
private Checkbox lun;
|
||||||
|
@ -223,7 +224,8 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
public void setLsOrgaoConcedentes(List<OrgaoConcedente> lsOrgaoConcedentes) {
|
public void setLsOrgaoConcedentes(List<OrgaoConcedente> lsOrgaoConcedentes) {
|
||||||
this.lsOrgaoConcedentes = lsOrgaoConcedentes;
|
this.lsOrgaoConcedentes = lsOrgaoConcedentes;
|
||||||
}
|
}
|
||||||
private void generarDescripcionTramo(){
|
|
||||||
|
private void generarDescripcionTramo() {
|
||||||
cmbParadaOrigem.getValue(true);
|
cmbParadaOrigem.getValue(true);
|
||||||
cmbParadaDestino.getValue(true);
|
cmbParadaDestino.getValue(true);
|
||||||
cmbVia.getValue();
|
cmbVia.getValue();
|
||||||
|
@ -233,15 +235,15 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
txtNome.setText(tramoService.gerarDescripcionTramo(tramo.getOrigem(), tramo.getDestino(), via));
|
txtNome.setText(tramoService.gerarDescripcionTramo(tramo.getOrigem(), tramo.getDestino(), via));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSelect$cmbParadaOrigem(){
|
public void onSelect$cmbParadaOrigem() {
|
||||||
generarDescripcionTramo();
|
generarDescripcionTramo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSelect$cmbParadaDestino(){
|
public void onSelect$cmbParadaDestino() {
|
||||||
generarDescripcionTramo();
|
generarDescripcionTramo();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onSelect$cmbVia(){
|
public void onSelect$cmbVia() {
|
||||||
generarDescripcionTramo();
|
generarDescripcionTramo();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -308,7 +310,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void aplicarMascaras() {
|
private void aplicarMascaras() {
|
||||||
Clients.evalJavaScript("jQuery('#" + txKmReal.getUuid() + "').format({allow_negative:false,precision: 2,decimal:'.',autofix:true});");
|
Clients.evalJavaScript("jQuery('#" + txKmReal.getUuid() + "').format({allow_negative:false,precision: 2,decimal:',',autofix:true});");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$btnSalvarServicio(Event ev) throws InterruptedException {
|
public void onClick$btnSalvarServicio(Event ev) throws InterruptedException {
|
||||||
|
@ -394,7 +396,7 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
tramoTiempo.setIndaplicvie(vie.isChecked());
|
tramoTiempo.setIndaplicvie(vie.isChecked());
|
||||||
tramoTiempo.setIndaplicsab(sab.isChecked());
|
tramoTiempo.setIndaplicsab(sab.isChecked());
|
||||||
tramoTiempo.setIndaplicdom(dom.isChecked());
|
tramoTiempo.setIndaplicdom(dom.isChecked());
|
||||||
tramoTiempo.setTiemporecorrido(DateUtil.getFecInicio(spHoraTiempo.getValue(),spMinutoTiempo.getValue()).getTime());
|
tramoTiempo.setTiemporecorrido(DateUtil.getFecInicio(spHoraTiempo.getValue(), spMinutoTiempo.getValue()).getTime());
|
||||||
|
|
||||||
tramoTiempo.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
tramoTiempo.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||||
tramoTiempo.setFecmodif(Calendar.getInstance().getTime());
|
tramoTiempo.setFecmodif(Calendar.getInstance().getTime());
|
||||||
|
@ -655,9 +657,9 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
||||||
orgaoConcedente = (OrgaoConcedente) cbiOrgaoConcedente.getValue();
|
orgaoConcedente = (OrgaoConcedente) cbiOrgaoConcedente.getValue();
|
||||||
claseServicio = (ClaseServicio) cbiClaseServicio.getValue();
|
claseServicio = (ClaseServicio) cbiClaseServicio.getValue();
|
||||||
|
|
||||||
Integer kmCoeficiente1 = txtKMCoeficiente1.getValue();
|
BigDecimal kmCoeficiente1 = txtKMCoeficiente1.getValueDecimal();
|
||||||
Integer kmCoeficiente2 = txtKMCoeficiente2.getValue();
|
BigDecimal kmCoeficiente2 = txtKMCoeficiente2.getValueDecimal();
|
||||||
Integer kmCoeficiente3 = txtKMCoeficiente3.getValue();
|
BigDecimal kmCoeficiente3 = txtKMCoeficiente3.getValueDecimal();
|
||||||
|
|
||||||
if ((coeficienteTarifa1 == null) && (kmCoeficiente1 == null)) {
|
if ((coeficienteTarifa1 == null) && (kmCoeficiente1 == null)) {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import org.zkoss.zul.Listcell;
|
import org.zkoss.zul.Listcell;
|
||||||
import org.zkoss.zul.Listitem;
|
import org.zkoss.zul.Listitem;
|
||||||
import org.zkoss.zul.ListitemRenderer;
|
import org.zkoss.zul.ListitemRenderer;
|
||||||
|
@ -17,7 +19,7 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
||||||
Listcell lc = new Listcell();
|
Listcell lc = new Listcell();
|
||||||
|
|
||||||
if (orgaoTramo.getActivo()) {
|
if (orgaoTramo.getActivo()) {
|
||||||
Integer totalKm = 0;
|
BigDecimal totalKm = BigDecimal.ZERO;
|
||||||
|
|
||||||
CoeficienteTarifa coeficienteTarifa1 = orgaoTramo.getCoeficienteTarifa1();
|
CoeficienteTarifa coeficienteTarifa1 = orgaoTramo.getCoeficienteTarifa1();
|
||||||
if (coeficienteTarifa1 != null) {
|
if (coeficienteTarifa1 != null) {
|
||||||
|
@ -27,9 +29,9 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
||||||
}
|
}
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
Integer kmCoeficienteTarifa1 = orgaoTramo.getKmCoeficiente1();
|
BigDecimal kmCoeficienteTarifa1 = orgaoTramo.getKmCoeficiente1();
|
||||||
if (kmCoeficienteTarifa1 != null) {
|
if (kmCoeficienteTarifa1 != null) {
|
||||||
totalKm += kmCoeficienteTarifa1;
|
totalKm.add(kmCoeficienteTarifa1);
|
||||||
lc = new Listcell(kmCoeficienteTarifa1.toString());
|
lc = new Listcell(kmCoeficienteTarifa1.toString());
|
||||||
} else {
|
} else {
|
||||||
lc = new Listcell("");
|
lc = new Listcell("");
|
||||||
|
@ -44,9 +46,9 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
||||||
}
|
}
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
Integer kmCoeficienteTarifa2 = orgaoTramo.getKmCoeficiente2();
|
BigDecimal kmCoeficienteTarifa2 = orgaoTramo.getKmCoeficiente2();
|
||||||
if (kmCoeficienteTarifa2 != null) {
|
if (kmCoeficienteTarifa2 != null) {
|
||||||
totalKm += kmCoeficienteTarifa2;
|
totalKm.add(kmCoeficienteTarifa2);
|
||||||
lc = new Listcell(kmCoeficienteTarifa2.toString());
|
lc = new Listcell(kmCoeficienteTarifa2.toString());
|
||||||
} else {
|
} else {
|
||||||
lc = new Listcell("");
|
lc = new Listcell("");
|
||||||
|
@ -61,9 +63,9 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
||||||
}
|
}
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
Integer kmCoeficienteTarifa3 = orgaoTramo.getKmCoeficiente3();
|
BigDecimal kmCoeficienteTarifa3 = orgaoTramo.getKmCoeficiente3();
|
||||||
if (kmCoeficienteTarifa3 != null) {
|
if (kmCoeficienteTarifa3 != null) {
|
||||||
totalKm += kmCoeficienteTarifa3;
|
totalKm.add(kmCoeficienteTarifa3);
|
||||||
lc = new Listcell(kmCoeficienteTarifa3.toString());
|
lc = new Listcell(kmCoeficienteTarifa3.toString());
|
||||||
} else {
|
} else {
|
||||||
lc = new Listcell("");
|
lc = new Listcell("");
|
||||||
|
@ -89,7 +91,6 @@ public class RenderOrgaoTramo implements ListitemRenderer {
|
||||||
lc = new Listcell(totalKm.toString());
|
lc = new Listcell(totalKm.toString());
|
||||||
lc.setParent(lstm);
|
lc.setParent(lstm);
|
||||||
|
|
||||||
|
|
||||||
lstm.setAttribute("data", orgaoTramo);
|
lstm.setAttribute("data", orgaoTramo);
|
||||||
} else {
|
} else {
|
||||||
lstm.setVisible(Boolean.FALSE);
|
lstm.setVisible(Boolean.FALSE);
|
||||||
|
|
|
@ -5,23 +5,36 @@
|
||||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||||
|
|
||||||
<zk>
|
<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>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<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="btnApagar" height="20"
|
||||||
<button id="btnSalvar" height="20" image="/gui/img/save.png" width="35px" tooltiptext="${c:l('editarTramosController.btnSalvar.tooltiptext')}" />
|
image="/gui/img/remove.png" width="35px"
|
||||||
<button id="btnFechar" height="20" image="/gui/img/exit.png" width="35px" onClick="winEditarTramos.detach()"
|
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')}" />
|
tooltiptext="${c:l('editarTramosController.btnFechar.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</toolbar>
|
||||||
|
|
||||||
<tabbox>
|
<tabbox>
|
||||||
<tabs>
|
<tabs>
|
||||||
<tab id="tabTramos" label="${c:l('editarTramosController.tabTramos.label')}" />
|
<tab id="tabTramos"
|
||||||
<tab id="tabServicio" label="${c:l('editarTramosController.tabServicio.label')}" />
|
label="${c:l('editarTramosController.tabTramos.label')}" />
|
||||||
<tab id="tabTiempo" label="${c:l('editarTramosController.tabTiempo.label')}" />
|
<tab id="tabServicio"
|
||||||
<tab id="tabExcepcionesKm" label="${c:l('editarTramosController.tabExcepcionesKm.label')}" />
|
label="${c:l('editarTramosController.tabServicio.label')}" />
|
||||||
<tab id="tabOrgaoCoeficientes" label="${c:l('editarTramosController.tabOrgaoCoeficientes.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>
|
</tabs>
|
||||||
<tabpanels>
|
<tabpanels>
|
||||||
<tabpanel>
|
<tabpanel>
|
||||||
|
@ -32,24 +45,48 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbNome" value="${c:l('editarTramosController.lbNome.value')}" />
|
<label id="lbNome"
|
||||||
<textbox id="txtNome" width="80%" maxlength="50" value="@{winEditarTramos$composer.tramo.desctramo}" disabled="true"
|
value="${c:l('editarTramosController.lbNome.value')}" />
|
||||||
|
<textbox id="txtNome" width="80%"
|
||||||
|
maxlength="50"
|
||||||
|
value="@{winEditarTramos$composer.tramo.desctramo}"
|
||||||
|
disabled="true"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.labelOrigen.value')}" />
|
<label
|
||||||
<combobox id="cmbParadaOrigem" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||||
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.origem}" selectedItem="@{winEditarTramos$composer.tramo.origem}" />
|
<combobox id="cmbParadaOrigem"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded"
|
||||||
|
disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
||||||
|
buttonVisible="true" width="80%"
|
||||||
|
initialValue="@{winEditarTramos$composer.tramo.origem}"
|
||||||
|
selectedItem="@{winEditarTramos$composer.tramo.origem}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.labelDestino.value')}" />
|
<label
|
||||||
<combobox id="cmbParadaDestino" constraint="no empty" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||||
buttonVisible="true" width="80%" initialValue="@{winEditarTramos$composer.tramo.destino}" selectedItem="@{winEditarTramos$composer.tramo.destino}" />
|
<combobox id="cmbParadaDestino"
|
||||||
|
constraint="no empty"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||||
|
mold="rounded"
|
||||||
|
disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
||||||
|
buttonVisible="true" width="80%"
|
||||||
|
initialValue="@{winEditarTramos$composer.tramo.destino}"
|
||||||
|
selectedItem="@{winEditarTramos$composer.tramo.destino}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.labelVia.value')}" />
|
<label
|
||||||
<combobox id="cmbVia" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty" mold="rounded" disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
value="${c:l('editarTramosController.labelVia.value')}" />
|
||||||
buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsVias}" selectedItem="@{winEditarTramos$composer.tramo.via}" />
|
<combobox id="cmbVia"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
constraint="no empty" mold="rounded"
|
||||||
|
disabled="@{winEditarTramos$composer.existeRutaOcupaTramo}"
|
||||||
|
buttonVisible="true" width="80%"
|
||||||
|
model="@{winEditarTramos$composer.lsVias}"
|
||||||
|
selectedItem="@{winEditarTramos$composer.tramo.via}" />
|
||||||
</row>
|
</row>
|
||||||
<!--row>
|
<!--row>
|
||||||
<label id="lbKmReal" value="${c:l('editarTramosController.lbKmReal.value')}"/>
|
<label id="lbKmReal" value="${c:l('editarTramosController.lbKmReal.value')}"/>
|
||||||
|
@ -62,8 +99,11 @@
|
||||||
value="@{winEditarTramos$composer.tramo.kmPagoConductor}"/>
|
value="@{winEditarTramos$composer.tramo.kmPagoConductor}"/>
|
||||||
</row-->
|
</row-->
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.lbKmReal.value')}" />
|
<label
|
||||||
<textbox id="txKmReal" width="80%" constraint="no empty" maxlength="11" value="@{winEditarTramos$composer.tramo.kmReal}" />
|
value="${c:l('editarTramosController.lbKmReal.value')}" />
|
||||||
|
<textbox id="txKmReal" width="80%"
|
||||||
|
constraint="no empty" maxlength="11"
|
||||||
|
value="@{winEditarTramos$composer.tramo.kmReal}" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
|
@ -76,18 +116,26 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbClaseServicio" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
<label id="lbClaseServicio"
|
||||||
<combobox id="cmbClaseServicio" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded" buttonVisible="true"
|
value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||||
width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
<combobox id="cmbClaseServicio"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.lbTiempoRecorrido.value')}" />
|
<label
|
||||||
|
value="${c:l('editarTramosController.lbTiempoRecorrido.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<hbox>
|
<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=":" />
|
<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>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
|
@ -95,17 +143,24 @@
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarServicio" height="20" image="/gui/img/remove.png" width="35px"
|
align="right">
|
||||||
|
<button id="btnApagarServicio" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTramosController.btnApagarAtributo.tooltiptext')}" />
|
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')}" />
|
tooltiptext="${c:l('editarTramosController.btnSalvarAtributo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</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">
|
<listhead sizable="true">
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" />
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
label="${c:l('editarTramosController.ClaseServicio.value')}" />
|
||||||
|
<listheader image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -117,65 +172,111 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbClaseServicioTiempo" value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
<label id="lbClaseServicioTiempo"
|
||||||
<combobox id="cmbClaseServicioTiempo" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" constraint="no empty"
|
value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||||
mold="rounded" buttonVisible="true" width="80%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
<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>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbTiemporecorrido" value="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
<label id="lbTiemporecorrido"
|
||||||
|
value="${c:l('editarTramosController.lbTiemporecorrido.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<vbox>
|
<vbox>
|
||||||
<hbox>
|
<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=":" />
|
<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>
|
</hbox>
|
||||||
</vbox>
|
</vbox>
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbHorainicio" value="${c:l('editarTramosController.lbHorainicio.value')}" />
|
<label id="lbHorainicio"
|
||||||
<timebox id="horainicio" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
|
value="${c:l('editarTramosController.lbHorainicio.value')}" />
|
||||||
|
<timebox id="horainicio" cols="14"
|
||||||
|
format="HH:mm" mold="rounded" constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label id="lbHorafin" value="${c:l('editarTramosController.lbHorafin.value')}" />
|
<label id="lbHorafin"
|
||||||
<timebox id="horafin" cols="14" format="HH:mm" mold="rounded" constraint="no empty" />
|
value="${c:l('editarTramosController.lbHorafin.value')}" />
|
||||||
|
<timebox id="horafin" cols="14"
|
||||||
|
format="HH:mm" mold="rounded" constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarConfiguracionReservacionController.lbDias.value')}" />
|
<label
|
||||||
|
value="${c:l('editarConfiguracionReservacionController.lbDias.value')}" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<checkbox id="lun" label="${c:l('editarConfiguracionReservacionController.lbLun.value')}" checked="false" />
|
<checkbox id="lun"
|
||||||
<checkbox id="mar" label="${c:l('editarConfiguracionReservacionController.lbMar.value')}" checked="false" />
|
label="${c:l('editarConfiguracionReservacionController.lbLun.value')}"
|
||||||
<checkbox id="mie" label="${c:l('editarConfiguracionReservacionController.lbMie.value')}" checked="false" />
|
checked="false" />
|
||||||
<checkbox id="jue" label="${c:l('editarConfiguracionReservacionController.lbJue.value')}" checked="false" />
|
<checkbox id="mar"
|
||||||
<checkbox id="vie" label="${c:l('editarConfiguracionReservacionController.lbVie.value')}" checked="false" />
|
label="${c:l('editarConfiguracionReservacionController.lbMar.value')}"
|
||||||
<checkbox id="sab" label="${c:l('editarConfiguracionReservacionController.lbSab.value')}" checked="false" />
|
checked="false" />
|
||||||
<checkbox id="dom" label="${c:l('editarConfiguracionReservacionController.lbDom.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>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarTiempo" height="20" image="/gui/img/remove.png" width="35px"
|
align="right">
|
||||||
|
<button id="btnApagarTiempo" height="20"
|
||||||
|
image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTramosController.btnApagarTiempo.tooltiptext')}" />
|
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')}" />
|
tooltiptext="${c:l('editarTramosController.btnSalvarTiempo.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</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">
|
<listhead sizable="true">
|
||||||
<listheader id="lhTiempoClaseServico" image="/gui/img/builder.gif" label="${c:l('editarTramosController.ClaseServicio.value')}" width="30%" />
|
<listheader id="lhTiempoClaseServico"
|
||||||
<listheader id="lhTiempoHorainicio" label="${c:l('editarTramosController.lhTiempoHorainicio.value')}" />
|
image="/gui/img/builder.gif"
|
||||||
<listheader id="lhTiempoHorafin" label="${c:l('editarTramosController.lhTiempoHorafin.value')}" />
|
label="${c:l('editarTramosController.ClaseServicio.value')}"
|
||||||
<listheader id="lhTiempoTiemporecorrido" label="${c:l('editarTramosController.lhTiempoTiemporecorrido.value')}" />
|
width="30%" />
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbLunM.value')}" />
|
<listheader id="lhTiempoHorainicio"
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbMarM.value')}" />
|
label="${c:l('editarTramosController.lhTiempoHorainicio.value')}" />
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbMieM.value')}" />
|
<listheader id="lhTiempoHorafin"
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbJueM.value')}" />
|
label="${c:l('editarTramosController.lhTiempoHorafin.value')}" />
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbVieM.value')}" />
|
<listheader id="lhTiempoTiemporecorrido"
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbSabM.value')}" />
|
label="${c:l('editarTramosController.lhTiempoTiemporecorrido.value')}" />
|
||||||
<listheader label="${c:l('editarConfiguracionReservacionController.lbDomM.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>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -187,28 +288,42 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" />
|
<label
|
||||||
<intbox id="itxCantkmpagoconductor" width="80%" maxlength="7" constraint="no empty" />
|
value="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" />
|
||||||
|
<intbox id="itxCantkmpagoconductor"
|
||||||
|
width="80%" maxlength="7" constraint="no empty" />
|
||||||
</row>
|
</row>
|
||||||
<row>
|
<row>
|
||||||
<label value="${c:l('editarTramosController.labelEmpresa.value')}" />
|
<label
|
||||||
<combobox id="cmbEmpresa" constraint="no empty" mold="rounded" buttonVisible="true"
|
value="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" model="@{winEditarTramos$composer.lsEmpresa}" width="80%" />
|
<combobox id="cmbEmpresa"
|
||||||
|
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
model="@{winEditarTramos$composer.lsEmpresa}" width="80%" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarExcepcioneKm" height="20" image="/gui/img/remove.png" width="35px"
|
align="right">
|
||||||
|
<button id="btnApagarExcepcioneKm"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTramosController.btnApagarExcepcioneKm.tooltiptext')}" />
|
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')}" />
|
tooltiptext="${c:l('editarTramosController.btnSalvarExceptioneKm.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</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">
|
<listhead sizable="true">
|
||||||
<listheader id="lhKm" image="/gui/img/builder.gif" label="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}" width="30%" />
|
<listheader id="lhKm"
|
||||||
<listheader id="lhEmpresa" label="${c:l('editarTramosController.labelEmpresa.value')}" />
|
image="/gui/img/builder.gif"
|
||||||
|
label="${c:l('editarTramosController.lbItxCantkmpagoconductor.value')}"
|
||||||
|
width="30%" />
|
||||||
|
<listheader id="lhEmpresa"
|
||||||
|
label="${c:l('editarTramosController.labelEmpresa.value')}" />
|
||||||
</listhead>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
@ -223,59 +338,107 @@
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<row spans="1,1,1,1">
|
<row spans="1,1,1,1">
|
||||||
<label value="${c:l('editarTramosController.labelCoeficiente1.value')}" />
|
<label
|
||||||
<combobox id="cmbCoeficiente1" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
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" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
|
|
||||||
<label value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
<label
|
||||||
<intbox id="txtKMCoeficiente1" />
|
value="${c:l('editarTramosController.labelKMCoeficiente1.value')}" />
|
||||||
|
<textbox id="txtKMCoeficiente1"
|
||||||
|
maxlength="7"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,1,1,1">
|
<row spans="1,1,1,1">
|
||||||
<label value="${c:l('editarTramosController.labelCoeficiente2.value')}" />
|
<label
|
||||||
<combobox id="cmbCoeficiente2" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
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" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
|
|
||||||
<label value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
<label
|
||||||
<intbox id="txtKMCoeficiente2" />
|
value="${c:l('editarTramosController.labelKMCoeficiente2.value')}" />
|
||||||
|
<textbox id="txtKMCoeficiente2"
|
||||||
|
maxlength="7"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,1,1,1">
|
<row spans="1,1,1,1">
|
||||||
<label value="${c:l('editarTramosController.labelCoeficiente3.value')}" />
|
<label
|
||||||
<combobox id="cmbCoeficiente3" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsCoeficienteTarifas}"
|
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" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
|
|
||||||
<label value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
<label
|
||||||
<intbox id="txtKMCoeficiente3" />
|
value="${c:l('editarTramosController.labelKMCoeficiente3.value')}" />
|
||||||
|
<textbox id="txtKMCoeficiente3"
|
||||||
|
maxlength="7"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||||
</row>
|
</row>
|
||||||
<row spans="1,1,1,1">
|
<row spans="1,1,1,1">
|
||||||
<label value="${c:l('editarTramosController.labelOrgaoConcedente.value')}" />
|
<label
|
||||||
<combobox id="cmbOrgaoConcedente" mold="rounded" buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsOrgaoConcedentes}"
|
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" />
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" />
|
||||||
|
|
||||||
<label value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
<label
|
||||||
<combobox id="cmbClaseServicioCoeficiente" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar" mold="rounded"
|
value="${c:l('editarTramosController.lbClaseServicio.value')}" />
|
||||||
buttonVisible="true" width="90%" model="@{winEditarTramos$composer.lsClaseServicio}" />
|
<combobox
|
||||||
|
id="cmbClaseServicioCoeficiente"
|
||||||
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||||
|
mold="rounded" buttonVisible="true" width="90%"
|
||||||
|
model="@{winEditarTramos$composer.lsClaseServicio}" />
|
||||||
</row>
|
</row>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
<toolbar>
|
<toolbar>
|
||||||
<hbox spacing="5px" style="padding:1px" align="right">
|
<hbox spacing="5px" style="padding:1px"
|
||||||
<button id="btnApagarCoeficiente" height="20" image="/gui/img/remove.png" width="35px"
|
align="right">
|
||||||
|
<button id="btnApagarCoeficiente"
|
||||||
|
height="20" image="/gui/img/remove.png" width="35px"
|
||||||
tooltiptext="${c:l('editarTramosController.btnApagarCoeficiente.tooltiptext')}" />
|
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')}" />
|
tooltiptext="${c:l('editarTramosController.btnSalvarCoeficiente.tooltiptext')}" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</toolbar>
|
</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">
|
<listhead sizable="true">
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente1.value')}" width="15%" />
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente1.value')}" width="6%" />
|
label="${c:l('editarTramosController.labelCoeficiente1.value')}"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente2.value')}" width="15%" />
|
width="15%" />
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente2.value')}" width="6%" />
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelCoeficiente3.value')}" width="15%" />
|
label="${c:l('editarTramosController.labelKMCoeficiente1.value')}"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelKMCoeficiente3.value')}" width="7%" />
|
width="6%" />
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelOrgaoConcedente.value')}" width="15%" />
|
<listheader image="/gui/img/builder.gif"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelClase.value')}" width="12%" />
|
label="${c:l('editarTramosController.labelCoeficiente2.value')}"
|
||||||
<listheader image="/gui/img/builder.gif" label="${c:l('editarTramosController.labelTotalKm.value')}" width="9%" />
|
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>
|
</listhead>
|
||||||
</listbox>
|
</listbox>
|
||||||
</tabpanel>
|
</tabpanel>
|
||||||
|
|
Loading…
Reference in New Issue