Rev 200 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 200 | Rev 204 | ||
|---|---|---|---|
| Line 12... | Line 12... | ||
| 12 | import javax.inject.Inject; |
12 | import javax.inject.Inject; |
| 13 | import javax.inject.Named; |
13 | import javax.inject.Named; |
| 14 | 14 | ||
| 15 | import org.apache.commons.lang.time.DateUtils; |
15 | import org.apache.commons.lang.time.DateUtils; |
| 16 | import org.primefaces.event.FileUploadEvent; |
16 | import org.primefaces.event.FileUploadEvent; |
| 17 | import org.primefaces.model.UploadedFile; |
- | |
| - | 17 | import org.primefaces.model.file.UploadedFile; |
|
| 18 | import org.springframework.context.annotation.Scope; |
18 | import org.springframework.context.annotation.Scope; |
| 19 | 19 | ||
| 20 | import br.com.ec.core.exception.NegocioException; |
20 | import br.com.ec.core.exception.NegocioException; |
| 21 | import br.com.ec.core.generic.GenericService; |
21 | import br.com.ec.core.generic.GenericService; |
| 22 | import br.com.ec.core.util.DataUtils; |
22 | import br.com.ec.core.util.DataUtils; |
| Line 213... | Line 213... | ||
| 213 | public void execute() { |
213 | public void execute() { |
| 214 | limparEntidade(); |
214 | limparEntidade(); |
| 215 | BufferedReader reader = null; |
215 | BufferedReader reader = null; |
| 216 | List<String> linhas = new ArrayList<String>(); |
216 | List<String> linhas = new ArrayList<String>(); |
| 217 | try { |
217 | try { |
| 218 | reader = new BufferedReader(new InputStreamReader(e.getFile().getInputstream())); |
- | |
| - | 218 | reader = new BufferedReader(new InputStreamReader(e.getFile().getInputStream())); |
|
| 219 | String linha = reader.readLine(); |
219 | String linha = reader.readLine(); |
| 220 | cartaoResumo = new CartaoResumoDTO(); |
220 | cartaoResumo = new CartaoResumoDTO(); |
| 221 | while ((linha = reader.readLine()) != null) { |
221 | while ((linha = reader.readLine()) != null) { |
| 222 | linhas.add(linha); |
222 | linhas.add(linha); |
| 223 | }
|
223 | }
|