From ad06a4040bc508cd8c4ce049a19dcb59e27e671f Mon Sep 17 00:00:00 2001 From: gleimar Date: Mon, 1 Apr 2013 22:11:01 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@25461 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../EditarCorridaAsientoController.java | 3742 ++++++++--------- web/WEB-INF/i3-label_pt_BR.label | 5 +- 2 files changed, 1847 insertions(+), 1900 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaAsientoController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaAsientoController.java index 22497d0bd..2a3f5ab4d 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaAsientoController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/esquemaoperacional/EditarCorridaAsientoController.java @@ -16,6 +16,7 @@ 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.WrongValueException; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.InputEvent; import org.zkoss.zkplus.databind.BindingListModel; @@ -33,6 +34,7 @@ import com.rjconsultores.ventaboletos.entidad.Parada; import com.rjconsultores.ventaboletos.entidad.Ruta; import com.rjconsultores.ventaboletos.entidad.RutaSecuencia; import com.rjconsultores.ventaboletos.entidad.Tramo; +import com.rjconsultores.ventaboletos.exception.BusinessException; import com.rjconsultores.ventaboletos.service.DiagramaAutobusService; import com.rjconsultores.ventaboletos.service.EsquemaAsientoService; import com.rjconsultores.ventaboletos.service.EsquemaCorridaService; @@ -44,2012 +46,1956 @@ import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxEstandar; import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer; /** - * + * * @author Rafius */ @Controller("editarCorridaAsientoController") @Scope("prototype") public class EditarCorridaAsientoController extends MyGenericForwardComposer { - @Autowired - private EsquemaCorridaService esquemaCorridaService; - @Autowired - private EsquemaAsientoService esquemaAsientoService; - @Autowired - private ParadaService paradaService; - @Autowired - private DiagramaAutobusService diagramaAutoBusService; - @Autowired - private RutaService rutaService; - @Autowired - private RutaSecuenciaService rutaSecuenciaService; - private EsquemaCorrida esquemaCorrida; - private List lsOrigen; - private List lsDestino; - private List lsAsientos; - private DiagramaAutobus diagramaAutobus; - private Textbox txtAsiento; - private Button btnCeder; - private Button btnLiberar; - private Combobox cmbOrigen; - private Button btn_1_1; - private Button btn_1_2; - private Button btn_1_3; - private Button btn_1_4; - private Button btn_1_5; - private Button btn_1_6; - private Button btn_1_7; - private Button btn_1_8; - private Button btn_1_9; - private Button btn_1_10; - private Button btn_1_11; - private Button btn_1_12; - private Button btn_1_13; - private Button btn_3_1; - private Button btn_3_2; - private Button btn_3_3; - private Button btn_3_4; - private Button btn_3_5; - private Button btn_3_6; - private Button btn_3_7; - private Button btn_3_8; - private Button btn_3_9; - private Button btn_3_10; - private Button btn_3_11; - private Button btn_3_12; - private Button btn_3_13; - private Button btn_5_1; - private Button btn_5_2; - private Button btn_5_3; - private Button btn_5_4; - private Button btn_5_5; - private Button btn_5_6; - private Button btn_5_7; - private Button btn_5_8; - private Button btn_5_9; - private Button btn_5_10; - private Button btn_5_11; - private Button btn_5_12; - private Button btn_5_13; - private Button btn_7_1; - private Button btn_7_2; - private Button btn_7_3; - private Button btn_7_4; - private Button btn_7_5; - private Button btn_7_6; - private Button btn_7_7; - private Button btn_7_8; - private Button btn_7_9; - private Button btn_7_10; - private Button btn_7_11; - private Button btn_7_12; - private Button btn_7_13; - private Radio poltronaExclusiva; - private Radio poltronaOcupada; - private MyComboboxEstandar cmbDestino; - private Textbox txtMotivo; - private static Logger log = Logger.getLogger(EditarCorridaAsientoController.class); + @Autowired + private EsquemaCorridaService esquemaCorridaService; + @Autowired + private EsquemaAsientoService esquemaAsientoService; + @Autowired + private ParadaService paradaService; + @Autowired + private DiagramaAutobusService diagramaAutoBusService; + @Autowired + private RutaService rutaService; + @Autowired + private RutaSecuenciaService rutaSecuenciaService; + private EsquemaCorrida esquemaCorrida; + private List lsOrigen; + private List lsDestino; + private List lsAsientos; + private DiagramaAutobus diagramaAutobus; + private Textbox txtAsiento; + private Button btnCeder; + private Button btnLiberar; + private Combobox cmbOrigen; + private Button btn_1_1; + private Button btn_1_2; + private Button btn_1_3; + private Button btn_1_4; + private Button btn_1_5; + private Button btn_1_6; + private Button btn_1_7; + private Button btn_1_8; + private Button btn_1_9; + private Button btn_1_10; + private Button btn_1_11; + private Button btn_1_12; + private Button btn_1_13; + private Button btn_3_1; + private Button btn_3_2; + private Button btn_3_3; + private Button btn_3_4; + private Button btn_3_5; + private Button btn_3_6; + private Button btn_3_7; + private Button btn_3_8; + private Button btn_3_9; + private Button btn_3_10; + private Button btn_3_11; + private Button btn_3_12; + private Button btn_3_13; + private Button btn_5_1; + private Button btn_5_2; + private Button btn_5_3; + private Button btn_5_4; + private Button btn_5_5; + private Button btn_5_6; + private Button btn_5_7; + private Button btn_5_8; + private Button btn_5_9; + private Button btn_5_10; + private Button btn_5_11; + private Button btn_5_12; + private Button btn_5_13; + private Button btn_7_1; + private Button btn_7_2; + private Button btn_7_3; + private Button btn_7_4; + private Button btn_7_5; + private Button btn_7_6; + private Button btn_7_7; + private Button btn_7_8; + private Button btn_7_9; + private Button btn_7_10; + private Button btn_7_11; + private Button btn_7_12; + private Button btn_7_13; + private Radio poltronaExclusiva; + private Radio poltronaOcupada; + private MyComboboxEstandar cmbDestino; + private Textbox txtMotivo; + private static Logger log = Logger.getLogger(EditarCorridaAsientoController.class); - @Override - public void doAfterCompose(Component comp) throws Exception { - esquemaCorrida = (EsquemaCorrida) Executions.getCurrent().getArg().get("esquemaCorrida"); - - lsOrigen = new ArrayList(); - lsDestino = new ArrayList(); - Ruta ruta = esquemaCorrida.getRuta(); - //ruta = rutaService.obtenerID(ruta.getRutaId()); - if (ruta != null) { + @Override + public void doAfterCompose(Component comp) throws Exception { + esquemaCorrida = (EsquemaCorrida) Executions.getCurrent().getArg().get("esquemaCorrida"); - List lsRutaSecuencia = rutaSecuenciaService.buscarSecuenciaOrdenado(ruta); - for (RutaSecuencia rc : lsRutaSecuencia) { - Tramo tramo = rc.getTramo(); - if (tramo != null) { - Parada origem = tramo.getOrigem(); - if (!lsOrigen.contains(origem)) { - lsOrigen.add(origem); - } + lsOrigen = new ArrayList(); + lsDestino = new ArrayList(); + Ruta ruta = esquemaCorrida.getRuta(); - Parada destino = tramo.getDestino(); - if (!lsDestino.contains(destino)) { - lsDestino.add(destino); - } - } - } - - if (!lsRutaSecuencia.isEmpty()) { - lsOrigen.add(lsRutaSecuencia.get(lsRutaSecuencia.size() - 1).getTramo().getDestino()); - } - -// if (lsOrigen.size() > 1) { -// lsOrigen.remove(lsOrigen.size() - 1);//O destino final de uma ruta não pode ter asento cedido -// } - } + if (ruta != null) { - super.doAfterCompose(comp); + List lsRutaSecuencia = rutaSecuenciaService.buscarSecuenciaOrdenado(ruta); + for (RutaSecuencia rc : lsRutaSecuencia) { + Tramo tramo = rc.getTramo(); + if (tramo != null) { + Parada origem = tramo.getOrigem(); + if (!lsOrigen.contains(origem)) { + lsOrigen.add(origem); + } - diagramaAutobus = diagramaAutoBusService.obtenerID(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId()); - colorirAsientos(null); - - txtAsiento.setValue(""); - - for (Short fila = 1; fila <= 7; fila++) { - for (Short coluna = 1; coluna <= 13; coluna++) { - if (fila == 1 || fila == 3 || fila == 5 || fila == 7) { - Button button = getButtonAssento(fila, coluna); - if ((button.getLabel() == null) || (button.getLabel().equals(""))) { - button.setDisabled(true); - } - } - Button button = getButtonAssento(fila, coluna); - if (button != null) { - button.setDisabled(!DetDiagramaAutobus.asientoVendible(button.getLabel())); - } - } - } - - if(poltronaExclusiva.isChecked()){ - cmbDestino.setDisabled(true); - txtMotivo.setDisabled(true); - } - } - - public void colorirAsientos(Event ev) throws InterruptedException { - lsAsientos = esquemaAsientoService.obtenerPorCorrida(esquemaCorrida); - - for (DetDiagramaAutobus dd : diagramaAutobus.getDetDiagramaAutobusList()) { - if ((dd.getNumefila() == 1) || (dd.getNumefila() == 3) || (dd.getNumefila() == 5) || (dd.getNumefila() == 7)) { - Button button = getButtonAssento(dd.getNumefila(), dd.getNumecolumna()); - button.setLabel(dd.getAsiento()); - button.setTooltiptext(dd.getAsiento()); - - dd.getVendible(); - - if ((button.getSclass().equals("myRed")) || (button.getSclass().equals("myBlue"))) { - button.setSclass("myGreen"); - } - - for (EsquemaAsiento as : lsAsientos) { - if (as.getNumasiento().equals(dd.getAsiento())) { - if(as.getIndvendible()){ - button.setSclass("myBlue"); - button.setLabel(as.getParada().getCveparada()); - break; - }else{ - button.setSclass("myGray"); - button.setLabel(as.getParada().getCveparada()); - break; - } - } - - - } - } - } - } - - public void onClick$poltronaExclusiva(){ - cmbDestino.setDisabled(true); - txtMotivo.setDisabled(true); - } - - public void onClick$poltronaOcupada(){ - cmbDestino.setDisabled(false); - txtMotivo.setDisabled(false); - } - - private boolean hayAsientosValidos(){ - String asientos[] = txtAsiento.getValue().split(","); - - if (asientos.length == 0){ - return false; - } - boolean asientoValido = false; - - for(int i = 0 ; i<=asientos.length;i++){ - try{ - Integer.parseInt(asientos[i]); - asientoValido = true; - }catch(Throwable e){ - } - } - - return asientoValido; - } - - public void enviarPeticionAsientos(String tipoPeticion) throws InterruptedException{ - try { - - boolean salvo = true; - - txtAsiento.setText((txtAsiento.getValue().endsWith(",")) ? txtAsiento.getValue() : txtAsiento.getValue().concat(",")); - - List todosAsientos = new ArrayList(); - - String asientos[] = txtAsiento.getValue().split(","); - - for (int i = 0; i < asientos.length; i++) { - if (asientos[i].contains("-")) { - String intervalo[] = asientos[i].split("-"); - Integer ini = Integer.parseInt(intervalo[0]); - Integer fim = Integer.parseInt(intervalo[1]); - - while (ini <= fim) { - todosAsientos.add(ini.toString()); - ini++; - } - } else { - todosAsientos.add(String.valueOf(Integer.parseInt(asientos[i]))); - } - } - - for (int i = 0; i < todosAsientos.size(); i++) { - - String asiento = todosAsientos.get(i); - - boolean vende = true; - - DiagramaAutobus da = diagramaAutoBusService.obtenerID(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId()); - - List listDda = da.getDetDiagramaAutobusList(); - for (DetDiagramaAutobus dd : listDda) { - if (dd.getAsiento().equals(asiento)) { - if (!dd.getVendible()) { - vende = false; - } - } - } - if (vende) { - try { - Integer.parseInt(todosAsientos.get(i)); - } catch (Exception ex) { - txtAsiento.setValue(""); - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.ERROR); - break; - } - EsquemaAsiento es = new EsquemaAsiento(); - es.setActivo(Boolean.TRUE); - es.setFecmodif(Calendar.getInstance().getTime()); - es.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); - es.setNumasiento(asiento); - - if(tipoPeticion.equals("ceder")){ - es.setIndvendible(Boolean.TRUE); - es.setParada((Parada) cmbOrigen.getSelectedItem().getValue()); - }else if (tipoPeticion.equals("bloqueo")){ - es.setIndvendible(Boolean.FALSE); - es.setParada((Parada) cmbOrigen.getSelectedItem().getValue()); - es.setDestino((Parada)cmbDestino.getSelectedItem().getValue()); - es.setMotivobloqueo(txtMotivo.getText()); - } - - es.setEsquemaCorrida(esquemaCorrida); - - EsquemaAsiento esquemaAsientoBusqueda = esquemaAsientoService.obtenerPorCorridaeAsiento(esquemaCorrida, asiento); - if (esquemaAsientoBusqueda.getEsquemaasientoId() == null) { - esquemaAsientoService.suscribir(es); - lsAsientos.add(es); - } else { - salvo = false; - Messagebox.show("A poltrona " + asiento + " já está configurada.", - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - - } - - } else { - salvo = false; - Messagebox.show("A poltrona " + asiento + " não está disponível para venda.", - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.EXCLAMATION); - } - } - - if (salvo) { - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.salvo"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - - - } - colorirAsientos(null); - txtAsiento.setValue(""); - txtMotivo.setText(""); - } catch (Exception ex) { - log.error("Erro asiento:" + ex); - txtAsiento.setValue(""); - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.ERROR); - - } - - } - - - public void onClick$btnCeder(Event ev) throws InterruptedException { - if (!hayAsientosValidos()){ - txtAsiento.setValue(""); - - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.ERROR); - - return; - } - - if (cmbOrigen.getSelectedItem() == null){ - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.origenObligatoria"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - cmbOrigen.setFocus(true); - - return; - } - - if(poltronaOcupada.isSelected()){ - if (cmbDestino.getSelectedItem() == null){ - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.destinoObligatoria"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - cmbDestino.setFocus(true); - - return; - } - - if(txtMotivo.getText().trim().equals("")){ - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.motivo"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - txtMotivo.setFocus(true); - return; + Parada destino = tramo.getDestino(); + if (!lsDestino.contains(destino)) { + lsDestino.add(destino); + } + } } - - if(cmbOrigen.getSelectedIndex()>=cmbDestino.getSelectedIndex()){ - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.tramo"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - - cmbOrigen.setFocus(true); - return; + + if (!lsRutaSecuencia.isEmpty()) { + lsOrigen.add(lsRutaSecuencia.get(lsRutaSecuencia.size() - 1).getTramo().getDestino()); } - - enviarPeticionAsientos("bloqueo"); + } - - if(poltronaExclusiva.isSelected()){ - enviarPeticionAsientos("ceder"); + + super.doAfterCompose(comp); + + diagramaAutobus = diagramaAutoBusService.obtenerID(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId()); + colorirAsientos(); + + txtAsiento.setValue(""); + + for (Short fila = 1; fila <= 7; fila++) { + for (Short coluna = 1; coluna <= 13; coluna++) { + if (fila == 1 || fila == 3 || fila == 5 || fila == 7) { + Button button = getButtonAssento(fila, coluna); + if ((button.getLabel() == null) || (button.getLabel().equals(""))) { + button.setDisabled(true); + } + } + Button button = getButtonAssento(fila, coluna); + if (button != null) { + button.setDisabled(!DetDiagramaAutobus.asientoVendible(button.getLabel())); + } + } } - } - - public void onClick$btnLiberar(Event ev) throws InterruptedException { - try { - txtAsiento.setText((txtAsiento.getValue().endsWith(",")) ? txtAsiento.getValue() : txtAsiento.getValue().concat(",")); - - List todosAsientos = new ArrayList(); - String asientos[] = txtAsiento.getValue().split(","); - - for (int i = 0; i < asientos.length; i++) { - if (asientos[i].contains("-")) { - String intervalo[] = asientos[i].split("-"); - Integer ini = Integer.parseInt(intervalo[0]); - Integer fim = Integer.parseInt(intervalo[1]); - - while (ini <= fim) { - todosAsientos.add(ini.toString()); - ini++; - } - } else { - todosAsientos.add(asientos[i]); - } - } - - for (int i = 0; i < todosAsientos.size(); i++) { - - String asiento = todosAsientos.get(i); - - EsquemaAsiento esquemaAsientoBusqueda = esquemaAsientoService.obtenerPorCorridaeAsiento(esquemaCorrida, asiento); - if (esquemaAsientoBusqueda.getEsquemaasientoId() != null) { - lsAsientos.remove(esquemaAsientoBusqueda); - - esquemaAsientoBusqueda.setActivo(Boolean.FALSE); - esquemaAsientoService.borrar(esquemaAsientoBusqueda); - - lsAsientos.add(esquemaAsientoBusqueda); - } - } - - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.liberar"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - - - txtAsiento.setValue(""); - txtMotivo.setText(""); - - colorirAsientos(null); - //closeWindow(); - } catch (Exception ex) { - log.error("Erro asiento:" + ex); - txtAsiento.setValue(""); - Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.ERROR); - - } - } - - public void onClick$btnApagar(Event ev) { - try { - int resp = Messagebox.show( - Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarPergunta"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.YES | Messagebox.NO, Messagebox.QUESTION); - - if (resp == Messagebox.YES) { - - - Messagebox.show( - Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarOK"), - Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), - Messagebox.OK, Messagebox.INFORMATION); - - - - closeWindow(); - } - } catch (Exception ex) { - log.error(ex); - } - } - - private Button getButtonAssento(Short numeFila, Short numeColuna) { - Button button = null; - switch (numeFila) { - case 1: - switch (numeColuna) { - case 1: - button = btn_1_1; - break; - case 2: - button = btn_1_2; - break; - case 3: - button = btn_1_3; - break; - case 4: - button = btn_1_4; - break; - case 5: - button = btn_1_5; - break; - case 6: - button = btn_1_6; - break; - case 7: - button = btn_1_7; - break; - case 8: - button = btn_1_8; - break; - case 9: - button = btn_1_9; - break; - case 10: - button = btn_1_10; - break; - case 11: - button = btn_1_11; - break; - case 12: - button = btn_1_12; - break; - case 13: - button = btn_1_13; - break; - } - break; - - case 3: - switch (numeColuna) { - case 1: - button = btn_3_1; - break; - case 2: - button = btn_3_2; - break; - case 3: - button = btn_3_3; - break; - case 4: - button = btn_3_4; - break; - case 5: - button = btn_3_5; - break; - case 6: - button = btn_3_6; - break; - case 7: - button = btn_3_7; - break; - case 8: - button = btn_3_8; - break; - case 9: - button = btn_3_9; - break; - case 10: - button = btn_3_10; - break; - case 11: - button = btn_3_11; - break; - case 12: - button = btn_3_12; - break; - case 13: - button = btn_3_13; - break; - } - break; - - case 5: - switch (numeColuna) { - case 1: - button = btn_5_1; - break; - case 2: - button = btn_5_2; - break; - case 3: - button = btn_5_3; - break; - case 4: - button = btn_5_4; - break; - case 5: - button = btn_5_5; - break; - case 6: - button = btn_5_6; - break; - case 7: - button = btn_5_7; - break; - case 8: - button = btn_5_8; - break; - case 9: - button = btn_5_9; - break; - case 10: - button = btn_5_10; - break; - case 11: - button = btn_5_11; - break; - case 12: - button = btn_5_12; - break; - case 13: - button = btn_5_13; - break; - } - break; - - case 7: - switch (numeColuna) { - case 1: - button = btn_7_1; - break; - case 2: - button = btn_7_2; - break; - case 3: - button = btn_7_3; - break; - case 4: - button = btn_7_4; - break; - case 5: - button = btn_7_5; - break; - case 6: - button = btn_7_6; - break; - case 7: - button = btn_7_7; - break; - case 8: - button = btn_7_8; - break; - case 9: - button = btn_7_9; - break; - case 10: - button = btn_7_10; - break; - case 11: - button = btn_7_11; - break; - case 12: - button = btn_7_12; - break; - case 13: - button = btn_7_13; - break; - } - break; - } - - return button; - } - - public void onClick$btn_1_1(Event ev) { - try { - String asiento = (btn_1_1.getTooltiptext().length() < 2) ? btn_1_1.getTooltiptext() : btn_1_1.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_1.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_1.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - - } - - public void onClick$btn_1_2(Event ev) throws Exception { - try { - String asiento = (btn_1_2.getTooltiptext().length() < 2) ? btn_1_2.getTooltiptext() : btn_1_2.getTooltiptext(); - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_2.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_2.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_3(Event ev) throws Exception { - try { - String asiento = (btn_1_3.getTooltiptext().length() < 2) ? btn_1_3.getTooltiptext() : btn_1_3.getTooltiptext(); - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_3.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_3.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_4(Event ev) throws Exception { - try { - String asiento = (btn_1_4.getTooltiptext().length() < 2) ? btn_1_4.getTooltiptext() : btn_1_4.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_4.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_4.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_5(Event ev) throws Exception { - try { - String asiento = (btn_1_5.getTooltiptext().length() < 2) ? btn_1_5.getTooltiptext() : btn_1_5.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_5.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_5.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_6(Event ev) throws Exception { - try { - String asiento = (btn_1_6.getTooltiptext().length() < 2) ? btn_1_6.getTooltiptext() : btn_1_6.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_6.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_6.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_7(Event ev) throws Exception { - try { - String asiento = (btn_1_7.getTooltiptext().length() < 2) ? btn_1_7.getTooltiptext() : btn_1_7.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_7.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_7.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_8(Event ev) throws Exception { - try { - String asiento = (btn_1_8.getTooltiptext().length() < 2) ? btn_1_8.getTooltiptext() : btn_1_8.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_8.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_8.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_9(Event ev) throws Exception { - try { - String asiento = (btn_1_9.getTooltiptext().length() < 2) ? btn_1_9.getTooltiptext() : btn_1_9.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_9.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_9.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_10(Event ev) throws Exception { - try { - String asiento = (btn_1_10.getTooltiptext().length() < 2) ? btn_1_10.getTooltiptext() : btn_1_10.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_10.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_10.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_11(Event ev) throws Exception { - try { - String asiento = (btn_1_11.getTooltiptext().length() < 2) ? btn_1_11.getTooltiptext() : btn_1_11.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_11.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_11.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_12(Event ev) throws Exception { - try { - String asiento = (btn_1_12.getTooltiptext().length() < 2) ? btn_1_12.getTooltiptext() : btn_1_12.getTooltiptext(); - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_12.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_12.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_1_13(Event ev) throws Exception { - try { - String asiento = (btn_1_13.getTooltiptext().length() < 2) ? btn_1_13.getTooltiptext() : btn_1_13.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_1_13.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_1_13.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_1(Event ev) throws Exception { - try { - String asiento = (btn_3_1.getTooltiptext().length() < 2) ? btn_3_1.getTooltiptext() : btn_3_1.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_1.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_1.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_2(Event ev) throws Exception { - try { - String asiento = (btn_3_2.getTooltiptext().length() < 2) ? btn_3_2.getTooltiptext() : btn_3_2.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_2.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_2.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_3(Event ev) throws Exception { - try { - String asiento = (btn_3_3.getTooltiptext().length() < 2) ? btn_3_3.getTooltiptext() : btn_3_3.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_3.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_3.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_4(Event ev) throws Exception { - try { - String asiento = (btn_3_4.getTooltiptext().length() < 2) ? btn_3_4.getTooltiptext() : btn_3_4.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_4.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_4.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_5(Event ev) throws Exception { - try { - String asiento = (btn_3_5.getTooltiptext().length() < 2) ? btn_3_5.getTooltiptext() : btn_3_5.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_5.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_5.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_6(Event ev) throws Exception { - try { - String asiento = (btn_3_6.getTooltiptext().length() < 2) ? btn_3_6.getTooltiptext() : btn_3_6.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_6.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_6.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_7(Event ev) throws Exception { - try { - String asiento = (btn_3_7.getTooltiptext().length() < 2) ? btn_3_7.getTooltiptext() : btn_3_7.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_7.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_7.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_8(Event ev) throws Exception { - try { - String asiento = (btn_3_8.getTooltiptext().length() < 2) ? btn_3_8.getTooltiptext() : btn_3_8.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_8.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_8.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_9(Event ev) throws Exception { - try { - String asiento = (btn_3_9.getTooltiptext().length() < 2) ? btn_3_9.getTooltiptext() : btn_3_9.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_9.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_9.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_10(Event ev) throws Exception { - try { - String asiento = (btn_3_10.getTooltiptext().length() < 2) ? btn_3_10.getTooltiptext() : btn_3_10.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_10.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_10.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_11(Event ev) throws Exception { - try { - String asiento = (btn_3_11.getTooltiptext().length() < 2) ? btn_3_11.getTooltiptext() : btn_3_11.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_11.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_11.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_12(Event ev) throws Exception { - try { - String asiento = (btn_3_12.getTooltiptext().length() < 2) ? btn_3_12.getTooltiptext() : btn_3_12.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_12.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_12.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_3_13(Event ev) throws Exception { - try { - String asiento = (btn_3_13.getTooltiptext().length() < 2) ? btn_3_13.getTooltiptext() : btn_3_13.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_3_13.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_3_13.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_1(Event ev) throws Exception { - try { - String asiento = (btn_5_1.getTooltiptext().length() < 2) ? btn_5_1.getTooltiptext() : btn_5_1.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_1.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_1.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_2(Event ev) throws Exception { - try { - String asiento = (btn_5_2.getTooltiptext().length() < 2) ? btn_5_2.getTooltiptext() : btn_5_2.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_2.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_2.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_3(Event ev) throws Exception { - try { - String asiento = (btn_5_3.getTooltiptext().length() < 2) ? btn_5_3.getTooltiptext() : btn_5_3.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_3.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_3.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_4(Event ev) throws Exception { - try { - String asiento = (btn_5_4.getTooltiptext().length() < 2) ? btn_5_4.getTooltiptext() : btn_5_4.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_4.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_4.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_5(Event ev) throws Exception { - try { - String asiento = (btn_5_5.getTooltiptext().length() < 2) ? btn_5_5.getTooltiptext() : btn_5_5.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_5.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_5.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_6(Event ev) throws Exception { - try { - String asiento = (btn_5_6.getTooltiptext().length() < 2) ? btn_5_6.getTooltiptext() : btn_5_6.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_6.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_6.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_7(Event ev) throws Exception { - try { - String asiento = (btn_5_7.getTooltiptext().length() < 2) ? btn_5_7.getTooltiptext() : btn_5_7.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_7.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_7.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_8(Event ev) throws Exception { - try { - String asiento = (btn_5_8.getTooltiptext().length() < 2) ? btn_5_8.getTooltiptext() : btn_5_8.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_8.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_8.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_9(Event ev) throws Exception { - try { - String asiento = (btn_5_9.getTooltiptext().length() < 2) ? btn_5_9.getTooltiptext() : btn_5_9.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_9.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_9.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_10(Event ev) throws Exception { - try { - String asiento = (btn_5_10.getTooltiptext().length() < 2) ? btn_5_10.getTooltiptext() : btn_5_10.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_10.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_10.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_11(Event ev) throws Exception { - try { - String asiento = (btn_5_11.getTooltiptext().length() < 2) ? btn_5_11.getTooltiptext() : btn_5_11.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_11.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_11.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_12(Event ev) throws Exception { - try { - String asiento = (btn_5_12.getTooltiptext().length() < 2) ? btn_5_12.getTooltiptext() : btn_5_12.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_12.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_12.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_5_13(Event ev) throws Exception { - try { - String asiento = (btn_5_13.getTooltiptext().length() < 2) ? btn_5_13.getTooltiptext() : btn_5_13.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_5_13.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_5_13.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_1(Event ev) throws Exception { - try { - String asiento = (btn_7_1.getTooltiptext().length() < 2) ? btn_7_1.getTooltiptext() : btn_7_1.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_1.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_1.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_2(Event ev) throws Exception { - try { - String asiento = (btn_7_2.getTooltiptext().length() < 2) ? btn_7_2.getTooltiptext() : btn_7_2.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_2.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_2.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_3(Event ev) throws Exception { - try { - String asiento = (btn_7_3.getTooltiptext().length() < 2) ? btn_7_3.getTooltiptext() : btn_7_3.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_3.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_3.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_4(Event ev) throws Exception { - try { - String asiento = (btn_7_4.getTooltiptext().length() < 2) ? btn_7_4.getTooltiptext() : btn_7_4.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_4.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_4.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_5(Event ev) throws Exception { - try { - String asiento = (btn_7_5.getTooltiptext().length() < 2) ? btn_7_5.getTooltiptext() : btn_7_5.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_5.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_5.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_6(Event ev) throws Exception { - try { - String asiento = (btn_7_6.getTooltiptext().length() < 2) ? btn_7_6.getTooltiptext() : btn_7_6.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_6.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_6.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_7(Event ev) throws Exception { - try { - String asiento = (btn_7_7.getTooltiptext().length() < 2) ? btn_7_7.getTooltiptext() : btn_7_7.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_7.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_7.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_8(Event ev) throws Exception { - try { - String asiento = (btn_7_8.getTooltiptext().length() < 2) ? btn_7_8.getTooltiptext() : btn_7_8.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_8.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_8.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_9(Event ev) throws Exception { - try { - String asiento = (btn_7_9.getTooltiptext().length() < 2) ? btn_7_9.getTooltiptext() : btn_7_9.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_9.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_9.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_10(Event ev) throws Exception { - try { - String asiento = (btn_7_10.getTooltiptext().length() < 2) ? btn_7_10.getTooltiptext() : btn_7_10.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_10.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_10.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_11(Event ev) throws Exception { - try { - String asiento = (btn_7_11.getTooltiptext().length() < 2) ? btn_7_11.getTooltiptext() : btn_7_11.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_11.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_11.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_12(Event ev) { - - try { - String asiento = (btn_7_12.getTooltiptext().length() < 2) ? btn_7_12.getTooltiptext() : btn_7_12.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_12.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_12.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onClick$btn_7_13(Event ev) { - try { - String asiento = (btn_7_13.getTooltiptext().length() < 2) ? btn_7_13.getTooltiptext() : btn_7_13.getTooltiptext(); - - if (!txtAsiento.getValue().contains(asiento)) { - txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); - btn_7_13.setSclass("myRed"); - } else { - txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); - btn_7_13.setSclass("myGreen"); - } - } catch (Exception e) { - log.info("Asiento Inexistente"); - } - } - - public void onChanging$cmbOrigen(InputEvent ev) { - String strParada = ev.getValue().toUpperCase(); - - List lsParadas = new ArrayList(); - if (!strParada.isEmpty()) { - lsParadas = paradaService.buscaLike(strParada); - - BindingListModel listModelParada = new BindingListModelList(lsParadas, true); - cmbOrigen.setModel(listModelParada); - - cmbOrigen.open(); - } else { - lsParadas.clear(); - - BindingListModel listModelParada = new BindingListModelList(lsParadas, true); - cmbOrigen.setModel(listModelParada); - } - } - - public EsquemaCorrida getEsquemaCorrida() { - return esquemaCorrida; - } - - public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) { - this.esquemaCorrida = esquemaCorrida; - } - - public EsquemaCorridaService getEsquemaCorridaService() { - return esquemaCorridaService; - } - - public void setEsquemaCorridaService(EsquemaCorridaService esquemaCorridaService) { - this.esquemaCorridaService = esquemaCorridaService; - } - - public static Logger getLog() { - return log; - } - - public static void setLog(Logger log) { - EditarCorridaAsientoController.log = log; - } - - public List getLsOrigen() { - return lsOrigen; - } - - public void setLsOrigen(List lsOrigen) { - this.lsOrigen = lsOrigen; - } - - public List getLsDestino() { - return lsDestino; - } - - public void setLsDestino(List lsDestino) { - this.lsDestino = lsDestino; - } - - - - public ParadaService getParadaService() { - return paradaService; - } - - public void setParadaService(ParadaService paradaService) { - this.paradaService = paradaService; - } - - public Button getBtn_1_1() { - return btn_1_1; - } - - public void setBtn_1_1(Button btn_1_1) { - this.btn_1_1 = btn_1_1; - } - - public Button getBtn_1_10() { - return btn_1_10; - } - - public void setBtn_1_10(Button btn_1_10) { - this.btn_1_10 = btn_1_10; - } - - public Button getBtn_1_11() { - return btn_1_11; - } - - public void setBtn_1_11(Button btn_1_11) { - this.btn_1_11 = btn_1_11; - } - - public Button getBtn_1_12() { - return btn_1_12; - } - - public void setBtn_1_12(Button btn_1_12) { - this.btn_1_12 = btn_1_12; - } - - public Button getBtn_1_13() { - return btn_1_13; - } - - public void setBtn_1_13(Button btn_1_13) { - this.btn_1_13 = btn_1_13; - } - - public Button getBtn_1_2() { - return btn_1_2; - } - - public void setBtn_1_2(Button btn_1_2) { - this.btn_1_2 = btn_1_2; - } - - public Button getBtn_1_3() { - return btn_1_3; - } - - public void setBtn_1_3(Button btn_1_3) { - this.btn_1_3 = btn_1_3; - } - - public Button getBtn_1_4() { - return btn_1_4; - } - - public void setBtn_1_4(Button btn_1_4) { - this.btn_1_4 = btn_1_4; - } - - public Button getBtn_1_5() { - return btn_1_5; - } - - public void setBtn_1_5(Button btn_1_5) { - this.btn_1_5 = btn_1_5; - } - - public Button getBtn_1_6() { - return btn_1_6; - } - - public void setBtn_1_6(Button btn_1_6) { - this.btn_1_6 = btn_1_6; - } - - public Button getBtn_1_7() { - return btn_1_7; - } - public void setBtn_1_7(Button btn_1_7) { - this.btn_1_7 = btn_1_7; - } + if (poltronaExclusiva.isChecked()) { + cmbDestino.setDisabled(true); + txtMotivo.setDisabled(true); + } + } + + public void colorirAsientos() throws InterruptedException { + lsAsientos = esquemaAsientoService.obtenerPorCorrida(esquemaCorrida); + + for (DetDiagramaAutobus dd : diagramaAutobus.getDetDiagramaAutobusList()) { + if ((dd.getNumefila() == 1) || (dd.getNumefila() == 3) || (dd.getNumefila() == 5) || (dd.getNumefila() == 7)) { + Button button = getButtonAssento(dd.getNumefila(), dd.getNumecolumna()); + button.setLabel(dd.getAsiento()); + button.setTooltiptext(dd.getAsiento()); + + dd.getVendible(); + + if ((button.getSclass().equals("myRed")) || (button.getSclass().equals("myBlue"))) { + button.setSclass("myGreen"); + } + + for (EsquemaAsiento as : lsAsientos) { + if (as.getNumasiento().equals(dd.getAsiento())) { + if (as.getIndvendible()) { + button.setSclass("myBlue"); + button.setLabel(as.getParada().getCveparada()); + break; + } else { + button.setSclass("myGray"); + button.setLabel(as.getParada().getCveparada()); + break; + } + } + + } + } + } + } + + public void onClick$poltronaExclusiva() { + cmbDestino.setDisabled(true); + txtMotivo.setDisabled(true); + } + + public void onClick$poltronaOcupada() { + cmbDestino.setDisabled(false); + txtMotivo.setDisabled(false); + } + + public void enviarPeticionAsientos(String tipoPeticion) throws InterruptedException { + try { + + boolean salvo = true; + + txtAsiento.setText((txtAsiento.getValue().endsWith(",")) ? txtAsiento.getValue() : txtAsiento.getValue().concat(",")); + + List todosAsientos = new ArrayList(); + + String asientos[] = txtAsiento.getValue().split(","); + + for (int i = 0; i < asientos.length; i++) { + if (asientos[i].contains("-")) { + String intervalo[] = asientos[i].split("-"); + Integer ini = Integer.parseInt(intervalo[0]); + Integer fim = Integer.parseInt(intervalo[1]); + + while (ini <= fim) { + todosAsientos.add(ini.toString()); + ini++; + } + } else { + todosAsientos.add(String.valueOf(Integer.parseInt(asientos[i]))); + } + } + + for (int i = 0; i < todosAsientos.size(); i++) { + + String asiento = todosAsientos.get(i); + + boolean vende = true; + + DiagramaAutobus da = diagramaAutoBusService.obtenerID(esquemaCorrida.getRolOperativo().getDiagramaAutobus().getDiagramaautobusId()); + + List listDda = da.getDetDiagramaAutobusList(); + for (DetDiagramaAutobus dd : listDda) { + if (dd.getAsiento().equals(asiento)) { + if (!dd.getVendible()) { + vende = false; + } + } + } + if (vende) { + try { + Integer.parseInt(todosAsientos.get(i)); + } catch (Exception ex) { + txtAsiento.setValue(""); + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.ERROR); + break; + } + EsquemaAsiento es = new EsquemaAsiento(); + es.setActivo(Boolean.TRUE); + es.setFecmodif(Calendar.getInstance().getTime()); + es.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); + es.setNumasiento(asiento); + + if (tipoPeticion.equals("ceder")) { + es.setIndvendible(Boolean.TRUE); + es.setParada((Parada) cmbOrigen.getSelectedItem().getValue()); + } else if (tipoPeticion.equals("bloqueo")) { + es.setIndvendible(Boolean.FALSE); + es.setParada((Parada) cmbOrigen.getSelectedItem().getValue()); + es.setDestino((Parada) cmbDestino.getSelectedItem().getValue()); + es.setMotivobloqueo(txtMotivo.getText()); + } + + es.setEsquemaCorrida(esquemaCorrida); + + EsquemaAsiento esquemaAsientoBusqueda = esquemaAsientoService.obtenerPorCorridaeAsiento(esquemaCorrida, asiento); + if (esquemaAsientoBusqueda.getEsquemaasientoId() == null) { + esquemaAsientoService.suscribir(es); + lsAsientos.add(es); + } else { + salvo = false; + Messagebox.show("A poltrona " + asiento + " já está configurada.", + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + + } + + } else { + salvo = false; + Messagebox.show("A poltrona " + asiento + " não está disponível para venda.", + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.EXCLAMATION); + } + } + + if (salvo) { + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.salvo"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + + } + colorirAsientos(); + txtAsiento.setValue(""); + txtMotivo.setText(""); + } catch (Exception ex) { + log.error("Erro asiento:" + ex); + txtAsiento.setValue(""); + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.ERROR); + + } + + } + + public void onClick$btnCeder(Event ev) throws InterruptedException { + try { + Parada origen = (cmbOrigen.getSelectedItem() == null)?null:(Parada) cmbOrigen.getSelectedItem().getValue(); + Parada destino = (cmbDestino.getSelectedItem() == null)?null:(Parada) cmbDestino.getSelectedItem().getValue(); + + if (poltronaOcupada.isSelected()) { + esquemaAsientoService.bloqueoAsientoOcupacion(esquemaCorrida, txtAsiento.getText(), origen, destino, txtMotivo.getText()); + } else { + esquemaAsientoService.bloqueoAsientoExclusivo(esquemaCorrida, txtAsiento.getText(), origen); + txtMotivo.setText(""); + } + + colorirAsientos(); + txtAsiento.setValue(""); + + + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.salvo"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + + } catch (WrongValueException e) { + throw e; + } catch (BusinessException e) { + Messagebox.show(e.getLocalizedMessage(), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.ERROR); + } + + } + + public void onClick$btnLiberar(Event ev) throws InterruptedException { + try { + txtAsiento.setText((txtAsiento.getValue().endsWith(",")) ? txtAsiento.getValue() : txtAsiento.getValue().concat(",")); + + List todosAsientos = new ArrayList(); + String asientos[] = txtAsiento.getValue().split(","); + + for (int i = 0; i < asientos.length; i++) { + if (asientos[i].contains("-")) { + String intervalo[] = asientos[i].split("-"); + Integer ini = Integer.parseInt(intervalo[0]); + Integer fim = Integer.parseInt(intervalo[1]); + + while (ini <= fim) { + todosAsientos.add(ini.toString()); + ini++; + } + } else { + todosAsientos.add(asientos[i]); + } + } + + for (int i = 0; i < todosAsientos.size(); i++) { + + String asiento = todosAsientos.get(i); + + EsquemaAsiento esquemaAsientoBusqueda = esquemaAsientoService.obtenerPorCorridaeAsiento(esquemaCorrida, asiento); + if (esquemaAsientoBusqueda.getEsquemaasientoId() != null) { + lsAsientos.remove(esquemaAsientoBusqueda); + + esquemaAsientoBusqueda.setActivo(Boolean.FALSE); + esquemaAsientoService.borrar(esquemaAsientoBusqueda); + + lsAsientos.add(esquemaAsientoBusqueda); + } + } + + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.liberar"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + + txtAsiento.setValue(""); + txtMotivo.setText(""); + + colorirAsientos(); + + } catch (Exception ex) { + log.error("Erro asiento:" + ex); + txtAsiento.setValue(""); + Messagebox.show(Labels.getLabel("editarConfiguracionCorridaAsientoController.MSG.invalido"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.ERROR); + + } + } + + public void onClick$btnApagar(Event ev) { + try { + int resp = Messagebox.show( + Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarPergunta"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.YES | Messagebox.NO, Messagebox.QUESTION); + + if (resp == Messagebox.YES) { + + Messagebox.show( + Labels.getLabel("editarConfiguracionCorridaController.MSG.borrarOK"), + Labels.getLabel("editarConfiguracionCorridaAsientoController.window.title"), + Messagebox.OK, Messagebox.INFORMATION); + + closeWindow(); + } + } catch (Exception ex) { + log.error(ex); + } + } + + private Button getButtonAssento(Short numeFila, Short numeColuna) { + Button button = null; + switch (numeFila) { + case 1: + switch (numeColuna) { + case 1: + button = btn_1_1; + break; + case 2: + button = btn_1_2; + break; + case 3: + button = btn_1_3; + break; + case 4: + button = btn_1_4; + break; + case 5: + button = btn_1_5; + break; + case 6: + button = btn_1_6; + break; + case 7: + button = btn_1_7; + break; + case 8: + button = btn_1_8; + break; + case 9: + button = btn_1_9; + break; + case 10: + button = btn_1_10; + break; + case 11: + button = btn_1_11; + break; + case 12: + button = btn_1_12; + break; + case 13: + button = btn_1_13; + break; + } + break; + + case 3: + switch (numeColuna) { + case 1: + button = btn_3_1; + break; + case 2: + button = btn_3_2; + break; + case 3: + button = btn_3_3; + break; + case 4: + button = btn_3_4; + break; + case 5: + button = btn_3_5; + break; + case 6: + button = btn_3_6; + break; + case 7: + button = btn_3_7; + break; + case 8: + button = btn_3_8; + break; + case 9: + button = btn_3_9; + break; + case 10: + button = btn_3_10; + break; + case 11: + button = btn_3_11; + break; + case 12: + button = btn_3_12; + break; + case 13: + button = btn_3_13; + break; + } + break; + + case 5: + switch (numeColuna) { + case 1: + button = btn_5_1; + break; + case 2: + button = btn_5_2; + break; + case 3: + button = btn_5_3; + break; + case 4: + button = btn_5_4; + break; + case 5: + button = btn_5_5; + break; + case 6: + button = btn_5_6; + break; + case 7: + button = btn_5_7; + break; + case 8: + button = btn_5_8; + break; + case 9: + button = btn_5_9; + break; + case 10: + button = btn_5_10; + break; + case 11: + button = btn_5_11; + break; + case 12: + button = btn_5_12; + break; + case 13: + button = btn_5_13; + break; + } + break; + + case 7: + switch (numeColuna) { + case 1: + button = btn_7_1; + break; + case 2: + button = btn_7_2; + break; + case 3: + button = btn_7_3; + break; + case 4: + button = btn_7_4; + break; + case 5: + button = btn_7_5; + break; + case 6: + button = btn_7_6; + break; + case 7: + button = btn_7_7; + break; + case 8: + button = btn_7_8; + break; + case 9: + button = btn_7_9; + break; + case 10: + button = btn_7_10; + break; + case 11: + button = btn_7_11; + break; + case 12: + button = btn_7_12; + break; + case 13: + button = btn_7_13; + break; + } + break; + } + + return button; + } + + public void onClick$btn_1_1(Event ev) { + try { + String asiento = (btn_1_1.getTooltiptext().length() < 2) ? btn_1_1.getTooltiptext() : btn_1_1.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_1.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_1.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + + } + + public void onClick$btn_1_2(Event ev) throws Exception { + try { + String asiento = (btn_1_2.getTooltiptext().length() < 2) ? btn_1_2.getTooltiptext() : btn_1_2.getTooltiptext(); + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_2.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_2.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_3(Event ev) throws Exception { + try { + String asiento = (btn_1_3.getTooltiptext().length() < 2) ? btn_1_3.getTooltiptext() : btn_1_3.getTooltiptext(); + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_3.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_3.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_4(Event ev) throws Exception { + try { + String asiento = (btn_1_4.getTooltiptext().length() < 2) ? btn_1_4.getTooltiptext() : btn_1_4.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_4.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_4.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_5(Event ev) throws Exception { + try { + String asiento = (btn_1_5.getTooltiptext().length() < 2) ? btn_1_5.getTooltiptext() : btn_1_5.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_5.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_5.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_6(Event ev) throws Exception { + try { + String asiento = (btn_1_6.getTooltiptext().length() < 2) ? btn_1_6.getTooltiptext() : btn_1_6.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_6.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_6.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_7(Event ev) throws Exception { + try { + String asiento = (btn_1_7.getTooltiptext().length() < 2) ? btn_1_7.getTooltiptext() : btn_1_7.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_7.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_7.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_8(Event ev) throws Exception { + try { + String asiento = (btn_1_8.getTooltiptext().length() < 2) ? btn_1_8.getTooltiptext() : btn_1_8.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_8.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_8.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_9(Event ev) throws Exception { + try { + String asiento = (btn_1_9.getTooltiptext().length() < 2) ? btn_1_9.getTooltiptext() : btn_1_9.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_9.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_9.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_10(Event ev) throws Exception { + try { + String asiento = (btn_1_10.getTooltiptext().length() < 2) ? btn_1_10.getTooltiptext() : btn_1_10.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_10.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_10.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_11(Event ev) throws Exception { + try { + String asiento = (btn_1_11.getTooltiptext().length() < 2) ? btn_1_11.getTooltiptext() : btn_1_11.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_11.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_11.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_12(Event ev) throws Exception { + try { + String asiento = (btn_1_12.getTooltiptext().length() < 2) ? btn_1_12.getTooltiptext() : btn_1_12.getTooltiptext(); + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_12.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_12.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_1_13(Event ev) throws Exception { + try { + String asiento = (btn_1_13.getTooltiptext().length() < 2) ? btn_1_13.getTooltiptext() : btn_1_13.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_1_13.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_1_13.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_1(Event ev) throws Exception { + try { + String asiento = (btn_3_1.getTooltiptext().length() < 2) ? btn_3_1.getTooltiptext() : btn_3_1.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_1.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_1.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_2(Event ev) throws Exception { + try { + String asiento = (btn_3_2.getTooltiptext().length() < 2) ? btn_3_2.getTooltiptext() : btn_3_2.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_2.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_2.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_3(Event ev) throws Exception { + try { + String asiento = (btn_3_3.getTooltiptext().length() < 2) ? btn_3_3.getTooltiptext() : btn_3_3.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_3.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_3.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_4(Event ev) throws Exception { + try { + String asiento = (btn_3_4.getTooltiptext().length() < 2) ? btn_3_4.getTooltiptext() : btn_3_4.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_4.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_4.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_5(Event ev) throws Exception { + try { + String asiento = (btn_3_5.getTooltiptext().length() < 2) ? btn_3_5.getTooltiptext() : btn_3_5.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_5.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_5.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_6(Event ev) throws Exception { + try { + String asiento = (btn_3_6.getTooltiptext().length() < 2) ? btn_3_6.getTooltiptext() : btn_3_6.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_6.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_6.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_7(Event ev) throws Exception { + try { + String asiento = (btn_3_7.getTooltiptext().length() < 2) ? btn_3_7.getTooltiptext() : btn_3_7.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_7.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_7.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_8(Event ev) throws Exception { + try { + String asiento = (btn_3_8.getTooltiptext().length() < 2) ? btn_3_8.getTooltiptext() : btn_3_8.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_8.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_8.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_9(Event ev) throws Exception { + try { + String asiento = (btn_3_9.getTooltiptext().length() < 2) ? btn_3_9.getTooltiptext() : btn_3_9.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_9.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_9.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_10(Event ev) throws Exception { + try { + String asiento = (btn_3_10.getTooltiptext().length() < 2) ? btn_3_10.getTooltiptext() : btn_3_10.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_10.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_10.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_11(Event ev) throws Exception { + try { + String asiento = (btn_3_11.getTooltiptext().length() < 2) ? btn_3_11.getTooltiptext() : btn_3_11.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_11.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_11.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_12(Event ev) throws Exception { + try { + String asiento = (btn_3_12.getTooltiptext().length() < 2) ? btn_3_12.getTooltiptext() : btn_3_12.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_12.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_12.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_3_13(Event ev) throws Exception { + try { + String asiento = (btn_3_13.getTooltiptext().length() < 2) ? btn_3_13.getTooltiptext() : btn_3_13.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_3_13.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_3_13.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_1(Event ev) throws Exception { + try { + String asiento = (btn_5_1.getTooltiptext().length() < 2) ? btn_5_1.getTooltiptext() : btn_5_1.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_1.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_1.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_2(Event ev) throws Exception { + try { + String asiento = (btn_5_2.getTooltiptext().length() < 2) ? btn_5_2.getTooltiptext() : btn_5_2.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_2.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_2.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_3(Event ev) throws Exception { + try { + String asiento = (btn_5_3.getTooltiptext().length() < 2) ? btn_5_3.getTooltiptext() : btn_5_3.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_3.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_3.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_4(Event ev) throws Exception { + try { + String asiento = (btn_5_4.getTooltiptext().length() < 2) ? btn_5_4.getTooltiptext() : btn_5_4.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_4.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_4.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_5(Event ev) throws Exception { + try { + String asiento = (btn_5_5.getTooltiptext().length() < 2) ? btn_5_5.getTooltiptext() : btn_5_5.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_5.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_5.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_6(Event ev) throws Exception { + try { + String asiento = (btn_5_6.getTooltiptext().length() < 2) ? btn_5_6.getTooltiptext() : btn_5_6.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_6.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_6.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_7(Event ev) throws Exception { + try { + String asiento = (btn_5_7.getTooltiptext().length() < 2) ? btn_5_7.getTooltiptext() : btn_5_7.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_7.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_7.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_8(Event ev) throws Exception { + try { + String asiento = (btn_5_8.getTooltiptext().length() < 2) ? btn_5_8.getTooltiptext() : btn_5_8.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_8.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_8.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_9(Event ev) throws Exception { + try { + String asiento = (btn_5_9.getTooltiptext().length() < 2) ? btn_5_9.getTooltiptext() : btn_5_9.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_9.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_9.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_10(Event ev) throws Exception { + try { + String asiento = (btn_5_10.getTooltiptext().length() < 2) ? btn_5_10.getTooltiptext() : btn_5_10.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_10.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_10.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_11(Event ev) throws Exception { + try { + String asiento = (btn_5_11.getTooltiptext().length() < 2) ? btn_5_11.getTooltiptext() : btn_5_11.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_11.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_11.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_12(Event ev) throws Exception { + try { + String asiento = (btn_5_12.getTooltiptext().length() < 2) ? btn_5_12.getTooltiptext() : btn_5_12.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_12.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_12.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_5_13(Event ev) throws Exception { + try { + String asiento = (btn_5_13.getTooltiptext().length() < 2) ? btn_5_13.getTooltiptext() : btn_5_13.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_5_13.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_5_13.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_1(Event ev) throws Exception { + try { + String asiento = (btn_7_1.getTooltiptext().length() < 2) ? btn_7_1.getTooltiptext() : btn_7_1.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_1.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_1.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_2(Event ev) throws Exception { + try { + String asiento = (btn_7_2.getTooltiptext().length() < 2) ? btn_7_2.getTooltiptext() : btn_7_2.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_2.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_2.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_3(Event ev) throws Exception { + try { + String asiento = (btn_7_3.getTooltiptext().length() < 2) ? btn_7_3.getTooltiptext() : btn_7_3.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_3.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_3.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_4(Event ev) throws Exception { + try { + String asiento = (btn_7_4.getTooltiptext().length() < 2) ? btn_7_4.getTooltiptext() : btn_7_4.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_4.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_4.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_5(Event ev) throws Exception { + try { + String asiento = (btn_7_5.getTooltiptext().length() < 2) ? btn_7_5.getTooltiptext() : btn_7_5.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_5.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_5.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_6(Event ev) throws Exception { + try { + String asiento = (btn_7_6.getTooltiptext().length() < 2) ? btn_7_6.getTooltiptext() : btn_7_6.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_6.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_6.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_7(Event ev) throws Exception { + try { + String asiento = (btn_7_7.getTooltiptext().length() < 2) ? btn_7_7.getTooltiptext() : btn_7_7.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_7.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_7.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_8(Event ev) throws Exception { + try { + String asiento = (btn_7_8.getTooltiptext().length() < 2) ? btn_7_8.getTooltiptext() : btn_7_8.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_8.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_8.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_9(Event ev) throws Exception { + try { + String asiento = (btn_7_9.getTooltiptext().length() < 2) ? btn_7_9.getTooltiptext() : btn_7_9.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_9.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_9.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_10(Event ev) throws Exception { + try { + String asiento = (btn_7_10.getTooltiptext().length() < 2) ? btn_7_10.getTooltiptext() : btn_7_10.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_10.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_10.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_11(Event ev) throws Exception { + try { + String asiento = (btn_7_11.getTooltiptext().length() < 2) ? btn_7_11.getTooltiptext() : btn_7_11.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_11.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_11.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_12(Event ev) { + + try { + String asiento = (btn_7_12.getTooltiptext().length() < 2) ? btn_7_12.getTooltiptext() : btn_7_12.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_12.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_12.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onClick$btn_7_13(Event ev) { + try { + String asiento = (btn_7_13.getTooltiptext().length() < 2) ? btn_7_13.getTooltiptext() : btn_7_13.getTooltiptext(); + + if (!txtAsiento.getValue().contains(asiento)) { + txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(","))); + btn_7_13.setSclass("myRed"); + } else { + txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), "")); + btn_7_13.setSclass("myGreen"); + } + } catch (Exception e) { + log.info("Asiento Inexistente"); + } + } + + public void onChanging$cmbOrigen(InputEvent ev) { + String strParada = ev.getValue().toUpperCase(); + + List lsParadas = new ArrayList(); + if (!strParada.isEmpty()) { + lsParadas = paradaService.buscaLike(strParada); + + BindingListModel listModelParada = new BindingListModelList(lsParadas, true); + cmbOrigen.setModel(listModelParada); + + cmbOrigen.open(); + } else { + lsParadas.clear(); + + BindingListModel listModelParada = new BindingListModelList(lsParadas, true); + cmbOrigen.setModel(listModelParada); + } + } + + public EsquemaCorrida getEsquemaCorrida() { + return esquemaCorrida; + } + + public void setEsquemaCorrida(EsquemaCorrida esquemaCorrida) { + this.esquemaCorrida = esquemaCorrida; + } + + public EsquemaCorridaService getEsquemaCorridaService() { + return esquemaCorridaService; + } + + public void setEsquemaCorridaService(EsquemaCorridaService esquemaCorridaService) { + this.esquemaCorridaService = esquemaCorridaService; + } + + public static Logger getLog() { + return log; + } + + public static void setLog(Logger log) { + EditarCorridaAsientoController.log = log; + } + + public List getLsOrigen() { + return lsOrigen; + } + + public void setLsOrigen(List lsOrigen) { + this.lsOrigen = lsOrigen; + } + + public List getLsDestino() { + return lsDestino; + } + + public void setLsDestino(List lsDestino) { + this.lsDestino = lsDestino; + } + + public ParadaService getParadaService() { + return paradaService; + } + + public void setParadaService(ParadaService paradaService) { + this.paradaService = paradaService; + } + + public Button getBtn_1_1() { + return btn_1_1; + } + + public void setBtn_1_1(Button btn_1_1) { + this.btn_1_1 = btn_1_1; + } + + public Button getBtn_1_10() { + return btn_1_10; + } + + public void setBtn_1_10(Button btn_1_10) { + this.btn_1_10 = btn_1_10; + } + + public Button getBtn_1_11() { + return btn_1_11; + } + + public void setBtn_1_11(Button btn_1_11) { + this.btn_1_11 = btn_1_11; + } + + public Button getBtn_1_12() { + return btn_1_12; + } - public Button getBtn_1_8() { - return btn_1_8; - } + public void setBtn_1_12(Button btn_1_12) { + this.btn_1_12 = btn_1_12; + } - public void setBtn_1_8(Button btn_1_8) { - this.btn_1_8 = btn_1_8; - } + public Button getBtn_1_13() { + return btn_1_13; + } - public Button getBtn_1_9() { - return btn_1_9; - } + public void setBtn_1_13(Button btn_1_13) { + this.btn_1_13 = btn_1_13; + } - public void setBtn_1_9(Button btn_1_9) { - this.btn_1_9 = btn_1_9; - } + public Button getBtn_1_2() { + return btn_1_2; + } - public Button getBtn_3_1() { - return btn_3_1; - } + public void setBtn_1_2(Button btn_1_2) { + this.btn_1_2 = btn_1_2; + } - public void setBtn_3_1(Button btn_3_1) { - this.btn_3_1 = btn_3_1; - } + public Button getBtn_1_3() { + return btn_1_3; + } - public Button getBtn_3_10() { - return btn_3_10; - } + public void setBtn_1_3(Button btn_1_3) { + this.btn_1_3 = btn_1_3; + } - public void setBtn_3_10(Button btn_3_10) { - this.btn_3_10 = btn_3_10; - } + public Button getBtn_1_4() { + return btn_1_4; + } - public Button getBtn_3_11() { - return btn_3_11; - } + public void setBtn_1_4(Button btn_1_4) { + this.btn_1_4 = btn_1_4; + } - public void setBtn_3_11(Button btn_3_11) { - this.btn_3_11 = btn_3_11; - } + public Button getBtn_1_5() { + return btn_1_5; + } - public Button getBtn_3_12() { - return btn_3_12; - } + public void setBtn_1_5(Button btn_1_5) { + this.btn_1_5 = btn_1_5; + } - public void setBtn_3_12(Button btn_3_12) { - this.btn_3_12 = btn_3_12; - } + public Button getBtn_1_6() { + return btn_1_6; + } - public Button getBtn_3_13() { - return btn_3_13; - } + public void setBtn_1_6(Button btn_1_6) { + this.btn_1_6 = btn_1_6; + } - public void setBtn_3_13(Button btn_3_13) { - this.btn_3_13 = btn_3_13; - } + public Button getBtn_1_7() { + return btn_1_7; + } - public Button getBtn_3_2() { - return btn_3_2; - } + public void setBtn_1_7(Button btn_1_7) { + this.btn_1_7 = btn_1_7; + } - public void setBtn_3_2(Button btn_3_2) { - this.btn_3_2 = btn_3_2; - } + public Button getBtn_1_8() { + return btn_1_8; + } - public Button getBtn_3_3() { - return btn_3_3; - } + public void setBtn_1_8(Button btn_1_8) { + this.btn_1_8 = btn_1_8; + } - public void setBtn_3_3(Button btn_3_3) { - this.btn_3_3 = btn_3_3; - } + public Button getBtn_1_9() { + return btn_1_9; + } - public Button getBtn_3_4() { - return btn_3_4; - } + public void setBtn_1_9(Button btn_1_9) { + this.btn_1_9 = btn_1_9; + } - public void setBtn_3_4(Button btn_3_4) { - this.btn_3_4 = btn_3_4; - } + public Button getBtn_3_1() { + return btn_3_1; + } - public Button getBtn_3_5() { - return btn_3_5; - } + public void setBtn_3_1(Button btn_3_1) { + this.btn_3_1 = btn_3_1; + } - public void setBtn_3_5(Button btn_3_5) { - this.btn_3_5 = btn_3_5; - } + public Button getBtn_3_10() { + return btn_3_10; + } - public Button getBtn_3_6() { - return btn_3_6; - } + public void setBtn_3_10(Button btn_3_10) { + this.btn_3_10 = btn_3_10; + } - public void setBtn_3_6(Button btn_3_6) { - this.btn_3_6 = btn_3_6; - } + public Button getBtn_3_11() { + return btn_3_11; + } - public Button getBtn_3_7() { - return btn_3_7; - } + public void setBtn_3_11(Button btn_3_11) { + this.btn_3_11 = btn_3_11; + } - public void setBtn_3_7(Button btn_3_7) { - this.btn_3_7 = btn_3_7; - } + public Button getBtn_3_12() { + return btn_3_12; + } - public Button getBtn_3_8() { - return btn_3_8; - } + public void setBtn_3_12(Button btn_3_12) { + this.btn_3_12 = btn_3_12; + } - public void setBtn_3_8(Button btn_3_8) { - this.btn_3_8 = btn_3_8; - } + public Button getBtn_3_13() { + return btn_3_13; + } - public Button getBtn_3_9() { - return btn_3_9; - } + public void setBtn_3_13(Button btn_3_13) { + this.btn_3_13 = btn_3_13; + } - public void setBtn_3_9(Button btn_3_9) { - this.btn_3_9 = btn_3_9; - } + public Button getBtn_3_2() { + return btn_3_2; + } - public Button getBtn_5_1() { - return btn_5_1; - } + public void setBtn_3_2(Button btn_3_2) { + this.btn_3_2 = btn_3_2; + } - public void setBtn_5_1(Button btn_5_1) { - this.btn_5_1 = btn_5_1; - } + public Button getBtn_3_3() { + return btn_3_3; + } - public Button getBtn_5_10() { - return btn_5_10; - } + public void setBtn_3_3(Button btn_3_3) { + this.btn_3_3 = btn_3_3; + } - public void setBtn_5_10(Button btn_5_10) { - this.btn_5_10 = btn_5_10; - } + public Button getBtn_3_4() { + return btn_3_4; + } - public Button getBtn_5_11() { - return btn_5_11; - } + public void setBtn_3_4(Button btn_3_4) { + this.btn_3_4 = btn_3_4; + } - public void setBtn_5_11(Button btn_5_11) { - this.btn_5_11 = btn_5_11; - } + public Button getBtn_3_5() { + return btn_3_5; + } - public Button getBtn_5_12() { - return btn_5_12; - } + public void setBtn_3_5(Button btn_3_5) { + this.btn_3_5 = btn_3_5; + } - public void setBtn_5_12(Button btn_5_12) { - this.btn_5_12 = btn_5_12; - } + public Button getBtn_3_6() { + return btn_3_6; + } - public Button getBtn_5_13() { - return btn_5_13; - } + public void setBtn_3_6(Button btn_3_6) { + this.btn_3_6 = btn_3_6; + } - public void setBtn_5_13(Button btn_5_13) { - this.btn_5_13 = btn_5_13; - } + public Button getBtn_3_7() { + return btn_3_7; + } - public Button getBtn_5_2() { - return btn_5_2; - } + public void setBtn_3_7(Button btn_3_7) { + this.btn_3_7 = btn_3_7; + } - public void setBtn_5_2(Button btn_5_2) { - this.btn_5_2 = btn_5_2; - } + public Button getBtn_3_8() { + return btn_3_8; + } - public Button getBtn_5_3() { - return btn_5_3; - } + public void setBtn_3_8(Button btn_3_8) { + this.btn_3_8 = btn_3_8; + } - public void setBtn_5_3(Button btn_5_3) { - this.btn_5_3 = btn_5_3; - } + public Button getBtn_3_9() { + return btn_3_9; + } - public Button getBtn_5_4() { - return btn_5_4; - } + public void setBtn_3_9(Button btn_3_9) { + this.btn_3_9 = btn_3_9; + } - public void setBtn_5_4(Button btn_5_4) { - this.btn_5_4 = btn_5_4; - } + public Button getBtn_5_1() { + return btn_5_1; + } - public Button getBtn_5_5() { - return btn_5_5; - } + public void setBtn_5_1(Button btn_5_1) { + this.btn_5_1 = btn_5_1; + } - public void setBtn_5_5(Button btn_5_5) { - this.btn_5_5 = btn_5_5; - } + public Button getBtn_5_10() { + return btn_5_10; + } - public Button getBtn_5_6() { - return btn_5_6; - } + public void setBtn_5_10(Button btn_5_10) { + this.btn_5_10 = btn_5_10; + } - public void setBtn_5_6(Button btn_5_6) { - this.btn_5_6 = btn_5_6; - } + public Button getBtn_5_11() { + return btn_5_11; + } - public Button getBtn_5_7() { - return btn_5_7; - } + public void setBtn_5_11(Button btn_5_11) { + this.btn_5_11 = btn_5_11; + } - public void setBtn_5_7(Button btn_5_7) { - this.btn_5_7 = btn_5_7; - } + public Button getBtn_5_12() { + return btn_5_12; + } - public Button getBtn_5_8() { - return btn_5_8; - } + public void setBtn_5_12(Button btn_5_12) { + this.btn_5_12 = btn_5_12; + } - public void setBtn_5_8(Button btn_5_8) { - this.btn_5_8 = btn_5_8; - } + public Button getBtn_5_13() { + return btn_5_13; + } - public Button getBtn_5_9() { - return btn_5_9; - } + public void setBtn_5_13(Button btn_5_13) { + this.btn_5_13 = btn_5_13; + } - public void setBtn_5_9(Button btn_5_9) { - this.btn_5_9 = btn_5_9; - } + public Button getBtn_5_2() { + return btn_5_2; + } - public Button getBtn_7_1() { - return btn_7_1; - } + public void setBtn_5_2(Button btn_5_2) { + this.btn_5_2 = btn_5_2; + } - public void setBtn_7_1(Button btn_7_1) { - this.btn_7_1 = btn_7_1; - } + public Button getBtn_5_3() { + return btn_5_3; + } - public Button getBtn_7_10() { - return btn_7_10; - } + public void setBtn_5_3(Button btn_5_3) { + this.btn_5_3 = btn_5_3; + } - public void setBtn_7_10(Button btn_7_10) { - this.btn_7_10 = btn_7_10; - } + public Button getBtn_5_4() { + return btn_5_4; + } - public Button getBtn_7_11() { - return btn_7_11; - } + public void setBtn_5_4(Button btn_5_4) { + this.btn_5_4 = btn_5_4; + } - public void setBtn_7_11(Button btn_7_11) { - this.btn_7_11 = btn_7_11; - } + public Button getBtn_5_5() { + return btn_5_5; + } - public Button getBtn_7_12() { - return btn_7_12; - } + public void setBtn_5_5(Button btn_5_5) { + this.btn_5_5 = btn_5_5; + } - public void setBtn_7_12(Button btn_7_12) { - this.btn_7_12 = btn_7_12; - } + public Button getBtn_5_6() { + return btn_5_6; + } - public Button getBtn_7_13() { - return btn_7_13; - } + public void setBtn_5_6(Button btn_5_6) { + this.btn_5_6 = btn_5_6; + } - public void setBtn_7_13(Button btn_7_13) { - this.btn_7_13 = btn_7_13; - } + public Button getBtn_5_7() { + return btn_5_7; + } - public Button getBtn_7_2() { - return btn_7_2; - } + public void setBtn_5_7(Button btn_5_7) { + this.btn_5_7 = btn_5_7; + } - public void setBtn_7_2(Button btn_7_2) { - this.btn_7_2 = btn_7_2; - } + public Button getBtn_5_8() { + return btn_5_8; + } - public Button getBtn_7_3() { - return btn_7_3; - } + public void setBtn_5_8(Button btn_5_8) { + this.btn_5_8 = btn_5_8; + } - public void setBtn_7_3(Button btn_7_3) { - this.btn_7_3 = btn_7_3; - } + public Button getBtn_5_9() { + return btn_5_9; + } - public Button getBtn_7_4() { - return btn_7_4; - } + public void setBtn_5_9(Button btn_5_9) { + this.btn_5_9 = btn_5_9; + } - public void setBtn_7_4(Button btn_7_4) { - this.btn_7_4 = btn_7_4; - } + public Button getBtn_7_1() { + return btn_7_1; + } - public Button getBtn_7_5() { - return btn_7_5; - } + public void setBtn_7_1(Button btn_7_1) { + this.btn_7_1 = btn_7_1; + } - public void setBtn_7_5(Button btn_7_5) { - this.btn_7_5 = btn_7_5; - } + public Button getBtn_7_10() { + return btn_7_10; + } - public Button getBtn_7_6() { - return btn_7_6; - } + public void setBtn_7_10(Button btn_7_10) { + this.btn_7_10 = btn_7_10; + } - public void setBtn_7_6(Button btn_7_6) { - this.btn_7_6 = btn_7_6; - } + public Button getBtn_7_11() { + return btn_7_11; + } - public Button getBtn_7_7() { - return btn_7_7; - } + public void setBtn_7_11(Button btn_7_11) { + this.btn_7_11 = btn_7_11; + } - public void setBtn_7_7(Button btn_7_7) { - this.btn_7_7 = btn_7_7; - } + public Button getBtn_7_12() { + return btn_7_12; + } - public Button getBtn_7_8() { - return btn_7_8; - } + public void setBtn_7_12(Button btn_7_12) { + this.btn_7_12 = btn_7_12; + } - public void setBtn_7_8(Button btn_7_8) { - this.btn_7_8 = btn_7_8; - } + public Button getBtn_7_13() { + return btn_7_13; + } - public Button getBtn_7_9() { - return btn_7_9; - } + public void setBtn_7_13(Button btn_7_13) { + this.btn_7_13 = btn_7_13; + } - public void setBtn_7_9(Button btn_7_9) { - this.btn_7_9 = btn_7_9; - } + public Button getBtn_7_2() { + return btn_7_2; + } - public DiagramaAutobus getDiagramaAutobus() { - return diagramaAutobus; - } + public void setBtn_7_2(Button btn_7_2) { + this.btn_7_2 = btn_7_2; + } - public void setDiagramaAutobus(DiagramaAutobus diagramaAutobus) { - this.diagramaAutobus = diagramaAutobus; - } + public Button getBtn_7_3() { + return btn_7_3; + } - public DiagramaAutobusService getDiagramaAutoBusService() { - return diagramaAutoBusService; - } + public void setBtn_7_3(Button btn_7_3) { + this.btn_7_3 = btn_7_3; + } - public void setDiagramaAutoBusService(DiagramaAutobusService diagramaAutoBusService) { - this.diagramaAutoBusService = diagramaAutoBusService; - } + public Button getBtn_7_4() { + return btn_7_4; + } - public Textbox getTxtAsineto() { - return txtAsiento; - } + public void setBtn_7_4(Button btn_7_4) { + this.btn_7_4 = btn_7_4; + } - public void setTxtAsineto(Textbox txtAsineto) { - this.txtAsiento = txtAsineto; - } + public Button getBtn_7_5() { + return btn_7_5; + } - public Button getBtnCeder() { - return btnCeder; - } + public void setBtn_7_5(Button btn_7_5) { + this.btn_7_5 = btn_7_5; + } - public void setBtnCeder(Button btnCeder) { - this.btnCeder = btnCeder; - } + public Button getBtn_7_6() { + return btn_7_6; + } - public Button getBtnLiberar() { - return btnLiberar; - } + public void setBtn_7_6(Button btn_7_6) { + this.btn_7_6 = btn_7_6; + } - public void setBtnLiberar(Button btnLiberar) { - this.btnLiberar = btnLiberar; - } + public Button getBtn_7_7() { + return btn_7_7; + } - public Combobox getCmbOrigen() { - return cmbOrigen; - } + public void setBtn_7_7(Button btn_7_7) { + this.btn_7_7 = btn_7_7; + } - public void setCmbOrigen(Combobox cmbOrigen) { - this.cmbOrigen = cmbOrigen; - } + public Button getBtn_7_8() { + return btn_7_8; + } + + public void setBtn_7_8(Button btn_7_8) { + this.btn_7_8 = btn_7_8; + } + + public Button getBtn_7_9() { + return btn_7_9; + } + + public void setBtn_7_9(Button btn_7_9) { + this.btn_7_9 = btn_7_9; + } + + public DiagramaAutobus getDiagramaAutobus() { + return diagramaAutobus; + } + + public void setDiagramaAutobus(DiagramaAutobus diagramaAutobus) { + this.diagramaAutobus = diagramaAutobus; + } + + public DiagramaAutobusService getDiagramaAutoBusService() { + return diagramaAutoBusService; + } + + public void setDiagramaAutoBusService(DiagramaAutobusService diagramaAutoBusService) { + this.diagramaAutoBusService = diagramaAutoBusService; + } + + public Textbox getTxtAsineto() { + return txtAsiento; + } + + public void setTxtAsineto(Textbox txtAsineto) { + this.txtAsiento = txtAsineto; + } + + public Button getBtnCeder() { + return btnCeder; + } + + public void setBtnCeder(Button btnCeder) { + this.btnCeder = btnCeder; + } + + public Button getBtnLiberar() { + return btnLiberar; + } + + public void setBtnLiberar(Button btnLiberar) { + this.btnLiberar = btnLiberar; + } + + public Combobox getCmbOrigen() { + return cmbOrigen; + } + + public void setCmbOrigen(Combobox cmbOrigen) { + this.cmbOrigen = cmbOrigen; + } public Textbox getTxtMotivo() { return txtMotivo; @@ -2066,7 +2012,5 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer { public void setCmbDestino(MyComboboxEstandar cmbDestino) { this.cmbDestino = cmbDestino; } - - - + } diff --git a/web/WEB-INF/i3-label_pt_BR.label b/web/WEB-INF/i3-label_pt_BR.label index 7d77f23f3..53a6626e3 100644 --- a/web/WEB-INF/i3-label_pt_BR.label +++ b/web/WEB-INF/i3-label_pt_BR.label @@ -7,7 +7,7 @@ # . . = XXX #Versao do VentaBoleto: -versao = ADM_20130401_1RC136 +versao = ADM_20130401_1RC137 # MSG Defaut: MSG.CONSTRAINT.PORCENTAGEM = Os valores devem estar entre 0 e 100 @@ -1342,6 +1342,9 @@ editarConfiguracionCorridaAsientoController.MSG.motivo = Necessário informar o editarConfiguracionCorridaAsientoController.MSG.tramo = Não é permitido bloqueo neste trecho editarConfiguracionCorridaAsientoController.MSG.origenObligatoria = Informe a Origem editarConfiguracionCorridaAsientoController.MSG.destinoObligatoria = Informe a Destino +editarConfiguracionCorridaAsientoController.MSG.poltronaJahConfigurada=A poltrona {0} já está configurada. +editarConfiguracionCorridaAsientoController.MSG.poltronaNoVendible=A poltrona {0} não está disponível para venda. +editarConfiguracionCorridaAsientoController.MSG.validacionGrabacion=Houve um erro ao salvar o planejamento de cotas # Buesqueda de Tarifas Mínimas busquedaTarifasMinimasController.window.title = Tarifas Mínimas