Rev 507 | Rev 515 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 507 | Rev 510 | ||
|---|---|---|---|
| Line 8... | Line 8... | ||
| 8 | import org.springframework.context.annotation.Scope; |
8 | import org.springframework.context.annotation.Scope; |
| 9 | 9 | ||
| 10 | import br.com.ec.core.generic.GenericService; |
10 | import br.com.ec.core.generic.GenericService; |
| 11 | import br.com.ec.domain.dto.LogisticaDTO; |
11 | import br.com.ec.domain.dto.LogisticaDTO; |
| 12 | import br.com.ec.domain.model.tipos.TipoPeriodoConsulta; |
12 | import br.com.ec.domain.model.tipos.TipoPeriodoConsulta; |
| - | 13 | import br.com.ec.domain.model.tipos.TipoProduto; |
|
| 13 | import br.com.ec.domain.service.TransferenciaService; |
14 | import br.com.ec.domain.service.TransferenciaService; |
| 14 | import br.com.ec.web.exception.VerificadorLancamentoException; |
15 | import br.com.ec.web.exception.VerificadorLancamentoException; |
| 15 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
16 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
| 16 | import br.com.ec.web.generic.AbstractBean; |
17 | import br.com.ec.web.generic.AbstractBean; |
| 17 | import br.com.ec.web.message.LancadorMensagem; |
18 | import br.com.ec.web.message.LancadorMensagem; |
| Line 59... | Line 60... | ||
| 59 | 60 | ||
| 60 | public void gerarTransferencias() { |
61 | public void gerarTransferencias() { |
| 61 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
62 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 62 | public void execute() { |
63 | public void execute() { |
| 63 | transferenciaService.gerarTransferenciasAutomaticamente(getEntidade()); |
64 | transferenciaService.gerarTransferenciasAutomaticamente(getEntidade()); |
| 64 | LancadorMensagem.lancarSucesso("TRANSFERÊNCIAS GERADAS COM SUCESSO"); |
- | |
| - | 65 | LancadorMensagem.lancarSucesso("TRANSFERÊNCIAS DE " + TipoProduto.parse(getEntidade().getTipoProduto()).getDescricao() + " GERADAS COM SUCESSO"); |
|
| 65 | }
|
66 | }
|
| 66 | }); |
67 | }); |
| 67 | }
|
68 | }
|
| 68 | 69 | ||
| 69 | 70 | ||