From 08464c5a9f8f51f4fe038eb329ae11a1dc3b6b8e Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 24 Jan 2017 20:10:47 +0000 Subject: [PATCH] bug #7788 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@65273 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../service/impl/PuntoVentaServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index 3e87a877e..900d88a39 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -89,7 +89,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { return puntoVentaDAO.obtenerID(id); } - @Transactional(noRollbackFor = { IntegracionException.class, ValidacionCampoException.class }) + @Transactional(noRollbackFor = { IntegracionException.class, ValidacionCampoException.class}) public PuntoVenta suscribir(PuntoVenta entidad) throws IntegracionException, ValidacionCampoException { entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); entidad.setFecmodif(Calendar.getInstance().getTime()); @@ -178,6 +178,9 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { wslog.debug("Retorno consulta fornecedor ws: " + strFornecedor); } catch (RemoteException e) { wslog.error(e.toString()); + entidad.setIndIntegradoAG(false); + entidad.setMotivoNaoIntegradoAG(e.toString()); + return; } if (!strFornecedor.contains("ERRO")){ // retornar msg a informação de registro já cadastrado @@ -250,6 +253,9 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { wslog.debug("Retorno consulta cliente ws: " + cliStr); } catch (RemoteException e) { wslog.error(e.toString()); + entidad.setIndIntegradoAG(false); + entidad.setMotivoNaoIntegradoAG(e.toString()); + return; } if (!cliStr.contains("ERRO")){ // retornar msg a informação de registro já cadastrado @@ -331,7 +337,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { } } - @Transactional(noRollbackFor = { IntegracionException.class, ValidacionCampoException.class }) + @Transactional(noRollbackFor = { IntegracionException.class, ValidacionCampoException.class}) public PuntoVenta actualizacion(PuntoVenta entidad) throws IntegracionException, ValidacionCampoException { entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); entidad.setFecmodif(Calendar.getInstance().getTime());