From 5192a9aa9d96cfdd027280d713fea1d48e493ba6 Mon Sep 17 00:00:00 2001 From: gleimar Date: Tue, 5 Feb 2013 20:13:00 +0000 Subject: [PATCH] git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@24096 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/TramoRutaServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java index a4b08d825..3e296a422 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java @@ -50,6 +50,11 @@ public class TramoRutaServiceImpl implements TramoRutaService { @Autowired private RutaDAO rutaDAO; + /** + * Hace la validación de los datos del rutaTramoVO + * @param rutaTramoVO + * @throws BusinessException + */ private void validarGenerarTramosRutas(RutaTramoVO rutaTramoVO) throws BusinessException { if (rutaTramoVO.getLsSecuenciaRutaTramoVO().isEmpty()) { throw new BusinessException("tramoRutaServiceImpl.msg.secuenciaObligatorio"); @@ -125,6 +130,8 @@ public class TramoRutaServiceImpl implements TramoRutaService { ruta.setActivo(Boolean.TRUE); ruta.setFecmodif(new java.util.Date()); ruta.setPrefixo(rutaTramoVO.getPrefixo()); + ruta.setNumRuta(rutaTramoVO.getNumRuta()); + ruta = rutaDAO.suscribir(ruta); // Genero la secuencia de la ruta