bug#21458
dev: qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@105834 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6c7dc22223
commit
df255b166b
|
@ -32,8 +32,8 @@ public interface EsquemaAsientoService {
|
|||
* - Indica los asientos. Ej.: 1,2,3,4 o 1-4,
|
||||
* @param origenId
|
||||
* @return
|
||||
*/
|
||||
public void bloqueoAsientoExclusivo(EsquemaCorrida esquemaCorrida, String asiento, Parada origen, Integer tiempoLiberacion) throws BusinessException;
|
||||
*/
|
||||
public void bloqueoAsientoExclusivo(EsquemaCorrida esquemaCorrida, String asiento, Parada origen, Parada destino, Integer tiempoLiberacion) throws BusinessException;
|
||||
|
||||
/**
|
||||
* Hace la configuración de ocupación de bloqueo de asientos de acuerdo con el tramo informado (origen - destino). <br/>
|
||||
|
|
|
@ -22,7 +22,6 @@ import com.rjconsultores.ventaboletos.entidad.DiagramaAutobus;
|
|||
import com.rjconsultores.ventaboletos.entidad.EsquemaAsiento;
|
||||
import com.rjconsultores.ventaboletos.entidad.EsquemaCorrida;
|
||||
import com.rjconsultores.ventaboletos.entidad.Parada;
|
||||
import com.rjconsultores.ventaboletos.entidad.Ruta;
|
||||
import com.rjconsultores.ventaboletos.exception.BusinessException;
|
||||
import com.rjconsultores.ventaboletos.service.DiagramaAutobusService;
|
||||
import com.rjconsultores.ventaboletos.service.EsquemaAsientoService;
|
||||
|
@ -76,16 +75,16 @@ public class EsquemaAsientoServiceImpl implements EsquemaAsientoService {
|
|||
public EsquemaAsiento obtenerPorCorridaeAsiento(EsquemaCorrida esquemaCorrida, String asiento) {
|
||||
return esquemaAsientoDAO.obtenerPorCorridaeAsiento(esquemaCorrida, asiento);
|
||||
}
|
||||
|
||||
|
||||
@Transactional(rollbackFor = BusinessException.class)
|
||||
@Override
|
||||
public void bloqueoAsientoExclusivo(EsquemaCorrida esquemaCorrida, String strAsiento, Parada origen, Integer tiempoLiberacion) throws BusinessException {
|
||||
public void bloqueoAsientoExclusivo(EsquemaCorrida esquemaCorrida, String strAsiento, Parada origen, Parada destino, Integer tiempoLiberacion) throws BusinessException {
|
||||
|
||||
if (origen == null) {
|
||||
throw new BusinessException("editarConfiguracionCorridaAsientoController.MSG.origenObligatoria");
|
||||
}
|
||||
|
||||
hacerBloqueo(BLOQUEO_EXCLUSIVO, esquemaCorrida, strAsiento, origen, null, null, tiempoLiberacion);
|
||||
hacerBloqueo(BLOQUEO_EXCLUSIVO, esquemaCorrida, strAsiento, origen, destino, null, tiempoLiberacion);
|
||||
}
|
||||
|
||||
private boolean hacerBloqueo(String tipoBloqueo, EsquemaCorrida esquemaCorrida, String strAsiento, Parada origen, Parada destino, String motivoOcupacion, Integer tiempoLiberacion) throws BusinessException {
|
||||
|
|
Loading…
Reference in New Issue