Rev 515 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 515 | Rev 520 | ||
|---|---|---|---|
| Line 6... | Line 6... | ||
| 6 | import javax.inject.Named; |
6 | import javax.inject.Named; |
| 7 | 7 | ||
| 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.core.util.VerificadorUtil; |
|
| 11 | import br.com.ec.domain.dto.LogisticaDTO; |
12 | import br.com.ec.domain.dto.LogisticaDTO; |
| - | 13 | import br.com.ec.domain.dto.TransferenciaDTO; |
|
| - | 14 | import br.com.ec.domain.dto.TransferenciaProdutoDTO; |
|
| 12 | import br.com.ec.domain.model.tipos.TipoPeriodoConsulta; |
15 | import br.com.ec.domain.model.tipos.TipoPeriodoConsulta; |
| 13 | import br.com.ec.domain.model.tipos.TipoProduto; |
16 | import br.com.ec.domain.model.tipos.TipoProduto; |
| 14 | import br.com.ec.domain.service.TransferenciaService; |
17 | import br.com.ec.domain.service.TransferenciaService; |
| 15 | import br.com.ec.web.exception.VerificadorLancamentoException; |
18 | import br.com.ec.web.exception.VerificadorLancamentoException; |
| 16 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
19 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
| Line 74... | Line 77... | ||
| 74 | LancadorMensagem.lancarSucesso("TRANSFERÊNCIAS DE " + TipoProduto.parse(getEntidade().getTipoProduto()).getDescricao() + " GERADAS COM SUCESSO"); |
77 | LancadorMensagem.lancarSucesso("TRANSFERÊNCIAS DE " + TipoProduto.parse(getEntidade().getTipoProduto()).getDescricao() + " GERADAS COM SUCESSO"); |
| 75 | }
|
78 | }
|
| 76 | }); |
79 | }); |
| 77 | }
|
80 | }
|
| 78 | 81 | ||
| - | 82 | public void efetivarTransferencias() { |
|
| - | 83 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
|
| - | 84 | public void execute() { |
|
| - | 85 | transferenciaService.efetivarTransferencias(getEntidade()); |
|
| - | 86 | LancadorMensagem.lancarSucesso("TRANSFERÊNCIAS DE " + TipoProduto.parse(getEntidade().getTipoProduto()).getDescricao() + " EFETIVADAS COM SUCESSO"); |
|
| - | 87 | }
|
|
| - | 88 | }); |
|
| - | 89 | }
|
|
| 79 | 90 | ||
| 80 | }
|
91 | }
|