bug#21458
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@105834 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
138ef2bfbf
commit
848ebd4f4c
|
@ -43,7 +43,6 @@ import com.rjconsultores.ventaboletos.service.EsquemaAsientoService;
|
||||||
import com.rjconsultores.ventaboletos.service.EsquemaCorridaService;
|
import com.rjconsultores.ventaboletos.service.EsquemaCorridaService;
|
||||||
import com.rjconsultores.ventaboletos.service.ParadaService;
|
import com.rjconsultores.ventaboletos.service.ParadaService;
|
||||||
import com.rjconsultores.ventaboletos.service.RutaSecuenciaService;
|
import com.rjconsultores.ventaboletos.service.RutaSecuenciaService;
|
||||||
import com.rjconsultores.ventaboletos.service.RutaService;
|
|
||||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||||
import com.rjconsultores.ventaboletos.vo.layout.DiagramaPoltronas;
|
import com.rjconsultores.ventaboletos.vo.layout.DiagramaPoltronas;
|
||||||
|
@ -68,8 +67,7 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
||||||
private ParadaService paradaService;
|
private ParadaService paradaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private DiagramaAutobusService diagramaAutoBusService;
|
private DiagramaAutobusService diagramaAutoBusService;
|
||||||
@Autowired
|
|
||||||
private RutaService rutaService;
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private RutaSecuenciaService rutaSecuenciaService;
|
private RutaSecuenciaService rutaSecuenciaService;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
@ -287,7 +285,7 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (poltronaExclusiva.isChecked()) {
|
if (poltronaExclusiva.isChecked()) {
|
||||||
cmbDestino.setDisabled(true);
|
// cmbDestino.setDisabled(true);
|
||||||
txtMotivo.setDisabled(true);
|
txtMotivo.setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,12 +350,12 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$poltronaExclusiva() {
|
public void onClick$poltronaExclusiva() {
|
||||||
cmbDestino.setDisabled(true);
|
// cmbDestino.setDisabled(true);
|
||||||
txtMotivo.setDisabled(true);
|
txtMotivo.setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onClick$poltronaOcupada() {
|
public void onClick$poltronaOcupada() {
|
||||||
cmbDestino.setDisabled(false);
|
// cmbDestino.setDisabled(false);
|
||||||
txtMotivo.setDisabled(false);
|
txtMotivo.setDisabled(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -369,7 +367,7 @@ public class EditarCorridaAsientoController extends MyGenericForwardComposer {
|
||||||
if (poltronaOcupada.isSelected()) {
|
if (poltronaOcupada.isSelected()) {
|
||||||
esquemaAsientoService.bloqueoAsientoOcupacion(esquemaCorrida, txtAsiento.getText(), origen, destino, Integer.parseInt(txtTiempoLiberacion.getText()), txtMotivo.getText());
|
esquemaAsientoService.bloqueoAsientoOcupacion(esquemaCorrida, txtAsiento.getText(), origen, destino, Integer.parseInt(txtTiempoLiberacion.getText()), txtMotivo.getText());
|
||||||
} else {
|
} else {
|
||||||
esquemaAsientoService.bloqueoAsientoExclusivo(esquemaCorrida, txtAsiento.getText(), origen, Integer.parseInt(txtTiempoLiberacion.getText()));
|
esquemaAsientoService.bloqueoAsientoExclusivo(esquemaCorrida, txtAsiento.getText(), origen, destino, Integer.parseInt(txtTiempoLiberacion.getText()));
|
||||||
txtMotivo.setText("");
|
txtMotivo.setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue