Rev 195 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 195 | Rev 448 | ||
|---|---|---|---|
| Line 113... | Line 113... | ||
| 113 | public void cadastrar() { |
113 | public void cadastrar() { |
| 114 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
114 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 115 | public void execute() { |
115 | public void execute() { |
| 116 | getEntidade().setLoja(getLojaSelecionada()); |
116 | getEntidade().setLoja(getLojaSelecionada()); |
| 117 | Usuario usuario = verificarSenhaUsuario(); |
117 | Usuario usuario = verificarSenhaUsuario(); |
| - | 118 | usuarioService.naoPermitirPerfilLoja(usuario); |
|
| 118 | getEntidade().setUsuario(usuario); |
119 | getEntidade().setUsuario(usuario); |
| 119 | getService().cadastrar(getEntidade()); |
120 | getService().cadastrar(getEntidade()); |
| 120 | setSenhaUsuario(""); |
121 | setSenhaUsuario(""); |
| 121 | LancadorMensagem.lancarSucesso("Pagamento cadastrado com sucesso!"); |
122 | LancadorMensagem.lancarSucesso("Pagamento cadastrado com sucesso!"); |
| 122 | }
|
123 | }
|