Rev 126 | Rev 147 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 126 | Rev 140 | ||
|---|---|---|---|
| Line 462... | Line 462... | ||
| 462 | }
|
462 | }
|
| 463 | 463 | ||
| 464 | public void uploadArquivoXml(final FileUploadEvent e) { |
464 | public void uploadArquivoXml(final FileUploadEvent e) { |
| 465 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
465 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 466 | public void execute() { |
466 | public void execute() { |
| 467 | NotaFiscal notaFiscal = notaFiscalService.importarXml(e.getFile()); |
- | |
| - | 467 | NotaFiscal notaFiscal = notaFiscalService.importarXml(e.getFile(), getEntidade().getFornecedor()); |
|
| 468 | preencherNotaFiscalImportada(notaFiscal); |
468 | preencherNotaFiscalImportada(notaFiscal); |
| 469 | }
|
469 | }
|
| 470 | }); |
470 | }); |
| 471 | }
|
471 | }
|
| 472 | 472 | ||
| 473 | public void importarArquivoXmlImportado() { |
473 | public void importarArquivoXmlImportado() { |
| 474 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
474 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 475 | public void execute() { |
475 | public void execute() { |
| 476 | NotaFiscal notaFiscal = notaFiscalService.importarXml(getEntidade().getNotaFiscal().getTextoXml()); |
- | |
| - | 476 | NotaFiscal notaFiscal = notaFiscalService.importarXml(getEntidade().getNotaFiscal().getTextoXml(), getEntidade().getFornecedor()); |
|
| 477 | preencherNotaFiscalImportada(notaFiscal); |
477 | preencherNotaFiscalImportada(notaFiscal); |
| 478 | }
|
478 | }
|
| 479 | }); |
479 | }); |
| 480 | }
|
480 | }
|
| 481 | 481 | ||