fixes bug#16839
qua:wallyson dev:lucas git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@98772 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
900537d431
commit
5a653ae3da
|
@ -138,6 +138,33 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
private Button btn_3_25;
|
||||
private Button btn_3_26;
|
||||
private Button btn_3_27;
|
||||
private Button btn_4_1;
|
||||
private Button btn_4_2;
|
||||
private Button btn_4_3;
|
||||
private Button btn_4_4;
|
||||
private Button btn_4_5;
|
||||
private Button btn_4_6;
|
||||
private Button btn_4_7;
|
||||
private Button btn_4_8;
|
||||
private Button btn_4_9;
|
||||
private Button btn_4_10;
|
||||
private Button btn_4_11;
|
||||
private Button btn_4_12;
|
||||
private Button btn_4_13;
|
||||
private Button btn_4_14;
|
||||
private Button btn_4_15;
|
||||
private Button btn_4_16;
|
||||
private Button btn_4_17;
|
||||
private Button btn_4_18;
|
||||
private Button btn_4_19;
|
||||
private Button btn_4_20;
|
||||
private Button btn_4_21;
|
||||
private Button btn_4_22;
|
||||
private Button btn_4_23;
|
||||
private Button btn_4_24;
|
||||
private Button btn_4_25;
|
||||
private Button btn_4_26;
|
||||
private Button btn_4_27;
|
||||
private Button btn_5_1;
|
||||
private Button btn_5_2;
|
||||
private Button btn_5_3;
|
||||
|
@ -243,10 +270,13 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
|
||||
for (Short fila = 1; fila <= 7; fila++) {
|
||||
for (Short coluna = 1; coluna <= 13; coluna++) {
|
||||
if (fila == 1 || fila == 3 || fila == 5 || fila == 7) {
|
||||
if (fila == 1 || fila == 3 || fila == 4 || fila == 5 || fila == 7) {
|
||||
Button button = getButtonAssento(fila, coluna);
|
||||
if ((button.getLabel() == null) || (button.getLabel().equals(""))) {
|
||||
button.setDisabled(true);
|
||||
if(fila == 4) {
|
||||
button.setSclass("myGray");
|
||||
}
|
||||
}
|
||||
}
|
||||
Button button = getButtonAssento(fila, coluna);
|
||||
|
@ -288,13 +318,12 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
lsAsientos = esquemaAsientoService.obtenerPorCorrida(esquemaCorrida);
|
||||
|
||||
for (DetDiagramaAutobus dd : diagramaAutobus.getDetDiagramaAutobusList()) {
|
||||
if ((dd.getNumefila() == 1) || (dd.getNumefila() == 3) || (dd.getNumefila() == 5) || (dd.getNumefila() == 7)) {
|
||||
if ((dd.getNumefila() == 1) || (dd.getNumefila() == 3) || (dd.getNumefila() == 5) || (dd.getNumefila() == 7) || (dd.getNumefila() == 4)) {
|
||||
Button button = getButtonAssento(dd.getNumefila(), dd.getNumecolumna());
|
||||
|
||||
if(button == null){
|
||||
button = btnDefault;
|
||||
}
|
||||
|
||||
button.setLabel(dd.getAsiento());
|
||||
button.setTooltiptext(dd.getAsiento());
|
||||
|
||||
|
@ -526,7 +555,6 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 3:
|
||||
switch (numeColuna) {
|
||||
case 1:
|
||||
|
@ -614,6 +642,92 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
}
|
||||
break;
|
||||
|
||||
case 4:
|
||||
switch (numeColuna) {
|
||||
case 1:
|
||||
button = btn_4_1;
|
||||
break;
|
||||
case 2:
|
||||
button = btn_4_2;
|
||||
break;
|
||||
case 3:
|
||||
button = btn_4_3;
|
||||
break;
|
||||
case 4:
|
||||
button = btn_4_4;
|
||||
break;
|
||||
case 5:
|
||||
button = btn_4_5;
|
||||
break;
|
||||
case 6:
|
||||
button = btn_4_6;
|
||||
break;
|
||||
case 7:
|
||||
button = btn_4_7;
|
||||
break;
|
||||
case 8:
|
||||
button = btn_4_8;
|
||||
break;
|
||||
case 9:
|
||||
button = btn_4_9;
|
||||
break;
|
||||
case 10:
|
||||
button = btn_4_10;
|
||||
break;
|
||||
case 11:
|
||||
button = btn_4_11;
|
||||
break;
|
||||
case 12:
|
||||
button = btn_4_12;
|
||||
break;
|
||||
case 13:
|
||||
button = btn_4_13;
|
||||
break;
|
||||
case 14:
|
||||
button = btn_4_14;
|
||||
break;
|
||||
case 15:
|
||||
button = btn_4_15;
|
||||
break;
|
||||
case 16:
|
||||
button = btn_4_16;
|
||||
break;
|
||||
case 17:
|
||||
button = btn_4_17;
|
||||
break;
|
||||
case 18:
|
||||
button = btn_4_18;
|
||||
break;
|
||||
case 19:
|
||||
button = btn_4_19;
|
||||
break;
|
||||
case 20:
|
||||
button = btn_4_20;
|
||||
break;
|
||||
case 21:
|
||||
button = btn_4_21;
|
||||
break;
|
||||
case 22:
|
||||
button = btn_4_22;
|
||||
break;
|
||||
case 23:
|
||||
button = btn_4_23;
|
||||
break;
|
||||
case 24:
|
||||
button = btn_4_24;
|
||||
break;
|
||||
case 25:
|
||||
button = btn_4_25;
|
||||
break;
|
||||
case 26:
|
||||
button = btn_4_26;
|
||||
break;
|
||||
case 27:
|
||||
button = btn_4_27;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 5:
|
||||
switch (numeColuna) {
|
||||
case 1:
|
||||
|
@ -998,6 +1112,212 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_1(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_1.getTooltiptext().length() < 2) ? btn_4_1.getTooltiptext() : btn_4_1.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_1.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_1.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void onClick$btn_4_2(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_2.getTooltiptext().length() < 2) ? btn_4_2.getTooltiptext() : btn_4_2.getTooltiptext();
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_2.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_2.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_3(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_3.getTooltiptext().length() < 2) ? btn_4_3.getTooltiptext() : btn_4_3.getTooltiptext();
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_3.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_3.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_4(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_4.getTooltiptext().length() < 2) ? btn_4_4.getTooltiptext() : btn_4_4.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_4.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_4.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_5(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_5.getTooltiptext().length() < 2) ? btn_4_5.getTooltiptext() : btn_4_5.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_5.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_5.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_6(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_6.getTooltiptext().length() < 2) ? btn_4_6.getTooltiptext() : btn_4_6.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_6.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_6.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_7(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_7.getTooltiptext().length() < 2) ? btn_4_7.getTooltiptext() : btn_4_7.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_7.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_7.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_8(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_8.getTooltiptext().length() < 2) ? btn_4_8.getTooltiptext() : btn_4_8.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_8.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_8.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_9(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_9.getTooltiptext().length() < 2) ? btn_4_9.getTooltiptext() : btn_4_9.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_9.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_9.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_10(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_10.getTooltiptext().length() < 2) ? btn_4_10.getTooltiptext() : btn_4_10.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_10.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_10.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_11(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_11.getTooltiptext().length() < 2) ? btn_4_11.getTooltiptext() : btn_4_11.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_11.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_11.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_12(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_12.getTooltiptext().length() < 2) ? btn_4_12.getTooltiptext() : btn_4_12.getTooltiptext();
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_12.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_12.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_13(Event ev) throws Exception {
|
||||
try {
|
||||
String asiento = (btn_4_13.getTooltiptext().length() < 2) ? btn_4_13.getTooltiptext() : btn_4_13.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_13.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_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();
|
||||
|
@ -2265,6 +2585,188 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public void onClick$btn_4_14(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_14.getTooltiptext().length() < 2) ? btn_4_14.getTooltiptext() : btn_4_14.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_14.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_14.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_16(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_16.getTooltiptext().length() < 2) ? btn_4_16.getTooltiptext() : btn_4_16.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_16.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_16.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_17(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_17.getTooltiptext().length() < 2) ? btn_4_17.getTooltiptext() : btn_4_17.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_17.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_17.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_18(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_18.getTooltiptext().length() < 2) ? btn_4_18.getTooltiptext() : btn_4_18.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_18.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_18.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_19(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_19.getTooltiptext().length() < 2) ? btn_4_19.getTooltiptext() : btn_4_19.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_19.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_19.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_20(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_20.getTooltiptext().length() < 2) ? btn_4_20.getTooltiptext() : btn_4_20.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_20.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_20.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_21(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_21.getTooltiptext().length() < 2) ? btn_4_21.getTooltiptext() : btn_4_21.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_21.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_21.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_22(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_22.getTooltiptext().length() < 2) ? btn_4_22.getTooltiptext() : btn_4_22.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_22.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_22.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_23(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_23.getTooltiptext().length() < 2) ? btn_4_23.getTooltiptext() : btn_4_23.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_23.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_23.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
|
||||
public void onClick$btn_4_24(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_24.getTooltiptext().length() < 2) ? btn_4_24.getTooltiptext() : btn_4_24.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_24.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_24.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_26(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_26.getTooltiptext().length() < 2) ? btn_4_26.getTooltiptext() : btn_4_26.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_26.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_26.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_4_27(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_4_27.getTooltiptext().length() < 2) ? btn_4_27.getTooltiptext() : btn_4_27.getTooltiptext();
|
||||
|
||||
if (!txtAsiento.getValue().contains(asiento)) {
|
||||
txtAsiento.setValue(txtAsiento.getValue().concat(asiento.concat(",")));
|
||||
btn_4_27.setSclass("myRed");
|
||||
} else {
|
||||
txtAsiento.setValue(txtAsiento.getValue().replace(asiento.concat(","), ""));
|
||||
btn_4_27.setSclass("myGreen");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
log.info("Asiento Inexistente");
|
||||
}
|
||||
}
|
||||
public void onClick$btn_5_15(Event ev) {
|
||||
try {
|
||||
String asiento = (btn_5_15.getTooltiptext().length() < 2) ? btn_5_15.getTooltiptext() : btn_5_15.getTooltiptext();
|
||||
|
@ -2736,6 +3238,220 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
this.btn_3_9 = btn_3_9;
|
||||
}
|
||||
|
||||
public Button getBtn_4_1() {
|
||||
return btn_4_1;
|
||||
}
|
||||
|
||||
public void setBtn_4_1(Button btn_4_1) {
|
||||
this.btn_4_1 = btn_4_1;
|
||||
}
|
||||
|
||||
public Button getBtn_4_2() {
|
||||
return btn_4_2;
|
||||
}
|
||||
|
||||
public void setBtn_4_2(Button btn_4_2) {
|
||||
this.btn_4_2 = btn_4_2;
|
||||
}
|
||||
|
||||
public Button getBtn_4_3() {
|
||||
return btn_4_3;
|
||||
}
|
||||
|
||||
public void setBtn_4_3(Button btn_4_3) {
|
||||
this.btn_4_3 = btn_4_3;
|
||||
}
|
||||
|
||||
public Button getBtn_4_4() {
|
||||
return btn_4_4;
|
||||
}
|
||||
|
||||
public void setBtn_4_4(Button btn_4_4) {
|
||||
this.btn_4_4 = btn_4_4;
|
||||
}
|
||||
|
||||
public Button getBtn_4_5() {
|
||||
return btn_4_5;
|
||||
}
|
||||
|
||||
public void setBtn_4_5(Button btn_4_5) {
|
||||
this.btn_4_5 = btn_4_5;
|
||||
}
|
||||
|
||||
public Button getBtn_4_6() {
|
||||
return btn_4_6;
|
||||
}
|
||||
|
||||
public void setBtn_4_6(Button btn_4_6) {
|
||||
this.btn_4_6 = btn_4_6;
|
||||
}
|
||||
|
||||
public Button getBtn_4_7() {
|
||||
return btn_4_7;
|
||||
}
|
||||
|
||||
public void setBtn_4_7(Button btn_4_7) {
|
||||
this.btn_4_7 = btn_4_7;
|
||||
}
|
||||
|
||||
public Button getBtn_4_8() {
|
||||
return btn_4_8;
|
||||
}
|
||||
|
||||
public void setBtn_4_8(Button btn_4_8) {
|
||||
this.btn_4_8 = btn_4_8;
|
||||
}
|
||||
|
||||
public Button getBtn_4_9() {
|
||||
return btn_4_9;
|
||||
}
|
||||
|
||||
public void setBtn_4_9(Button btn_4_9) {
|
||||
this.btn_4_9 = btn_4_9;
|
||||
}
|
||||
|
||||
public Button getBtn_4_10() {
|
||||
return btn_4_10;
|
||||
}
|
||||
|
||||
public void setBtn_4_10(Button btn_4_10) {
|
||||
this.btn_4_10 = btn_4_10;
|
||||
}
|
||||
|
||||
public Button getBtn_4_11() {
|
||||
return btn_4_11;
|
||||
}
|
||||
|
||||
public void setBtn_4_11(Button btn_4_11) {
|
||||
this.btn_4_11 = btn_4_11;
|
||||
}
|
||||
|
||||
public Button getBtn_4_12() {
|
||||
return btn_4_12;
|
||||
}
|
||||
|
||||
public void setBtn_4_12(Button btn_4_12) {
|
||||
this.btn_4_12 = btn_4_12;
|
||||
}
|
||||
|
||||
public Button getBtn_4_13() {
|
||||
return btn_4_13;
|
||||
}
|
||||
|
||||
public void setBtn_4_13(Button btn_4_13) {
|
||||
this.btn_4_13 = btn_4_13;
|
||||
}
|
||||
|
||||
public Button getBtn_4_14() {
|
||||
return btn_4_14;
|
||||
}
|
||||
|
||||
public void setBtn_4_14(Button btn_4_14) {
|
||||
this.btn_4_14 = btn_4_14;
|
||||
}
|
||||
|
||||
public Button getBtn_4_15() {
|
||||
return btn_4_15;
|
||||
}
|
||||
|
||||
public void setBtn_4_15(Button btn_4_15) {
|
||||
this.btn_4_15 = btn_4_15;
|
||||
}
|
||||
|
||||
public Button getBtn_4_16() {
|
||||
return btn_4_16;
|
||||
}
|
||||
|
||||
public void setBtn_4_16(Button btn_4_16) {
|
||||
this.btn_4_16 = btn_4_16;
|
||||
}
|
||||
|
||||
public Button getBtn_4_17() {
|
||||
return btn_4_17;
|
||||
}
|
||||
|
||||
public void setBtn_4_17(Button btn_4_17) {
|
||||
this.btn_4_17 = btn_4_17;
|
||||
}
|
||||
|
||||
public Button getBtn_4_18() {
|
||||
return btn_4_18;
|
||||
}
|
||||
|
||||
public void setBtn_4_18(Button btn_4_18) {
|
||||
this.btn_4_18 = btn_4_18;
|
||||
}
|
||||
|
||||
public Button getBtn_4_19() {
|
||||
return btn_4_19;
|
||||
}
|
||||
|
||||
public void setBtn_4_19(Button btn_4_19) {
|
||||
this.btn_4_19 = btn_4_19;
|
||||
}
|
||||
|
||||
public Button getBtn_4_20() {
|
||||
return btn_4_20;
|
||||
}
|
||||
|
||||
public void setBtn_4_20(Button btn_4_20) {
|
||||
this.btn_4_20 = btn_4_20;
|
||||
}
|
||||
|
||||
public Button getBtn_4_21() {
|
||||
return btn_4_21;
|
||||
}
|
||||
|
||||
public void setBtn_4_21(Button btn_4_21) {
|
||||
this.btn_4_21 = btn_4_21;
|
||||
}
|
||||
|
||||
public Button getBtn_4_22() {
|
||||
return btn_4_22;
|
||||
}
|
||||
|
||||
public void setBtn_4_22(Button btn_4_22) {
|
||||
this.btn_4_22 = btn_4_22;
|
||||
}
|
||||
|
||||
public Button getBtn_4_23() {
|
||||
return btn_4_23;
|
||||
}
|
||||
|
||||
public void setBtn_4_23(Button btn_4_23) {
|
||||
this.btn_4_23 = btn_4_23;
|
||||
}
|
||||
|
||||
public Button getBtn_4_24() {
|
||||
return btn_4_24;
|
||||
}
|
||||
|
||||
public void setBtn_4_24(Button btn_4_24) {
|
||||
this.btn_4_24 = btn_4_24;
|
||||
}
|
||||
|
||||
public Button getBtn_4_25() {
|
||||
return btn_4_25;
|
||||
}
|
||||
|
||||
public void setBtn_4_25(Button btn_4_25) {
|
||||
this.btn_4_25 = btn_4_25;
|
||||
}
|
||||
|
||||
public Button getBtn_4_26() {
|
||||
return btn_4_26;
|
||||
}
|
||||
|
||||
public void setBtn_4_26(Button btn_4_26) {
|
||||
this.btn_4_26 = btn_4_26;
|
||||
}
|
||||
public Button getBtn_4_27() {
|
||||
return btn_4_26;
|
||||
}
|
||||
|
||||
public void setBtn_4_27(Button btn_4_27) {
|
||||
this.btn_4_26 = btn_4_27;
|
||||
}
|
||||
public Button getBtn_5_1() {
|
||||
return btn_5_1;
|
||||
}
|
||||
|
@ -3135,6 +3851,7 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
|||
this.btn_1_27 = btn_1_27;
|
||||
}
|
||||
|
||||
|
||||
public Button getBtn_3_14() {
|
||||
return btn_3_14;
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@
|
|||
</h:tr>
|
||||
<h:tr height="50%">
|
||||
<h:td>
|
||||
<!--hbox>
|
||||
<hbox>
|
||||
<button id="btn_4_1" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_4_2" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_4_3" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
|
@ -139,7 +139,7 @@
|
|||
<button id="btn_4_11" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_4_12" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_4_13" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
</hbox-->
|
||||
</hbox>
|
||||
</h:td>
|
||||
</h:tr>
|
||||
<h:tr>
|
||||
|
@ -236,7 +236,7 @@
|
|||
</hbox>
|
||||
</h:td>
|
||||
</h:tr>
|
||||
<!--h:tr>
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<hbox>
|
||||
<button id="btn_2_1" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
|
@ -254,7 +254,7 @@
|
|||
<button id="btn_2_13" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
</hbox>
|
||||
</h:td>
|
||||
</h:tr-->
|
||||
</h:tr>
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<hbox>
|
||||
|
@ -276,6 +276,27 @@
|
|||
</hbox>
|
||||
</h:td>
|
||||
</h:tr>
|
||||
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<hbox>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_14" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_15" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_16" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_17" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_18" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_19" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_20" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_21" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_22" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_23" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_24" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_25" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_26" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_4_27" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
</hbox>
|
||||
</h:td>
|
||||
</h:tr>
|
||||
<h:tr height="50%">
|
||||
<h:td>
|
||||
<!--hbox>
|
||||
|
@ -315,27 +336,6 @@
|
|||
|
||||
</hbox>
|
||||
</h:td>
|
||||
</h:tr>
|
||||
<!--h:tr>
|
||||
<h:td>
|
||||
<hbox>
|
||||
<button id="btn_6_1" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_2" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_3" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_4" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_5" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_6" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_7" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_8" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_9" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_10" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_11" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_12" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
<button id="btn_6_13" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
</hbox>
|
||||
</h:td>
|
||||
</h:tr-->
|
||||
<h:tr>
|
||||
<h:td>
|
||||
<hbox>
|
||||
<button visible="@{winEditarCorridaAsiento$composer.isAsientoMaior54}" id="btn_7_14" width="40px" height="22px" sclass="myGreen" mold="trendy"/>
|
||||
|
|
Loading…
Reference in New Issue