From 1d65e29f0df62e342c5e1362456664ab7675b4e0 Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 2 Aug 2016 20:46:31 +0000 Subject: [PATCH] fixes bug #7588 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@58654 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../tarifas/EditarCasetaPeajeController.java | 267 +++++++++++++++++- .../render/RenderCasetaPeajeExcepcion.java | 115 ++++++++ .../V20160726_1445__casetapeajeexcepcion.sql | 29 ++ ...V20160729_1502__excepcionpeajevigencia.sql | 5 + src/java/spring-config.xml | 1 + .../editarExcepcionPeaje.zul | 8 +- web/gui/tarifas/editarPracaPedagio.zul | 134 ++++++++- 7 files changed, 551 insertions(+), 8 deletions(-) create mode 100644 src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderCasetaPeajeExcepcion.java create mode 100644 src/java/db/migration/V20160726_1445__casetapeajeexcepcion.sql create mode 100644 src/java/db/migration/V20160729_1502__excepcionpeajevigencia.sql diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarCasetaPeajeController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarCasetaPeajeController.java index 62daabe6b..128d14918 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarCasetaPeajeController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/tarifas/EditarCasetaPeajeController.java @@ -1,6 +1,12 @@ package com.rjconsultores.ventaboletos.web.gui.controladores.tarifas; -import org.apache.log4j.Logger; +import java.util.ArrayList; +import java.util.Calendar; +import java.util.Collections; +import java.util.Date; +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; @@ -10,14 +16,24 @@ import org.zkoss.zk.ui.Component; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zul.Button; +import org.zkoss.zul.Checkbox; +import org.zkoss.zul.Datebox; +import org.zkoss.zul.Timebox; import com.rjconsultores.ventaboletos.entidad.CasetaPeaje; +import com.rjconsultores.ventaboletos.entidad.CasetaPeajeExcepcion; +import com.rjconsultores.ventaboletos.entidad.ExcepcionPeajeVigencia; +import com.rjconsultores.ventaboletos.service.CasetaPeajeExcepcionService; import com.rjconsultores.ventaboletos.service.CasetaPeajeService; +import com.rjconsultores.ventaboletos.utilerias.DateUtil; +import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; import com.rjconsultores.ventaboletos.web.utilerias.MyListbox; import com.rjconsultores.ventaboletos.web.utilerias.MyTextbox; import com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal; import com.rjconsultores.ventaboletos.web.utilerias.menu.item.tarifas.constantes.ConstantesGenericas; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCasetaPeaje; +import com.rjconsultores.ventaboletos.web.utilerias.render.RenderCasetaPeajeExcepcion; @Controller("editarCasetaPeajeController") @Scope("prototype") @@ -26,21 +42,46 @@ public class EditarCasetaPeajeController extends MyGenericForwardComposer { @Autowired private CasetaPeajeService casetaPeajeService; + @Autowired + private CasetaPeajeExcepcionService casetaPeajeExcepcionService; private CasetaPeaje casetaPeaje; private MyListbox casetaPeajeList; + private MyListbox casetaPeajeExcepcionList; private Button btnApagar; private MyTextbox descricaoPracaPedagio; private MyTextboxDecimal quantiaIda; private MyTextboxDecimal quantiaVolta; private Logger logger = Logger.getLogger(this.getClass()); + private List lsCasetaPeajeExcepcion; + private List casetaPeajeExcepcionToDelete = new ArrayList(); + + 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; + + private CasetaPeajeExcepcion casetaPeajeExcepcion; @Override public void doAfterCompose(Component comp) throws Exception { - super.doAfterCompose(comp); - casetaPeaje = (CasetaPeaje) Executions.getCurrent().getArg().get("casetaPeaje"); casetaPeajeList = (MyListbox) Executions.getCurrent().getArg().get("casetaPeajeList"); + lsCasetaPeajeExcepcion = casetaPeajeExcepcionService.buscarPorCasetaPeaje(casetaPeaje); + + super.doAfterCompose(comp); + + casetaPeajeExcepcionList.setItemRenderer(new RenderCasetaPeajeExcepcion()); + casetaPeajeExcepcionList.setData(lsCasetaPeajeExcepcion); + if(casetaPeaje.getCasetaPeajeId() == null) { btnApagar.setVisible(Boolean.FALSE); } @@ -76,6 +117,10 @@ public class EditarCasetaPeajeController extends MyGenericForwardComposer { casetaPeajeList.updateItem(casetaPeaje); } + if (!casetaPeajeExcepcionToDelete.isEmpty()) { + casetaPeajeService.deletarVigencias(casetaPeajeExcepcionToDelete); + } + Messagebox.show( Labels.getLabel("editarPracaPedagioController.MSG.suscribirOK"), Labels.getLabel("editarPracaPedagioController.window.title"), @@ -117,6 +162,222 @@ public class EditarCasetaPeajeController extends MyGenericForwardComposer { closeWindow(); + } + + public void onClick$btnAdicionarCasetaPeajeExcepcion(Event ev) throws InterruptedException{ + txtPreco.getValue(); + casetaPeajeExcepcion = new CasetaPeajeExcepcion(); + casetaPeajeExcepcion.setFecVentaIni(fecInicio.getValue()); + casetaPeajeExcepcion.setFecVentaFin(fecFin.getValue()); + casetaPeajeExcepcion.setINDDOMINGO(chkINDDOMINGO.isChecked()); + casetaPeajeExcepcion.setINDLUNES(chkINDLUNES.isChecked()); + casetaPeajeExcepcion.setINDMARTES(chkINDMARTES.isChecked()); + casetaPeajeExcepcion.setINDMIERCOLES(chkINDMIERCOLES.isChecked()); + casetaPeajeExcepcion.setINDVIERNES(chkINDVIERNES.isChecked()); + casetaPeajeExcepcion.setINDJUEVES(chkINDJUEVES.isChecked()); + casetaPeajeExcepcion.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()); + casetaPeajeExcepcion.setHoraIni(horaIni.getValue()); + }else{ + casetaPeajeExcepcion.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), 23, 59, 59); + horaFin.setValue(horaF.getTime()); + casetaPeajeExcepcion.setHoraFin(horaFin.getValue()); + }else{ + casetaPeajeExcepcion.setHoraFin(horaFin.getValue()); + } + + if(!isDataValida(casetaPeajeExcepcion)){ + try { + Messagebox.show( + Labels.getLabel("editarExcepcionPeajeController.MSG.datasInconsistentes.value"), + Labels.getLabel("editarExcepcionPeajeController.window.title"), + Messagebox.OK, Messagebox.EXCLAMATION); + } catch (InterruptedException e) { + e.printStackTrace(); + } + return; + } + + if(!validaHoraFinal(casetaPeajeExcepcion)){ + try { + Messagebox.show( + Labels.getLabel("editarExcepcionPeajeController.MSG.horaInvalida.value"), + Labels.getLabel("editarExcepcionPeajeController.window.title"), + Messagebox.OK, Messagebox.EXCLAMATION); + } catch (InterruptedException e) { + e.printStackTrace(); + } + return; + } + if(!validaHoras(casetaPeajeExcepcion)){ + try { + Messagebox.show( + Labels.getLabel("editarExcepcionPeajeController.MSG.horasInconsistentes.value"), + Labels.getLabel("editarExcepcionPeajeController.window.title"), + Messagebox.OK, Messagebox.EXCLAMATION); + } catch (InterruptedException e) { + e.printStackTrace(); + } + return; + } + + casetaPeajeExcepcion.setPrecio(txtPreco.getValueDecimal()); + + if(lsCasetaPeajeExcepcion == null){ + lsCasetaPeajeExcepcion = new ArrayList(); + } + casetaPeajeExcepcion.setActivo(Boolean.TRUE); + casetaPeajeExcepcion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); + casetaPeajeExcepcion.setFecmodif(Calendar.getInstance().getTime()); + + if(!isCasetaPeajeExcepcionValida(casetaPeajeExcepcion)){ + try { + Messagebox.show( + Labels.getLabel("editarExcepcionPeajeController.MSG.conflitoVigencia.value"), + Labels.getLabel("editarExcepcionPeajeController.window.title"), + Messagebox.OK, Messagebox.EXCLAMATION); + } catch (InterruptedException e) { + e.printStackTrace(); + } + return; + } + + lsCasetaPeajeExcepcion.add(casetaPeajeExcepcion); + if(null != lsCasetaPeajeExcepcion){ + Collections.sort(lsCasetaPeajeExcepcion); + } + casetaPeajeExcepcion.setCasetaPeaje(casetaPeaje); + casetaPeajeExcepcionList.setData(lsCasetaPeajeExcepcion); + casetaPeajeExcepcionService.suscribir(casetaPeajeExcepcion); + limparInput(); + } + + public void onClick$btnRemoverCasetaPeajeExcepcion(Event ev) throws InterruptedException { + CasetaPeajeExcepcion cpe = (CasetaPeajeExcepcion) casetaPeajeExcepcionList.getSelected(); + if(cpe != null){ + cpe.setActivo(Boolean.FALSE); + cpe.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); + cpe.setFecmodif(Calendar.getInstance().getTime()); + lsCasetaPeajeExcepcion.remove(cpe); + Collections.sort(lsCasetaPeajeExcepcion); + casetaPeajeExcepcionList.setData(lsCasetaPeajeExcepcion); + casetaPeajeExcepcionService.borrar(cpe); + } + } + + private boolean isDataValida(CasetaPeajeExcepcion cpe){ + if( cpe.getFecVentaIni().after(cpe.getFecVentaFin())){ + return false; + } + return true; + } + + private boolean validaHoraFinal(CasetaPeajeExcepcion cpe){ + if( cpe.getHoraFin().getHours() == 0 && cpe.getHoraFin().getMinutes() == 0 && cpe.getHoraFin().getSeconds() == 0){ + return false; + } + return true; + } + + private boolean validaHoras(CasetaPeajeExcepcion cpe){ + if( cpe.getHoraIni().after(cpe.getHoraFin()) || ( cpe.getHoraIni().compareTo(cpe.getHoraFin()) == 0 ) ){ + return false; + } + return true; + } + + private boolean isDiasCasetaPeajeExcepcionCoincidencia(CasetaPeajeExcepcion novaCasetaPeajeExcepcion, CasetaPeajeExcepcion cpe){ + if(novaCasetaPeajeExcepcion.getINDDOMINGO() && cpe.getINDDOMINGO()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDLUNES() && cpe.getINDLUNES()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDMARTES() && cpe.getINDMARTES()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDMIERCOLES() && cpe.getINDMIERCOLES()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDJUEVES() && cpe.getINDJUEVES()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDVIERNES() && cpe.getINDVIERNES()){ + return true; + } + if(novaCasetaPeajeExcepcion.getINDSABADO() && cpe.getINDSABADO()){ + return true; + } + return false; + } + + private boolean isCasetaPeajeExcepcionValida(CasetaPeajeExcepcion novaCasetaPeajeExcepcion){ + + for(CasetaPeajeExcepcion cpe : lsCasetaPeajeExcepcion){ + if(!cpe.getActivo()){ + continue; + } + if(((DateUtil.inicioFecha((novaCasetaPeajeExcepcion.getFecVentaIni())).after(DateUtil.inicioFecha((cpe.getFecVentaIni()))) || DateUtil.inicioFecha((novaCasetaPeajeExcepcion.getFecVentaIni())).compareTo(DateUtil.inicioFecha((cpe.getFecVentaIni()))) == 0) + && (DateUtil.inicioFecha((novaCasetaPeajeExcepcion.getFecVentaIni())).before(DateUtil.fimFecha((cpe.getFecVentaFin())))) || DateUtil.inicioFecha((novaCasetaPeajeExcepcion.getFecVentaIni())).compareTo(DateUtil.fimFecha((cpe.getFecVentaFin()))) == 0) + || + ((DateUtil.fimFecha((novaCasetaPeajeExcepcion.getFecVentaFin())).before(DateUtil.fimFecha((cpe.getFecVentaFin()))) || DateUtil.fimFecha((novaCasetaPeajeExcepcion.getFecVentaFin())).compareTo(DateUtil.fimFecha((cpe.getFecVentaFin()))) == 0) + && (DateUtil.fimFecha((novaCasetaPeajeExcepcion.getFecVentaFin())).after(DateUtil.inicioFecha((cpe.getFecVentaIni()))))) || DateUtil.fimFecha((novaCasetaPeajeExcepcion.getFecVentaFin())).compareTo(DateUtil.inicioFecha((cpe.getFecVentaIni()))) == 0 ){ + if(isDiasCasetaPeajeExcepcionCoincidencia(novaCasetaPeajeExcepcion,cpe)){ + Calendar calNovaHoraIni = Calendar.getInstance(); + Calendar calNovaHoraFin = Calendar.getInstance(); + Calendar calEpvHoraIni = Calendar.getInstance(); + Calendar calEpvHoraFin = Calendar.getInstance(); + calNovaHoraIni.setTime(novaCasetaPeajeExcepcion.getHoraIni()); + calNovaHoraFin.setTime(novaCasetaPeajeExcepcion.getHoraFin()); + calEpvHoraIni.setTime(cpe.getHoraIni()); + calEpvHoraFin.setTime(cpe.getHoraFin()); + calNovaHoraIni.set(2000, 10, 10); + calNovaHoraFin.set(2000, 10, 10); + calEpvHoraIni.set(2000, 10, 10); + calEpvHoraFin.set(2000, 10, 10); + if (isWithinRange(calNovaHoraIni.getTime(), calEpvHoraIni.getTime(), calEpvHoraFin.getTime()) + || isWithinRange(calNovaHoraFin.getTime(), calEpvHoraIni.getTime(), calEpvHoraFin.getTime())) { + return false; + } + } + } + } + return true; + } + + boolean isWithinRange(Date testDate, Date startDate, Date endDate) { + return testDate.getTime() >= startDate.getTime() && + testDate.getTime() <= endDate.getTime(); + } + + 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]?)?/"); } public MyTextbox getDescricaoPracaPedagio() { diff --git a/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderCasetaPeajeExcepcion.java b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderCasetaPeajeExcepcion.java new file mode 100644 index 000000000..9e10330b4 --- /dev/null +++ b/src/java/com/rjconsultores/ventaboletos/web/utilerias/render/RenderCasetaPeajeExcepcion.java @@ -0,0 +1,115 @@ +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.CasetaPeajeExcepcion; + +public class RenderCasetaPeajeExcepcion implements ListitemRenderer { + + public void render(Listitem lstm, Object o) throws Exception { + CasetaPeajeExcepcion casetaPeajeExcepcion = (CasetaPeajeExcepcion) o; + Listcell lc; + if(casetaPeajeExcepcion.getCasetaPeajeExcepcionId() != null ){ + lc = new Listcell(casetaPeajeExcepcion.getCasetaPeajeExcepcionId().toString()); + }else{ + lc = new Listcell("-"); + } + + lc.setParent(lstm); + + SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); + + + if (casetaPeajeExcepcion.getFecVentaIni() != null) { + lc = new Listcell(sdf.format(casetaPeajeExcepcion.getFecVentaIni())); + } else { + lc = new Listcell(""); + } + lc.setParent(lstm); + + if (casetaPeajeExcepcion.getFecVentaFin() != null) { + lc = new Listcell(sdf.format(casetaPeajeExcepcion.getFecVentaFin())); + } else { + lc = new Listcell(""); + } + lc.setParent(lstm); + + if (casetaPeajeExcepcion.getHoraIni() != null) { + Calendar cal = Calendar.getInstance(); + cal.setTime(casetaPeajeExcepcion.getHoraIni()); + int hour = cal.get(Calendar.HOUR_OF_DAY); + 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 (casetaPeajeExcepcion.getHoraFin() != null) { + Calendar cal = Calendar.getInstance(); + cal.setTime(casetaPeajeExcepcion.getHoraFin()); + int hour = cal.get(Calendar.HOUR_OF_DAY); + 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(casetaPeajeExcepcion)); + lc.setParent(lstm); + + if (casetaPeajeExcepcion.getPrecio() != null) { + double x = casetaPeajeExcepcion.getPrecio().doubleValue(); + lc = new Listcell(String.format("%.02f",x)); + } else { + lc = new Listcell(""); + } + + lc.setParent(lstm); + + + lstm.setAttribute("data", casetaPeajeExcepcion); + + + } + + private String getDias(CasetaPeajeExcepcion casetaPeajeExcepcion) { + String retorno = ""; + if (casetaPeajeExcepcion.getINDDOMINGO()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.domingo")+", "; + } + if (casetaPeajeExcepcion.getINDLUNES()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.lunes")+", "; + } + if (casetaPeajeExcepcion.getINDMARTES()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.martes")+", "; + } + if (casetaPeajeExcepcion.getINDMIERCOLES()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.miercoles")+", "; + } + if (casetaPeajeExcepcion.getINDJUEVES()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.jueves")+", "; + } + if (casetaPeajeExcepcion.getINDVIERNES()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.viernes")+", "; + } + if (casetaPeajeExcepcion.getINDSABADO()) { + retorno = retorno + Labels.getLabel("editarExcepcionPeajeController.msg.sabado")+", "; + } + if (retorno.length() > 1) { + retorno = retorno.substring(0, retorno.length() - 2); + } + return retorno; + } +} diff --git a/src/java/db/migration/V20160726_1445__casetapeajeexcepcion.sql b/src/java/db/migration/V20160726_1445__casetapeajeexcepcion.sql new file mode 100644 index 000000000..14a26ab33 --- /dev/null +++ b/src/java/db/migration/V20160726_1445__casetapeajeexcepcion.sql @@ -0,0 +1,29 @@ + +CREATE TABLE + CASETA_PEAJE_EXCEPCION + ( + CASETAPEAJEEXCEPCION_ID NUMBER(7) NOT NULL, + CASETAPEAJE_ID NUMBER(7) NOT NULL, + FECHAVENTAINI DATE, + FECHAVENTAFIN DATE, + FECHORINICIO DATE, + FECHORFINAL DATE, + INDLUNES NUMBER(1), + INDMARTES NUMBER(1), + INDMIERCOLES NUMBER(1), + INDJUEVES NUMBER(1), + INDVIERNES NUMBER(1), + INDSABADO NUMBER(1), + INDDOMINGO NUMBER(1), + ACTIVO NUMBER(1), + FECMODIF DATE, + USUARIO_ID NUMBER(7), + PRECIO NUMBER(7,2), + CONSTRAINT CASETA_PEAJE_EXCEPCION_PK PRIMARY KEY (CASETAPEAJEEXCEPCION_ID), + CONSTRAINT CASETAPEXCEPCION_CASETA_FK FOREIGN KEY (CASETAPEAJE_ID) REFERENCES + CASETA_PEAJE (CASETAPEAJE_ID), + CONSTRAINT NNC_CASETAPEAJEEXCEPCION_ID CHECK ("CASETAPEAJEEXCEPCION_ID" IS NOT NULL), + CONSTRAINT NNC_CASETAPEAJE_ID CHECK ("CASETAPEAJE_ID" IS NOT NULL) + ); + +CREATE SEQUENCE "VTABOL"."CASETA_PEAJE_EXCEPCION_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ; \ No newline at end of file diff --git a/src/java/db/migration/V20160729_1502__excepcionpeajevigencia.sql b/src/java/db/migration/V20160729_1502__excepcionpeajevigencia.sql new file mode 100644 index 000000000..77990bbdf --- /dev/null +++ b/src/java/db/migration/V20160729_1502__excepcionpeajevigencia.sql @@ -0,0 +1,5 @@ +ALTER TABLE + VTABOL.EXCEPCION_PEAJE_VIGENCIA ADD (CASETAPEAJE_ID NUMBER(7)); +ALTER TABLE + VTABOL.EXCEPCION_PEAJE_VIGENCIA ADD CONSTRAINT EXCPEAJEVIGENCIA_CASETA_FK FOREIGN KEY + (CASETAPEAJE_ID) REFERENCES VTABOL.CASETA_PEAJE (CASETAPEAJE_ID) \ No newline at end of file diff --git a/src/java/spring-config.xml b/src/java/spring-config.xml index 7a8195cf5..f5d97883c 100644 --- a/src/java/spring-config.xml +++ b/src/java/spring-config.xml @@ -58,6 +58,7 @@ com.rjconsultores.ventaboletos.entidad.CancelacionCargo + com.rjconsultores.ventaboletos.entidad.CasetaPeajeExcepcion com.rjconsultores.ventaboletos.entidad.Categoria com.rjconsultores.ventaboletos.entidad.CategoriaClase com.rjconsultores.ventaboletos.entidad.CategoriaCorrida diff --git a/web/gui/configuraciones_comerciales/editarExcepcionPeaje.zul b/web/gui/configuraciones_comerciales/editarExcepcionPeaje.zul index 58098de7a..07e46642f 100644 --- a/web/gui/configuraciones_comerciales/editarExcepcionPeaje.zul +++ b/web/gui/configuraciones_comerciales/editarExcepcionPeaje.zul @@ -169,11 +169,11 @@ -