Commit 8a5fd1f9ed2b7a3bd2c8716cfdd87cd3b8a63b2b
1 parent
2bed39f3
Exists in
master
Retirada de códigos desnecessários para geração de relatório.
Showing
1 changed file
with
5 additions
and
4 deletions
Show diff stats
src/main/java/br/com/ases/model/utilities/ManagerReport.java
@@ -33,21 +33,22 @@ public class ManagerReport { | @@ -33,21 +33,22 @@ public class ManagerReport { | ||
33 | private String fileName = null; | 33 | private String fileName = null; |
34 | 34 | ||
35 | public ManagerReport(String path){ | 35 | public ManagerReport(String path){ |
36 | + System.out.println("path:" + path); | ||
36 | this.pathTemplate = path; | 37 | this.pathTemplate = path; |
37 | } | 38 | } |
38 | 39 | ||
39 | public String gerarRelatorio(List list, HashMap<String, Object> map, int tipoRelatorio, String fileName) throws JRException, IOException{ | 40 | public String gerarRelatorio(List list, HashMap<String, Object> map, int tipoRelatorio, String fileName) throws JRException, IOException{ |
40 | - System.out.println("erro_01"); | 41 | + |
41 | 42 | ||
42 | JasperReport report = JasperCompileManager.compileReport(this.pathTemplate); | 43 | JasperReport report = JasperCompileManager.compileReport(this.pathTemplate); |
43 | - System.out.println("erro_02"); | 44 | + |
44 | 45 | ||
45 | JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource( | 46 | JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource( |
46 | this.criterioOrdenacao(Ordenacao.ordenarLista(this.carregarBean(list),null, true))) | 47 | this.criterioOrdenacao(Ordenacao.ordenarLista(this.carregarBean(list),null, true))) |
47 | ); | 48 | ); |
48 | - System.out.println("erro_03"); | 49 | + |
49 | 50 | ||
50 | - List listOrdenado = this.criterioOrdenacao(Ordenacao.ordenarLista(this.carregarBean(list),null, true)); | 51 | + //this.criterioOrdenacao(Ordenacao.ordenarLista(this.carregarBean(list),null, true)); |
51 | //JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource(Ordenacao.ordenarLista(this.carregarBean(list),null))); | 52 | //JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource(Ordenacao.ordenarLista(this.carregarBean(list),null))); |
52 | System.out.println("erro_04"); | 53 | System.out.println("erro_04"); |
53 | return this.getRelatorio(print, tipoRelatorio, fileName); | 54 | return this.getRelatorio(print, tipoRelatorio, fileName); |