Rev 195 | Rev 686 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 195 | Rev 284 | ||
|---|---|---|---|
| Line 112... | Line 112... | ||
| 112 | ArrayList<Cliente> clientes = (ArrayList<Cliente>) clienteRepository.consultarPassandoParametrosConsulta(parametrosConsulta, 0, |
112 | ArrayList<Cliente> clientes = (ArrayList<Cliente>) clienteRepository.consultarPassandoParametrosConsulta(parametrosConsulta, 0, |
| 113 | clienteRepository.obterQuantidadeDeRegistrosParametrosConsulta(parametrosConsulta), null, null, new HashMap<String, Object>()); |
113 | clienteRepository.obterQuantidadeDeRegistrosParametrosConsulta(parametrosConsulta), null, null, new HashMap<String, Object>()); |
| 114 | 114 | ||
| 115 | // PREENCHER
|
115 | // PREENCHER
|
| 116 | Integer numeroLinha = 1; |
116 | Integer numeroLinha = 1; |
| - | 117 | CellStyle estilo = ExcelUtil.configurarCelulaTexto(wb); |
|
| 117 | for (Cliente cliente : clientes) { |
118 | for (Cliente cliente : clientes) { |
| 118 | Row linha = aba.createRow(numeroLinha); |
119 | Row linha = aba.createRow(numeroLinha); |
| 119 | ExcelUtil.criarCelula(wb, aba, linha, 0, ExcelUtil.configurarCelulaTexto(wb), cliente.getNome()); |
- | |
| 120 | ExcelUtil.criarCelula(wb, aba, linha, 1, ExcelUtil.configurarCelulaTexto(wb), cliente.getCpfCnpjFormatado()); |
- | |
| 121 | ExcelUtil.criarCelula(wb, aba, linha, 2, ExcelUtil.configurarCelulaTexto(wb), cliente.getContato()); |
- | |
| 122 | ExcelUtil.criarCelula(wb, aba, linha, 3, ExcelUtil.configurarCelulaTexto(wb), cliente.getTelefone()); |
- | |
| 123 | ExcelUtil.criarCelula(wb, aba, linha, 4, ExcelUtil.configurarCelulaTexto(wb), cliente.getEmail()); |
- | |
| - | 120 | ExcelUtil.criarCelula(wb, aba, linha, 0, estilo, cliente.getNome()); |
|
| - | 121 | ExcelUtil.criarCelula(wb, aba, linha, 1, estilo, cliente.getCpfCnpjFormatado()); |
|
| - | 122 | ExcelUtil.criarCelula(wb, aba, linha, 2, estilo, cliente.getContato()); |
|
| - | 123 | ExcelUtil.criarCelula(wb, aba, linha, 3, estilo, cliente.getTelefone()); |
|
| - | 124 | ExcelUtil.criarCelula(wb, aba, linha, 4, estilo, cliente.getEmail()); |
|
| 124 | numeroLinha++;
|
125 | numeroLinha++;
|
| 125 | }
|
126 | }
|
| 126 | 127 | ||
| 127 | try { |
128 | try { |
| 128 | ByteArrayOutputStream stream = new ByteArrayOutputStream(); |
129 | ByteArrayOutputStream stream = new ByteArrayOutputStream(); |