mantis #6716
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@49023 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
040a142166
commit
a737d5bc0c
|
@ -0,0 +1,230 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeaje;
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeajeVigencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.service.ExcepcionPeajeService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.HibernateSearchObject;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.paginacion.PagedListWrapper;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExcepcionPeaje;
|
||||
|
||||
@Controller("busquedaExcepcionPeajeController")
|
||||
@Scope("prototype")
|
||||
public class BusquedaExcepcionPeajeController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Autowired
|
||||
private transient PagedListWrapper<ExcepcionPeaje> plwExcepcionPeaje;
|
||||
private MyComboboxParada cmbParadaOrigem;
|
||||
private MyComboboxParadaCve cmbParadaOrigemCve;
|
||||
private MyComboboxParada cmbParadaDestino;
|
||||
private MyComboboxParadaCve cmbParadaDestinoCve;
|
||||
private List<Ruta> lsRuta;
|
||||
private Combobox cmbRuta;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
@Autowired
|
||||
private ExcepcionPeajeService excepcionPeajeService;
|
||||
private Paging pagingExcepcionPeaje;
|
||||
private MyListbox excepcionPeajeList;
|
||||
private Intbox txtId;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
lsRuta = rutaService.obtenerTodos();
|
||||
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
}
|
||||
});
|
||||
|
||||
cmbParadaDestinoCve.setItemRenderer(new ComboitemRenderer() {
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
}
|
||||
});
|
||||
|
||||
excepcionPeajeList.setItemRenderer(new RenderExcepcionPeaje());
|
||||
|
||||
// Iterator iterator = collection.iterator();
|
||||
// while (iterator.hasNext()) {
|
||||
// Item item = (Item) iterator.next();
|
||||
// if (item.satisfiesCondition()) {
|
||||
// collection.remove(item);
|
||||
// }
|
||||
// }
|
||||
List<ExcepcionPeaje> ls = excepcionPeajeService.obtenerTodos();
|
||||
for(ExcepcionPeaje e : ls ){
|
||||
|
||||
Iterator iterator = e.getLsExcepcionPeajeVigencia().iterator();
|
||||
while(iterator.hasNext()) {
|
||||
ExcepcionPeajeVigencia it = (ExcepcionPeajeVigencia)iterator.next();
|
||||
if(it.getActivo() == false){
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
excepcionPeajeList.setData(ls);
|
||||
|
||||
excepcionPeajeList.addEventListener("onDoubleClick", new EventListener() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
ExcepcionPeaje ep = (ExcepcionPeaje) excepcionPeajeList.getSelected();
|
||||
verExcepcionPeaje(ep);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
public void onSelect$cmbParadaOrigemCve(Event ev) {
|
||||
if (cmbParadaOrigemCve.getSelectedItem() != null) {
|
||||
cmbParadaOrigem.setComboItemByParada((Parada) cmbParadaOrigemCve.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaOrigem(Event ev) {
|
||||
if (cmbParadaOrigem.getSelectedItem() != null)
|
||||
cmbParadaOrigemCve.setComboItemByParada((Parada) cmbParadaOrigem.getSelectedItem().getValue());
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestinoCve(Event ev) {
|
||||
if (cmbParadaDestinoCve.getSelectedItem() != null) {
|
||||
cmbParadaDestino.setComboItemByParada((Parada) cmbParadaDestinoCve.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestino(Event ev) {
|
||||
if (cmbParadaDestino.getSelectedItem() != null) {
|
||||
cmbParadaDestinoCve.setComboItemByParada((Parada) cmbParadaDestino.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public List<Ruta> getLsRuta() {
|
||||
return lsRuta;
|
||||
}
|
||||
|
||||
public void setLsRuta(List<Ruta> lsRuta) {
|
||||
this.lsRuta = lsRuta;
|
||||
}
|
||||
public Combobox getCmbRuta() {
|
||||
return cmbRuta;
|
||||
}
|
||||
public void setCmbRuta(Combobox cmbRuta) {
|
||||
this.cmbRuta = cmbRuta;
|
||||
}
|
||||
public Paging getPagingExcepcionPeaje() {
|
||||
return pagingExcepcionPeaje;
|
||||
}
|
||||
public void setPagingExcepcionPeaje(Paging pagingExcepcionPeaje) {
|
||||
this.pagingExcepcionPeaje = pagingExcepcionPeaje;
|
||||
}
|
||||
public MyListbox getExcepcionPeajeList() {
|
||||
return excepcionPeajeList;
|
||||
}
|
||||
public void setExcepcionPeajeList(MyListbox excepcionPeajeList) {
|
||||
this.excepcionPeajeList = excepcionPeajeList;
|
||||
}
|
||||
private void verExcepcionPeaje(ExcepcionPeaje ep) {
|
||||
if (ep == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Map args = new HashMap();
|
||||
args.put("excepcionPeaje", ep);
|
||||
// args.put("busquedaCorridaController", this);
|
||||
args.put("excepcionPeajeList", excepcionPeajeList);
|
||||
|
||||
openWindow("/gui/configuraciones_comerciales/editarExcepcionPeaje.zul",
|
||||
Labels.getLabel("editarExcepcionPeajeController.window.title"), args, MODAL);
|
||||
// refreshLista();
|
||||
}
|
||||
public void onClick$btnNovo(Event ev) {
|
||||
verExcepcionPeaje(new ExcepcionPeaje());
|
||||
}
|
||||
|
||||
public void refreshLista() {
|
||||
HibernateSearchObject<ExcepcionPeaje> busquedaExcepcionPeaje =
|
||||
new HibernateSearchObject<ExcepcionPeaje>(ExcepcionPeaje.class,
|
||||
pagingExcepcionPeaje.getPageSize());
|
||||
|
||||
busquedaExcepcionPeaje.addFilterEqual("activo", Boolean.TRUE);
|
||||
|
||||
Integer id = txtId.getValue();
|
||||
busquedaExcepcionPeaje.addFilterEqual("excepcionPeajeId", id);
|
||||
|
||||
Comboitem cbiRuta = cmbRuta.getSelectedItem();
|
||||
Ruta ruta = null;
|
||||
if (cbiRuta != null) {
|
||||
ruta = (Ruta) cbiRuta.getValue();
|
||||
busquedaExcepcionPeaje.addFilterEqual("ruta", ruta);
|
||||
}
|
||||
|
||||
Comboitem cbiOrigem = cmbParadaOrigem.getSelectedItem();
|
||||
Parada origen = null;
|
||||
if (cbiOrigem != null) {
|
||||
origen = (Parada) cbiOrigem.getValue();
|
||||
busquedaExcepcionPeaje.addFilterEqual("origem", origen);
|
||||
}
|
||||
|
||||
Comboitem cbiDestino = cmbParadaDestino.getSelectedItem();
|
||||
Parada destino = null;
|
||||
if (cbiDestino != null) {
|
||||
destino = (Parada) cbiDestino.getValue();
|
||||
busquedaExcepcionPeaje.addFilterEqual("destino", destino);
|
||||
}
|
||||
busquedaExcepcionPeaje.addSortDesc("excepcionPeajeId");
|
||||
|
||||
plwExcepcionPeaje.init(busquedaExcepcionPeaje, excepcionPeajeList, pagingExcepcionPeaje);
|
||||
|
||||
if (excepcionPeajeList.getData().length == 0) {
|
||||
try {
|
||||
Messagebox.show(Labels.getLabel("MSG.ningunRegistro"),
|
||||
Labels.getLabel("busquedaExcepcionPeajeController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
} catch (InterruptedException ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
public void onClick$btnPesquisa(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
|
||||
public void onClick$btnRefresh(Event ev) throws InterruptedException {
|
||||
refreshLista();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,427 @@
|
|||
package com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Scope;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zhtml.Messagebox;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Combobox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.ComboitemRenderer;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Intbox;
|
||||
import org.zkoss.zul.Timebox;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeaje;
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeajeVigencia;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.service.ExcepcionPeajeService;
|
||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderConfiguracionCorridaTramo;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderExcepcionPeajeVigencia;
|
||||
|
||||
@Controller("editarExcepcionPeajeController")
|
||||
@Scope("prototype")
|
||||
public class EditarExcepcionPeajeController extends MyGenericForwardComposer {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private ExcepcionPeaje excepcionPeaje;
|
||||
private MyListbox excepcionPeajeList;
|
||||
|
||||
private MyComboboxParada cmbParadaOrigem;
|
||||
private MyComboboxParadaCve cmbParadaOrigemCve;
|
||||
private MyComboboxParada cmbParadaDestino;
|
||||
private MyComboboxParadaCve cmbParadaDestinoCve;
|
||||
private List<Ruta> lsRuta;
|
||||
private Combobox cmbRuta;
|
||||
@Autowired
|
||||
private RutaService rutaService;
|
||||
@Autowired
|
||||
private ExcepcionPeajeService excepcionPeajeService;
|
||||
private Intbox txtId;
|
||||
private static Logger log = Logger.getLogger(EditarExcepcionPeajeController.class);
|
||||
|
||||
private MyListbox excepcionPeajeVigenciaList;
|
||||
private List<ExcepcionPeajeVigencia> lsExcepcionPeajeVigencia;
|
||||
private ExcepcionPeajeVigencia excepcionPeajeVigencia;
|
||||
|
||||
private Datebox fecInicio;
|
||||
private Datebox fecFin;
|
||||
private Checkbox chkINDLUNES;
|
||||
private Checkbox chkINDMARTES;
|
||||
private Checkbox chkINDMIERCOLES;
|
||||
private Checkbox chkINDJUEVES;
|
||||
private Checkbox chkINDVIERNES;
|
||||
private Checkbox chkINDSABADO;
|
||||
private Checkbox chkINDDOMINGO;
|
||||
private Timebox horaIni;
|
||||
private Timebox horaFin;
|
||||
private MyTextboxDecimal txtPreco;
|
||||
|
||||
public MyComboboxParada getCmbParadaOrigem() {
|
||||
return cmbParadaOrigem;
|
||||
}
|
||||
|
||||
public void setCmbParadaOrigem(MyComboboxParada cmbParadaOrigem) {
|
||||
this.cmbParadaOrigem = cmbParadaOrigem;
|
||||
}
|
||||
|
||||
public MyComboboxParadaCve getCmbParadaOrigemCve() {
|
||||
return cmbParadaOrigemCve;
|
||||
}
|
||||
|
||||
public void setCmbParadaOrigemCve(MyComboboxParadaCve cmbParadaOrigemCve) {
|
||||
this.cmbParadaOrigemCve = cmbParadaOrigemCve;
|
||||
}
|
||||
|
||||
public MyComboboxParada getCmbParadaDestino() {
|
||||
return cmbParadaDestino;
|
||||
}
|
||||
|
||||
public void setCmbParadaDestino(MyComboboxParada cmbParadaDestino) {
|
||||
this.cmbParadaDestino = cmbParadaDestino;
|
||||
}
|
||||
|
||||
public MyComboboxParadaCve getCmbParadaDestinoCve() {
|
||||
return cmbParadaDestinoCve;
|
||||
}
|
||||
|
||||
public void setCmbParadaDestinoCve(MyComboboxParadaCve cmbParadaDestinoCve) {
|
||||
this.cmbParadaDestinoCve = cmbParadaDestinoCve;
|
||||
}
|
||||
|
||||
public List<Ruta> getLsRuta() {
|
||||
return lsRuta;
|
||||
}
|
||||
|
||||
public void setLsRuta(List<Ruta> lsRuta) {
|
||||
this.lsRuta = lsRuta;
|
||||
}
|
||||
|
||||
public Combobox getCmbRuta() {
|
||||
return cmbRuta;
|
||||
}
|
||||
|
||||
public void setCmbRuta(Combobox cmbRuta) {
|
||||
this.cmbRuta = cmbRuta;
|
||||
}
|
||||
|
||||
public RutaService getRutaService() {
|
||||
return rutaService;
|
||||
}
|
||||
|
||||
public void setRutaService(RutaService rutaService) {
|
||||
this.rutaService = rutaService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
excepcionPeaje = (ExcepcionPeaje) Executions.getCurrent().getArg().get("excepcionPeaje");
|
||||
excepcionPeajeList = (MyListbox) Executions.getCurrent().getArg().get("excepcionPeajeList");
|
||||
lsExcepcionPeajeVigencia = excepcionPeaje.getLsExcepcionPeajeVigencia();
|
||||
excepcionPeajeVigenciaList.setItemRenderer(new RenderExcepcionPeajeVigencia());
|
||||
if(lsExcepcionPeajeVigencia != null ){
|
||||
excepcionPeajeVigenciaList.setData(lsExcepcionPeajeVigencia);
|
||||
}
|
||||
|
||||
// super.doAfterCompose(comp);
|
||||
lsRuta = rutaService.obtenerTodos();
|
||||
cmbParadaOrigemCve.setItemRenderer(new ComboitemRenderer() {
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
}
|
||||
});
|
||||
|
||||
cmbParadaDestinoCve.setItemRenderer(new ComboitemRenderer() {
|
||||
@Override
|
||||
public void render(Comboitem cmbtm, Object o) throws Exception {
|
||||
Parada parada = (Parada) o;
|
||||
|
||||
cmbtm.setLabel(parada.getCveparada());
|
||||
cmbtm.setValue(parada);
|
||||
}
|
||||
});
|
||||
|
||||
if(excepcionPeaje.getRuta() != null ){
|
||||
Comboitem ci = new Comboitem(excepcionPeaje.getRuta().toString());
|
||||
ci.setAttribute("value", excepcionPeaje.getRuta());
|
||||
ci.setValue(excepcionPeaje.getRuta());
|
||||
ci.setParent(cmbRuta);
|
||||
cmbRuta.setSelectedItem(ci);
|
||||
}
|
||||
if(excepcionPeaje.getOrigem() != null ){
|
||||
Comboitem ci = new Comboitem(excepcionPeaje.getOrigem().toString());
|
||||
ci.setAttribute("value", excepcionPeaje.getOrigem());
|
||||
ci.setValue(excepcionPeaje.getOrigem());
|
||||
ci.setParent(cmbParadaOrigem);
|
||||
cmbParadaOrigem.setSelectedItem(ci);
|
||||
}
|
||||
if(excepcionPeaje.getOrigem() != null ){
|
||||
Comboitem ci = new Comboitem(excepcionPeaje.getOrigem().getCveparada().toString());
|
||||
ci.setAttribute("value", excepcionPeaje.getOrigem());
|
||||
ci.setValue(excepcionPeaje.getOrigem().getCveparada());
|
||||
ci.setParent(cmbParadaOrigemCve);
|
||||
cmbParadaOrigemCve.setSelectedItem(ci);
|
||||
}
|
||||
if(excepcionPeaje.getDestino() != null ){
|
||||
Comboitem ci = new Comboitem(excepcionPeaje.getDestino().toString());
|
||||
ci.setAttribute("value", excepcionPeaje.getDestino());
|
||||
ci.setValue(excepcionPeaje.getDestino());
|
||||
ci.setParent(cmbParadaDestino);
|
||||
cmbParadaDestino.setSelectedItem(ci);
|
||||
}
|
||||
if(excepcionPeaje.getOrigem() != null ){
|
||||
Comboitem ci = new Comboitem(excepcionPeaje.getDestino().getCveparada().toString());
|
||||
ci.setAttribute("value", excepcionPeaje.getDestino());
|
||||
ci.setValue(excepcionPeaje.getDestino().getCveparada());
|
||||
ci.setParent(cmbParadaDestinoCve);
|
||||
cmbParadaDestinoCve.setSelectedItem(ci);
|
||||
}
|
||||
// if(excepcionPeaje.getExcepcionPeajeId() != null ){
|
||||
// txtId.setValue(excepcionPeaje.getExcepcionPeajeId());
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaOrigemCve(Event ev) {
|
||||
if (cmbParadaOrigemCve.getSelectedItem() != null) {
|
||||
cmbParadaOrigem.setComboItemByParada((Parada) cmbParadaOrigemCve.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaOrigem(Event ev) {
|
||||
if (cmbParadaOrigem.getSelectedItem() != null)
|
||||
cmbParadaOrigemCve.setComboItemByParada((Parada) cmbParadaOrigem.getSelectedItem().getValue());
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestinoCve(Event ev) {
|
||||
if (cmbParadaDestinoCve.getSelectedItem() != null) {
|
||||
cmbParadaDestino.setComboItemByParada((Parada) cmbParadaDestinoCve.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
public void onSelect$cmbParadaDestino(Event ev) {
|
||||
if (cmbParadaDestino.getSelectedItem() != null) {
|
||||
cmbParadaDestinoCve.setComboItemByParada((Parada) cmbParadaDestino.getSelectedItem().getValue());
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void onClick$btnSalvar(Event ev) {
|
||||
|
||||
try{//cmbRuta.getValue()
|
||||
if(cmbRuta.getSelectedItem() == null || cmbRuta.getSelectedItem().getValue() == null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarExcepcionPeajeController.MSG.necessitaRuta.value"),
|
||||
Labels.getLabel("editarExcepcionPeajeController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
if(cmbParadaOrigem.getSelectedItem() == null || cmbParadaOrigem.getSelectedItem().getValue() == null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarExcepcionPeajeController.MSG.necessitaOrigen.value"),
|
||||
Labels.getLabel("editarExcepcionPeajeController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
if(cmbParadaDestino.getSelectedItem() == null || cmbParadaDestino.getSelectedItem().getValue() == null) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarExcepcionPeajeController.MSG.necessitaDestino.value"),
|
||||
Labels.getLabel("editarExcepcionPeajeController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
excepcionPeaje.setOrigem((Parada) cmbParadaOrigem.getSelectedItem().getValue());
|
||||
excepcionPeaje.setDestino((Parada) cmbParadaDestino.getSelectedItem().getValue());
|
||||
excepcionPeaje.setRuta((Ruta) cmbRuta.getSelectedItem().getValue());
|
||||
|
||||
excepcionPeaje.setActivo(true);
|
||||
excepcionPeaje.setFecmodif(Calendar.getInstance().getTime());
|
||||
excepcionPeaje.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
||||
if (excepcionPeaje.getExcepcionPeajeId() == null) {
|
||||
excepcionPeajeService.suscribir(excepcionPeaje);
|
||||
excepcionPeajeList.addItem(excepcionPeaje);
|
||||
List<ExcepcionPeaje> ls = excepcionPeajeService.obtenerTodos();
|
||||
for(ExcepcionPeaje e : ls ){
|
||||
if(e.getLsExcepcionPeajeVigencia() != null && e.getLsExcepcionPeajeVigencia().size()>0){
|
||||
Iterator iterator = e.getLsExcepcionPeajeVigencia().iterator();
|
||||
while(iterator.hasNext()) {
|
||||
ExcepcionPeajeVigencia it = (ExcepcionPeajeVigencia)iterator.next();
|
||||
if(it.getActivo() == false){
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
excepcionPeajeList.setData(ls);
|
||||
// excepcionPeajeList.setData(excepcionPeajeService.obtenerTodos());
|
||||
} else {
|
||||
excepcionPeajeService.actualizacion(excepcionPeaje);
|
||||
excepcionPeajeList.updateItem(excepcionPeaje);
|
||||
List<ExcepcionPeaje> ls = excepcionPeajeService.obtenerTodos();
|
||||
for(ExcepcionPeaje e : ls ){
|
||||
if(e.getLsExcepcionPeajeVigencia() != null && e.getLsExcepcionPeajeVigencia().size()>0){
|
||||
Iterator iterator = e.getLsExcepcionPeajeVigencia().iterator();
|
||||
while(iterator.hasNext()) {
|
||||
ExcepcionPeajeVigencia it = (ExcepcionPeajeVigencia)iterator.next();
|
||||
if(it.getActivo() == false){
|
||||
iterator.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
excepcionPeajeList.setData(ls);
|
||||
// excepcionPeajeList.setData(excepcionPeajeService.obtenerTodos());
|
||||
}
|
||||
Messagebox.show(
|
||||
Labels.getLabel("busquedaExcepcionPeajeController.MSG.suscribirOK"),
|
||||
Labels.getLabel("busquedaExcepcionPeajeController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
}catch (Exception ex) {
|
||||
log.error(ex);
|
||||
}
|
||||
}
|
||||
|
||||
public ExcepcionPeaje getExcepcionPeaje() {
|
||||
return excepcionPeaje;
|
||||
}
|
||||
|
||||
public void setExcepcionPeaje(ExcepcionPeaje excepcionPeaje) {
|
||||
this.excepcionPeaje = excepcionPeaje;
|
||||
}
|
||||
|
||||
public MyListbox getExcepcionPeajeList() {
|
||||
return excepcionPeajeList;
|
||||
}
|
||||
|
||||
public void setExcepcionPeajeList(MyListbox excepcionPeajeList) {
|
||||
this.excepcionPeajeList = excepcionPeajeList;
|
||||
}
|
||||
|
||||
public void onClick$btnApagar(Event ev) {
|
||||
// for(ExcepcionPeajeVigencia epv : excepcionPeaje.getLsExcepcionPeajeVigencia()){
|
||||
// epv.setExcepcionPeaje(null);
|
||||
// lsExcepcionPeajeVigencia.remove(epv);
|
||||
// }
|
||||
// excepcionPeajeVigenciaList.setData(null);
|
||||
// excepcionPeaje.setLsExcepcionPeajeVigencia(lsExcepcionPeajeVigencia);
|
||||
excepcionPeajeService.borrar(excepcionPeaje);
|
||||
}
|
||||
|
||||
public void onClick$btnRemoverExcepcionPeajeVigencia(Event ev) {
|
||||
ExcepcionPeajeVigencia epv = (ExcepcionPeajeVigencia) excepcionPeajeVigenciaList.getSelected();
|
||||
// epv.setExcepcionPeaje(null);
|
||||
epv.setActivo(Boolean.FALSE);
|
||||
epv.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
epv.setFecmodif(Calendar.getInstance().getTime());
|
||||
excepcionPeajeService.actualizacion(excepcionPeaje);
|
||||
lsExcepcionPeajeVigencia.remove(epv);
|
||||
excepcionPeajeVigenciaList.setData(lsExcepcionPeajeVigencia);
|
||||
excepcionPeaje.setLsExcepcionPeajeVigencia(lsExcepcionPeajeVigencia);
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btnAdicionarExcepcionPeajeVigencia(Event ev) {
|
||||
excepcionPeajeVigencia = new ExcepcionPeajeVigencia();
|
||||
excepcionPeajeVigencia.setFecVentaIni(fecInicio.getValue());
|
||||
excepcionPeajeVigencia.setFecVentaFin(fecFin.getValue());
|
||||
excepcionPeajeVigencia.setINDDOMINGO(chkINDDOMINGO.isChecked());
|
||||
excepcionPeajeVigencia.setINDLUNES(chkINDLUNES.isChecked());
|
||||
excepcionPeajeVigencia.setINDMARTES(chkINDMARTES.isChecked());
|
||||
excepcionPeajeVigencia.setINDMIERCOLES(chkINDMIERCOLES.isChecked());
|
||||
excepcionPeajeVigencia.setINDVIERNES(chkINDVIERNES.isChecked());
|
||||
excepcionPeajeVigencia.setINDJUEVES(chkINDJUEVES.isChecked());
|
||||
excepcionPeajeVigencia.setINDSABADO(chkINDSABADO.isChecked());
|
||||
if(horaIni.getValue() == null){
|
||||
Calendar horaI=Calendar.getInstance();
|
||||
horaI.set(Calendar.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DATE), 0, 0, 0);
|
||||
horaIni.setValue(horaI.getTime());
|
||||
excepcionPeajeVigencia.setHoraIni(horaIni.getValue());
|
||||
}else{
|
||||
excepcionPeajeVigencia.setHoraIni(horaIni.getValue());
|
||||
}
|
||||
if(horaFin.getValue() == null){
|
||||
Calendar horaF=Calendar.getInstance();
|
||||
horaF.set(Calendar.getInstance().get(Calendar.YEAR), Calendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DATE), 0, 0, 0);
|
||||
horaFin.setValue(horaF.getTime());
|
||||
excepcionPeajeVigencia.setHoraFin(horaFin.getValue());
|
||||
}else{
|
||||
excepcionPeajeVigencia.setHoraFin(horaFin.getValue());
|
||||
}
|
||||
|
||||
excepcionPeajeVigencia.setPrecio(txtPreco.getValueDecimal());
|
||||
|
||||
if(lsExcepcionPeajeVigencia == null){
|
||||
List<ExcepcionPeajeVigencia> ls = new ArrayList<ExcepcionPeajeVigencia>();
|
||||
lsExcepcionPeajeVigencia = ls;
|
||||
}
|
||||
excepcionPeajeVigencia.setActivo(Boolean.TRUE);
|
||||
excepcionPeajeVigencia.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
excepcionPeajeVigencia.setFecmodif(Calendar.getInstance().getTime());
|
||||
|
||||
lsExcepcionPeajeVigencia.add(excepcionPeajeVigencia);
|
||||
excepcionPeajeVigencia.setExcepcionPeaje(excepcionPeaje);
|
||||
excepcionPeajeVigenciaList.setData(lsExcepcionPeajeVigencia);
|
||||
excepcionPeaje.setLsExcepcionPeajeVigencia(lsExcepcionPeajeVigencia);
|
||||
limparInput();
|
||||
|
||||
}
|
||||
|
||||
private void limparInput() {
|
||||
fecInicio.setConstraint("");
|
||||
fecInicio.setValue(null);
|
||||
fecInicio.setConstraint("no empty");
|
||||
|
||||
fecFin.setConstraint("");
|
||||
fecFin.setValue(null);
|
||||
fecFin.setConstraint("no empty");
|
||||
|
||||
chkINDDOMINGO.setChecked(false);
|
||||
chkINDLUNES.setChecked(false);
|
||||
chkINDMARTES.setChecked(false);
|
||||
chkINDMIERCOLES.setChecked(false);
|
||||
chkINDVIERNES.setChecked(false);
|
||||
chkINDJUEVES.setChecked(false);
|
||||
chkINDSABADO.setChecked(false);
|
||||
horaIni.setText("");
|
||||
horaFin.setText("");
|
||||
txtPreco.setConstraint("");
|
||||
txtPreco.setValue("");
|
||||
txtPreco.setConstraint("no empty, no zero, no negative, /[0-9]+(\\,[0-9][0-9]?)?/");
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.menu.item.confcomerciales;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.PantallaUtileria;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.menu.DefaultItemMenuSistema;
|
||||
|
||||
public class ItemMenuExcepcionPeaje extends DefaultItemMenuSistema {
|
||||
|
||||
public ItemMenuExcepcionPeaje() {
|
||||
super("indexController.mniExcepcionPeaje.label");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getClaveMenu() {
|
||||
return "COM.RJCONSULTORES.ADMINISTRACION.GUI.CONFIGURACIONECCOMERCIALES.MENU.EXCEPCIONPEAJE";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ejecutar() {
|
||||
PantallaUtileria.openWindow("/gui/configuraciones_comerciales/busquedaExcepcionPeaje.zul",
|
||||
Labels.getLabel("busquedaExcepcionPeajeController.window.title"), getArgs(), desktop);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeaje;
|
||||
|
||||
public class RenderExcepcionPeaje implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ExcepcionPeaje excepcionPeaje = (ExcepcionPeaje) o;
|
||||
|
||||
Listcell lc = new Listcell(excepcionPeaje.getExcepcionPeajeId().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(excepcionPeaje.getRuta().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(excepcionPeaje.getOrigem().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(excepcionPeaje.getDestino().toString());
|
||||
lc.setParent(lstm);
|
||||
|
||||
lstm.setAttribute("data", excepcionPeaje);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,116 @@
|
|||
package com.rjconsultores.ventaboletos.web.utilerias.render;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Calendar;
|
||||
|
||||
import org.zkoss.util.resource.Labels;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.ExcepcionPeajeVigencia;
|
||||
|
||||
public class RenderExcepcionPeajeVigencia implements ListitemRenderer {
|
||||
|
||||
public void render(Listitem lstm, Object o) throws Exception {
|
||||
ExcepcionPeajeVigencia excepcionPeajeVigencia = (ExcepcionPeajeVigencia) o;
|
||||
|
||||
Listcell lc;
|
||||
if(excepcionPeajeVigencia.getExcepcionPeajeVigenciaId() != null ){
|
||||
lc = new Listcell(excepcionPeajeVigencia.getExcepcionPeajeVigenciaId().toString());
|
||||
}else{
|
||||
lc = new Listcell("-");
|
||||
}
|
||||
|
||||
lc.setParent(lstm);
|
||||
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
|
||||
|
||||
|
||||
if (excepcionPeajeVigencia.getFecVentaIni() != null) {
|
||||
lc = new Listcell(sdf.format(excepcionPeajeVigencia.getFecVentaIni()));
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (excepcionPeajeVigencia.getFecVentaFin() != null) {
|
||||
lc = new Listcell(sdf.format(excepcionPeajeVigencia.getFecVentaFin()));
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (excepcionPeajeVigencia.getHoraIni() != null) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(excepcionPeajeVigencia.getHoraIni());
|
||||
int hour = cal.get(Calendar.HOUR);
|
||||
int minute = cal.get(Calendar.MINUTE);
|
||||
int second = cal.get(Calendar.SECOND);
|
||||
|
||||
lc = new Listcell(String.format("%02d",hour)+":"+String.format("%02d",minute)+":"+String.format("%02d",second));
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (excepcionPeajeVigencia.getHoraFin() != null) {
|
||||
Calendar cal = Calendar.getInstance();
|
||||
cal.setTime(excepcionPeajeVigencia.getHoraFin());
|
||||
int hour = cal.get(Calendar.HOUR);
|
||||
int minute = cal.get(Calendar.MINUTE);
|
||||
int second = cal.get(Calendar.SECOND);
|
||||
|
||||
lc = new Listcell(String.format("%02d",hour)+":"+String.format("%02d",minute)+":"+String.format("%02d",second));
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
lc.setParent(lstm);
|
||||
|
||||
lc = new Listcell(getDias(excepcionPeajeVigencia));
|
||||
lc.setParent(lstm);
|
||||
|
||||
if (excepcionPeajeVigencia.getPrecio() != null) {
|
||||
double x = excepcionPeajeVigencia.getPrecio().doubleValue();
|
||||
lc = new Listcell(String.format("%.02f",x));
|
||||
} else {
|
||||
lc = new Listcell("");
|
||||
}
|
||||
|
||||
lc.setParent(lstm);
|
||||
|
||||
|
||||
lstm.setAttribute("data", excepcionPeajeVigencia);
|
||||
|
||||
|
||||
}
|
||||
|
||||
private String getDias(ExcepcionPeajeVigencia excepcionPeajeVigencia) {
|
||||
String retorno = "";
|
||||
if (excepcionPeajeVigencia.getINDDOMINGO()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.domingo")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDLUNES()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.lunes")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDMARTES()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.martes")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDMIERCOLES()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.miercoles")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDJUEVES()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.jueves")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDVIERNES()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.viernes")+", ";
|
||||
}
|
||||
if (excepcionPeajeVigencia.getINDSABADO()) {
|
||||
retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.sabado")+", ";
|
||||
}
|
||||
if (retorno.length() > 1) {
|
||||
retorno = retorno.substring(0, retorno.length() - 2);
|
||||
}
|
||||
return retorno;
|
||||
}
|
||||
}
|
|
@ -400,6 +400,8 @@
|
|||
<value>com.rjconsultores.ventaboletos.entidad.ConvenioPuntoVenta</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ItemDesconto</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.DescontoComissao</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionPeaje</value>
|
||||
<value>com.rjconsultores.ventaboletos.entidad.ExcepcionPeajeVigencia</value>
|
||||
</list>
|
||||
</property>
|
||||
|
||||
|
|
|
@ -139,6 +139,7 @@ indexController.mniTarifasOficial.label = Cambio de precio / Tarifa oficial
|
|||
indexController.mniTarifaKmArtesp.label = Tarifa por KM ARTESP
|
||||
indexController.mniCalculoPeaje.label = Cálculo de Pedágio
|
||||
indexController.mniCambioPrecioPeaje.label = Cambio de Precio / Peaje
|
||||
indexController.mniExcepcionPeaje.label = Excepcion Peaje
|
||||
indexController.mniMercadoCompetido.label = Tramo competido
|
||||
indexController.mniAcumulacionPorVenta.label = Configuración acumulación por venta
|
||||
indexController.mniCanjePuntos.label = Configuración para cambio de puntos
|
||||
|
@ -3448,6 +3449,64 @@ busquedaConvenioController.cveconvenio.label = Código
|
|||
busquedaConvenioController.validafolio.label = Validar número del documento
|
||||
busquedaConvenioController.imprimeprecio.label = Valor a Imprimir
|
||||
|
||||
# busqueda ExcepcionPeaje
|
||||
busquedaExcepcionPeajeController.window.title = Excepcion Peaje
|
||||
busquedaExcepcionPeajeController.btnRefresh.tooltiptext = Atualizar
|
||||
busquedaExcepcionPeajeController.btnNovo.tooltiptext = Incluir
|
||||
busquedaExcepcionPeajeController.btnFechar.tooltiptext = Fechar
|
||||
busquedaExcepcionPeajeController.cmbRuta.value = Ruta
|
||||
busquedaExcepcionPeajeController.lbCidadeOrigem.value = Localidade Origem
|
||||
busquedaExcepcionPeajeController.lbCidadeDestino.value = Localidade Destino
|
||||
busquedaExcepcionPeajeController.btnPesquisa.label = Búsqueda
|
||||
busquedaExcepcionPeajeController.lhId.label = ID
|
||||
busquedaExcepcionPeajeController.lhOrigem.label = Origen
|
||||
busquedaExcepcionPeajeController.lhDestino.label = Destino
|
||||
busquedaExcepcionPeajeController.lhRuta.label = Linha
|
||||
busquedaExcepcionPeajeController.MSG.suscribirOK = Excepcion Peaje Registrado com Sucesso.
|
||||
busquedaExcepcionPeajeController.lhId.label = ID
|
||||
|
||||
# editar ExcepcionPeaje
|
||||
editarExcepcionPeajeController.window.title = Excepcion Peaje
|
||||
editarExcepcionPeajeController.btnApagar.tooltiptext = Eliminar
|
||||
editarExcepcionPeajeController.btnSalvar.tooltiptext = Salvar
|
||||
editarExcepcionPeajeController.btnFechar.tooltiptext = Fechar
|
||||
editarExcepcionPeajeController.btnFechar.tooltiptext = Fechar
|
||||
editarExcepcionPeajeController.MSG.necessitaRuta.value = Necessita informar una Ruta
|
||||
editarExcepcionPeajeController.MSG.necessitaOrigen.value = Necessita informar una Origen
|
||||
editarExcepcionPeajeController.MSG.necessitaDestino.value = Necessita informar un Destino
|
||||
editarExcepcionPeajeController.btnAddConvenioDet.tooltiptext = Incluir
|
||||
editarExcepcionPeajeController.btnBorrarConvenioDet.tooltiptext = Eliminar
|
||||
editarExcepcionPeajeController.lbDias.value = Dias de la Semana
|
||||
editarExcepcionPeajeController.lbLun.value = Lunes
|
||||
editarExcepcionPeajeController.lbMar.value = Martes
|
||||
editarExcepcionPeajeController.lbMie.value = Miércoles
|
||||
editarExcepcionPeajeController.lbJue.value = Jueves
|
||||
editarExcepcionPeajeController.lbVie.value = Viernes
|
||||
editarExcepcionPeajeController.lbSab.value = Sábado
|
||||
editarExcepcionPeajeController.lbDom.value = Domingo
|
||||
editarExcepcionPeajeController.lbVigenciaVenta.value = Vigência da Venda
|
||||
editarExcepcionPeajeController.lbDe.value = De
|
||||
editarExcepcionPeajeController.lbHasta.value = Hasta
|
||||
editarExcepcionPeajeController.lbHorInical.value = Horário Inicial
|
||||
editarExcepcionPeajeController.lbHorFinal.value = Horário Final
|
||||
editarExcepcionPeajeController.lbPeriodoVenta.value = Período de Venda no Dia
|
||||
editarExcepcionPeajeController.lbPrecio.value = Precio
|
||||
editarExcepcionPeajeController.msg.domingo=DO
|
||||
editarExcepcionPeajeController.msg.lunes=LU
|
||||
editarExcepcionPeajeController.msg.martes=MA
|
||||
editarExcepcionPeajeController.msg.miercoles=MI
|
||||
editarExcepcionPeajeController.msg.jueves=JU
|
||||
editarExcepcionPeajeController.msg.viernes=VI
|
||||
editarExcepcionPeajeController.msg.sabado=SA
|
||||
editarExcepcionPeajeController.msg.RenderId=ID
|
||||
editarExcepcionPeajeController.msg.RenderInicioVigencia=Início Vigencia
|
||||
editarExcepcionPeajeController.msg.RenderFinVigencia=Fim Vigencia
|
||||
editarExcepcionPeajeController.msg.RenderHoraInicio=Hora Inicial
|
||||
editarExcepcionPeajeController.msg.RenderHoraFin=Hora Final
|
||||
editarExcepcionPeajeController.msg.RenderDias=Dias da Semana
|
||||
editarExcepcionPeajeController.msg.RenderPrecio=Precio
|
||||
|
||||
|
||||
# Editar convenio
|
||||
editarConvenioController.window.title = Convênio - Desconto
|
||||
editarConvenioController.btnApagar.tooltiptext = Eliminar
|
||||
|
@ -5684,8 +5743,8 @@ corridaServiceImpl.geracaoCorrida.cantDiasManual=La cantidad maxima de dias para
|
|||
# Pesquisa Praca Pedagio
|
||||
busquedaPracaPedagioController.window.title = Praça Padágio
|
||||
busquedaPracaPedagioController.lbDescricaoPracaPedagio = Descrição Praça de Pedágio
|
||||
busquedaPracaPedagioController.lbQuantiaIda = Quantia Ida
|
||||
busquedaPracaPedagioController.lbQuantiaVolta = Quantia Volta
|
||||
busquedaPracaPedagioController.lbQuantiaIda = Valor Ida
|
||||
busquedaPracaPedagioController.lbQuantiaVolta = Valor Volta
|
||||
|
||||
# Editar Praca Pedagio
|
||||
editarPracaPedagioController.window.title = Praça Padágio
|
||||
|
|
|
@ -141,6 +141,7 @@ indexController.mniTarifasOficial.label = Alteração de Preço / Tarifa Oficial
|
|||
indexController.mniTarifaKmArtesp.label = Tarifa por KM ARTESP
|
||||
indexController.mniCalculoPeaje.label = Cálculo de Pedágio
|
||||
indexController.mniCambioPrecioPeaje.label = Consulta Pedágio Calculado
|
||||
indexController.mniExcepcionPeaje.label = Exceção de Pedágio
|
||||
indexController.mniMercadoCompetido.label = Trecho Concorrente
|
||||
indexController.mniAcumulacionPorVenta.label = Configuração Acumulação por Venda
|
||||
indexController.mniCanjePuntos.label = Configuração para Troca de Pontos
|
||||
|
@ -3494,6 +3495,62 @@ editarComisionistaExternoController.MSG.suscribirOK = Comissionista Externo Regi
|
|||
editarComisionistaExternoController.MSG.borrarPergunta = Eliminar Comissionista Externo?
|
||||
editarComisionistaExternoController.MSG.borrarOK = Comissionista Externo Excluido com Sucesso.
|
||||
|
||||
# busqueda ExcepcionPeaje
|
||||
busquedaExcepcionPeajeController.window.title = Excepcion Peaje
|
||||
busquedaExcepcionPeajeController.btnRefresh.tooltiptext = Atualizar
|
||||
busquedaExcepcionPeajeController.btnNovo.tooltiptext = Incluir
|
||||
busquedaExcepcionPeajeController.btnFechar.tooltiptext = Fechar
|
||||
busquedaExcepcionPeajeController.cmbRuta.value = Linha
|
||||
busquedaExcepcionPeajeController.lbCidadeOrigem.value = Localidade Origem
|
||||
busquedaExcepcionPeajeController.lbCidadeDestino.value = Localidade Destino
|
||||
busquedaExcepcionPeajeController.btnPesquisa.label = Pesquisa
|
||||
busquedaExcepcionPeajeController.lhId.label = ID
|
||||
busquedaExcepcionPeajeController.lhOrigem.label = Origen
|
||||
busquedaExcepcionPeajeController.lhDestino.label = Destino
|
||||
busquedaExcepcionPeajeController.lhRuta.label = Linha
|
||||
busquedaExcepcionPeajeController.MSG.suscribirOK = Exceção de Pedágio Registrado com Sucesso.
|
||||
busquedaExcepcionPeajeController.lhId.label
|
||||
|
||||
# editar ExcepcionPeaje
|
||||
editarExcepcionPeajeController.window.title = Excepcion Peaje
|
||||
editarExcepcionPeajeController.btnApagar.tooltiptext = Eliminar
|
||||
editarExcepcionPeajeController.btnSalvar.tooltiptext = Salvar
|
||||
editarExcepcionPeajeController.btnFechar.tooltiptext = Fechar
|
||||
editarExcepcionPeajeController.MSG.necessitaRuta.value = Necessita informar uma Linha
|
||||
editarExcepcionPeajeController.MSG.necessitaOrigen.value = Necessita informar uma Origem
|
||||
editarExcepcionPeajeController.MSG.necessitaDestino.value = Necessita informar um Destino
|
||||
editarExcepcionPeajeController.btnAddConvenioDet.tooltiptext = Incluir
|
||||
editarExcepcionPeajeController.btnBorrarConvenioDet.tooltiptext = Eliminar
|
||||
editarExcepcionPeajeController.lbDias.value = Dias da Semana
|
||||
editarExcepcionPeajeController.lbLun.value = S
|
||||
editarExcepcionPeajeController.lbMar.value = T
|
||||
editarExcepcionPeajeController.lbMie.value = Q
|
||||
editarExcepcionPeajeController.lbJue.value = Q
|
||||
editarExcepcionPeajeController.lbVie.value = S
|
||||
editarExcepcionPeajeController.lbSab.value = S
|
||||
editarExcepcionPeajeController.lbDom.value = D
|
||||
editarExcepcionPeajeController.lbVigenciaVenta.value = Vigência da Venda
|
||||
editarExcepcionPeajeController.lbDe.value = De
|
||||
editarExcepcionPeajeController.lbHasta.value = Até
|
||||
editarExcepcionPeajeController.lbHorInical.value = Horário Inicial
|
||||
editarExcepcionPeajeController.lbHorFinal.value = Horário Final
|
||||
editarExcepcionPeajeController.lbPeriodoVenta.value = Período de Venda no Dia
|
||||
editarExcepcionPeajeController.lbPrecio.value = Preço
|
||||
editarExcepcionPeajeController.msg.domingo=DOM
|
||||
editarExcepcionPeajeController.msg.lunes=2ª
|
||||
editarExcepcionPeajeController.msg.martes=3ª
|
||||
editarExcepcionPeajeController.msg.miercoles=4ª
|
||||
editarExcepcionPeajeController.msg.jueves=5ª
|
||||
editarExcepcionPeajeController.msg.viernes=6ª
|
||||
editarExcepcionPeajeController.msg.sabado=SAB
|
||||
editarExcepcionPeajeController.msg.RenderId=ID
|
||||
editarExcepcionPeajeController.msg.RenderInicioVigencia=Início Vigencia
|
||||
editarExcepcionPeajeController.msg.RenderFinVigencia=Fim Vigencia
|
||||
editarExcepcionPeajeController.msg.RenderHoraInicio=Hora Inicial
|
||||
editarExcepcionPeajeController.msg.RenderHoraFin=Hora Final
|
||||
editarExcepcionPeajeController.msg.RenderDias=Dias da Semana
|
||||
editarExcepcionPeajeController.msg.RenderPrecio=Precio
|
||||
|
||||
# Pesquisa Convênio
|
||||
busquedaConvenioController.window.title = Convênio - Desconto
|
||||
busquedaConvenioController.btnRefresh.tooltiptext = Atualizar
|
||||
|
@ -5826,8 +5883,8 @@ corridaServiceImpl.geracaoCorrida.cantDiasManual=O limite máximo de geração m
|
|||
# Pesquisa Praca Pedagio
|
||||
busquedaPracaPedagioController.window.title = Praça de Padágio
|
||||
busquedaPracaPedagioController.lbDescricaoPracaPedagio = Descrição Praça de Pedágio
|
||||
busquedaPracaPedagioController.lbQuantiaIda = Quantia Ida
|
||||
busquedaPracaPedagioController.lbQuantiaVolta = Quantia Volta
|
||||
busquedaPracaPedagioController.lbQuantiaIda = Valor Ida
|
||||
busquedaPracaPedagioController.lbQuantiaVolta = Valor Volta
|
||||
|
||||
# Editar Praca Pedagio
|
||||
editarPracaPedagioController.window.title = Praça de Padágio
|
||||
|
|
|
@ -0,0 +1,88 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winBusquedaExcepcionPeaje"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winBusquedaExcepcionPeaje" title="${c:l('busquedaExcepcionPeajeController.window.title')}"
|
||||
apply="${busquedaExcepcionPeajeController}" contentStyle="overflow:auto"
|
||||
height="500px" width="800px" border="normal" >
|
||||
<toolbar>
|
||||
<button id="btnRefresh" image="/gui/img/refresh.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaExcepcionPeajeController.btnRefresh.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnNovo" image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaExcepcionPeajeController.btnNovo.tooltiptext')}" />
|
||||
<separator orient="vertical" />
|
||||
<button id="btnCerrar" onClick="winBusquedaExcepcionPeaje.detach()" image="/gui/img/exit.png" width="35px"
|
||||
tooltiptext="${c:l('busquedaExcepcionPeajeController.btnFechar.tooltiptext')}"/>
|
||||
</toolbar>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row >
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.cmbRuta.value')}" />
|
||||
<combobox id="cmbRuta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winBusquedaExcepcionPeaje$composer.lsRuta}" />
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.lhId.label')}" />
|
||||
<intbox id="txtId" width="50%" maxlength="10" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.lbCidadeOrigem.value')}" />
|
||||
<cell>
|
||||
<combobox id="cmbParadaOrigemCve"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaOrigem"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%" />
|
||||
</cell>
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.lbCidadeDestino.value')}" />
|
||||
<cell>
|
||||
<combobox id="cmbParadaDestinoCve"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%" />
|
||||
</cell>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnPesquisa" image="/gui/img/find.png"
|
||||
label="${c:l('busquedaExcepcionPeajeController.btnPesquisa.label')}" />
|
||||
</toolbar>
|
||||
|
||||
<paging id="pagingExcepcionPeaje" pageSize="20" />
|
||||
<listbox id="excepcionPeajeList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false" vflex="true" height="50%">
|
||||
<listhead sizable="true">
|
||||
<listheader width="10%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaExcepcionPeajeController.lhId.label')}"
|
||||
sort="auto(esquemacorridaId)" />
|
||||
<listheader width="30%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaExcepcionPeajeController.lhRuta.label')}"/>
|
||||
<listheader width="30%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaExcepcionPeajeController.lhOrigem.label')}"/>
|
||||
<listheader width="30%" image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaExcepcionPeajeController.lhDestino.label')}"/>
|
||||
</listhead>
|
||||
</listbox>
|
||||
|
||||
</window>
|
||||
</zk>
|
|
@ -0,0 +1,201 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?page contentType="text/html;charset=UTF-8"?>
|
||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarExcepcionPeaje"?>
|
||||
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>
|
||||
|
||||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winEditarExcepcionPeaje" title="${c:l('editarExcepcionPeajeController.window.title')}"
|
||||
apply="${editarExcepcionPeajeController}" contentStyle="overflow:auto"
|
||||
height="500px" width="800px" border="normal"
|
||||
xmlns:h="http://www.w3.org/1999/xhtml">
|
||||
<toolbar>
|
||||
<hbox spacing="5px" style="padding:1px" align="right">
|
||||
<button id="btnApagar" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarExcepcionPeajeController.btnApagar.tooltiptext')}" />
|
||||
<button id="btnSalvar" height="20"
|
||||
image="/gui/img/save.png" width="35px"
|
||||
tooltiptext="${c:l('editarExcepcionPeajeController.btnSalvar.tooltiptext')}" />
|
||||
<button id="btnFechar" height="20"
|
||||
image="/gui/img/exit.png" width="35px"
|
||||
onClick="winEditarExcepcionPeaje.detach()"
|
||||
tooltiptext="${c:l('editarExcepcionPeajeController.btnFechar.tooltiptext')}" />
|
||||
</hbox>
|
||||
</toolbar>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
<column width="15%" />
|
||||
<column width="35%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row spans="1,3">
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.cmbRuta.value')}" />
|
||||
<combobox id="cmbRuta" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar"
|
||||
mold="rounded" buttonVisible="true" width="90%"
|
||||
model="@{winEditarExcepcionPeaje$composer.lsRuta}" />
|
||||
</row>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.lbCidadeOrigem.value')}" />
|
||||
<cell>
|
||||
<combobox id="cmbParadaOrigemCve"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaOrigem" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%" />
|
||||
</cell>
|
||||
<label
|
||||
value="${c:l('busquedaExcepcionPeajeController.lbCidadeDestino.value')}" />
|
||||
<cell>
|
||||
<combobox id="cmbParadaDestinoCve"
|
||||
autodrop="false"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
|
||||
mold="rounded" buttonVisible="true" width="30%" />
|
||||
<combobox id="cmbParadaDestino" autodrop="false" constraint="no empty"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
|
||||
mold="rounded" buttonVisible="true" width="65%" />
|
||||
</cell>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<separator bar="true" />
|
||||
</toolbar>
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="26%" />
|
||||
<column width="37%" />
|
||||
<column width="37%" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbVigenciaVenta.value')}" />
|
||||
<hbox>
|
||||
<h:table border="0">
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbDe.value')}" />
|
||||
|
||||
<datebox id="fecInicio" width="70x" constraint="no empty"
|
||||
mold="rounded" lenient="false" />
|
||||
</h:td>
|
||||
</h:tr>
|
||||
</h:table>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<h:table border="0">
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbHasta.value')}" />
|
||||
|
||||
<datebox id="fecFin" width="70x" constraint="no empty"
|
||||
mold="rounded" lenient="false" />
|
||||
</h:td>
|
||||
</h:tr>
|
||||
</h:table>
|
||||
</hbox>
|
||||
</row>
|
||||
<row spans="1,2">
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbDias.value')}" />
|
||||
<hbox>
|
||||
<checkbox id="chkINDLUNES"
|
||||
label="${c:l('editarExcepcionPeajeController.lbLun.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDLUNES}" />
|
||||
<checkbox id="chkINDMARTES"
|
||||
label="${c:l('editarExcepcionPeajeController.lbMar.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMARTES}" />
|
||||
<checkbox id="chkINDMIERCOLES"
|
||||
label="${c:l('editarExcepcionPeajeController.lbMie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDMIERCOLES}" />
|
||||
<checkbox id="chkINDJUEVES"
|
||||
label="${c:l('editarExcepcionPeajeController.lbJue.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDJUEVES}" />
|
||||
<checkbox id="chkINDVIERNES"
|
||||
label="${c:l('editarExcepcionPeajeController.lbVie.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDVIERNES}" />
|
||||
<checkbox id="chkINDSABADO"
|
||||
label="${c:l('editarExcepcionPeajeController.lbSab.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDSABADO}" />
|
||||
<checkbox id="chkINDDOMINGO"
|
||||
label="${c:l('editarExcepcionPeajeController.lbDom.value')}"
|
||||
checked="@{winEditarCliente$composer.boolINDDOMINGO}" />
|
||||
</hbox>
|
||||
</row><row>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbPeriodoVenta.value')}" />
|
||||
<hbox>
|
||||
<h:table border="0">
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbHorInical.value')}" />
|
||||
|
||||
<timebox id="horaIni" mold="rounded" />
|
||||
</h:td>
|
||||
</h:tr>
|
||||
</h:table>
|
||||
</hbox>
|
||||
<hbox>
|
||||
<h:table border="0">
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<label
|
||||
value="${c:l('editarExcepcionPeajeController.lbHorFinal.value')}" />
|
||||
|
||||
<timebox id="horaFin" mold="rounded" />
|
||||
</h:td>
|
||||
</h:tr>
|
||||
</h:table>
|
||||
</hbox>
|
||||
</row>
|
||||
<row spans="1,2">
|
||||
|
||||
<label value="${c:l('editarExcepcionPeajeController.lbPrecio.value')}"/>
|
||||
<textbox id="txtPreco" mold="rounded" constraint="no empty, no zero, no negative, /[0-9]+(\,[0-9][0-9]?)?/ "
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" precision="6" scale="2"/>
|
||||
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<toolbar>
|
||||
<button id="btnAdicionarExcepcionPeajeVigencia" height="20"
|
||||
image="/gui/img/add.png" width="35px"
|
||||
tooltiptext="${c:l('editarExcepcionPeajeController.btnAddConvenioDet.tooltiptext')}" />
|
||||
<button id="btnRemoverExcepcionPeajeVigencia" height="20"
|
||||
image="/gui/img/remove.png" width="35px"
|
||||
tooltiptext="${c:l('editarExcepcionPeajeController.btnBorrarConvenioDet.tooltiptext')}" />
|
||||
</toolbar>
|
||||
|
||||
<listbox id="excepcionPeajeVigenciaList"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
|
||||
multiple="false">
|
||||
<listhead sizable="true">
|
||||
<listheader width="50px"
|
||||
image="/gui/img/builder.gif" label="${c:l('editarExcepcionPeajeController.msg.RenderId')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderInicioVigencia')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderFinVigencia')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderHoraInicio')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderHoraFin')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderDias')}" />
|
||||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('editarExcepcionPeajeController.msg.RenderPrecio')}" />
|
||||
</listhead>
|
||||
</listbox>
|
||||
</window>
|
||||
</zk>
|
Loading…
Reference in New Issue