Rev 241 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 241 | Rev 448 | ||
|---|---|---|---|
| Line 207... | Line 207... | ||
| 207 | public void execute() { |
207 | public void execute() { |
| 208 | if (VerificadorUtil.naoEstaNulo(getLojaSelecionada())) { |
208 | if (VerificadorUtil.naoEstaNulo(getLojaSelecionada())) { |
| 209 | getEntidade().setLoja(getLojaSelecionada()); |
209 | getEntidade().setLoja(getLojaSelecionada()); |
| 210 | }
|
210 | }
|
| 211 | Usuario usuario = verificarSenhaUsuario(); |
211 | Usuario usuario = verificarSenhaUsuario(); |
| - | 212 | usuarioService.naoPermitirPerfilLoja(usuario); |
|
| 212 | getEntidade().setUsuario(usuario); |
213 | getEntidade().setUsuario(usuario); |
| 213 | setSenhaUsuario(""); |
214 | setSenhaUsuario(""); |
| 214 | }
|
215 | }
|
| 215 | }); |
216 | }); |
| 216 | super.cadastrar(); |
217 | super.cadastrar(); |
| Line 230... | Line 231... | ||
| 230 | public void finalizar(final Pendencia pendencia) { |
231 | public void finalizar(final Pendencia pendencia) { |
| 231 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
232 | new VerificadorLancamentoException().tratarIhRelancarExcecaoSemLimparEntidade(new CommandBean() { |
| 232 | public void execute() { |
233 | public void execute() { |
| 233 | pendencia.setDataFinalizado(DataUtils.getDataAtual()); |
234 | pendencia.setDataFinalizado(DataUtils.getDataAtual()); |
| 234 | Usuario usuarioResposta = verificarSenhaUsuario(); |
235 | Usuario usuarioResposta = verificarSenhaUsuario(); |
| - | 236 | usuarioService.naoPermitirPerfilLoja(usuarioResposta); |
|
| 235 | pendencia.setUsuarioResposta(usuarioResposta); |
237 | pendencia.setUsuarioResposta(usuarioResposta); |
| 236 | setSenhaUsuario(""); |
238 | setSenhaUsuario(""); |
| 237 | getService().alterar(pendencia); |
239 | getService().alterar(pendencia); |
| 238 | limparEntidade(); |
240 | limparEntidade(); |
| 239 | consultarPendencias(); |
241 | consultarPendencias(); |