Commit 03f6ea91a89f2d62b1bf30096d39a62db8b90054
1 parent
2dc3db0a
Exists in
master
#4199 Change Request. Atribuir Processos a um usuário.
Showing
12 changed files
with
122 additions
and
35 deletions
Show diff stats
cit-ecm-api/src/main/java/br/com/centralit/api/dao/impl/CredencialProcessoDaoHibernate.java
@@ -46,7 +46,6 @@ import br.com.centralit.framework.util.UtilObjeto; | @@ -46,7 +46,6 @@ import br.com.centralit.framework.util.UtilObjeto; | ||
46 | * @author rogerio.costa | 46 | * @author rogerio.costa |
47 | * | 47 | * |
48 | */ | 48 | */ |
49 | -@SuppressWarnings("unchecked") | ||
50 | @Repository("credencialProcessoDao") | 49 | @Repository("credencialProcessoDao") |
51 | public class CredencialProcessoDaoHibernate extends CitGenericDAOImpl implements CredencialProcessoDao { | 50 | public class CredencialProcessoDaoHibernate extends CitGenericDAOImpl implements CredencialProcessoDao { |
52 | 51 |
cit-ecm-api/src/main/java/br/com/centralit/api/dao/impl/ProcessoDaoHibernate.java
@@ -195,12 +195,8 @@ public class ProcessoDaoHibernate extends CitGenericDAOImpl implements ProcessoD | @@ -195,12 +195,8 @@ public class ProcessoDaoHibernate extends CitGenericDAOImpl implements ProcessoD | ||
195 | 195 | ||
196 | criteriaPrivilegio.add(Restrictions.eq("grupoUsuario.usuario.id", idUsuario)); | 196 | criteriaPrivilegio.add(Restrictions.eq("grupoUsuario.usuario.id", idUsuario)); |
197 | 197 | ||
198 | - | ||
199 | search.getFilters().add(Filter.in("sigilo.id", criteriaPrivilegio.list())); | 198 | search.getFilters().add(Filter.in("sigilo.id", criteriaPrivilegio.list())); |
200 | 199 | ||
201 | - | ||
202 | - | ||
203 | - | ||
204 | return super.searchAndCount(search); | 200 | return super.searchAndCount(search); |
205 | } | 201 | } |
206 | 202 |
cit-ecm-api/src/main/java/br/com/centralit/api/security/CustomExpressionHandler.java
@@ -11,10 +11,40 @@ import org.springframework.security.web.access.expression.WebSecurityExpressionR | @@ -11,10 +11,40 @@ import org.springframework.security.web.access.expression.WebSecurityExpressionR | ||
11 | import br.com.centralit.api.service.CredencialProcessoService; | 11 | import br.com.centralit.api.service.CredencialProcessoService; |
12 | 12 | ||
13 | /** | 13 | /** |
14 | - * @author Rob Winch | 14 | + * <p> |
15 | + * <img src="http://centralit.com.br/images/logo_central.png"> | ||
16 | + * </p> | ||
17 | + * | ||
18 | + * <p> | ||
19 | + * <b>Company: </b> Central IT - Governança Corporativa - | ||
20 | + * </p> | ||
21 | + * | ||
22 | + * <p> | ||
23 | + * <b>Title: </b> | ||
24 | + * </p> | ||
25 | + * | ||
26 | + * <p> | ||
27 | + * <b>Description: </b> | ||
28 | + * </p> | ||
29 | + * | ||
30 | + * <p> | ||
31 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | ||
32 | + * </p> | ||
33 | + * | ||
34 | + * <p> | ||
35 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | ||
36 | + * </p> | ||
37 | + * | ||
38 | + * @since 05/04/2016 - 14:09:28 | ||
39 | + * | ||
40 | + * @version 1.0.0 | ||
41 | + * | ||
42 | + * @author rogerio.costa | ||
43 | + * | ||
15 | */ | 44 | */ |
16 | public class CustomExpressionHandler extends DefaultWebSecurityExpressionHandler { | 45 | public class CustomExpressionHandler extends DefaultWebSecurityExpressionHandler { |
17 | 46 | ||
47 | + /** Atributo credencialProcessoService. */ | ||
18 | @Autowired | 48 | @Autowired |
19 | private CredencialProcessoService credencialProcessoService; | 49 | private CredencialProcessoService credencialProcessoService; |
20 | 50 |
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/CredencialProcessoServiceImpl.java
1 | package br.com.centralit.api.service.impl; | 1 | package br.com.centralit.api.service.impl; |
2 | 2 | ||
3 | +import java.util.ArrayList; | ||
3 | import java.util.Collection; | 4 | import java.util.Collection; |
4 | import java.util.LinkedList; | 5 | import java.util.LinkedList; |
5 | import java.util.List; | 6 | import java.util.List; |
@@ -216,6 +217,33 @@ public class CredencialProcessoServiceImpl extends GenericServiceImpl<Credencial | @@ -216,6 +217,33 @@ public class CredencialProcessoServiceImpl extends GenericServiceImpl<Credencial | ||
216 | * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | 217 | * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> |
217 | * </p> | 218 | * </p> |
218 | * | 219 | * |
220 | + * Método responsável por retornar os privilegios através do sigilo | ||
221 | + * | ||
222 | + * @author rogerio.costa | ||
223 | + * | ||
224 | + * @param sigilo | ||
225 | + * @return Collection<Privilegio> | ||
226 | + */ | ||
227 | + private Collection<String> getRolesPorSigilo(Sigilo sigilo) { | ||
228 | + | ||
229 | + Collection<String> roles = new ArrayList<String>(); | ||
230 | + // Cria uma lista de privilegios relacionados ao sigilo do processo | ||
231 | + for (SigiloPrivilegio sigiloPrivilegio : sigilo.getSigiloPrivilegios()) { | ||
232 | + | ||
233 | + roles.add(sigiloPrivilegio.getPrivilegio().getNome()); | ||
234 | + } | ||
235 | + return roles; | ||
236 | + } | ||
237 | + | ||
238 | + /** | ||
239 | + * <p> | ||
240 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | ||
241 | + * </p> | ||
242 | + * | ||
243 | + * <p> | ||
244 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | ||
245 | + * </p> | ||
246 | + * | ||
219 | * Método responsável por resolver as propriedades transiente | 247 | * Método responsável por resolver as propriedades transiente |
220 | * | 248 | * |
221 | * @author rogerio.costa | 249 | * @author rogerio.costa |
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/DocumentoGedServiceImpl.java
@@ -176,7 +176,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | @@ -176,7 +176,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | ||
176 | entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); | 176 | entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); |
177 | } | 177 | } |
178 | 178 | ||
179 | - this.saveSolr(entity); | 179 | + // this.saveSolr(entity); |
180 | 180 | ||
181 | this.verificaTemporalidadeProcesso(entity); | 181 | this.verificaTemporalidadeProcesso(entity); |
182 | 182 | ||
@@ -401,16 +401,19 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | @@ -401,16 +401,19 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | ||
401 | * | 401 | * |
402 | */ | 402 | */ |
403 | public void executarAcoesDocumentoOnline(DocumentoGed documentoGed) { | 403 | public void executarAcoesDocumentoOnline(DocumentoGed documentoGed) { |
404 | - | 404 | + //Verifica se é um documento online |
405 | if (documentoGed.getFormaCriacao().getCodigo().equals(1L)) { | 405 | if (documentoGed.getFormaCriacao().getCodigo().equals(1L)) { |
406 | - | ||
407 | - documentoGed.setConteudoCriptografado(this.encrypted(documentoGed.getConteudo())); | ||
408 | - | 406 | + |
409 | if (documentoGed.isNew()) { | 407 | if (documentoGed.isNew()) { |
410 | 408 | ||
411 | this.gerarNumeroDocumentOnline(documentoGed); | 409 | this.gerarNumeroDocumentOnline(documentoGed); |
410 | + }else{ | ||
411 | + | ||
412 | + this.substituirParametrosDinamicos(documentoGed); | ||
412 | } | 413 | } |
413 | 414 | ||
415 | + documentoGed.setConteudoCriptografado(this.encrypted(documentoGed.getConteudo())); | ||
416 | + | ||
414 | } | 417 | } |
415 | 418 | ||
416 | } | 419 | } |
@@ -539,6 +542,28 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | @@ -539,6 +542,28 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | ||
539 | entity.setNumero(sb.toString()); | 542 | entity.setNumero(sb.toString()); |
540 | } | 543 | } |
541 | 544 | ||
545 | + this.substituirParametrosDinamicos(entity); | ||
546 | + | ||
547 | + } | ||
548 | + | ||
549 | + /** | ||
550 | + * <p> | ||
551 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | ||
552 | + * </p> | ||
553 | + * | ||
554 | + * <p> | ||
555 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | ||
556 | + * </p> | ||
557 | + * | ||
558 | + * Método responsável por substituir os parametros dinamicos do documento | ||
559 | + * | ||
560 | + * @author rogerio.costa | ||
561 | + * | ||
562 | + * @param entity | ||
563 | + */ | ||
564 | + private void substituirParametrosDinamicos(DocumentoGed entity) { | ||
565 | + | ||
566 | + entity.setConteudo(entity.getConteudo().replace("@numeroDocumento@", entity.getNumero())); | ||
542 | } | 567 | } |
543 | 568 | ||
544 | @Override | 569 | @Override |
@@ -556,18 +581,19 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | @@ -556,18 +581,19 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl<DocumentoGed, Lo | ||
556 | 581 | ||
557 | this.montarEntidade(entity); | 582 | this.montarEntidade(entity); |
558 | 583 | ||
559 | - this.executarAcoesDocumentoOnline(entity); | ||
560 | - | ||
561 | this.gerarVersao(entity, versaoAnterior); | 584 | this.gerarVersao(entity, versaoAnterior); |
562 | 585 | ||
586 | + this.executarAcoesDocumentoOnline(entity); | ||
587 | + | ||
563 | entity.setDataEdicao(Calendar.getInstance()); | 588 | entity.setDataEdicao(Calendar.getInstance()); |
589 | + | ||
564 | entity.setId(null); | 590 | entity.setId(null); |
565 | 591 | ||
566 | entity = super.merge(entity); | 592 | entity = super.merge(entity); |
567 | 593 | ||
568 | entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); | 594 | entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); |
569 | 595 | ||
570 | - this.saveSolr(entity); | 596 | + // this.saveSolr(entity); |
571 | 597 | ||
572 | try { | 598 | try { |
573 | if (anexo != null) { | 599 | if (anexo != null) { |
cit-ecm-web/src/main/java/br/com/centralit/listener/StartupListenerEcm.java
@@ -392,6 +392,7 @@ public class StartupListenerEcm extends UtilStartup implements ApplicationListen | @@ -392,6 +392,7 @@ public class StartupListenerEcm extends UtilStartup implements ApplicationListen | ||
392 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.REMOVIDO_POR", "Removido por", dominio, modulo)); | 392 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.REMOVIDO_POR", "Removido por", dominio, modulo)); |
393 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.DATA_REMOCAO", "Data remoção", dominio, modulo)); | 393 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.DATA_REMOCAO", "Data remoção", dominio, modulo)); |
394 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.FORMA_NUMERACAO", "Forma de numeração", dominio, modulo)); | 394 | internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.FORMA_NUMERACAO", "Forma de numeração", dominio, modulo)); |
395 | + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.ADICIONAR_PARAMETRO_NUMERO", "Adicionar parâmetro número", dominio, modulo)); | ||
395 | 396 | ||
396 | 397 | ||
397 | } | 398 | } |
@@ -493,6 +494,7 @@ public class StartupListenerEcm extends UtilStartup implements ApplicationListen | @@ -493,6 +494,7 @@ public class StartupListenerEcm extends UtilStartup implements ApplicationListen | ||
493 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.ATRIBUICAO_PRIMEIRO_ACESSO", "Esté processo foi atribuido para você", dominio, modulo)); | 494 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.ATRIBUICAO_PRIMEIRO_ACESSO", "Esté processo foi atribuido para você", dominio, modulo)); |
494 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.DESEJA_CAPTURAR", "Desejá capturar o processo?", dominio, modulo)); | 495 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.DESEJA_CAPTURAR", "Desejá capturar o processo?", dominio, modulo)); |
495 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.CAPTURADO_SUCESSO", "Processo capturado com sucesso!", dominio, modulo)); | 496 | internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.CAPTURADO_SUCESSO", "Processo capturado com sucesso!", dominio, modulo)); |
497 | + internacionalizacaoList.add(new Internacionalizacao("ECM.MSG.LEGENDA_CAMPO_DINAMICO_NUMERO_DOCUMENTO", "Use: @numeroDocumento@ para adicionar o número do documento", dominio, modulo)); | ||
496 | 498 | ||
497 | 499 | ||
498 | 500 |
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/DocumentoGedController.js
@@ -141,8 +141,6 @@ citApp.controller('DocumentoGedController', ['$scope', 'DocumentoGedRepository', | @@ -141,8 +141,6 @@ citApp.controller('DocumentoGedController', ['$scope', 'DocumentoGedRepository', | ||
141 | } | 141 | } |
142 | }; | 142 | }; |
143 | 143 | ||
144 | - | ||
145 | - | ||
146 | $scope.saveDocumento = function(){ | 144 | $scope.saveDocumento = function(){ |
147 | var processo = { | 145 | var processo = { |
148 | id : $scope.$parent.$parent.processo.id | 146 | id : $scope.$parent.$parent.processo.id |
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/TemplatePadraoController.js
@@ -12,9 +12,6 @@ citApp.controller('TemplatePadraoController', ['$scope', 'TemplatePadraoReposito | @@ -12,9 +12,6 @@ citApp.controller('TemplatePadraoController', ['$scope', 'TemplatePadraoReposito | ||
12 | allowedContent: true, | 12 | allowedContent: true, |
13 | entities: false | 13 | entities: false |
14 | }; | 14 | }; |
15 | - | ||
16 | -// ckeditor.config.height = 150; | ||
17 | -// ckeditor.config.width = 'auto'; | ||
18 | 15 | ||
19 | // Limpa formulário para novo cadastro | 16 | // Limpa formulário para novo cadastro |
20 | $scope.resetForm = function() { | 17 | $scope.resetForm = function() { |
@@ -117,6 +114,12 @@ citApp.controller('TemplatePadraoController', ['$scope', 'TemplatePadraoReposito | @@ -117,6 +114,12 @@ citApp.controller('TemplatePadraoController', ['$scope', 'TemplatePadraoReposito | ||
117 | 114 | ||
118 | $scope.visualizar = false; | 115 | $scope.visualizar = false; |
119 | }; | 116 | }; |
117 | + | ||
118 | + // Adicionar numero do documento | ||
119 | + $scope.addTagNumero = function(){ | ||
120 | + | ||
121 | + $scope.templatePadrao.conteudo = $scope.templatePadrao.conteudo + "<span id='numeroDocumento'>{0}</span>"; | ||
122 | + }; | ||
120 | 123 | ||
121 | 124 | ||
122 | }]); | 125 | }]); |
cit-ecm-web/src/main/webapp/html/documentoGed/metadadosDocumentoEdit.html
@@ -49,7 +49,7 @@ | @@ -49,7 +49,7 @@ | ||
49 | <div class="row"> | 49 | <div class="row"> |
50 | <div class="col-md-4"> | 50 | <div class="col-md-4"> |
51 | <label-input ng-id="documentoGed.numero" ng-label="LABEL.NUMERO" ng-type="numerico" ng-model="documentoGed.numero" form="documentoGedForm" ng-obrigatorio="documentoGed.formaCriacao.codigo == 2" | 51 | <label-input ng-id="documentoGed.numero" ng-label="LABEL.NUMERO" ng-type="numerico" ng-model="documentoGed.numero" form="documentoGedForm" ng-obrigatorio="documentoGed.formaCriacao.codigo == 2" |
52 | - ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit || documentoGed.formaCriacao.codigo == 1" /> | 52 | + ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit || (documentoGed.formaCriacao.codigo == 1 && documentoGed.tipoDocumento.formaNumeracao.codigo != 2)" /> |
53 | </div> | 53 | </div> |
54 | 54 | ||
55 | <div class="row" ng-show='documentoGed.formaCriacao.codigo == 2'> | 55 | <div class="row" ng-show='documentoGed.formaCriacao.codigo == 2'> |
@@ -60,8 +60,6 @@ | @@ -60,8 +60,6 @@ | ||
60 | </div> | 60 | </div> |
61 | </div> | 61 | </div> |
62 | 62 | ||
63 | - | ||
64 | - | ||
65 | <div class="row"> | 63 | <div class="row"> |
66 | 64 | ||
67 | <div class="col-md-4"> | 65 | <div class="col-md-4"> |
cit-ecm-web/src/main/webapp/html/gerenciarProcesso/includeCabecalhoGerenciarProcesso.jsp
@@ -38,7 +38,6 @@ | @@ -38,7 +38,6 @@ | ||
38 | <translate>ECM.LABEL.CONCLUIR</translate> | 38 | <translate>ECM.LABEL.CONCLUIR</translate> |
39 | </button> | 39 | </button> |
40 | 40 | ||
41 | - | ||
42 | <button type="button" class="btn btn-clear" ng-click="newDocument()"> | 41 | <button type="button" class="btn btn-clear" ng-click="newDocument()"> |
43 | <i class="fa fa-book blue"></i> | 42 | <i class="fa fa-book blue"></i> |
44 | <translate>ECM.LABEL.INCLUIRDOCUMENTO</translate> | 43 | <translate>ECM.LABEL.INCLUIRDOCUMENTO</translate> |
@@ -71,7 +70,9 @@ | @@ -71,7 +70,9 @@ | ||
71 | <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()'><i class="fa fa-user-times">  </i> <translate>ECM.LABEL.RENUNCIAR_CREDENCIAL</translate> </a></li> |
72 | </sec:authorize> | 71 | </sec:authorize> |
73 | 72 | ||
74 | - <li><a href="#void" ng-click='classificarDocumentoProceso();'><i class="fa fa fa-eye">  </i> <translate>ECM.LABEL.VALIDAR_NIVEL_ACESSO</translate> </a></li> | 73 | + <sec:authorize access="hasAnyRole('USER_RESERVADO', 'USER_SECRETO', 'USER_ULTRASSECRETO')"> |
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 | + </sec:authorize> | ||
75 | 76 | ||
76 | <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"><i class="fa fa-male">  </i> <translate>ECM.LABEL.ATRIBUIR_PROCESSO</translate> </a></li> |
77 | 78 |
cit-ecm-web/src/main/webapp/html/gerenciarProcesso/includeInformacaoProcesso.html
@@ -144,14 +144,11 @@ | @@ -144,14 +144,11 @@ | ||
144 | <br> | 144 | <br> |
145 | <div class="row"> | 145 | <div class="row"> |
146 | <ul style="list-style-type: disc; margin-bottom: 3px" ng-repeat="processoUnidade in processoUnidades"> | 146 | <ul style="list-style-type: disc; margin-bottom: 3px" ng-repeat="processoUnidade in processoUnidades"> |
147 | - <li>{{processoUnidade.unidade.nome}} <span ng-if="processoUnidade.usuarioResponsavel">- {{processoUnidade.usuarioResponsavel.username}}</span></li> | 147 | + <li>{{processoUnidade.unidade.sigla}} <span ng-if="processoUnidade.usuarioResponsavel">- {{processoUnidade.usuarioResponsavel.username}}</span></li> |
148 | </ul> | 148 | </ul> |
149 | 149 | ||
150 | </div> | 150 | </div> |
151 | </div> | 151 | </div> |
152 | </div> | 152 | </div> |
153 | - | ||
154 | - | ||
155 | - | ||
156 | </div> | 153 | </div> |
157 | </div> | 154 | </div> |
158 | \ No newline at end of file | 155 | \ No newline at end of file |
cit-ecm-web/src/main/webapp/html/templatePadrao/templatePadraoEdit.html
@@ -63,14 +63,14 @@ | @@ -63,14 +63,14 @@ | ||
63 | 63 | ||
64 | <div class="row"> | 64 | <div class="row"> |
65 | <div class="col-md-4"> | 65 | <div class="col-md-4"> |
66 | - <label-input ng-id="templatePadrao.nome" ng-label="LABEL.NOME" ng-type="text" ng-model="templatePadrao.nome" form="templatePadraoForm" ng-obrigatorio="true" | ||
67 | - ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> | 66 | + <label-input ng-id="templatePadrao.nome" ng-label="LABEL.NOME" ng-type="text" ng-model="templatePadrao.nome" form="templatePadraoForm" ng-obrigatorio="true" ng-custom-maxlength="255" |
67 | + ng-type="text" ng-disabled="!edit" /> | ||
68 | 68 | ||
69 | </div> | 69 | </div> |
70 | 70 | ||
71 | <div class="col-md-4"> | 71 | <div class="col-md-4"> |
72 | - <auto-complete ng-id="templatePadrao.cabecalho" ng-label="ECM.LABEL.CABECALHO" ng-model="templatePadrao.cabecalho" form="templatePadraoForm" ng-obrigatorio="true" | ||
73 | - ng-disabled="!edit" ng-find="findAutoCompleteCabecalho(value);" ng-item="item.nome" /> | 72 | + <auto-complete ng-id="templatePadrao.cabecalho" ng-label="ECM.LABEL.CABECALHO" ng-model="templatePadrao.cabecalho" form="templatePadraoForm" ng-obrigatorio="true" ng-disabled="!edit" |
73 | + ng-find="findAutoCompleteCabecalho(value);" ng-item="item.nome" /> | ||
74 | </div> | 74 | </div> |
75 | 75 | ||
76 | <div class="col-md-4"> | 76 | <div class="col-md-4"> |
@@ -83,15 +83,24 @@ | @@ -83,15 +83,24 @@ | ||
83 | <div class="col-md-12"> | 83 | <div class="col-md-12"> |
84 | <fieldset> | 84 | <fieldset> |
85 | <legend> | 85 | <legend> |
86 | - <label class="control-label block" ng-class="{'has-error': !templatePadrao.conteudo && templatePadraoForm.$submitted}"> <translate>ECM.LABEL.CONTEUDO</translate><span | ||
87 | - class="red">*</span> <i ng-show="!templatePadrao.conteudo && templatePadraoForm.$submitted" class='fa fa-warning red' | 86 | + <label class="control-label block" ng-class="{'has-error': !templatePadrao.conteudo && templatePadraoForm.$submitted}"> <translate>ECM.LABEL.CONTEUDO</translate><span class="red">*</span> |
87 | + <i ng-show="!templatePadrao.conteudo && templatePadraoForm.$submitted" class='fa fa-warning red' | ||
88 | tooltip="{{$translate.instant('ECM.LABEL.CONTEUDO') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i></label> | 88 | tooltip="{{$translate.instant('ECM.LABEL.CONTEUDO') + ' ' +$translate.instant('LABEL.CAMPO_OBRIGATORIO')}}" tooltip-placement='top'></i></label> |
89 | </legend> | 89 | </legend> |
90 | 90 | ||
91 | <div class="row"> | 91 | <div class="row"> |
92 | + <div class="col-sm-12"> | ||
93 | + <label> | ||
94 | + <span>@numeroDocumento@</span> | ||
95 | + <i class="fa fa-question-circle" tooltip="{{$translate.instant('ECM.MSG.LEGENDA_CAMPO_DINAMICO_NUMERO_DOCUMENTO')}}" tooltip-placement="bottom"></i> | ||
96 | + </label> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + | ||
100 | + <div class="row"> | ||
92 | 101 | ||
93 | <div class="col-sm-12 text-right"> | 102 | <div class="col-sm-12 text-right"> |
94 | - <button class="btn btn-default btn-sm" ng-click="visualizarConteudo();" title="{{$translate.instant('LABEL.VISUALIZAR')}}" | 103 | + <button class="btn btn-default btn-sm" ng-click="visualizarConteudo();" type="button" title="{{$translate.instant('LABEL.VISUALIZAR')}}" |
95 | ng-if="templatePadrao.cabecalho.id && templatePadrao.rodape.id && !visualizar && edit"> | 104 | ng-if="templatePadrao.cabecalho.id && templatePadrao.rodape.id && !visualizar && edit"> |
96 | <i class="fa fa-search blue"></i> | 105 | <i class="fa fa-search blue"></i> |
97 | <translate>LABEL.VISUALIZAR</translate> | 106 | <translate>LABEL.VISUALIZAR</translate> |