git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@20573 d1611594-4594-4d17-8e1d-87c2c4800839
parent
1d9801f59f
commit
08d2e30c53
|
@ -106,6 +106,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
lsSecuenciaRutaTramoVO.clear();
|
||||
actualizaModel();
|
||||
}
|
||||
|
||||
this.claseServicio = claseServicio;
|
||||
}
|
||||
|
||||
|
@ -121,6 +122,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
public void agregarTodos(List<SecuenciaRutaTramoVO> lsSecuenciaRutaTramoVO) {
|
||||
this.lsSecuenciaRutaTramoVO.clear();
|
||||
this.lsSecuenciaRutaTramoVO.addAll(lsSecuenciaRutaTramoVO);
|
||||
|
||||
actualizaModel();
|
||||
}
|
||||
|
||||
|
@ -198,7 +200,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
}
|
||||
|
||||
actualizaModel();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -220,6 +221,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
@ -231,13 +233,14 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
*/
|
||||
public boolean existe(Parada parada) {
|
||||
boolean fueEncontrado = false;
|
||||
SecuenciaRutaTramoVO s = null;
|
||||
|
||||
for (int j = 0; (j < lsSecuenciaRutaTramoVO.size()) && !fueEncontrado; j++) {
|
||||
if (lsSecuenciaRutaTramoVO.get(j).getOrigen().equals(parada) || lsSecuenciaRutaTramoVO.get(j).getDestino().equals(parada)) {
|
||||
fueEncontrado = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return fueEncontrado;
|
||||
}
|
||||
|
||||
|
@ -245,31 +248,27 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
Columns columns = new Columns();
|
||||
|
||||
Column columnSecuencia = new Column("#");
|
||||
columnSecuencia.setWidth("5%");
|
||||
columnSecuencia.setWidth("7%");
|
||||
columns.appendChild(columnSecuencia);
|
||||
|
||||
Column columnOrigen = new Column(Labels.getLabel("gridRutaSecuencia.columnOrigen.label"));
|
||||
columnOrigen.setWidth("10%");
|
||||
columnOrigen.setWidth("15%");
|
||||
columns.appendChild(columnOrigen);
|
||||
|
||||
Column columnDestino = new Column(Labels.getLabel("gridRutaSecuencia.columnDestino.label"));
|
||||
columnDestino.setWidth("10%");
|
||||
columnDestino.setWidth("15%");
|
||||
columns.appendChild(columnDestino);
|
||||
|
||||
Column columnVia = new Column(Labels.getLabel("gridRutaSecuencia.columnVia.label"));
|
||||
columnVia.setWidth("25%");
|
||||
columnVia.setWidth("30%");
|
||||
columns.appendChild(columnVia);
|
||||
|
||||
Column kmsReal = new Column(Labels.getLabel("gridRutaSecuencia.columnKmsReal.label"));
|
||||
kmsReal.setWidth("15%");
|
||||
kmsReal.setWidth("20%");
|
||||
columns.appendChild(kmsReal);
|
||||
|
||||
Column kmsConductor = new Column(Labels.getLabel("gridRutaSecuencia.columnKmsConductor.label"));
|
||||
kmsConductor.setWidth("15%");
|
||||
columns.appendChild(kmsConductor);
|
||||
|
||||
Column tiempoRecorrido = new Column(Labels.getLabel("gridRutaSecuencia.columnTiempoRecorrido.label"));
|
||||
tiempoRecorrido.setWidth("15%");
|
||||
tiempoRecorrido.setWidth("20%");
|
||||
columns.appendChild(tiempoRecorrido);
|
||||
|
||||
Column columnIDTramo = new Column(Labels.getLabel("gridRutaSecuencia.columnIDTramo.label"));
|
||||
|
@ -282,8 +281,8 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
@Override
|
||||
public void render(Row row, Object obj) throws Exception {
|
||||
final SecuenciaRutaTramoVO secuenciaRutaTramoVO = (SecuenciaRutaTramoVO) obj;
|
||||
dataBinder.bindBean(row.getUuid(), secuenciaRutaTramoVO);// binder
|
||||
// row->bean
|
||||
// binder row->bean
|
||||
dataBinder.bindBean(row.getUuid(), secuenciaRutaTramoVO);
|
||||
|
||||
// Cell secuencia
|
||||
Intbox ibxSumSecuencia = new Intbox(secuenciaRutaTramoVO.getSecuencia());
|
||||
|
@ -349,9 +348,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
final MyCustomTextboxDecimal dKmsReal = new MyCustomTextboxDecimal((secuenciaRutaTramoVO.getKmReal() == null) ? BigDecimal.ZERO
|
||||
: secuenciaRutaTramoVO.getKmReal());
|
||||
dKmsReal.setWidth("90%");
|
||||
final MyCustomTextboxDecimal dKmsConductor = new MyCustomTextboxDecimal(
|
||||
(secuenciaRutaTramoVO.getKmPagoConductor() == null) ? BigDecimal.ZERO : secuenciaRutaTramoVO.getKmPagoConductor());
|
||||
dKmsConductor.setWidth("90%");
|
||||
|
||||
final Spinner spHora = new Spinner();
|
||||
final Spinner spMinuto = new Spinner();
|
||||
final Label lblID = new Label("");
|
||||
|
@ -372,7 +369,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
public void onEvent(Event evt) throws Exception {
|
||||
if (cboVia.getSelectedItem() != null) {
|
||||
|
||||
BigDecimal kmPagoConductorAntigo = secuenciaRutaTramoVO.getKmPagoConductor();
|
||||
BigDecimal kmRealAntigo = secuenciaRutaTramoVO.getKmReal();
|
||||
Hora tiempoRecorridoAntigo = secuenciaRutaTramoVO.getTiempoRecorrido();
|
||||
|
||||
|
@ -387,10 +383,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
// la pantalla con los nuevos
|
||||
// valores
|
||||
dKmsReal.setValueBigDecimal(secuenciaRutaTramoVO.getKmReal());
|
||||
dKmsConductor.setValueBigDecimal(secuenciaRutaTramoVO.getKmPagoConductor());
|
||||
|
||||
} else {
|
||||
secuenciaRutaTramoVO.setKmPagoConductor(kmPagoConductorAntigo);
|
||||
secuenciaRutaTramoVO.setKmReal(kmRealAntigo);
|
||||
}
|
||||
|
||||
|
@ -408,7 +401,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
}
|
||||
|
||||
dKmsReal.setReadonly(!tramoEditable);
|
||||
dKmsConductor.setReadonly(!tramoEditable);
|
||||
spHora.setDisabled(!tramoServicioEditable);
|
||||
spMinuto.setDisabled(!tramoServicioEditable);
|
||||
|
||||
|
@ -426,12 +418,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
|
||||
row.appendChild(dKmsReal);
|
||||
|
||||
// Cell Kms Conductor
|
||||
dKmsConductor.setReadonly(!esTramoEditable);
|
||||
dataBinder.addBinding(dKmsConductor, "value", row.getUuid() + ".kmPagoConductor", null, null, "save",
|
||||
"com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter", null, null, null);
|
||||
row.appendChild(dKmsConductor);
|
||||
|
||||
// Cell Tiempo Recorrido
|
||||
Hbox hbox = new Hbox();
|
||||
|
||||
|
@ -481,7 +467,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
List<Parada> lsParadas = new ArrayList<Parada>();
|
||||
|
||||
BigDecimal totalKmRealRemovido = BigDecimal.ZERO;
|
||||
BigDecimal totalKmConductorRemovido = BigDecimal.ZERO;
|
||||
Hora totalTiempoRecorridoRemovido = new Hora();
|
||||
|
||||
for (SecuenciaRutaTramoVO s : lsSecuenciaRutaTramoVO) {
|
||||
|
@ -490,7 +475,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
lsParadas.add(s.getOrigen());
|
||||
}
|
||||
} else {
|
||||
totalKmConductorRemovido = totalKmConductorRemovido.add(s.getKmPagoConductor());
|
||||
totalKmRealRemovido = totalKmRealRemovido.add(s.getKmReal());
|
||||
totalTiempoRecorridoRemovido = totalTiempoRecorridoRemovido.sumar(s.getTiempoRecorrido());
|
||||
}
|
||||
|
@ -499,7 +483,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
lsParadas.add(s.getDestino());
|
||||
}
|
||||
} else {
|
||||
totalKmConductorRemovido = totalKmConductorRemovido.add(s.getKmPagoConductor());
|
||||
totalKmRealRemovido = totalKmRealRemovido.add(s.getKmReal());
|
||||
totalTiempoRecorridoRemovido = totalTiempoRecorridoRemovido.sumar(s.getTiempoRecorrido());
|
||||
}
|
||||
|
@ -516,7 +499,6 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
s = new SecuenciaRutaTramoVO(origenTramo, destinoTramo, i, null);
|
||||
// si no existe, es el tramo nuevo. Entonces agrego los valores
|
||||
// eliminados
|
||||
s.setKmPagoConductor(totalKmConductorRemovido);
|
||||
s.setKmReal(totalKmRealRemovido);
|
||||
s.setTiempoRecorrido(totalTiempoRecorridoRemovido);
|
||||
}
|
||||
|
@ -554,6 +536,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
if (lsSecuenciaRutaTramoVO.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return lsSecuenciaRutaTramoVO.get(0).getOrigen();
|
||||
}
|
||||
|
||||
|
@ -566,6 +549,7 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
if (lsSecuenciaRutaTramoVO.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return lsSecuenciaRutaTramoVO.get(lsSecuenciaRutaTramoVO.size() - 1).getDestino();
|
||||
}
|
||||
|
||||
|
@ -606,11 +590,9 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
}
|
||||
|
||||
if (tramo != null) {
|
||||
secuenciaRutaTramoVO.setKmPagoConductor(tramo.getKmPagoConductor());
|
||||
secuenciaRutaTramoVO.setKmReal(tramo.getKmReal());
|
||||
secuenciaRutaTramoVO.setTramoId(tramo.getTramoId());
|
||||
} else {
|
||||
secuenciaRutaTramoVO.setKmPagoConductor(BigDecimal.ZERO);
|
||||
secuenciaRutaTramoVO.setKmReal(BigDecimal.ZERO);
|
||||
secuenciaRutaTramoVO.setTramoId(null);
|
||||
}
|
||||
|
@ -685,5 +667,4 @@ public class GridRutaTramo extends Grid implements RowRenderer, RendererCtrl {
|
|||
return (BigDecimal) new StringDecimalToDecimalConverter().coerceToBean(val, this);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.zkoss.zul.Textbox;
|
|||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Tramo;
|
||||
import com.rjconsultores.ventaboletos.entidad.Via;
|
||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||
import com.rjconsultores.ventaboletos.service.ViaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
|
@ -45,8 +44,6 @@ public class BusquedaTramosController extends MyGenericForwardComposer {
|
|||
@Autowired
|
||||
private transient PagedListWrapper<Tramo> plwTramos;
|
||||
@Autowired
|
||||
private ParadaService paradaService;
|
||||
@Autowired
|
||||
private ViaService viaService;
|
||||
private MyListbox tramosList;
|
||||
private Paging pagingTramos;
|
||||
|
@ -55,57 +52,8 @@ public class BusquedaTramosController extends MyGenericForwardComposer {
|
|||
private Combobox cmbParadaDestino;
|
||||
private Combobox cmbVia;
|
||||
private Intbox txtKmReal;
|
||||
private Intbox txtKmPagoConductor;
|
||||
private List<Via> lsVias;
|
||||
|
||||
public Paging getPagingTramos() {
|
||||
return pagingTramos;
|
||||
}
|
||||
|
||||
public void setPagingTramos(Paging pagingTramos) {
|
||||
this.pagingTramos = pagingTramos;
|
||||
}
|
||||
|
||||
public MyListbox getTramosList() {
|
||||
return tramosList;
|
||||
}
|
||||
|
||||
public void setTramosList(MyListbox tramosList) {
|
||||
this.tramosList = tramosList;
|
||||
}
|
||||
|
||||
public Textbox getTxtNome() {
|
||||
return txtNome;
|
||||
}
|
||||
|
||||
public void setTxtNome(Textbox txtNome) {
|
||||
this.txtNome = txtNome;
|
||||
}
|
||||
|
||||
public Combobox getCmbParadaDestino() {
|
||||
return cmbParadaDestino;
|
||||
}
|
||||
|
||||
public void setCmbParadaDestino(Combobox cmbParadaDestino) {
|
||||
this.cmbParadaDestino = cmbParadaDestino;
|
||||
}
|
||||
|
||||
public Combobox getCmbParadaOrigem() {
|
||||
return cmbParadaOrigem;
|
||||
}
|
||||
|
||||
public void setCmbParadaOrigem(Combobox cmbParadaOrigem) {
|
||||
this.cmbParadaOrigem = cmbParadaOrigem;
|
||||
}
|
||||
|
||||
public Combobox getCmbVia() {
|
||||
return cmbVia;
|
||||
}
|
||||
|
||||
public void setCmbVia(Combobox cmbVia) {
|
||||
this.cmbVia = cmbVia;
|
||||
}
|
||||
|
||||
public List<Via> getLsVias() {
|
||||
return lsVias;
|
||||
}
|
||||
|
@ -114,46 +62,6 @@ public class BusquedaTramosController extends MyGenericForwardComposer {
|
|||
this.lsVias = lsVias;
|
||||
}
|
||||
|
||||
public Intbox getTxtKmPagoConductor() {
|
||||
return txtKmPagoConductor;
|
||||
}
|
||||
|
||||
public void setTxtKmPagoConductor(Intbox txtKmPagoConductor) {
|
||||
this.txtKmPagoConductor = txtKmPagoConductor;
|
||||
}
|
||||
|
||||
public Intbox getTxtKmReal() {
|
||||
return txtKmReal;
|
||||
}
|
||||
|
||||
public void setTxtKmReal(Intbox txtKmReal) {
|
||||
this.txtKmReal = txtKmReal;
|
||||
}
|
||||
|
||||
public ParadaService getParadaService() {
|
||||
return paradaService;
|
||||
}
|
||||
|
||||
public void setParadaService(ParadaService paradaService) {
|
||||
this.paradaService = paradaService;
|
||||
}
|
||||
|
||||
public PagedListWrapper<Tramo> getPlwTramos() {
|
||||
return plwTramos;
|
||||
}
|
||||
|
||||
public void setPlwTramos(PagedListWrapper<Tramo> plwTramos) {
|
||||
this.plwTramos = plwTramos;
|
||||
}
|
||||
|
||||
public ViaService getViaService() {
|
||||
return viaService;
|
||||
}
|
||||
|
||||
public void setViaService(ViaService viaService) {
|
||||
this.viaService = viaService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
@ -191,11 +99,9 @@ public class BusquedaTramosController extends MyGenericForwardComposer {
|
|||
|
||||
private void refreshLista() {
|
||||
HibernateSearchObject<Tramo> tramoBusqueda =
|
||||
new HibernateSearchObject<Tramo>(Tramo.class,
|
||||
pagingTramos.getPageSize());
|
||||
new HibernateSearchObject<Tramo>(Tramo.class, pagingTramos.getPageSize());
|
||||
|
||||
tramoBusqueda.addFilterLike("desctramo",
|
||||
"%" + txtNome.getText().trim().concat("%"));
|
||||
tramoBusqueda.addFilterLike("desctramo", "%" + txtNome.getText().trim().concat("%"));
|
||||
|
||||
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
||||
if (cbiOrigem != null) {
|
||||
|
@ -216,7 +122,6 @@ public class BusquedaTramosController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
tramoBusqueda.addFilterEqual("kmReal", txtKmReal.getValue());
|
||||
tramoBusqueda.addFilterEqual("kmPagoConductor", txtKmPagoConductor.getValue());
|
||||
|
||||
tramoBusqueda.addSortAsc("desctramo");
|
||||
tramoBusqueda.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
|
|
@ -111,7 +111,6 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
private Combobox cmbCoeficiente3;
|
||||
private Combobox cmbOrgaoConcedente;
|
||||
private Textbox txKmReal;
|
||||
private Textbox txtKmPagoConductor;
|
||||
private Textbox txtNome;
|
||||
private Intbox itxCantkmpagoconductor;
|
||||
private Intbox txtKMCoeficiente1;
|
||||
|
@ -270,7 +269,6 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
constraintTarifa = new ConstraintNumberBD(8, 2, true);
|
||||
|
||||
txKmReal.setConstraint(constraintTarifa);
|
||||
txtKmPagoConductor.setConstraint(constraintTarifa);
|
||||
tabExcepcionesKm.setVisible(ApplicationProperties.getInstance().exhibirExcepcionesTramoKm());
|
||||
|
||||
aplicarMascaras();
|
||||
|
@ -278,7 +276,6 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
|
||||
private void aplicarMascaras() {
|
||||
Clients.evalJavaScript("jQuery('#" + txKmReal.getUuid() + "').format({allow_negative:false,precision: 2,decimal:'.',autofix:true});");
|
||||
Clients.evalJavaScript("jQuery('#" + txtKmPagoConductor.getUuid() + "').format({allow_negative:false,precision: 2,decimal:'.',autofix:true});");
|
||||
}
|
||||
|
||||
public void onClick$btnSalvarServicio(Event ev) throws InterruptedException {
|
||||
|
@ -508,7 +505,6 @@ public class EditarTramosController extends MyGenericForwardComposer {
|
|||
|
||||
public void onClick$btnSalvar(Event ev) throws InterruptedException {
|
||||
txKmReal.getValue();
|
||||
txtKmPagoConductor.getValue();
|
||||
txtNome.getValue();
|
||||
cmbParadaOrigem.getValue(true);
|
||||
cmbParadaDestino.getValue(true);
|
||||
|
|
|
@ -30,6 +30,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|||
@Scope("prototype")
|
||||
public class EditarCombinacionTramoRutaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ViaService viaService;
|
||||
@Autowired
|
||||
|
@ -64,12 +65,13 @@ public class EditarCombinacionTramoRutaController extends MyGenericForwardCompos
|
|||
|
||||
Messagebox.show(Labels.getLabel("editarCombinacionTramoRutaController.MSG.rutaIdaGenerada",
|
||||
new Object[] { rutaIda.getRutaId() + " - " + rutaIda.getDescruta() }),
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
if (!gridRutaSecuenciaVolta.isEmpty()) {
|
||||
int resp = Messagebox.show(Labels.getLabel("editarCombinacionTramoRutaController.MSG.generarRutaRegreso"),
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"), Messagebox.YES | Messagebox.NO,
|
||||
Messagebox.QUESTION);
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"),
|
||||
Messagebox.YES | Messagebox.NO, Messagebox.QUESTION);
|
||||
|
||||
if (resp == Messagebox.YES) {
|
||||
rutaTramoRegresoVO.setLsCombinacionRutaTramoVO(gridRutaSecuenciaVolta.getLsSecuenciaRutaTramoVO());
|
||||
|
@ -78,7 +80,8 @@ public class EditarCombinacionTramoRutaController extends MyGenericForwardCompos
|
|||
if (rutaRegresso != null) {
|
||||
Messagebox.show(Labels.getLabel("editarCombinacionTramoRutaController.MSG.rutaRegresoGenerada",
|
||||
new Object[] { rutaRegresso.getRutaId() + " - " + rutaRegresso.getDescruta() }),
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
Labels.getLabel("editarCombinacionTramoRutaController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -87,8 +90,8 @@ public class EditarCombinacionTramoRutaController extends MyGenericForwardCompos
|
|||
winEditarTramoRuta.detach();
|
||||
this.closeWindow();
|
||||
} catch (BusinessException e1) {
|
||||
Messagebox.show(e1.getMessage(), Labels.getLabel("editarCombinacionTramoRutaController.window.title"), Messagebox.OK,
|
||||
Messagebox.ERROR);
|
||||
Messagebox.show(e1.getMessage(), Labels.getLabel("editarCombinacionTramoRutaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.esquemaoperacional.generaciontramosrutas;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -16,7 +15,6 @@ import org.springframework.stereotype.Controller;
|
|||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
|
@ -26,12 +24,10 @@ import org.zkoss.zul.Window;
|
|||
|
||||
import com.rjconsultores.ventaboletos.entidad.ClaseServicio;
|
||||
import com.rjconsultores.ventaboletos.entidad.Empresa;
|
||||
import com.rjconsultores.ventaboletos.entidad.RutaEmpresa;
|
||||
import com.rjconsultores.ventaboletos.service.ClaseServicioService;
|
||||
import com.rjconsultores.ventaboletos.service.EmpresaService;
|
||||
import com.rjconsultores.ventaboletos.service.TramoRutaService;
|
||||
import com.rjconsultores.ventaboletos.service.ViaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.vo.esquemaoperacional.RutaTramoVO;
|
||||
import com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.GridRutaTramo;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
|
@ -44,6 +40,8 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
|||
@Controller("editarTramoRutaController")
|
||||
@Scope("prototype")
|
||||
public class EditarTramoRutaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ViaService viaService;
|
||||
@Autowired
|
||||
|
@ -70,15 +68,17 @@ public class EditarTramoRutaController extends MyGenericForwardComposer {
|
|||
lsClaseServicio = claseServicioService.obtenerTodos();
|
||||
lsEmpresa = empresaService.obtenerIndTipo1();
|
||||
lsRutaEmpresa = new ArrayList<Empresa>();
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
gridRutaSecuencia.setLsVias(viaService.obtenerTodos());
|
||||
}
|
||||
|
||||
public void onClick$btnCombinacion(Event e) throws InterruptedException {
|
||||
|
||||
if (lsRutaEmpresa.isEmpty()) {
|
||||
Messagebox.show(Labels.getLabel("editarTramoRutaController.msg.empresaObligatoria"),
|
||||
Labels.getLabel("editarTramoRutaController.window.title"), Messagebox.OK, Messagebox.INFORMATION);
|
||||
Labels.getLabel("editarTramoRutaController.window.title"), Messagebox.OK,
|
||||
Messagebox.INFORMATION);
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -144,7 +144,8 @@ public class EditarTramoRutaController extends MyGenericForwardComposer {
|
|||
lsRutaEmpresa.add(empresa);
|
||||
rutaEmpresaList.setData(lsRutaEmpresa);
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"), Labels.getLabel("editarTramoRutaController.window.title"),
|
||||
Messagebox.show(Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("editarTramoRutaController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
|||
@Scope("prototype")
|
||||
public class NuevaParadaController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
@Autowired
|
||||
private ViaService viaService;
|
||||
private GridRutaTramo gridRutaSecuencia;
|
||||
|
@ -70,13 +71,13 @@ public class NuevaParadaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
private void validar() {
|
||||
if (cmbParadaOrigen.getSelectedItem() == null){
|
||||
if (cmbParadaOrigen.getSelectedItem() == null) {
|
||||
throw new WrongValueException(cmbParadaOrigen, Labels.getLabel("MSG.necesita.origen"));
|
||||
}
|
||||
if (cmbParadaDestino.getSelectedItem() == null){
|
||||
if (cmbParadaDestino.getSelectedItem() == null) {
|
||||
throw new WrongValueException(cmbParadaDestino, Labels.getLabel("MSG.necesita.destino"));
|
||||
}
|
||||
if (cmbVia.getSelectedItem() == null){
|
||||
if (cmbVia.getSelectedItem() == null) {
|
||||
throw new WrongValueException(cmbVia, Labels.getLabel("MSG.necesita.via"));
|
||||
}
|
||||
}
|
||||
|
@ -104,11 +105,11 @@ public class NuevaParadaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
} catch (IllegalArgumentException e1) {
|
||||
Messagebox.show(e1.getMessage(), Labels.getLabel("nuevaParadaController.window.title"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
Messagebox.show(e1.getMessage(),
|
||||
Labels.getLabel("nuevaParadaController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
} catch (ParadaExisteException e1) {
|
||||
Messagebox.show(e1.getMessage(), Labels.getLabel("nuevaParadaController.window.title"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
Messagebox.show(e1.getMessage(),
|
||||
Labels.getLabel("nuevaParadaController.window.title"), Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
|
||||
this.closeWindow();
|
||||
|
@ -117,5 +118,4 @@ public class NuevaParadaController extends MyGenericForwardComposer {
|
|||
public List<Via> getLsVias() {
|
||||
return lsVias;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,10 +39,10 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
private Integer scale;
|
||||
private Boolean obligatorio = false;
|
||||
private Boolean allowZero = false;
|
||||
private Boolean allowNegative = false;
|
||||
private Boolean allowNegative = true;
|
||||
private Boolean defaultZero = false;
|
||||
private Constraint myConstraint;
|
||||
private Constraint constraintTag;// variable con las constraints informadas
|
||||
private Constraint constraintTag; // variable con las constraints informadas
|
||||
// en constraint="no empty"
|
||||
|
||||
public MyTextboxDecimal(String value) throws WrongValueException {
|
||||
|
@ -70,7 +70,6 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
}
|
||||
|
||||
private BigDecimal getBigDecimal(String val) {
|
||||
|
||||
if ((val == null) || (val.trim().equals(""))) {
|
||||
return (BigDecimal) null;
|
||||
}
|
||||
|
@ -79,9 +78,7 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
boolean negativo = val.startsWith("-");
|
||||
if (negativo) {
|
||||
val = val.replace("-", "").replaceAll(",", "");
|
||||
return (val.isEmpty() ? (BigDecimal) null : new BigDecimal(val)
|
||||
.negate());
|
||||
|
||||
return (val.isEmpty() ? (BigDecimal) null : new BigDecimal(val).negate());
|
||||
} else {
|
||||
return new BigDecimal(val.replaceAll(",", ""));
|
||||
}
|
||||
|
@ -91,7 +88,7 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
Clients.evalJavaScript("jQuery('#" + this.getUuid()
|
||||
+ "').maskMoney({allowZero:" + allowZero + ", allowNegative:"
|
||||
+ allowNegative + ", defaultZero:" + defaultZero
|
||||
+ ",thousands:',', decimal:'.'})");
|
||||
+ ",thousands:',', decimal:'.', precision:" + (scale == null ? 2 : scale) + "})");
|
||||
}
|
||||
|
||||
public String getMaxValue() {
|
||||
|
@ -193,7 +190,6 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
comp,
|
||||
Labels.getLabel("MSG.CONSTRAINT.CONSTRAINTNUMBERBDOBLIGATORIO"));
|
||||
} else if (maxValue != null) {
|
||||
|
||||
BigDecimal bd = getBigDecimal(val);
|
||||
|
||||
if (bd == null) {
|
||||
|
@ -207,10 +203,8 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
setConstraint((String) null);
|
||||
MyTextboxDecimal.this.setText((String) null);
|
||||
setConstraint(c);
|
||||
throw new WrongValueException(comp,
|
||||
"El valor maximo permitido es " + maxValue);
|
||||
throw new WrongValueException(comp, "El valor maximo permitido es " + maxValue);
|
||||
}
|
||||
|
||||
} else if ((precision != null) && (scale != null)) {
|
||||
BigDecimal valor = getBigDecimal(val);
|
||||
|
||||
|
@ -225,13 +219,9 @@ public class MyTextboxDecimal extends Textbox implements AfterCompose {
|
|||
MyTextboxDecimal.this.setText((String) null);
|
||||
setConstraint(c);
|
||||
throw new WrongValueException(comp, Labels.getLabel(
|
||||
"MSG.CONSTRAINT.CONSTRAINTNUMBERBD", new Object[] {
|
||||
precision - 2, scale }));
|
||||
"MSG.CONSTRAINT.CONSTRAINTNUMBERBD", new Object[] { precision - 2, scale }));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,100 +11,103 @@ import org.zkoss.zul.Listitem;
|
|||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* @author Rafius
|
||||
*/
|
||||
public class RenderConfiguracionCorrida implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
EsquemaCorrida corrida = (EsquemaCorrida) o;
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
EsquemaCorrida corrida = (EsquemaCorrida) o;
|
||||
|
||||
Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString());
|
||||
lc.setParent(lstm);
|
||||
Listcell lc = new Listcell(corrida.getEsquemacorridaId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yy");
|
||||
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
|
||||
lc.setParent(lstm);
|
||||
SimpleDateFormat dt = new SimpleDateFormat("dd/MM/yy");
|
||||
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecniciovigencia()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
|
||||
lc.setParent(lstm);
|
||||
lc = new Listcell(dt.format(corrida.getEsquemaOperacional().getFecfinvigencia()));
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (corrida.getHorasalida() == null) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
|
||||
lc = new Listcell(hr.format(corrida.getHorasalida()));
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
//Ruta
|
||||
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
|
||||
lc.setParent(lstm);
|
||||
//Marca
|
||||
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
|
||||
lc.setParent(lstm);
|
||||
if (corrida.getHorasalida() == null) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
SimpleDateFormat hr = new SimpleDateFormat("HH:mm");
|
||||
lc = new Listcell(hr.format(corrida.getHorasalida()));
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
// Ruta
|
||||
lc = new Listcell(corrida.getRuta().getDescruta() == null ? "-" : corrida.getRuta().getDescruta());
|
||||
lc.setParent(lstm);
|
||||
|
||||
//Semana
|
||||
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "L " : "- ";
|
||||
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "MA " : "- ";
|
||||
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "MI " : "- ";
|
||||
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "J " : "- ";
|
||||
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "V " : "- ";
|
||||
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
|
||||
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
|
||||
// Marca
|
||||
lc = new Listcell(corrida.getMarca().getDescmarca() == null ? "-" : corrida.getMarca().getDescmarca());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(l + ma + mi + j + v + s + d);
|
||||
lc.setParent(lstm);
|
||||
// Semana
|
||||
String l = (corrida.getIndlunes() == Boolean.TRUE) ? "S " : "- ";
|
||||
String ma = (corrida.getIndmartes() == Boolean.TRUE) ? "T " : "- ";
|
||||
String mi = (corrida.getIndmiercoles() == Boolean.TRUE) ? "Q " : "- ";
|
||||
String j = (corrida.getIndjueves() == Boolean.TRUE) ? "Q " : "- ";
|
||||
String v = (corrida.getIndviernes() == Boolean.TRUE) ? "S " : "- ";
|
||||
String s = (corrida.getIndsabado() == Boolean.TRUE) ? "S " : "- ";
|
||||
String d = (corrida.getInddomingo() == Boolean.TRUE) ? "D " : "- ";
|
||||
|
||||
//Clase
|
||||
try {
|
||||
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
//EmpC
|
||||
try {
|
||||
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
//EmpI
|
||||
try {
|
||||
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
//RolOperativo
|
||||
try {
|
||||
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
lc = new Listcell(l + ma + mi + j + v + s + d);
|
||||
lc.setParent(lstm);
|
||||
|
||||
//Status
|
||||
// Clase
|
||||
try {
|
||||
lc = new Listcell(corrida.getClaseServicio().getDescclase() == null ? "-" : corrida.getClaseServicio().getDescclase());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
if (corrida.getStatusCorrida() == null) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
} else if (corrida.getStatusCorrida().equals("L")) {
|
||||
lc = new Listcell("LATENTE");
|
||||
lc.setParent(lstm);
|
||||
} else if (corrida.getStatusCorrida().equals("A")) {
|
||||
lc = new Listcell("AUTORIZADA");
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
lc = new Listcell("CANCELADA");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
// EmpC
|
||||
try {
|
||||
lc = new Listcell(corrida.getEmpresa().getNombempresa() == null ? "-" : corrida.getEmpresa().getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
lstm.setAttribute("data", corrida);
|
||||
}
|
||||
// EmpI
|
||||
try {
|
||||
lc = new Listcell(corrida.getEmpresa1().getNombempresa() == null ? "-" : corrida.getEmpresa1().getNombempresa());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
// RolOperativo
|
||||
try {
|
||||
lc = new Listcell(corrida.getRolOperativo().getDescroloperativo() == null ? "-" : corrida.getRolOperativo().getDescroloperativo());
|
||||
lc.setParent(lstm);
|
||||
} catch (Exception e) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
// Status
|
||||
if (corrida.getStatusCorrida() == null) {
|
||||
lc = new Listcell("-");
|
||||
lc.setParent(lstm);
|
||||
} else if (corrida.getStatusCorrida().equals("L")) {
|
||||
lc = new Listcell("LATENTE");
|
||||
lc.setParent(lstm);
|
||||
} else if (corrida.getStatusCorrida().equals("A")) {
|
||||
lc = new Listcell("AUTORIZADA");
|
||||
lc.setParent(lstm);
|
||||
} else {
|
||||
lc = new Listcell("CANCELADA");
|
||||
lc.setParent(lstm);
|
||||
}
|
||||
|
||||
lstm.setAttribute("data", corrida);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,14 +60,6 @@ public class RenderTramo implements ListitemRenderer {
|
|||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
BigDecimal kmPgCondutor = tramo.getKmPagoConductor();
|
||||
if (kmPgCondutor != null) {
|
||||
lc = new Listcell(kmPgCondutor.setScale(2, RoundingMode.UP).toString());
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", tramo);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,31 +25,46 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.AlertaCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Autobus</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Autorizacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AutorizacionPerfil
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Articulo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AsientoExclusivo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AsientoExclusivo
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Banco</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCargo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCtrl
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CancelacionCargo
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Categoria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaClase</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCorrida</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCorrida
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaDescuento</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaDescuento
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMarca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMercado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaMercado
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaPeriodo
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CategoriaTipoPtoVta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Ciudad</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CoeficienteTarifa
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Colonia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClaseServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ComisionistaExterno</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CompaniaBancaria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ClaseservicioEquivalencia
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ComisionistaExterno
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CompaniaBancaria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Conductor</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfigRestriccionPago
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConfRestricaoCanalVenta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Convenio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ConvenioDet</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Constante</value>
|
||||
|
@ -57,73 +72,107 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.CorridaCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CorridaTramo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Cortesia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaDireccion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaBeneficiario
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CortesiaDireccion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CuponConvenio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CuponSecretaria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DepositoBancario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DiagramaAutobus</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.CuponSecretaria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DetDiagramaAutobus
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DepositoBancario
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DiagramaAutobus
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Division</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Empleado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Empresa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EmpresaEquivalencia
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Estacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaAsiento</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaCorrida</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaOperacional
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EsquemaTramo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Estado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionRedondo
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.FormaPago</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.FormaPagoDet</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.GrupoCortesia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.FuncionSistema</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Marca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MercadoCompetido</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MerchantBancario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MercadoCompetido
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MerchantBancario
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Moneda</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MarcaClaseServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoCancelacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivocancelacionEquivalencia
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoReimpresion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.MotivoViaje</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Nodo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.OrgaoConcedente</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.OrgaoConcedente
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.OrgaoTramo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Pais</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Parada</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCanjePunto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCompraPunto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamRecoleccion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParadaEquivalencia
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaMasivo
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamAcumulaPunto
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCanjePunto
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCostoTarjeta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamCompraPunto
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamRecoleccion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Perfil</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PerfilFuncion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PeriodoVacacional</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PeriodoVacacional
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Plaza</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Pricing</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingAnticipacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingAnticipacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingImporte</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingVigencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingVigencia
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingClase</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingMarca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingMercado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingDia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingCorrida</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingCategoria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingPuntoVenta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingCategoria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoPtoVta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingTipoServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingAsiento</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingOcupacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingEspecifico</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingOcupacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingEspecifico
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PricingRuta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdClaseServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdClaseServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdFormaPago</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdMarca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdPrecio</value>
|
||||
|
@ -132,41 +181,58 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.ProdRuta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdTipoptovta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProdVigencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ProductoServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PtovtaEmpresa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PtoVtaUsuarioBancario
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.PuntoVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Redondeo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RedondeoCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RedondeoMarca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCategoria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionClase</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMarca</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMercado</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RestriccionPago</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCategoria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionClase
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionCtrl
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMarca
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionMercado
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ReservacionPuntoVenta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RestriccionPago
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RolOperativo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Ruta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RutaCombinacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RutaCombinacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RutaEmpresa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RutaSecuencia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RhPagoConductor</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.RhPagoConductor
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Secretaria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Sistema</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaFidelidad
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaRecaudacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Tarifa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaOficial</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaHist</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaMinima</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaCategoria</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaCategoria
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarifaTipoptovta
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoConvenio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCtrl</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCambioCiudad
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCorte</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesiaDescuento
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoCortesia</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoDomicilio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEmpleado</value>
|
||||
|
@ -178,21 +244,26 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.TipoVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Tramo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TramoServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TramoKmServicio</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TramoKmServicio
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TramoTiempo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TramoKm</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Turno</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Usuario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioBancario</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioBancario
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioPerfil</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.UsuarioUbicacion
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Via</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.VigenciaTarifa</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.Zona</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ParamArticulo</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.EventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TipoEventoExtra
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.AjusteEventoExtra
|
||||
</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.TarjetaViaje</value>
|
||||
</list>
|
||||
</property>
|
||||
|
@ -214,21 +285,20 @@
|
|||
<bean id="contextApplicationContextProvider"
|
||||
class="com.rjconsultores.ventaboletos.web.utilerias.spring.ApplicationContextProvider">
|
||||
</bean>
|
||||
<!-- CONFIGURACAO DO BANCO DE DADOS PARA O MEXICO -->
|
||||
<!-- <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> -->
|
||||
<!-- <property name="resourceRef" value="true" /> -->
|
||||
<!-- <property name="jndiName" value="${database.jndi.name}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<!-- CONFIGURACAO DO BANCO DE DADOS PARA O BRASIL -->
|
||||
<bean id="dataSource"
|
||||
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
|
||||
<property name="driverClassName" value="${database.driver}" />
|
||||
<property name="url" value="${database.url}" />
|
||||
<property name="username" value="${database.username}" />
|
||||
<property name="password" value="${database.password}" />
|
||||
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
|
||||
<property name="resourceRef" value="true" />
|
||||
<property name="jndiName" value="${database.jndi.name}" />
|
||||
</bean>
|
||||
|
||||
<!-- <bean id="dataSource" -->
|
||||
<!-- class="org.springframework.jdbc.datasource.DriverManagerDataSource"> -->
|
||||
<!-- <property name="driverClassName" value="${database.driver}" /> -->
|
||||
<!-- <property name="url" value="${database.url}" /> -->
|
||||
<!-- <property name="username" value="${database.username}" /> -->
|
||||
<!-- <property name="password" value="${database.password}" /> -->
|
||||
<!-- </bean> -->
|
||||
|
||||
<!-- ====================================================== -->
|
||||
<!-- Search class from Hibernate-Generic-DAO framework -->
|
||||
<!-- ====================================================== -->
|
||||
|
@ -242,6 +312,9 @@
|
|||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
<bean id="sqlFactory" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory"/>
|
||||
<bean id="sqlBuilder" class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder" factory-bean="sqlFactory" factory-method="getBuilder"/>
|
||||
<bean id="sqlFactory"
|
||||
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLFactory" />
|
||||
<bean id="sqlBuilder"
|
||||
class="com.rjconsultores.ventaboletos.dao.sqlbuilder.SQLBuilder"
|
||||
factory-bean="sqlFactory" factory-method="getBuilder" />
|
||||
</beans>
|
|
@ -7,7 +7,7 @@
|
|||
# <controler>. <id>. <propiedade> = XXX
|
||||
|
||||
#Versao do VentaBoleto:
|
||||
versao = ADM_20120816_1RC44
|
||||
versao = ADM_20120817_1RC45
|
||||
|
||||
# MSG Defaut:
|
||||
MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100
|
||||
|
|
|
@ -43,8 +43,7 @@
|
|||
value="${c:l('editarCoeficienteTarifaController.coeficiente.value')}" />
|
||||
<textbox id="txtCoeficiente"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal"
|
||||
precision="11" scale="6" constraint="no negative,no empty"
|
||||
width="50%" />
|
||||
precision="11" scale="6" constraint="no empty" width="50%" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
|
|
@ -5,86 +5,97 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaTramo" title="${c:l('busquedaTramosController.window.title')}"
|
||||
apply="${busquedaTramosController}" contentStyle="overflow:auto"
|
||||
height="500px" width="1100px" border="normal" >
|
||||
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaTramo.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnCerrar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
<window id="winBusquedaTramo"
|
||||
title="${c:l('busquedaTramosController.window.title')}"
|
||||
apply="${busquedaTramosController}" contentStyle="overflow:auto"
|
||||
height="500px" width="1100px" border="normal">
|
||||
|
||||
<grid>
|
||||
<columns>
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
<column/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="1,3">
|
||||
<label value="${c:l('busquedaTramosController.lhDesc.label')}"/>
|
||||
<textbox id="txtNome" width="99%" use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label value="${c:l('editarTramosController.labelVia.value')}"/>
|
||||
<combobox id="cmbVia" mold="rounded" buttonVisible="true" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="99%" model="@{winBusquedaTramo$composer.lsVias}"/>
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarTramosController.labelOrigen.value')}"/>
|
||||
<combobox id="cmbParadaOrigem" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%"/>
|
||||
<label value="${c:l('editarTramosController.labelDestino.value')}"/>
|
||||
<combobox id="cmbParadaDestino" autodrop="false" use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%"/>
|
||||
</row>
|
||||
<row>
|
||||
<label id="lbKmReal" value="${c:l('editarTramosController.lbKmReal.value')}"/>
|
||||
<intbox id="txtKmReal" width="70px" maxlength="20"/>
|
||||
<label id="lbKmPagoConductor" value="${c:l('editarTramosController.lbKmPagoConductor.value')}"/>
|
||||
<intbox id="txtKmPagoConductor" width="70px" maxlength="20"/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png"
|
||||
width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaTramo.detach()"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaTramosController.btnCerrar.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaTramosController.btnPesquisa.label')}"/>
|
||||
</toolbar>
|
||||
<grid>
|
||||
<columns>
|
||||
<column width="10%" />
|
||||
<column />
|
||||
<column width="10%" />
|
||||
<column />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaTramosController.lhDesc.label')}" />
|
||||
<textbox id="txtNome" width="99%"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
|
||||
<paging id="pagingTramos" pageSize="20" />
|
||||
<listbox id="tramosList" use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="60px" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaTramosController.lhId.label')}"
|
||||
sort="auto(tramoId)"/>
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaTramosController.lhDesc.label')}"
|
||||
sort="auto(desctramo)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelOrigen.value')}"
|
||||
sort="auto(origem.descparada)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelDestino.value')}"
|
||||
sort="auto(destino.descparada)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelVia.value')}"
|
||||
sort="auto(via.nombvia)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.lbKmReal.value')}"
|
||||
sort="auto(kmReal)"/>
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.lbKmPagoConductor.value')}"
|
||||
sort="auto(kmPagoConductor)"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelVia.value')}" />
|
||||
<combobox id="cmbVia" mold="rounded"
|
||||
buttonVisible="true"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
width="99%" model="@{winBusquedaTramo$composer.lsVias}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelOrigen.value')}" />
|
||||
<combobox id="cmbParadaOrigem"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
<label
|
||||
value="${c:l('editarTramosController.labelDestino.value')}" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="100%" />
|
||||
|
||||
</row>
|
||||
<row spans="1,3">
|
||||
<label id="lbKmReal"
|
||||
value="${c:l('editarTramosController.lbKmReal.value')}" />
|
||||
<intbox id="txtKmReal" width="10%" maxlength="20" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaTramosController.btnPesquisa.label')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingTramos" pageSize="20" />
|
||||
<listbox id="tramosList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader id="lhId" width="60px"
|
||||
image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaTramosController.lhId.label')}"
|
||||
sort="auto(tramoId)" />
|
||||
<listheader id="lhDesc" image="/gui/img/create_doc.gif"
|
||||
label="${c:l('busquedaTramosController.lhDesc.label')}"
|
||||
sort="auto(desctramo)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelOrigen.value')}"
|
||||
sort="auto(origem.descparada)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelDestino.value')}"
|
||||
sort="auto(destino.descparada)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.labelVia.value')}"
|
||||
sort="auto(via.nombvia)" />
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramosController.lbKmReal.value')}"
|
||||
sort="auto(kmReal)" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
|
@ -98,13 +98,6 @@
|
|||
maxlength="11"
|
||||
value="@{winEditarTramos$composer.tramo.kmReal}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarTramosController.lbKmPagoConductor.value')}" />
|
||||
<textbox id="txtKmPagoConductor"
|
||||
width="80%" maxlength="11"
|
||||
value="@{winEditarTramos$composer.tramo.kmPagoConductor}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
</tabpanel>
|
||||
|
|
|
@ -5,24 +5,18 @@
|
|||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk>
|
||||
|
||||
<window
|
||||
id="winEditarTramoRuta"
|
||||
border="normal"
|
||||
width="750px"
|
||||
apply="${editarTramoRutaController}"
|
||||
height="550px">
|
||||
<style dynamic="true">.z-textbox{background: #ffa99c} .z-spinner-inp{background:#ffa99c} .z-textbox-real-readonly, .z-textbox-readonly{background:#99beff} .z-spinner-readonly, .z-spinner-text-disd{background:#99beff}</style>
|
||||
<window id="winEditarTramoRuta" border="normal" width="750px"
|
||||
apply="${editarTramoRutaController}" height="550px">
|
||||
<style dynamic="true">
|
||||
.z-textbox{background: #ffa99c}
|
||||
.z-spinner-inp{background:#ffa99c} .z-textbox-real-readonly,
|
||||
.z-textbox-readonly{background:#99beff} .z-spinner-readonly,
|
||||
.z-spinner-text-disd{background:#99beff}
|
||||
</style>
|
||||
<toolbar>
|
||||
<hbox
|
||||
spacing="5px"
|
||||
style="padding:1px"
|
||||
align="right">
|
||||
<button
|
||||
id="btnFechar"
|
||||
height="20"
|
||||
image="/gui/img/exit.png"
|
||||
width="35px"
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarTramoRuta.detach()"
|
||||
tooltiptext="${c:l('editarTramosController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
|
@ -37,53 +31,45 @@
|
|||
<rows>
|
||||
|
||||
<row>
|
||||
<label value="${c:l('editarTramoRutaController.lblRuta.value')}" />
|
||||
<textbox
|
||||
id="txtDscRuta"
|
||||
width="89%"
|
||||
sclass="mydb"
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblRuta.value')}" />
|
||||
<textbox id="txtDscRuta" width="89%" sclass="mydb"
|
||||
readonly="true" />
|
||||
<label value="${c:l('editarTramoRutaController.lblClase.value')}" />
|
||||
<combobox
|
||||
id="cmbClaseServicio"
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblClase.value')}" />
|
||||
<combobox id="cmbClaseServicio"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
constraint="no empty"
|
||||
mold="rounded"
|
||||
buttonVisible="true"
|
||||
constraint="no empty" mold="rounded" buttonVisible="true"
|
||||
width="80%"
|
||||
model="@{winEditarTramoRuta$composer.lsClaseServicio}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarTramoRutaController.lblVtaHandHeld.value')}" />
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblVtaHandHeld.value')}" />
|
||||
<checkbox id="chkVentaHandHeld" />
|
||||
<label value="${c:l('editarTramoRutaController.lblNombrePasajero.value')}" />
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblNombrePasajero.value')}" />
|
||||
<checkbox id="chkSolicitaNombrePasajero" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarTramoRutaController.lblPrefixo.value')}" />
|
||||
<textbox
|
||||
id="txtPrefixo"
|
||||
width="89%"
|
||||
constraint="no empty"
|
||||
sclass="mydb"/>
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lblPrefixo.value')}" />
|
||||
<textbox id="txtPrefixo" width="89%"
|
||||
constraint="no empty" sclass="mydb" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<tabbox id="tb">
|
||||
<tabs id="tabs">
|
||||
<tab
|
||||
id="A"
|
||||
<tab id="A"
|
||||
label="${c:l('editarTramoRutaController.tabRuta.value')}" />
|
||||
<tab
|
||||
id="B"
|
||||
<tab id="B"
|
||||
label="${c:l('editarTramoRutaController.tabEmpresa.value')}" />
|
||||
</tabs>
|
||||
<tabpanels>
|
||||
<tabpanel>
|
||||
<vbox>
|
||||
<grid
|
||||
id="gridRutaSecuencia"
|
||||
mold="paging"
|
||||
<grid id="gridRutaSecuencia" mold="paging"
|
||||
pageSize="11"
|
||||
use="com.rjconsultores.ventaboletos.web.gui.componente.esquemaoperacional.GridRutaTramo"
|
||||
height="330px">
|
||||
|
@ -106,41 +92,32 @@
|
|||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label value="${c:l('editarTramoRutaController.lbEmpresa.value')}" />
|
||||
<combobox
|
||||
id="cmbEmpresa"
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lbEmpresa.value')}" />
|
||||
<combobox id="cmbEmpresa"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded"
|
||||
buttonVisible="true"
|
||||
width="80%"
|
||||
mold="rounded" buttonVisible="true" width="80%"
|
||||
model="@{winEditarTramoRuta$composer.lsEmpresa}" />
|
||||
</row>
|
||||
<row>
|
||||
<label value="${c:l('editarTramoRutaController.lbAddBorrar.value')}" />
|
||||
<label
|
||||
value="${c:l('editarTramoRutaController.lbAddBorrar.value')}" />
|
||||
<hbox>
|
||||
<button
|
||||
id="btnAdicionarEmpresaRuta"
|
||||
height="20"
|
||||
image="/gui/img/add.png"
|
||||
width="35px"
|
||||
<button id="btnAdicionarEmpresaRuta"
|
||||
height="20" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramoRutaController.btnAddEmpresa.tooltiptext')}" />
|
||||
<button
|
||||
id="btnRemoverEmpresaRuta"
|
||||
height="20"
|
||||
image="/gui/img/remove.png"
|
||||
width="35px"
|
||||
<button id="btnRemoverEmpresaRuta"
|
||||
height="20" image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarTramoRutaController.btnBorrarEmpresa.tooltiptext')}" />
|
||||
</hbox>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<listbox
|
||||
id="rutaEmpresaList"
|
||||
<listbox id="rutaEmpresaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
height="260px">
|
||||
<listhead sizable="true">
|
||||
<listheader
|
||||
image="/gui/img/create_doc.gif"
|
||||
<listheader image="/gui/img/create_doc.gif"
|
||||
label="${c:l('editarTramoRutaController.lbEmpresa.value')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
|
Loading…
Reference in New Issue