Commit 8a5fd1f9ed2b7a3bd2c8716cfdd87cd3b8a63b2b

Authored by 96409975520
1 parent 2bed39f3
Exists in master

Retirada de códigos desnecessários para geração de relatório.

src/main/java/br/com/ases/model/utilities/ManagerReport.java
... ... @@ -33,21 +33,22 @@ public class ManagerReport {
33 33 private String fileName = null;
34 34  
35 35 public ManagerReport(String path){
  36 + System.out.println("path:" + path);
36 37 this.pathTemplate = path;
37 38 }
38 39  
39 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 43 JasperReport report = JasperCompileManager.compileReport(this.pathTemplate);
43   - System.out.println("erro_02");
  44 +
44 45  
45 46 JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource(
46 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 52 //JasperPrint print = JasperFillManager.fillReport(report, map,new JRBeanCollectionDataSource(Ordenacao.ordenarLista(this.carregarBean(list),null)));
52 53 System.out.println("erro_04");
53 54 return this.getRelatorio(print, tipoRelatorio, fileName);
... ...