Rev 402 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 402 | Rev 415 | ||
|---|---|---|---|
| Line 132... | Line 132... | ||
| 132 | LancadorMensagem.lancarSucesso(extratoBancarioArquivoDTO.getArquivoExtratoBancario().getFileName() + " FOI ADICIONADO COM SUCESSO!"); |
132 | LancadorMensagem.lancarSucesso(extratoBancarioArquivoDTO.getArquivoExtratoBancario().getFileName() + " FOI ADICIONADO COM SUCESSO!"); |
| 133 | }
|
133 | }
|
| 134 | }); |
134 | }); |
| 135 | }
|
135 | }
|
| 136 | 136 | ||
| 137 | public void removerArquivoExtratoBancarioAnexado(ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
- | |
| - | 137 | public void removerArquivoExtratoBancarioAnexado(final ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
|
| 138 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
138 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 139 | public void execute() { |
139 | public void execute() { |
| 140 | extratoBancarioArquivoDTO.setDadosExtratoBancoSemCategoriaDTO(new ArrayList<ExtratoBancoDTO>()); |
140 | extratoBancarioArquivoDTO.setDadosExtratoBancoSemCategoriaDTO(new ArrayList<ExtratoBancoDTO>()); |
| 141 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
141 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
| 142 | LancadorMensagem.lancarSucesso("ARQUIVO REMOVIDO COM SUCESSO"); |
142 | LancadorMensagem.lancarSucesso("ARQUIVO REMOVIDO COM SUCESSO"); |
| 143 | }
|
143 | }
|
| 144 | }); |
144 | }); |
| 145 | }
|
145 | }
|
| 146 | 146 | ||
| 147 | public void cadastrarExtratosSelecionados(ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
- | |
| - | 147 | public void cadastrarExtratosSelecionados(final ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
|
| 148 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
148 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 149 | public void execute() { |
149 | public void execute() { |
| 150 | extratoBancoService.cadastrarExtratosBancariosAnexado(extratoBancarioArquivoDTO); |
150 | extratoBancoService.cadastrarExtratosBancariosAnexado(extratoBancarioArquivoDTO); |
| 151 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
151 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
| 152 | consultarConciliacaoBancaria(); |
152 | consultarConciliacaoBancaria(); |
| 153 | LancadorMensagem.lancarSucesso("EXTRATO BANCÁRIO CADASTRADO COM SUCESSO"); |
153 | LancadorMensagem.lancarSucesso("EXTRATO BANCÁRIO CADASTRADO COM SUCESSO"); |
| 154 | }
|
154 | }
|
| 155 | }); |
155 | }); |
| 156 | }
|
156 | }
|
| 157 | 157 | ||
| 158 | public void excluirExtratosSelecionados(ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
- | |
| - | 158 | public void excluirExtratosSelecionados(final ExtratoBancarioArquivoDTO extratoBancarioArquivoDTO) { |
|
| 159 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
159 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 160 | public void execute() { |
160 | public void execute() { |
| 161 | extratoBancoService.excluirExtratosBancariosSelecionados(extratoBancarioArquivoDTO); |
161 | extratoBancoService.excluirExtratosBancariosSelecionados(extratoBancarioArquivoDTO); |
| 162 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
162 | getEntidade().getArquivosExtratoBancarioParaCadastrarDTO().remove(extratoBancarioArquivoDTO); |
| 163 | consultarConciliacaoBancaria(); |
163 | consultarConciliacaoBancaria(); |