gleimar 2015-08-18 14:09:59 +00:00
parent 58c33ad137
commit c56d04be23
3 changed files with 7 additions and 7 deletions

View File

@ -64,7 +64,7 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
@Autowired
private TipoPuntoVentaService tipoPuntoVentaService;
@Autowired
private DataSource dataSource;
private DataSource dataSourceRead;
private List<Estado> lsEstado;
private List<Empresa> lsEmpresa;
@ -335,7 +335,7 @@ public class RelatorioDevolucaoBilhetesController extends MyGenericForwardCompos
parametros.put("FILTROS", filtro.toString());
Relatorio relatorio = new RelatorioReceitaDiariaAgencia(parametros, dataSource.getConnection());
Relatorio relatorio = new RelatorioReceitaDiariaAgencia(parametros, dataSourceRead.getConnection());
Map args = new HashMap();
args.put("relatorio", relatorio);

View File

@ -30,7 +30,7 @@ public class RelatorioEmpresaCorridaController extends MyGenericForwardComposer
private static Logger log = Logger.getLogger(RelatorioEmpresaCorridaController.class);
@Autowired
private DataSource dataSource;
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
@ -54,7 +54,7 @@ public class RelatorioEmpresaCorridaController extends MyGenericForwardComposer
}
parametros.put("TITULO", Labels.getLabel("relatorioEmpresaCorridaController.window.title"));
Relatorio relatorio = new RelatorioEmpresaCorrida(parametros, dataSource.getConnection());
Relatorio relatorio = new RelatorioEmpresaCorrida(parametros, dataSourceRead.getConnection());
Map<String, Object> args = new HashMap<String, Object>();
args.put("relatorio", relatorio);

View File

@ -34,7 +34,7 @@ public class RelatorioEmpresaOnibusController extends MyGenericForwardComposer {
private static Logger log = Logger.getLogger(RelatorioEmpresaOnibusController.class);
@Autowired
private DataSource dataSource;
private DataSource dataSourceRead;
@Autowired
private EmpresaService empresaService;
@Autowired
@ -72,10 +72,10 @@ public class RelatorioEmpresaOnibusController extends MyGenericForwardComposer {
if (chkResumo.isChecked()){
parametros.put("TITULO", Labels.getLabel("relatorioEmpresaOnibusResumoController.window.title"));
relatorio = new RelatorioEmpresaOnibusResumo(parametros, dataSource.getConnection());
relatorio = new RelatorioEmpresaOnibusResumo(parametros, dataSourceRead.getConnection());
} else {
parametros.put("TITULO", Labels.getLabel("relatorioEmpresaOnibusController.window.title"));
relatorio = new RelatorioEmpresaOnibus(parametros, dataSource.getConnection());
relatorio = new RelatorioEmpresaOnibus(parametros, dataSourceRead.getConnection());
}
Map<String, Object> args = new HashMap<String, Object>();