Commit e922392d1d91e949b6fb580386bea22e06523eb1
1 parent
ad86a75b
Exists in
master
#268 Pesquisar Documentos e Processos
Showing
4 changed files
with
266 additions
and
0 deletions
Show diff stats
cit-ecm-api/src/main/java/br/com/centralit/api/viewHelper/ProcessoVH.java
0 → 100644
... | ... | @@ -0,0 +1,71 @@ |
1 | +package br.com.centralit.api.viewHelper; | |
2 | + | |
3 | +import java.io.Serializable; | |
4 | + | |
5 | +import br.com.centralit.api.model.Processo; | |
6 | +import br.com.centralit.framework.json.Views; | |
7 | + | |
8 | +import com.fasterxml.jackson.annotation.JsonView; | |
9 | + | |
10 | +/** | |
11 | + * <p> | |
12 | + * <img src="http://centralit.com.br/images/logo_central.png"> | |
13 | + * </p> | |
14 | + * | |
15 | + * <p> | |
16 | + * <b>Company: </b> Central IT - Governança Corporativa - | |
17 | + * </p> | |
18 | + * | |
19 | + * <p> | |
20 | + * <b>Title: </b> | |
21 | + * </p> | |
22 | + * | |
23 | + * <p> | |
24 | + * <b>Description: </b> | |
25 | + * </p> | |
26 | + * | |
27 | + * <p> | |
28 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | |
29 | + * </p> | |
30 | + * | |
31 | + * <p> | |
32 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | |
33 | + * </p> | |
34 | + * | |
35 | + * @since 28/04/2016 - 17:27:03 | |
36 | + * | |
37 | + * @version 1.0.0 | |
38 | + * | |
39 | + * @author rogerio.costa | |
40 | + * | |
41 | + */ | |
42 | +public class ProcessoVH implements Serializable { | |
43 | + | |
44 | + /** Atributo serialVersionUID. */ | |
45 | + private static final long serialVersionUID = 8493356167825021268L; | |
46 | + | |
47 | + /** Atributo processo. */ | |
48 | + @JsonView({ Views.processoVHview.class }) | |
49 | + private Processo processo; | |
50 | + | |
51 | + /** | |
52 | + * Retorna o valor do atributo <code>processo</code> | |
53 | + * | |
54 | + * @return <code>Processo</code> | |
55 | + */ | |
56 | + public Processo getProcesso() { | |
57 | + | |
58 | + return processo; | |
59 | + } | |
60 | + | |
61 | + /** | |
62 | + * Define o valor do atributo <code>processo</code>. | |
63 | + * | |
64 | + * @param processo | |
65 | + */ | |
66 | + public void setProcesso(Processo processo) { | |
67 | + | |
68 | + this.processo = processo; | |
69 | + } | |
70 | + | |
71 | +} | ... | ... |
cit-ecm-web/src/main/webapp/html/pesquisa/tarefasProcesso.jsp
0 → 100644
... | ... | @@ -0,0 +1,79 @@ |
1 | +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | |
2 | +<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags"%> | |
3 | + | |
4 | +<fieldset style="margin-left: 5%; width: 90%; margin-top: 10px;"> | |
5 | + | |
6 | + <div ng-if="assignments.length < 1 && doc.nivelAcesso == 'Restrito'" style="text-align: center;" class="alert alert-warning ng-scope" role="alert"> | |
7 | + <span class="small" style="font-size: 122%"><translate>ECM.MSG.INFORMACAO_RESTRITA</translate></span> | |
8 | + </div> | |
9 | + | |
10 | + <div ng-if="doc.nivelAcesso== 'Público' || assignments.length > 0" class="row" style="margin-top: 6px; margin-bottom: -25px;"> | |
11 | + <div class="panel panel-default"> | |
12 | + <sec:authorize access="permiteExecutar()"> | |
13 | + <div class="panel-heading clearfix" style="background-color: rgba(170, 170, 170, 0.34); border-color: rgba(170, 170, 170, 0.78);"> | |
14 | + <button class="btn btn-clear" title="{{$translate.instant('LABEL.EXECUTAR')}}" alt="{{$translate.instant('LABEL.EXECUTAR')}}" type="button" ng-click="executarTarefa();" | |
15 | + ng-if="btnAction && doc.workItem.processInstance.status != 'SUSPENDED'"> | |
16 | + <i class="fa fa-play-circle-o green"></i> | |
17 | + <translate>LABEL.EXECUTAR</translate> | |
18 | + </button> | |
19 | + <button class="btn btn-clear" title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" type="button" ng-click="abreVisualizar();"> | |
20 | + <i class="fa fa-search blue"></i> | |
21 | + <translate>LABEL.VISUALIZAR</translate> | |
22 | + </button> | |
23 | + <button class="btn btn-clear" title="{{$translate.instant('ECM.LABEL.SOBRESTAR_SEM')}}" alt="{{$translate.instant('ECM.LABEL.SOBRESTAR_SEM')}}" type="button" ng-click="suspenderProcesso();" | |
24 | + ng-if="btnAction &&modelSelecionado.workItem.processInstance.status != 'SUSPENDED'"> | |
25 | + <i class="fa fa-pause red"></i> | |
26 | + <translate>ECM.LABEL.SOBRESTAR_SEM</translate> | |
27 | + </button> | |
28 | + <button class="btn btn-clear" title="{{$translate.instant('LABEL.REATIVAR')}}" alt="{{$translate.instant('LABEL.REATIVAR')}}" type="button" ng-click="reativarProcesso();" | |
29 | + ng-if="btnAction && modelSelecionado.workItem.processInstance.status == 'SUSPENDED'"> | |
30 | + <i class="fa fa-play green"></i> | |
31 | + <translate>LABEL.REATIVAR</translate> | |
32 | + </button> | |
33 | + <button class="btn btn-clear" title="{{$translate.instant('PORTAL.LABEL.VISUALIZAR_FLUXO')}}" alt="{{$translate.instant('PORTAL.LABEL.VISUALIZAR_FLUXO')}}" type="button" | |
34 | + ng-click="visualizarFluxo();" ng-if="btnAction"> | |
35 | + <i class="fa fa-search blue"></i> | |
36 | + <translate>PORTAL.LABEL.VISUALIZAR_FLUXO</translate> | |
37 | + </button> | |
38 | + <button class="btn btn-clear" ng-if="btnAction" title="{{$translate.instant('ESI.LOG.CONSULTA_LOG')}}" alt="{{$translate.instant('ESI.LOG.CONSULTA_LOG')}}" type="button" | |
39 | + ng-click="consultarHistorico();"> | |
40 | + <i class="fa fa-history yellow-dark"></i> | |
41 | + <translate>ESI.LOG.CONSULTA_LOG</translate> | |
42 | + </button> | |
43 | + </div> | |
44 | + </sec:authorize> | |
45 | + <div class="panel-body"> | |
46 | + | |
47 | + <table class="table table-striped table-bordered table-hover" style="width: 100%; margin-left: 0%; margin-right: 1%; margin-bottom: 1%; margin-top: 1%"> | |
48 | + <thead> | |
49 | + <tr> | |
50 | + <th style="width: 5%;"></th> | |
51 | + <th colspan="2" style="width: 60%;"><small><translate>ESI.TAREFA</translate></small></th> | |
52 | + <th style="align: center;"><small><translate>ECM.LABEL.SITUACAO_INSTANCIA_TAREFA</translate></small></th> | |
53 | + </tr> | |
54 | + </thead> | |
55 | + <tbody> | |
56 | + <tr ng-repeat="assignment in assignments"> | |
57 | + <td class="text-center" style="width: 5%;"><input type="radio" id="{{assignment.id}}" name="assignments" ng-checked="assignment.checked === true" ng-click="selectAssignment(assignment);" /> | |
58 | + </td> | |
59 | + <td class="text-center" style="width: 5%;"><span class="small green">{{assignment.id}}</span></td> | |
60 | + <td><span class="small green">{{assignment.flowElement.name}}</span></td> | |
61 | + <td><label ng-show="assignment.workItem.processInstance.status != 'SUSPENDED' && assignment.workItem.processInstance.flowStatus"> <span class="small badge black" | |
62 | + style="background-color: {{assignment.workItem.processInstance.flowStatus.backgroundColor"> <b><font color="{{assignment.workItem.processInstance.flowStatus.textColor}}"> <translate>{{assignment.workItem.processInstance.flowStatus.name}}</translate></b></font> | |
63 | + </span> | |
64 | + </label> <label ng-show="assignment.workItem.processInstance.status == 'SUSPENDED'"> <span class="small badge black" style="background-color: red !important"> <b><font color="white"> | |
65 | + <translate>ECM.LABEL.SOBRESTADA</translate></b></font> | |
66 | + </span> | |
67 | + </label></td> | |
68 | + </tr> | |
69 | + <tr ng-show="assignments.length <= 0"> | |
70 | + <td colspan="4"><strong><translate>ECM.MSG.NAO_EXISTE_TAREFA_EXECUTAR</translate></strong></td> | |
71 | + </tr> | |
72 | + </tbody> | |
73 | + </table> | |
74 | + | |
75 | + </div> | |
76 | + </div> | |
77 | + </div> | |
78 | + | |
79 | +</fieldset> | |
0 | 80 | \ No newline at end of file | ... | ... |
cit-ecm-web/src/main/webapp/html/processoVisualizacao/documentosView.html
0 → 100644
... | ... | @@ -0,0 +1,47 @@ |
1 | +<div class="itemdiv commentdiv" ng-repeat="documento in processo.documentos | orderBy:'-dataCriacao'"> | |
2 | + | |
3 | + <div class="user"> | |
4 | + <i class="{{documento.icon}}" title="{{documento.anexo.dominioTipoAnexo.descricao}}"></i> | |
5 | + </div> | |
6 | + | |
7 | + <div class="body"> | |
8 | + <div class="text ellipsis" tooltip="{{documento.tipoDocumento.nome}} - {{documento.numero}}"> | |
9 | + <a ng-show='!documento.cancelado' href="#void" ng-click="editDocument(documento, false)">{{documento.tipoDocumento.nome}} - {{documento.numero}}</a> <a ng-show='documento.cancelado' href="#void" | |
10 | + ng-click="getCancelamentoDocumento(documento);"> {{documento.tipoDocumento.nome}} - {{documento.numero}}</a> | |
11 | + </div> | |
12 | + | |
13 | + <div class="time hidden-md"> | |
14 | + <i class="ace-icon fa fa-clock-o"></i> <span class="blue">{{documento.dataCriacao | date: 'dd/MM/yyyy HH:mm:ss'}} </span> | |
15 | + </div> | |
16 | + | |
17 | + <div class="text ellipsis" tooltip="{{documento.assuntoComplementar}}">{{documento.assuntoComplementar}}</div> | |
18 | + | |
19 | + <div class="itemdiv-informacoes"> | |
20 | + <span class="label label-gray" ng-show="documento.sigilo.tipoSigilo.codigo == 0 ">{{documento.sigilo.tipoSigilo.descricao}}</span> <span class="label label-danger" | |
21 | + ng-show="documento.sigilo.tipoSigilo.codigo == 1 ">{{documento.sigilo.tipoSigilo.descricao}}</span> <span class="label label-black" ng-show="documento.sigilo.tipoSigilo.codigo == 2 ">{{documento.sigilo.tipoSigilo.descricao}}</span> | |
22 | + <span class="label label-warning" ng-show="documento.nivelAcesso.nivelAcesso.codigo == 1">{{documento.nivelAcesso.nivelAcesso.descricao}}</span> <span class="label label-success" | |
23 | + ng-show="documento.nivelAcesso.nivelAcesso.codigo == 2">{{documento.nivelAcesso.nivelAcesso.descricao}}</span> <span class="label label-info" ng-show="documento.origem">Anexado</span> <span | |
24 | + class="label label-info" ng-show="documento.assinaturas && documento.assinaturas.length > 0">Assinado</span> <span class="label label-success" ng-show="false">Habilitado</span> <span class="label label-warning" ng-show="false">Ciência</span> <span | |
25 | + class="label label-danger" ng-show="documento.cancelado">Cancelado</span> | |
26 | + | |
27 | + </div> | |
28 | + | |
29 | + </div> | |
30 | + | |
31 | + <div class="tools btn-group dropdown" role="group" dropdown> | |
32 | + <button type="button" class="btn btn-success btn-xs" dropdown-toggle> | |
33 | + <translate>LABEL.ACOES</translate> | |
34 | + <span class="fa fa-caret-down icon-on-right"></span> | |
35 | + </button> | |
36 | + | |
37 | + <ul class="dropdown-menu-center dropdown-menu dropdown-caret" role="menu"> | |
38 | + <li ng-if='!documento.cancelado'><a href="#void" ng-click="visualizarVersoes(documento);"> <translate>ECM.LABEL.VERSOESDODOCUMENTO</translate></a></li> | |
39 | + <li ><a ng-if='documento.cancelado'href="#void" ng-click="getCancelamentoDocumento(documento);"> <translate>ECM.LABEL.JUSTIFICATIVA_CANCELAMENTO</translate></a></li> | |
40 | + </ul> | |
41 | + | |
42 | + </div> | |
43 | + | |
44 | + <div class="versoes"> | |
45 | + <span><translate>ECM.LABEL.VERSAO_ATUAL</translate>: {{documento.versaoDocumento | limitTo:3}}</span> | |
46 | + </div> | |
47 | +</div> | |
0 | 48 | \ No newline at end of file | ... | ... |
cit-ecm-web/src/main/webapp/html/processoVisualizacao/processoView.html
0 → 100644
... | ... | @@ -0,0 +1,69 @@ |
1 | +<link rel="stylesheet" href="/cit-ecm-web/assets/css/gerenciarProcesso.css" /> | |
2 | + | |
3 | +<div id="visualizarGerenciarProcesso" class="page-content" ng-controller="GerenciarProcessoController"> | |
4 | + <div class="bar-buttons-action fixed"> | |
5 | + <span class="divider-vertical"></span> | |
6 | + </div> | |
7 | + | |
8 | + <div id="informacaoProcesso"> | |
9 | + <div class="row"> | |
10 | + <div class="col-md-12"> | |
11 | + <div class="row"> | |
12 | + <div class="col-md-12"> | |
13 | + <div class="widget-box margin-bottom"> | |
14 | + <div class="widget-header"> | |
15 | + <h2 class="widget-title"> | |
16 | + <translate>ECM.LABEL.INFORMACAODOPROCESSO</translate> | |
17 | + - {{processo.nup}} | |
18 | + </h2> | |
19 | + | |
20 | + <div class="widget-toolbar"> | |
21 | + <a href="#void" ng-click="widgetExemploIsCollapsed = !widgetExemploIsCollapsed"> <i class="fa" | |
22 | + ng-class="{'fa-chevron-up': !widgetExemploIsCollapsed, 'fa-chevron-down': widgetExemploIsCollapsed}"></i> | |
23 | + </a> | |
24 | + </div> | |
25 | + </div> | |
26 | + <div collapse="widgetExemploIsCollapsed" class="widget-body"> | |
27 | + <div ng-include src="'/cit-ecm-web/html/gerenciarProcesso/includeInformacaoProcesso.html'" /> | |
28 | + </div> | |
29 | + </div> | |
30 | + </div> | |
31 | + </div> | |
32 | + </div> | |
33 | + </div> | |
34 | + </div> | |
35 | + | |
36 | + <div class="row"> | |
37 | + <div class="col-md-4"> | |
38 | + | |
39 | + <div class="widget-box documentos margin-bottom"> | |
40 | + <div class="widget-header"> | |
41 | + <h2 class="widget-title"> | |
42 | + <translate>ECM.LABEL.DOCUMENTOS</translate> | |
43 | + </h2> | |
44 | + | |
45 | + </div> | |
46 | + <div class="widget-body"> | |
47 | + <div class="widget-main clearfix"> | |
48 | + <div id="documentosProcesso"> | |
49 | + <div ng-include src="'/cit-ecm-web/html/processoVisualizacao/documentosView.html'" /> | |
50 | + </div> | |
51 | + </div> | |
52 | + </div> | |
53 | + </div> | |
54 | + </div> | |
55 | + | |
56 | + <div id="content-container" class="col-md-8"> | |
57 | + | |
58 | + <div ng-include src="'/cit-ecm-web/html/documentoGed/documentoGedView.html'" ng-show="isDocumentoEdit"/> | |
59 | + | |
60 | + <div ng-include src="'/cit-ecm-web/html/documentoGed/cancelarDocumentoView.html'" ng-show="isCancelarDocumento"/> | |
61 | + | |
62 | + <div ng-include src="'/cit-ecm-web/html/historicoAlteracaoProcesso/historicoAlteracaoProcesso.html'" ng-show="isHistoricoProcesso" /> | |
63 | + | |
64 | + <div ng-include src="'/cit-ecm-web/html/versaoDocumentoGed/versaoDocumentoGedList.html'" ng-show="isVersoesDocumento" /> | |
65 | + | |
66 | + </div> | |
67 | + | |
68 | + </div> | |
69 | +</div> | |
0 | 70 | \ No newline at end of file | ... | ... |