Exemplo n.º 1
0
 public void excluir(
     DocumentHTML document, HttpServletRequest request, HttpServletResponse response)
     throws Exception {
   RegraEscalonamentoDTO regraEscalonamentoDTO = (RegraEscalonamentoDTO) document.getBean();
   RegraEscalonamentoService service =
       (RegraEscalonamentoService)
           ServiceLocator.getInstance().getService(RegraEscalonamentoService.class, null);
   if (regraEscalonamentoDTO.getIdRegraEscalonamento() != null) {
     service.delete(regraEscalonamentoDTO);
     document.alert(UtilI18N.internacionaliza(request, "regraEscalonamento.excluida"));
   }
   HTMLForm form = document.getForm("form");
   form.clear();
   document.setBean(new RegraEscalonamentoDTO());
   HTMLTable tblGrupoExecutor = document.getTableById("tblGrupoExecutor");
   tblGrupoExecutor.deleteAllRows();
 }