コード例 #1
0
 public String incluir() throws SystemException {
   this.planeijamentoTratamento.setDataAtualizacao(DataUtil.obterDataAtual());
   this.planeijamentoTratamento.setPaciente(paciente);
   this.planeijamentoTratamentoService.incluir(planeijamentoTratamento);
   FacesUtil.registrarMensagem("sucesso.operacao");
   return PAGINA_PRINCIPAL;
 }
コード例 #2
0
 public void alterar() throws SystemException {
   if (paciente == null) {
     throw new SystemException(CoreErros.ERRO_ALTERAR_REGISTRO);
   }
   this.planeijamentoTratamento.setDataAtualizacao(DataUtil.obterDataAtual());
   this.planeijamentoTratamento.setPaciente(paciente);
   this.planeijamentoTratamentoService.alterar(planeijamentoTratamento);
   resetar();
   FacesUtil.registrarMensagem("sucesso.operacao");
 }
コード例 #3
0
 public void excluir() throws SystemException {
   this.planeijamentoTratamento.setPaciente(paciente);
   this.planeijamentoTratamentoService.excluir(planeijamentoTratamento);
   resetar();
   FacesUtil.registrarMensagem("sucesso.operacao");
 }