fixes bug #7643
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@57496 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
473b948dfb
commit
8c96b3e861
|
@ -534,12 +534,6 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
corrida.setCantParados(cantparados.shortValue());
|
corrida.setCantParados(cantparados.shortValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
Parada destino = rutaService.getDestino(ruta);
|
|
||||||
if (destino == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
corrida.setDestino(destino);
|
|
||||||
|
|
||||||
corrida.setEsquemaAgrupacionId(esquemaCorrida.getEsquemaAgrupacionId());
|
corrida.setEsquemaAgrupacionId(esquemaCorrida.getEsquemaAgrupacionId());
|
||||||
|
|
||||||
corrida.setEmpresa(esquemaCorrida.getEmpresa());
|
corrida.setEmpresa(esquemaCorrida.getEmpresa());
|
||||||
|
@ -560,12 +554,6 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
corrida.setNodo(corridaCtrl.getNodo());
|
corrida.setNodo(corridaCtrl.getNodo());
|
||||||
corrida.setDivision(esquemaCorrida.getDivision());
|
corrida.setDivision(esquemaCorrida.getDivision());
|
||||||
|
|
||||||
Parada origem = rutaService.getOrigem(ruta);
|
|
||||||
if (origem == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
corrida.setOrigem(origem);
|
|
||||||
|
|
||||||
corrida.setRuta(esquemaCorrida.getRuta());
|
corrida.setRuta(esquemaCorrida.getRuta());
|
||||||
corrida.setRolOperativo(esquemaCorrida.getRolOperativo());
|
corrida.setRolOperativo(esquemaCorrida.getRolOperativo());
|
||||||
corrida.setZona(null);
|
corrida.setZona(null);
|
||||||
|
@ -584,6 +572,24 @@ public class CorridaServiceImpl implements CorridaService {
|
||||||
|
|
||||||
Date husoHorVeranoLlegadaAnterior = null;
|
Date husoHorVeranoLlegadaAnterior = null;
|
||||||
|
|
||||||
|
if (lsEsquemaTramo == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
EsquemaTramo primeiro = lsEsquemaTramo.get(0);
|
||||||
|
Parada origem = primeiro.getTramo().getOrigem();
|
||||||
|
if (origem == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
corrida.setOrigem(origem);
|
||||||
|
|
||||||
|
EsquemaTramo ultimo = lsEsquemaTramo.get(lsEsquemaTramo.size() - 1);
|
||||||
|
Parada destino = ultimo.getTramo().getDestino();
|
||||||
|
if (destino == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
corrida.setDestino(destino);
|
||||||
|
|
||||||
for (EsquemaTramo esquemaTramo : lsEsquemaTramo) {
|
for (EsquemaTramo esquemaTramo : lsEsquemaTramo) {
|
||||||
|
|
||||||
CorridaTramo corridaTramo = new CorridaTramo();
|
CorridaTramo corridaTramo = new CorridaTramo();
|
||||||
|
|
Loading…
Reference in New Issue