Commit 0af5f96a0744c6498129299ff9531008a76ecd5f
1 parent
e4376645
Exists in
master
#3216 - Classificar a Informação de Documentos e Processos
Showing
2 changed files
with
10 additions
and
8 deletions
Show diff stats
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/GerenciarProcessoController.js
| ... | ... | @@ -653,6 +653,8 @@ citApp.controller('GerenciarProcessoController', [ '$scope', '$translate', '$tim |
| 653 | 653 | |
| 654 | 654 | $scope.setLoadingGet(true); |
| 655 | 655 | |
| 656 | + $scope.task = {}; | |
| 657 | + | |
| 656 | 658 | ProcessoRepository.getProcessoGerenciamento(processo.id).then(function(result) { |
| 657 | 659 | //Processo do scopo do gerenciamento |
| 658 | 660 | $scope.processo = result.originalElement; | ... | ... |
cit-ecm-web/src/main/webapp/html/gerenciarProcesso/includeCabecalhoGerenciarProcesso.jsp
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | <translate>LABEL.EDITAR</translate> |
| 34 | 34 | </button> |
| 35 | 35 | |
| 36 | -<button type="button" class="btn btn-clear" ng-click="concluir()"> | |
| 36 | +<button type="button" class="btn btn-clear" ng-click="concluir()" ng-if="task.id"> | |
| 37 | 37 | <i class="ace-icon fa fa-check green"></i> |
| 38 | 38 | <translate>ECM.LABEL.CONCLUIR</translate> |
| 39 | 39 | </button> |
| ... | ... | @@ -43,7 +43,7 @@ |
| 43 | 43 | <translate>ECM.LABEL.INCLUIRDOCUMENTO</translate> |
| 44 | 44 | </button> |
| 45 | 45 | |
| 46 | -<button type="button" ng-if="unidadeProcesso.usuarioResponsavel.id != usuarioLogado.id" class="btn btn-clear" ng-click="exibirAlertaCapturar()"> | |
| 46 | +<button type="button" ng-if="unidadeProcesso.usuarioResponsavel.id != usuarioLogado.id && task.id" class="btn btn-clear" ng-click="exibirAlertaCapturar()"> | |
| 47 | 47 | <i class="fa fa-thumb-tack"></i> |
| 48 | 48 | <translate>ECM.LABEL.CAPTURAR</translate> |
| 49 | 49 | </button> |
| ... | ... | @@ -58,23 +58,23 @@ |
| 58 | 58 | </button> |
| 59 | 59 | |
| 60 | 60 | <ul class="dropdown-menu-center dropdown-menu dropdown-caret" role="menu"> |
| 61 | - <li><a href="#void" ng-click="editProcessoRelacionado();"><i class="fa fa-link"></i> <translate>ECM.LABEL.PROCESSORELACIONADOS</translate></a></li> | |
| 62 | - <li><a href="#void" ng-click='enviarProcesso();'><i class="fa fa-share-square-o">  </i> <translate>ECM.LABEL.ENVIAR_PROCESSO</translate> </a></li> | |
| 63 | - <li><a href="#void" ng-click='anexarProcesso();'><i class="fa fa-paperclip">  </i> <translate>ECM.LABEL.ANEXAR_ESTE_PROCESSO</translate> </a></li> | |
| 61 | + <li><a href="#void" ng-click="editProcessoRelacionado();" ng-if="task.id"><i class="fa fa-link"></i> <translate>ECM.LABEL.PROCESSORELACIONADOS</translate></a></li> | |
| 62 | + <li><a href="#void" ng-click='enviarProcesso();' ng-if="task.id"><i class="fa fa-share-square-o">  </i> <translate>ECM.LABEL.ENVIAR_PROCESSO</translate> </a></li> | |
| 63 | + <li><a href="#void" ng-click='anexarProcesso();' ng-if="task.id"><i class="fa fa-paperclip">  </i> <translate>ECM.LABEL.ANEXAR_ESTE_PROCESSO</translate> </a></li> | |
| 64 | 64 | |
| 65 | 65 | <sec:authorize access="permiteCredenciar()"> |
| 66 | - <li><a href="#void;" ng-click='gerenciarCredenciaisProcesso();'><i class="fa fa-user-plus">  </i> <translate>ECM.LABEL.GERENCIAR_CREDENCIAIS_ACESSO</translate> </a></li> | |
| 66 | + <li><a href="#void;" ng-click='gerenciarCredenciaisProcesso();' ng-if="task.id"><i class="fa fa-user-plus">  </i> <translate>ECM.LABEL.GERENCIAR_CREDENCIAIS_ACESSO</translate> </a></li> | |
| 67 | 67 | </sec:authorize> |
| 68 | 68 | |
| 69 | 69 | <sec:authorize access="permiteRenunciar()"> |
| 70 | - <li><a href="javascript: return false;" ng-click='exibirDialogConfirmacaoRemoverCredencial()'><i class="fa fa-user-times">  </i> <translate>ECM.LABEL.RENUNCIAR_CREDENCIAL</translate> </a></li> | |
| 70 | + <li><a href="javascript: return false;" ng-click='exibirDialogConfirmacaoRemoverCredencial()' ng-if="task.id"><i class="fa fa-user-times">  </i> <translate>ECM.LABEL.RENUNCIAR_CREDENCIAL</translate> </a></li> | |
| 71 | 71 | </sec:authorize> |
| 72 | 72 | |
| 73 | 73 | <sec:authorize access="hasAnyRole('USER_RESERVADO', 'USER_SECRETO', 'USER_ULTRASSECRETO')"> |
| 74 | 74 | <li><a href="#void" ng-click='classificarDocumentoProceso();'><i class="fa fa fa-eye">  </i> <translate>ECM.LABEL.VALIDAR_NIVEL_ACESSO</translate> </a></li> |
| 75 | 75 | </sec:authorize> |
| 76 | 76 | |
| 77 | - <li><a href="javascript: return false;" ng-click='atribuirProcesso()' ng-if="unidadeProcesso.id"><i class="fa fa-male">  </i> <translate>ECM.LABEL.ATRIBUIR_PROCESSO</translate> </a></li> | |
| 77 | + <li><a href="javascript: return false;" ng-click='atribuirProcesso()' ng-if="unidadeProcesso.id && task.id"><i class="fa fa-male">  </i> <translate>ECM.LABEL.ATRIBUIR_PROCESSO</translate> </a></li> | |
| 78 | 78 | |
| 79 | 79 | </ul> |
| 80 | 80 | </div> | ... | ... |