Commit 04c0e068c824cbec0a25c0977c4b9195da8454b9

Authored by rogerio.costa
1 parent 10e17e48
Exists in master

#4289 - Implementação tipo suporte documento

Showing 17 changed files with 272 additions and 257 deletions   Show diff stats
cit-ecm-api/src/main/java/br/com/centralit/api/model/DocumentoGed.java
@@ -130,6 +130,17 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable { @@ -130,6 +130,17 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable {
130 @JsonView({ ViewsEcm.DocumentoGedEdit.class }) 130 @JsonView({ ViewsEcm.DocumentoGedEdit.class })
131 private Calendar dataReferencia; 131 private Calendar dataReferencia;
132 132
  133 + /** Atributo prazoSigilo. */
  134 + @Temporal(TemporalType.TIMESTAMP)
  135 + @JsonSerialize(using = JsonCalendarSimpleDateSerializer.class)
  136 + @JsonDeserialize(using = JsonCalendarSimpleDateDeserializer.class)
  137 + @JsonView({ ViewsEcm.DocumentoGedList.class })
  138 + private Calendar prazoSigilo;
  139 +
  140 + /** Atributo aprovado. */
  141 + @JsonView({ ViewsEcm.DocumentoGedEdit.class })
  142 + private Boolean aprovado;
  143 +
133 /** Atributo formaCriacao. */ 144 /** Atributo formaCriacao. */
134 @ManyToOne(fetch = FetchType.LAZY) 145 @ManyToOne(fetch = FetchType.LAZY)
135 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class }) 146 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class })
@@ -182,6 +193,11 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable { @@ -182,6 +193,11 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable {
182 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class, ViewsEcm.ClassificacaoDocumentoGedView.class }) 193 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class, ViewsEcm.ClassificacaoDocumentoGedView.class })
183 private Sigilo sigiloOriginal; 194 private Sigilo sigiloOriginal;
184 195
  196 + /** Atributo tipoSuporteDocumento. */
  197 + @ManyToOne(fetch = FetchType.LAZY)
  198 + @JsonView({ ViewsEcm.DocumentoGedEdit.class, ViewsEcm.ClassificacaoDocumentoGedView.class })
  199 + private TipoSuporteDocumento tipoSuporteDocumento;
  200 +
185 /** Atributo planoClassificacao. */ 201 /** Atributo planoClassificacao. */
186 @ManyToOne(fetch = FetchType.LAZY) 202 @ManyToOne(fetch = FetchType.LAZY)
187 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class }) 203 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class })
@@ -197,11 +213,6 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable { @@ -197,11 +213,6 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable {
197 @JsonView({ Views.ProcessoEdit.class, ViewsEcm.DocumentoGedEdit.class }) 213 @JsonView({ Views.ProcessoEdit.class, ViewsEcm.DocumentoGedEdit.class })
198 private HipoteseLegal hipoteseLegal; 214 private HipoteseLegal hipoteseLegal;
199 215
200 - /** Atributo Interessados. */  
201 - @OneToMany(fetch = FetchType.LAZY, mappedBy = "documentoGed", cascade = CascadeType.ALL, orphanRemoval = true)  
202 - @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class })  
203 - private Collection<InteressadoDocumento> interessados;  
204 -  
205 /** Atributo anexo. */ 216 /** Atributo anexo. */
206 @OneToOne(mappedBy = "documentoGed", fetch = FetchType.EAGER) 217 @OneToOne(mappedBy = "documentoGed", fetch = FetchType.EAGER)
207 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class, ViewsEcm.ClassificacaoDocumentoGedView.class }) 218 @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class, ViewsEcm.ClassificacaoDocumentoGedView.class })
@@ -219,16 +230,10 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable { @@ -219,16 +230,10 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable {
219 @JsonView({ Views.ProcessoEdit.class }) 230 @JsonView({ Views.ProcessoEdit.class })
220 private CancelamentoDocumentoGed cancelamentoDocumentoGed; 231 private CancelamentoDocumentoGed cancelamentoDocumentoGed;
221 232
222 - /** Atributo prazoSigilo. */  
223 - @Temporal(TemporalType.TIMESTAMP)  
224 - @JsonSerialize(using = JsonCalendarSimpleDateSerializer.class)  
225 - @JsonDeserialize(using = JsonCalendarSimpleDateDeserializer.class)  
226 - @JsonView({ ViewsEcm.DocumentoGedList.class })  
227 - private Calendar prazoSigilo;  
228 -  
229 - /** Atributo aprovado. */  
230 - @JsonView({ ViewsEcm.DocumentoGedEdit.class })  
231 - private Boolean aprovado; 233 + /** Atributo Interessados. */
  234 + @OneToMany(fetch = FetchType.LAZY, mappedBy = "documentoGed", cascade = CascadeType.ALL, orphanRemoval = true)
  235 + @JsonView({ ViewsEcm.DocumentoGedEdit.class, Views.ProcessoEdit.class })
  236 + private Collection<InteressadoDocumento> interessados;
232 237
233 /** 238 /**
234 * @return the novaVersao 239 * @return the novaVersao
@@ -948,4 +953,24 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable { @@ -948,4 +953,24 @@ public class DocumentoGed extends PersistentObjectUnidade implements Cloneable {
948 this.sigiloOriginal = sigiloOriginal; 953 this.sigiloOriginal = sigiloOriginal;
949 } 954 }
950 955
  956 + /**
  957 + * Retorna o valor do atributo <code>tipoSuporteDocumento</code>
  958 + *
  959 + * @return <code>TipoSuporteDocumento</code>
  960 + */
  961 + public TipoSuporteDocumento getTipoSuporteDocumento() {
  962 +
  963 + return tipoSuporteDocumento;
  964 + }
  965 +
  966 + /**
  967 + * Define o valor do atributo <code>tipoSuporteDocumento</code>.
  968 + *
  969 + * @param tipoSuporteDocumento
  970 + */
  971 + public void setTipoSuporteDocumento(TipoSuporteDocumento tipoSuporteDocumento) {
  972 +
  973 + this.tipoSuporteDocumento = tipoSuporteDocumento;
  974 + }
  975 +
951 } 976 }
cit-ecm-api/src/main/java/br/com/centralit/api/model/TipoSuporteDocumento.java
1 package br.com.centralit.api.model; 1 package br.com.centralit.api.model;
2 2
3 -import javax.persistence.Column;  
4 import javax.persistence.Entity; 3 import javax.persistence.Entity;
5 import javax.persistence.GeneratedValue; 4 import javax.persistence.GeneratedValue;
6 import javax.persistence.GenerationType; 5 import javax.persistence.GenerationType;
@@ -13,24 +12,36 @@ import com.fasterxml.jackson.annotation.JsonView; @@ -13,24 +12,36 @@ import com.fasterxml.jackson.annotation.JsonView;
13 12
14 /** 13 /**
15 * 14 *
16 - * <p><img src="http://centralit.com.br/images/logo_central.png"></p>  
17 - *  
18 - * <p><b>Company: </b> Central IT - Governança Corporativa - </p>  
19 - *  
20 - * <p><b>Title: </b></p>  
21 - *  
22 - * <p><b>Description: </b></p> 15 + * <p>
  16 + * <img src="http://centralit.com.br/images/logo_central.png">
  17 + * </p>
  18 + *
  19 + * <p>
  20 + * <b>Company: </b> Central IT - Governança Corporativa -
  21 + * </p>
  22 + *
  23 + * <p>
  24 + * <b>Title: </b>
  25 + * </p>
  26 + *
  27 + * <p>
  28 + * <b>Description: </b>
  29 + * </p>
  30 + *
  31 + * <p>
  32 + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a>
  33 + * </p>
  34 + *
  35 + * <p>
  36 + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a>
  37 + * </p>
23 * 38 *
24 - * <p><b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a></p>  
25 - *  
26 - * <p><b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a></p>  
27 - *  
28 * @since 04/04/2016 - 14:47:10 39 * @since 04/04/2016 - 14:47:10
29 - * 40 + *
30 * @version 1.0.0 41 * @version 1.0.0
31 - * 42 + *
32 * @author andre.silva 43 * @author andre.silva
33 - * 44 + *
34 */ 45 */
35 @Entity 46 @Entity
36 public class TipoSuporteDocumento extends PersistentObjectUnidade { 47 public class TipoSuporteDocumento extends PersistentObjectUnidade {
@@ -41,58 +52,50 @@ public class TipoSuporteDocumento extends PersistentObjectUnidade { @@ -41,58 +52,50 @@ public class TipoSuporteDocumento extends PersistentObjectUnidade {
41 @Id 52 @Id
42 @GeneratedValue(strategy = GenerationType.AUTO) 53 @GeneratedValue(strategy = GenerationType.AUTO)
43 @JsonView({ Views.GenericView.class }) 54 @JsonView({ Views.GenericView.class })
44 - protected Long id; 55 + private Long id;
45 56
46 - @Column(length = 64)  
47 - @JsonView({ ViewsEcm.TipoSuporteDocumentoEdit.class })  
48 - private String descricao; 57 + /** Atributo nome. */
  58 + @JsonView({ ViewsEcm.DocumentoGedEdit.class, ViewsEcm.TipoSuporteDocumentoEdit.class })
  59 + private String nome;
49 60
50 -  
51 -  
52 /** 61 /**
53 * Retorna o valor do atributo <code>id</code> 62 * Retorna o valor do atributo <code>id</code>
54 - * 63 + *
55 * @return <code>Long</code> 64 * @return <code>Long</code>
56 */ 65 */
57 public Long getId() { 66 public Long getId() {
58 - 67 +
59 return id; 68 return id;
60 } 69 }
61 70
62 -  
63 /** 71 /**
64 * Define o valor do atributo <code>id</code>. 72 * Define o valor do atributo <code>id</code>.
65 - *  
66 - * @param id 73 + *
  74 + * @param id
67 */ 75 */
68 public void setId(Long id) { 76 public void setId(Long id) {
69 - 77 +
70 this.id = id; 78 this.id = id;
71 } 79 }
72 80
73 -  
74 -  
75 /** 81 /**
76 - * Retorna o valor do atributo <code>descricao</code>  
77 - * 82 + * Retorna o valor do atributo <code>nome</code>
  83 + *
78 * @return <code>String</code> 84 * @return <code>String</code>
79 */ 85 */
80 - public String getDescricao() {  
81 -  
82 - return descricao; 86 + public String getNome() {
  87 +
  88 + return nome;
83 } 89 }
84 90
85 -  
86 /** 91 /**
87 - * Define o valor do atributo <code>descricao</code>.  
88 - *  
89 - * @param descricao 92 + * Define o valor do atributo <code>nome</code>.
  93 + *
  94 + * @param nome
90 */ 95 */
91 - public void setDescricao(String descricao) {  
92 -  
93 - this.descricao = descricao;  
94 - }  
95 - 96 + public void setNome(String nome) {
96 97
  98 + this.nome = nome;
  99 + }
97 100
98 } 101 }
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/AnexoGedServiceImpl.java
@@ -107,7 +107,7 @@ public class AnexoGedServiceImpl extends GenericServiceImpl&lt;AnexoGed, Long&gt; impl @@ -107,7 +107,7 @@ public class AnexoGedServiceImpl extends GenericServiceImpl&lt;AnexoGed, Long&gt; impl
107 107
108 documentoGed.setConteudo(this.gedFileService.doOcr(anexo)); 108 documentoGed.setConteudo(this.gedFileService.doOcr(anexo));
109 109
110 - this.solrService.addDocumento(documentoGed); 110 +// this.solrService.addDocumento(documentoGed);
111 111
112 anexo.setDocumentoGed(documentoGed); 112 anexo.setDocumentoGed(documentoGed);
113 113
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/DocumentoGedServiceImpl.java
@@ -176,7 +176,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl&lt;DocumentoGed, Lo @@ -176,7 +176,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl&lt;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
@@ -567,7 +567,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl&lt;DocumentoGed, Lo @@ -567,7 +567,7 @@ public class DocumentoGedServiceImpl extends GenericServiceImpl&lt;DocumentoGed, Lo
567 567
568 entity.setConteudo(this.decrypted(entity.getConteudoCriptografado())); 568 entity.setConteudo(this.decrypted(entity.getConteudoCriptografado()));
569 569
570 - this.saveSolr(entity); 570 + // this.saveSolr(entity);
571 571
572 try { 572 try {
573 if (anexo != null) { 573 if (anexo != null) {
cit-ecm-api/src/main/java/br/com/centralit/api/service/impl/InicializarEcmServiceImpl.java
@@ -215,13 +215,6 @@ public class InicializarEcmServiceImpl extends UtilStartup { @@ -215,13 +215,6 @@ public class InicializarEcmServiceImpl extends UtilStartup {
215 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/AtribuirProcessoController.min.js", this.dominioJS, menuCadastroProcesso)); 215 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/AtribuirProcessoController.min.js", this.dominioJS, menuCadastroProcesso));
216 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/HistoricoAtribuicaoProcessoRepository.js", this.dominioJS, menuCadastroProcesso)); 216 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/HistoricoAtribuicaoProcessoRepository.js", this.dominioJS, menuCadastroProcesso));
217 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/HistoricoAtribuicaoProcessoRepository.min.js", this.dominioJS, menuCadastroProcesso)); 217 filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/HistoricoAtribuicaoProcessoRepository.min.js", this.dominioJS, menuCadastroProcesso));
218 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/TipoSuporteDocumentoRepository.js", this.dominioJS, menuCadastroProcesso));  
219 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/repository/TipoSuporteDocumentoRepository.min.js", this.dominioJS, menuCadastroProcesso));  
220 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/TipoServicoDocumentoController.js", this.dominioJS, menuCadastroProcesso));  
221 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/TipoServicoDocumentoController.min.js", this.dominioJS, menuCadastroProcesso));  
222 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/TipoSuporteDocumentoListController.js", this.dominioJS, menuCadastroProcesso));  
223 - filesProcesso.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/TipoSuporteDocumentoListController.min.js", this.dominioJS, menuCadastroProcesso));  
224 -  
225 218
226 menuCadastroProcesso.setIncludes(filesProcesso); 219 menuCadastroProcesso.setIncludes(filesProcesso);
227 this.menuService.mergeIfNotExist(menuCadastroProcesso); 220 this.menuService.mergeIfNotExist(menuCadastroProcesso);
@@ -255,14 +248,14 @@ public class InicializarEcmServiceImpl extends UtilStartup { @@ -255,14 +248,14 @@ public class InicializarEcmServiceImpl extends UtilStartup {
255 Menu menuProcessoDocumentoSigiloso = new Menu("Processos e Documentos Sigilosos", pgProcessoDocumentoSigiloso, menuProcesso, 2, 5, null, null, null, null, modulo, "CLASSIFICAR_PROCESSO_DOCUMENTO"); 248 Menu menuProcessoDocumentoSigiloso = new Menu("Processos e Documentos Sigilosos", pgProcessoDocumentoSigiloso, menuProcesso, 2, 5, null, null, null, null, modulo, "CLASSIFICAR_PROCESSO_DOCUMENTO");
256 menuProcessoDocumentoSigiloso.setIncludes(this.gerarArquivosMenu(menuProcessoDocumentoSigiloso, this.CIT_ECM_WEB_ANGULAR, "ClassificarDocumentoProcesso", true, true, true)); 249 menuProcessoDocumentoSigiloso.setIncludes(this.gerarArquivosMenu(menuProcessoDocumentoSigiloso, this.CIT_ECM_WEB_ANGULAR, "ClassificarDocumentoProcesso", true, true, true));
257 this.menuService.mergeIfNotExist(menuProcessoDocumentoSigiloso); 250 this.menuService.mergeIfNotExist(menuProcessoDocumentoSigiloso);
258 - 251 +
259 Pagina pgGerenciarProcessoListUnidade = new Pagina("Processos Abertos na Unidade", "/cit-ecm-web/html/gerenciarProcesso/gerenciarProcessoListUnidade.html"); 252 Pagina pgGerenciarProcessoListUnidade = new Pagina("Processos Abertos na Unidade", "/cit-ecm-web/html/gerenciarProcesso/gerenciarProcessoListUnidade.html");
260 pgGerenciarProcessoListUnidade = this.paginaService.saveIfNotExist(pgGerenciarProcessoListUnidade); 253 pgGerenciarProcessoListUnidade = this.paginaService.saveIfNotExist(pgGerenciarProcessoListUnidade);
261 - 254 +
262 Menu menuGerenciarProcessoListUnidade = new Menu("Processos Abertos na Unidade", pgGerenciarProcessoListUnidade, menuProcesso, 2, 6, null, null, null, null, modulo, "PROCESSO_ABERTO_UNIDADE"); 255 Menu menuGerenciarProcessoListUnidade = new Menu("Processos Abertos na Unidade", pgGerenciarProcessoListUnidade, menuProcesso, 2, 6, null, null, null, null, modulo, "PROCESSO_ABERTO_UNIDADE");
263 List<MenuFile> filesGerenciarProcessoListUnidade = new ArrayList<MenuFile>(); 256 List<MenuFile> filesGerenciarProcessoListUnidade = new ArrayList<MenuFile>();
264 257
265 - filesGerenciarProcessoListUnidade.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/GerenciarProcessoListUnidadeController.js", this.dominioJS, menuGerenciarProcessoListUnidade)); 258 + filesGerenciarProcessoListUnidade.add(new MenuFile("/cit-ecm-web/assets/js/angular/custom/controller/GerenciarProcessoListUnidadeController.js", this.dominioJS, menuGerenciarProcessoListUnidade));
266 menuGerenciarProcessoListUnidade.setIncludes(filesGerenciarProcessoListUnidade); 259 menuGerenciarProcessoListUnidade.setIncludes(filesGerenciarProcessoListUnidade);
267 this.menuService.mergeIfNotExist(menuGerenciarProcessoListUnidade); 260 this.menuService.mergeIfNotExist(menuGerenciarProcessoListUnidade);
268 261
@@ -338,6 +331,14 @@ public class InicializarEcmServiceImpl extends UtilStartup { @@ -338,6 +331,14 @@ public class InicializarEcmServiceImpl extends UtilStartup {
338 menuCabecalho.setIncludes(this.gerarArquivosMenu(menuCabecalho, this.CIT_ECM_WEB_ANGULAR, "Cabecalho", true, true, true)); 331 menuCabecalho.setIncludes(this.gerarArquivosMenu(menuCabecalho, this.CIT_ECM_WEB_ANGULAR, "Cabecalho", true, true, true));
339 this.menuService.mergeIfNotExist(menuCabecalho); 332 this.menuService.mergeIfNotExist(menuCabecalho);
340 333
  334 + // Submenu tipoSuporteDocumento
  335 + Pagina pgTipoSuporteDocumento = new Pagina("Tipo suporte de documento", "/cit-ecm-web/html/tipoSuporteDocumento/tipoSuporteDocumento.html");
  336 + pgTipoSuporteDocumento = this.paginaService.saveIfNotExist(pgTipoSuporteDocumento);
  337 +
  338 + Menu menuSuporteDocumento = new Menu("Tipo suporte de documento", pgTipoSuporteDocumento, menuCadastroBasico, 0, 8, null, null, null, null, modulo);
  339 + menuSuporteDocumento.setIncludes(this.gerarArquivosMenu(menuSuporteDocumento, this.CIT_ECM_WEB_ANGULAR, "TipoSuporteDocumento", true, true, true));
  340 + this.menuService.mergeIfNotExist(menuSuporteDocumento);
  341 +
341 } 342 }
342 343
343 } 344 }
cit-ecm-web/src/main/java/br/com/centralit/listener/StartupListenerEcm.java
@@ -392,6 +392,12 @@ public class StartupListenerEcm extends UtilStartup implements ApplicationListen @@ -392,6 +392,12 @@ 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.DADOS_SUPORTE_DOCUMENTO", "Dados do suporte de documento", dominio, modulo));
  396 + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.TIPO_SUPORTE", "Tipo de suporte", dominio, modulo));
  397 + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.OUTROS", "Outros", dominio, modulo));
  398 + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.NOME_NOVO_SUPORTE ", "Nome do suporte", dominio, modulo));
  399 + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.NOVO_TIPO_SUPORTE ", "Novo tipo suporte de documento", dominio, modulo));
  400 + internacionalizacaoList.add(new Internacionalizacao("ECM.LABEL.TIPO_SUPORTE_DOCUMENTO ", "Tipo suporte de documento", dominio, modulo));
395 401
396 402
397 } 403 }
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/DocumentoGedController.js
1 'use strict'; 1 'use strict';
2 2
3 citApp.controller('DocumentoGedController', ['$scope', 'DocumentoGedRepository', '$translate', '$timeout', 'TipoDocumentoRepository', 'PlanoClassificacaoRepository', 'HipoteseLegalRepository', 'PessoaRepository', 'NivelAcessoTipoDocumentoRepository', 'TipoDocumentoPlanoClassificacaoRepository', '$filter', 'FileUploader', 'AnexoGedRepository', 'HistoricoAlteracaoProcessoRepository', 'DominioRepository', 3 citApp.controller('DocumentoGedController', ['$scope', 'DocumentoGedRepository', '$translate', '$timeout', 'TipoDocumentoRepository', 'PlanoClassificacaoRepository', 'HipoteseLegalRepository', 'PessoaRepository', 'NivelAcessoTipoDocumentoRepository', 'TipoDocumentoPlanoClassificacaoRepository', '$filter', 'FileUploader', 'AnexoGedRepository', 'HistoricoAlteracaoProcessoRepository', 'DominioRepository',
4 - 'TemplatePadraoRepository', 'CabecalhoRepository', 'RodapeRepository', 'InteressadoDocumentoRepository', function DocumentoGedController($scope, DocumentoGedRepository, $translate, $timeout, TipoDocumentoRepository, PlanoClassificacaoRepository, HipoteseLegalRepository, PessoaRepository, NivelAcessoTipoDocumentoRepository, TipoDocumentoPlanoClassificacaoRepository, $filter, FileUploader, AnexoGedRepository, HistoricoAlteracaoProcessoRepository, DominioRepository, TemplatePadraoRepository, CabecalhoRepository, RodapeRepository, InteressadoDocumentoRepository) { 4 + 'TemplatePadraoRepository', 'CabecalhoRepository', 'RodapeRepository', 'InteressadoDocumentoRepository', 'TipoSuporteDocumentoRepository', function DocumentoGedController($scope, DocumentoGedRepository, $translate, $timeout, TipoDocumentoRepository, PlanoClassificacaoRepository, HipoteseLegalRepository, PessoaRepository, NivelAcessoTipoDocumentoRepository, TipoDocumentoPlanoClassificacaoRepository, $filter, FileUploader, AnexoGedRepository, HistoricoAlteracaoProcessoRepository, DominioRepository, TemplatePadraoRepository, CabecalhoRepository, RodapeRepository, InteressadoDocumentoRepository, TipoSuporteDocumentoRepository) {
5 5
6 $scope.documentoGed = {}; 6 $scope.documentoGed = {};
7 $scope.changeWatch = false; 7 $scope.changeWatch = false;
  8 + $scope.outrosSuporte = false;
8 9
9 $scope.setForm = function(scope){ 10 $scope.setForm = function(scope){
10 this.documentoGedForm = scope.documentoGedForm; 11 this.documentoGedForm = scope.documentoGedForm;
@@ -60,14 +61,15 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;, @@ -60,14 +61,15 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;,
60 }); 61 });
61 }; 62 };
62 63
  64 + //Abre a tela de cadastro de tipoSuporte
63 $scope.novoTipoSuporteDocumento = function() { 65 $scope.novoTipoSuporteDocumento = function() {
64 - $scope.openWorkspaceIfNotOpen($translate.instant('LABEL.PESSOA'), '/cit-ecm-web/html/tipoSuporteDocumento/tipoSuporteDocumento.html', 'mod-orange'); 66 + $scope.openWorkspaceIfNotOpen($translate.instant('ECM.LABEL.TIPO_SUPORTE_DOCUMENTO'), '/cit-ecm-web/html/tipoSuporteDocumento/tipoSuporteDocumento.html', 'mod-orange');
65 67
66 $timeout(function() { 68 $timeout(function() {
67 angular.element('#searchTipoSuporteDocumento').scope().$showPageEditWorkspace(angular.element('#searchTipoSuporteDocumento').scope().workspace); 69 angular.element('#searchTipoSuporteDocumento').scope().$showPageEditWorkspace(angular.element('#searchTipoSuporteDocumento').scope().workspace);
68 angular.element('#tipoSuporteDocumentoEdit').scope().resetForm(); 70 angular.element('#tipoSuporteDocumentoEdit').scope().resetForm();
69 71
70 - }, 600); 72 + }, 300);
71 73
72 }; 74 };
73 75
@@ -165,7 +167,9 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;, @@ -165,7 +167,9 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;,
165 $scope.removePropriedades(); 167 $scope.removePropriedades();
166 168
167 DocumentoGedRepository.save($scope.documentoGed).then(function(result) { 169 DocumentoGedRepository.save($scope.documentoGed).then(function(result) {
  170 +
168 $scope.documentoGed = result.originalElement; 171 $scope.documentoGed = result.originalElement;
  172 +
169 $scope.saveUpload(); 173 $scope.saveUpload();
170 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); 174 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO'));
171 $scope.documentoGedForm.$submitted = false; 175 $scope.documentoGedForm.$submitted = false;
@@ -650,6 +654,12 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;, @@ -650,6 +654,12 @@ citApp.controller(&#39;DocumentoGedController&#39;, [&#39;$scope&#39;, &#39;DocumentoGedRepository&#39;,
650 654
651 $window.location.href = (href); 655 $window.location.href = (href);
652 656
653 - } 657 + };
  658 +
  659 + $scope.findAutoCompleteTipoSuporte = function(value){
  660 + return TipoSuporteDocumentoRepository.findAutoComplete("nome", value).then(function(result) {
  661 + return result;
  662 + });
  663 + };
654 664
655 }]); 665 }]);
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/TipoSuporteDocumentoController.js
1 'use strict'; 1 'use strict';
2 2
3 citApp.controller('TipoSuporteDocumentoController', ['$scope', 'TipoSuporteDocumentoRepository', '$filter', '$translate', '$timeout', function TipoSuporteDocumentoController($scope, TipoSuporteDocumentoRepository, $filter, $translate, $timeout) { 3 citApp.controller('TipoSuporteDocumentoController', ['$scope', 'TipoSuporteDocumentoRepository', '$filter', '$translate', '$timeout', function TipoSuporteDocumentoController($scope, TipoSuporteDocumentoRepository, $filter, $translate, $timeout) {
4 - $scope.privilegio = {}; 4 + $scope.tipoSuporteDocumento = {};
5 5
6 6
7 // Limpa formulário para novo cadastro 7 // Limpa formulário para novo cadastro
8 $scope.resetForm = function() { 8 $scope.resetForm = function() {
9 $scope.limparPrivilegio(); 9 $scope.limparPrivilegio();
10 $scope.edit = true; 10 $scope.edit = true;
11 - $scope.pgEdit = true;  
12 $timeout(function(){ 11 $timeout(function(){
13 - $scope.privilegioForm.$submitted = false;  
14 - $scope.privilegioForm.$setPristine(); 12 + $scope.tipoSuporteDocumentoForm.$submitted = false;
  13 + $scope.tipoSuporteDocumentoForm.$setPristine();
15 }); 14 });
16 }; 15 };
17 16
18 // Atualiza pagina de pesquisa 17 // Atualiza pagina de pesquisa
19 $scope.atualizaPaginaPesquisa = function () { 18 $scope.atualizaPaginaPesquisa = function () {
20 - angular.element('#searchPrivilegio').scope().fetchResult();  
21 - };  
22 -  
23 -  
24 -  
25 - // MODAL QUE CONFIRMA REMOVER DO PAIS  
26 - $scope.remove = function(pais){  
27 - $scope.pais = pais;  
28 - $scope.$openModalConfirm({  
29 - message: $translate.instant('MSG.DESEJA_EXCLUIR_ITENS'),  
30 - callback: function () {  
31 - PrivilegioRepository.remove($scope.privilegio).then(function() {  
32 -  
33 - $scope.$modalConfirmInstance.dismiss('cancel');  
34 - $scope.showAlert("success", $translate.instant('MSG.SUCESSO_PRIVILEGIO_EXCLUIDO'));  
35 - angular.element('#searchPrivilegio').scope().fetchResult();  
36 -  
37 - $scope.resetForm();  
38 - });  
39 - }  
40 - }); 19 + angular.element('#searchTipoSuporteDocumento').scope().fetchResult();
41 }; 20 };
42 21
43 // SALVA O PAIS 22 // SALVA O PAIS
44 $scope.saveOrUpdate = function(){ 23 $scope.saveOrUpdate = function(){
45 - $scope.privilegioForm.$submitted = true; 24 + $scope.tipoSuporteDocumentoForm.$submitted = true;
46 25
47 //verifica se o formulario está valido para salvar 26 //verifica se o formulario está valido para salvar
48 - if($scope.privilegioForm.$valid){ 27 + if($scope.tipoSuporteDocumentoForm.$valid){
49 28
50 $scope.setLoadingSalva(true); 29 $scope.setLoadingSalva(true);
51 30
52 - PrivilegioRepository.save($scope.privilegio).then(function(result) {  
53 - $scope.privilegio = result.originalElement; 31 + TipoSuporteDocumentoRepository.save($scope.tipoSuporteDocumento).then(function(result) {
  32 + $scope.tipoSuporteDocumento = result.originalElement;
54 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO')); 33 $scope.showAlert("success", $translate.instant('MSG.REGISTRO_SALVO'));
55 - $scope.privilegioForm.$submitted = false; 34 + $scope.tipoSuporteDocumentoForm.$submitted = false;
56 $scope.setLoading(false); 35 $scope.setLoading(false);
57 }); 36 });
58 }else{ 37 }else{
@@ -64,29 +43,23 @@ citApp.controller(&#39;TipoSuporteDocumentoController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteDocum @@ -64,29 +43,23 @@ citApp.controller(&#39;TipoSuporteDocumentoController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteDocum
64 43
65 // Limpa o formulario preenchido 44 // Limpa o formulario preenchido
66 $scope.limparPrivilegio = function(){ 45 $scope.limparPrivilegio = function(){
67 - $scope.privilegio = {}; 46 + $scope.tipoSuporteDocumento = {};
68 }; 47 };
69 48
70 49
71 50
72 // Consulta entidade e mostra no formulario 51 // Consulta entidade e mostra no formulario
73 - $scope.getPrivilegio = function(privilegio, edit){ 52 + $scope.getTipoSuporteDocumento = function(tipoSuporteDocumento, edit){
74 $scope.setLoadingGet(true); 53 $scope.setLoadingGet(true);
75 54
76 - PrivilegioRepository.get(privilegio.id).then(function(result) {  
77 - $scope.privilegio = result.originalElement; 55 + TipoSuporteDocumentoRepository.get(tipoSuporteDocumento.id).then(function(result) {
  56 + $scope.tipoSuporteDocumento = result.originalElement;
78 $scope.pgEdit = edit; 57 $scope.pgEdit = edit;
79 $scope.edit = edit; 58 $scope.edit = edit;
80 $scope.setLoading(false); 59 $scope.setLoading(false);
81 }); 60 });
82 }; 61 };
83 62
84 - //faz uppercase na string  
85 - $scope.$watch('privilegio.nome', function (val) {  
86 -  
87 - $scope.privilegio.nome = $filter('uppercase')(val);  
88 - }, true);  
89 -  
90 }]); 63 }]);
91 64
92 65
cit-ecm-web/src/main/webapp/assets/js/angular/custom/controller/TipoSuporteDocumentoListController.js
1 'use strict'; 1 'use strict';
2 2
3 -citApp.controller('TipoSuporteDocumentoListController', ['$scope', 'TipoSuporteDocumentoRepository', '$translate', '$modal', '$timeout',  
4 - function TipoSuporteDocumentoListController($scope, TipoSuporteDocumentoRepository, $translate, $modal, $timeout) { 3 +citApp.controller('TipoSuporteDocumentoListController', ['$scope', 'TipoSuporteDocumentoRepository', '$translate', '$modal', '$timeout', function TipoSuporteDocumentoListController($scope, TipoSuporteDocumentoRepository, $translate, $modal, $timeout) {
  4 +
5 $scope.$showAdvancedFilters = false; 5 $scope.$showAdvancedFilters = false;
6 6
7 // Chama controlleredit para limpar o formulario de cadastro 7 // Chama controlleredit para limpar o formulario de cadastro
@@ -10,10 +10,7 @@ citApp.controller(&#39;TipoSuporteDocumentoListController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteD @@ -10,10 +10,7 @@ citApp.controller(&#39;TipoSuporteDocumentoListController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteD
10 }; 10 };
11 11
12 $scope.headers = [ 12 $scope.headers = [
13 - {  
14 - title : $translate.instant('LABEL.DESCRICAO'),  
15 - value : 'descricao'  
16 - }]; 13 + {title : $translate.instant('LABEL.NOME'), value : 'nome'}];
17 14
18 // default criteria that will be sent to the server 15 // default criteria that will be sent to the server
19 $scope.filterCriteria = { 16 $scope.filterCriteria = {
@@ -21,20 +18,20 @@ citApp.controller(&#39;TipoSuporteDocumentoListController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteD @@ -21,20 +18,20 @@ citApp.controller(&#39;TipoSuporteDocumentoListController&#39;, [&#39;$scope&#39;, &#39;TipoSuporteD
21 dir : 'asc', 18 dir : 'asc',
22 sort : 'id', 19 sort : 'id',
23 limit : 10, 20 limit : 10,
24 - fields: ['id','descricao'],  
25 - filters : [{type: 'string', field: 'descricao'}] 21 + fields: ['id','nome'],
  22 + filters : [{type: 'string', field: 'nome'}]
26 }; 23 };
27 24
28 // ABRI PAIS SELECIONADO 25 // ABRI PAIS SELECIONADO
29 - $scope.abrirPrivilegio = function(edit){ 26 + $scope.abrirTipoSuporteDocumento = function(edit){
30 var tipoSuporteDocumento = $scope.tipoSuporteDocumentoChecked; 27 var tipoSuporteDocumento = $scope.tipoSuporteDocumentoChecked;
31 28
32 - if(!edit && !privilegio) { 29 + if(!edit && !tipoSuporteDocumento) {
33 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO')); 30 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO'));
34 return; 31 return;
35 } 32 }
36 33
37 - if(edit && !privilegio) { 34 + if(edit && !tipoSuporteDocumento) {
38 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO')); 35 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO'));
39 return; 36 return;
40 } 37 }
cit-ecm-web/src/main/webapp/assets/js/angular/custom/repository/TipoSuporteDocumentoRepository.js
1 -citApp.factory('TipoSuporteDocumentoRepository', ['Restangular','AbstractRepository', function(restangular, AbstractRepository) { 1 +citApp.factory('TipoSuporteDocumentoRepository', ['RestangularEcm','AbstractRepository', function(restangularEcm, AbstractRepository) {
2 2
3 3
4 function TipoSuporteDocumentoRepository(){ 4 function TipoSuporteDocumentoRepository(){
5 - AbstractRepository.call(this, restangular, 'rest/tipoSuporteDocumento'); 5 + AbstractRepository.call(this, restangularEcm, 'rest/tipoSuporteDocumento');
6 }; 6 };
7 7
8 AbstractRepository.extend(TipoSuporteDocumentoRepository); 8 AbstractRepository.extend(TipoSuporteDocumentoRepository);
cit-ecm-web/src/main/webapp/html/documentoGed/metadadosDocumentoEdit.html
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 35
36 </div> 36 </div>
37 </div> 37 </div>
38 - 38 +
39 <div class="row"> 39 <div class="row">
40 40
41 <div class="col-md-8"> 41 <div class="col-md-8">
@@ -134,26 +134,34 @@ @@ -134,26 +134,34 @@
134 </div> 134 </div>
135 </div> 135 </div>
136 136
137 - <div class="row">  
138 - <div class="col-md-12">  
139 -  
140 - <label-text-area ng-id="documentoGed.assuntoComplementar" ng-label="ECM.LABEL.ASSUNTOCOMPLEMENTAR" ng-model="documentoGed.assuntoComplementar" form="documentoGedForm" ng-obrigatorio="false"  
141 - ng-disabled="!edit" rows="3" /> 137 + <div class="row" ng-show='documentoGed.formaCriacao.codigo == 2'>
  138 + <div class="col-md-6">
  139 + <auto-complete ng-id="documentoGed.tipoSuporteDocumento" ng-label="ECM.LABEL.TIPO_SUPORTE" ng-disabled="!edit" form='documentoGedForm' ng-model="documentoGed.tipoSuporteDocumento"
  140 + ng-find="findAutoCompleteTipoSuporte(value)" button-new-action="novoTipoSuporteDocumento()" button-new-tooltip="{{$translate.instant('ECM.LABEL.NOVO_TIPO_SUPORTE')}}" button-new-show="true" ng-item="item.nome" ng-obrigatorio="{{documentoGed.formaCriacao.codigo == 2 && !outrosSuporte}}" />
142 </div> 141 </div>
  142 +
143 </div> 143 </div>
  144 +
144 <div class="row" ng-show='documentoGed.formaCriacao.codigo == 2'> 145 <div class="row" ng-show='documentoGed.formaCriacao.codigo == 2'>
145 146
146 - <div class="col-md-4"> 147 + <div class="col-md-2">
147 <label-input-checkbox ng-model="mantido" ng-disabled="!edit" ng-label="ECM.LABEL.MANTIDO" ng-custom-change="limparLocalizacao()"></label-input-checkbox> 148 <label-input-checkbox ng-model="mantido" ng-disabled="!edit" ng-label="ECM.LABEL.MANTIDO" ng-custom-change="limparLocalizacao()"></label-input-checkbox>
148 </div> 149 </div>
149 -  
150 - <div class="col-md-8" ng-show="mantido"> 150 + <div class="col-md-10" ng-show="mantido">
151 <label-input ng-id="documentoGed.localizacao" ng-label="LABEL.LOCALIZACAO" ng-type="text" ng-model="documentoGed.localizacao" form="documentoGedForm" ng-obrigatorio="mantido" 151 <label-input ng-id="documentoGed.localizacao" ng-label="LABEL.LOCALIZACAO" ng-type="text" ng-model="documentoGed.localizacao" form="documentoGedForm" ng-obrigatorio="mantido"
152 ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" /> 152 ng-custom-maxlength="255" ng-type="text" ng-disabled="!edit" />
153 </div> 153 </div>
154 154
155 </div> 155 </div>
156 156
  157 + <div class="row">
  158 + <div class="col-md-12">
  159 +
  160 + <label-text-area ng-id="documentoGed.assuntoComplementar" ng-label="ECM.LABEL.ASSUNTOCOMPLEMENTAR" ng-model="documentoGed.assuntoComplementar" form="documentoGedForm" ng-obrigatorio="false"
  161 + ng-disabled="!edit" rows="3" />
  162 + </div>
  163 + </div>
  164 +
157 <fieldset> 165 <fieldset>
158 166
159 <legend> 167 <legend>
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoServicoDocumento.html
@@ -1,2 +0,0 @@ @@ -1,2 +0,0 @@
1 -<div ng-include src="'/cit-portal-web/html/tipoSuporteDocumento/tipoSuporteDocumentoList.html'" ng-show="workspace.$showSearch" />  
2 -<div ng-include src="'/cit-portal-web/html/tipoSuporteDocumento/tipoSuporteDocumentoEdit.html'" ng-show="workspace.$showEdit" />  
3 \ No newline at end of file 0 \ No newline at end of file
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoServicoDocumentoEdit.html
@@ -1,77 +0,0 @@ @@ -1,77 +0,0 @@
1 -<div id="editTipoServicoDocumento" class="page-content clearfix" ng-controller="TipoSuporteDocumentoController">  
2 - <div class="bar-buttons-action fixed">  
3 - <div class="row">  
4 - <div class="col-sm-8 text-left">  
5 - <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}" class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit" type="button">  
6 - <i class="fa fa-save green"></i>  
7 - <translate>LABEL.SALVAR</translate>  
8 - </button>  
9 -  
10 - <button title="{{$translate.instant('LABEL.LIMPAR')}}" alt="{{$translate.instant('LABEL.LIMPAR')}}" class="btn btn-clear" ng-click="resetForm();" ng-show="privilegio.id === undefined"  
11 - type="button">  
12 - <i class="fa fa-eraser yellow-dark"></i>  
13 - <translate>LABEL.LIMPAR</translate>  
14 - </button>  
15 -  
16 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-show="!(pgEdit || edit)" ng-click="edit = true; pgEdit = true;"  
17 - type="button">  
18 - <i class="fa fa-pencil blue"></i>  
19 - <translate>LABEL.EDITAR</translate>  
20 - </button>  
21 -  
22 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove(privilegio);" ng-show="privilegio.id !== undefined"  
23 - type="button">  
24 - <i class="fa fa-times red"></i>  
25 - <translate>LABEL.REMOVER</translate>  
26 - </button>  
27 -  
28 - <bloquear-desbloquear ng-model="TipoServicoDocumento" ng-repository="TipoServicoDocumentoRepository" ng-edit="edit" form="TipoServicoDocumentoForm"></bloquear-desbloquear>  
29 -  
30 - <button title="{{$translate.instant('LABEL.PESQUISAR')}}" alt="{{$translate.instant('LABEL.PESQUISAR')}}" class="btn btn-clear"  
31 - ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();" type="button">  
32 - <i class="fa fa-search"></i>  
33 - <translate>LABEL.PESQUISAR</translate>  
34 - </button>  
35 - </div>  
36 - <!-- .col -->  
37 -  
38 - <div class="col-sm-4 text-right">  
39 - <favorito />  
40 -  
41 - <help-button workspace="workspace" />  
42 - </div>  
43 - <!-- .col -->  
44 - </div>  
45 - <!-- .row -->  
46 - </div>  
47 - <!-- .bar-buttons-action -->  
48 -  
49 - <breadcrumb ng-workspace="workspace"></breadcrumb>  
50 -  
51 - <form name="privilegioForm" id="editPermissao" novalidate autocomplete="off">  
52 - <p>  
53 - <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small>  
54 - </p>  
55 -  
56 - <fieldset>  
57 - <legend>  
58 - <translate>LABEL.DADOS_PRIVILEGIO</translate>  
59 - </legend>  
60 -  
61 - <div class="row">  
62 - <div class="col-sm-6">  
63 -  
64 - <label-input-identifier ng-id="privilegio.nome" name="privilegio.nome" ng-typ="text" ng-obrigatorio='true' ng-custom-maxlength='255' form="privilegioForm" ng-label="LABEL.NOME"  
65 - ng-model="privilegio.nome" ng-disabled="!edit"></label-input-identifier>  
66 - </div>  
67 - <div class="col-md-6">  
68 - <label-input ng-id="privilegio.descricao" name="privilegio.descricao" ng-typ="text" ng-obrigatorio='true' ng-custom-maxlength='255' form="privilegioForm" ng-label="LABEL.DESCRICAO"  
69 - ng-model="privilegio.descricao" ng-disabled="!edit" />  
70 - </div>  
71 - <!-- .col-sm-2 -->  
72 - </div>  
73 - <!-- .row -->  
74 - </fieldset>  
75 - </form>  
76 -</div>  
77 -<!-- .page-content -->  
78 \ No newline at end of file 0 \ No newline at end of file
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoServicoDocumentoList.html
@@ -1,41 +0,0 @@ @@ -1,41 +0,0 @@
1 -<div id="searchTipoServicoDocumento" class="page-content" ng-controller="TipoServicoDocumentoListController">  
2 - <div class="bar-buttons-action fixed">  
3 - <div class="row">  
4 - <div class="col-sm-8 text-left">  
5 - <button title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}" class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();" type="button">  
6 - <i class="fa fa-plus-circle yellow-dark"></i>  
7 - <translate>LABEL.CADASTRAR</translate>  
8 - </button>  
9 -  
10 - <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" ng-click="abrirPrivilegio(false);" type="button">  
11 - <i class="fa fa-search blue"></i>  
12 - <translate>LABEL.VISUALIZAR</translate>  
13 - </button>  
14 -  
15 - <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-click="abrirPrivilegio(true);" type="button">  
16 - <i class="fa fa-pencil blue"></i>  
17 - <translate>LABEL.EDITAR</translate>  
18 - </button>  
19 -  
20 - <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove();" type="button">  
21 - <i class="fa fa-times red"></i>  
22 - <translate>LABEL.REMOVER</translate>  
23 - </button>  
24 -  
25 - <span class="divider-vertical"></span>  
26 -  
27 - <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros>  
28 - </div><!-- .col -->  
29 -  
30 - <div class="col-sm-4 text-right">  
31 - <favorito/>  
32 - <help-button workspace="workspace" />  
33 - </div><!-- .col -->  
34 - </div><!-- .row -->  
35 - </div><!-- .bar-buttons-action -->  
36 -  
37 - <breadcrumb ng-workspace="workspace"></breadcrumb>  
38 -  
39 - <list-view ng-lista="tipoServicoDocumento" ng-repository="TipoServicoDocumentoRepository" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="tipoServicoDocumentoChecked"></list-view>  
40 -  
41 -</div><!-- .page-content -->  
42 \ No newline at end of file 0 \ No newline at end of file
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoSuporteDocumento.html 0 → 100644
@@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
  1 +<div ng-include src="'/cit-ecm-web/html/tipoSuporteDocumento/tipoSuporteDocumentoList.html'" ng-show="workspace.$showSearch" />
  2 +<div ng-include src="'/cit-ecm-web/html/tipoSuporteDocumento/tipoSuporteDocumentoEdit.html'" ng-show="workspace.$showEdit" />
0 \ No newline at end of file 3 \ No newline at end of file
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoSuporteDocumentoEdit.html 0 → 100644
@@ -0,0 +1,69 @@ @@ -0,0 +1,69 @@
  1 +<div id="editTipoSuporteDocumento" class="page-content clearfix" ng-controller="TipoSuporteDocumentoController">
  2 + <div class="bar-buttons-action fixed">
  3 + <div class="row">
  4 + <div class="col-sm-8 text-left">
  5 + <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}" class="btn btn-clear" ng-click="saveOrUpdate()" ng-show="edit" type="button">
  6 + <i class="fa fa-save green"></i>
  7 + <translate>LABEL.SALVAR</translate>
  8 + </button>
  9 +
  10 + <button title="{{$translate.instant('LABEL.LIMPAR')}}" alt="{{$translate.instant('LABEL.LIMPAR')}}" class="btn btn-clear" ng-click="resetForm();" ng-show="privilegio.id === undefined"
  11 + type="button">
  12 + <i class="fa fa-eraser yellow-dark"></i>
  13 + <translate>LABEL.LIMPAR</translate>
  14 + </button>
  15 +
  16 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-click="edit = true"
  17 + type="button">
  18 + <i class="fa fa-pencil blue"></i>
  19 + <translate>LABEL.EDITAR</translate>
  20 + </button>
  21 +
  22 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove(privilegio);" ng-show="privilegio.id !== undefined"
  23 + type="button">
  24 + <i class="fa fa-times red"></i>
  25 + <translate>LABEL.REMOVER</translate>
  26 + </button>
  27 +
  28 + <bloquear-desbloquear ng-model="TipoSuporteDocumento" ng-repository="TipoSuporteDocumentoRepository" ng-edit="edit" form="tipoSuporteDocumentoForm"></bloquear-desbloquear>
  29 +
  30 + <button title="{{$translate.instant('LABEL.PESQUISAR')}}" alt="{{$translate.instant('LABEL.PESQUISAR')}}" class="btn btn-clear"
  31 + ng-click="$showPageSearchWorkspace(workspace); atualizaPaginaPesquisa();" type="button">
  32 + <i class="fa fa-search"></i>
  33 + <translate>LABEL.PESQUISAR</translate>
  34 + </button>
  35 + </div>
  36 + <!-- .col -->
  37 +
  38 + <div class="col-sm-4 text-right">
  39 + <favorito />
  40 +
  41 + <help-button workspace="workspace" />
  42 + </div>
  43 + <!-- .col -->
  44 + </div>
  45 + <!-- .row -->
  46 + </div>
  47 + <!-- .bar-buttons-action -->
  48 +
  49 + <breadcrumb ng-workspace="workspace"></breadcrumb>
  50 +
  51 + <form name="tipoSuporteDocumentoForm" id="tipoSuporteDocumentoEdit" novalidate autocomplete="off">
  52 + <p>
  53 + <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small>
  54 + </p>
  55 +
  56 + <fieldset>
  57 + <legend>
  58 + <translate>ECM.LABEL.DADOS_SUPORTE_DOCUMENTO</translate>
  59 + </legend>
  60 +
  61 + <div class="row">
  62 + <div class="col-md-6">
  63 + <label-input ng-id="tipoSuporteDocumento.nome" ng-typ="text" ng-obrigatorio='true' ng-custom-maxlength='255' form="tipoSuporteDocumentoForm" ng-label="LABEL.NOME" ng-model="tipoSuporteDocumento.nome"
  64 + ng-disabled="!edit" />
  65 + </div>
  66 + </div>
  67 + </fieldset>
  68 + </form>
  69 +</div>
cit-ecm-web/src/main/webapp/html/tipoSuporteDocumento/tipoSuporteDocumentoList.html 0 → 100644
@@ -0,0 +1,41 @@ @@ -0,0 +1,41 @@
  1 +<div id="searchTipoSuporteDocumento" class="page-content" ng-controller="TipoSuporteDocumentoListController">
  2 + <div class="bar-buttons-action fixed">
  3 + <div class="row">
  4 + <div class="col-sm-8 text-left">
  5 + <button title="{{$translate.instant('LABEL.CADASTRAR')}}" alt="{{$translate.instant('LABEL.CADASTRAR')}}" class="btn btn-clear" ng-click="$showPageEditWorkspace(workspace); resetForm();" type="button">
  6 + <i class="fa fa-plus-circle yellow-dark"></i>
  7 + <translate>LABEL.CADASTRAR</translate>
  8 + </button>
  9 +
  10 + <button title="{{$translate.instant('LABEL.VISUALIZAR')}}" alt="{{$translate.instant('LABEL.VISUALIZAR')}}" class="btn btn-clear" ng-click="abrirTipoSuporteDocumento(false);" type="button">
  11 + <i class="fa fa-search blue"></i>
  12 + <translate>LABEL.VISUALIZAR</translate>
  13 + </button>
  14 +
  15 + <button title="{{$translate.instant('LABEL.EDITAR')}}" alt="{{$translate.instant('LABEL.EDITAR')}}" class="btn btn-clear" ng-click="abrirTipoSuporteDocumento(true);" type="button">
  16 + <i class="fa fa-pencil blue"></i>
  17 + <translate>LABEL.EDITAR</translate>
  18 + </button>
  19 +
  20 + <button title="{{$translate.instant('LABEL.REMOVER')}}" alt="{{$translate.instant('LABEL.REMOVER')}}" class="btn btn-clear" ng-click="remove();" type="button">
  21 + <i class="fa fa-times red"></i>
  22 + <translate>LABEL.REMOVER</translate>
  23 + </button>
  24 +
  25 + <span class="divider-vertical"></span>
  26 +
  27 + <filtros ng-filter="filterCriteria" ng-workspace="workspace"></filtros>
  28 + </div><!-- .col -->
  29 +
  30 + <div class="col-sm-4 text-right">
  31 + <favorito/>
  32 + <help-button workspace="workspace" />
  33 + </div><!-- .col -->
  34 + </div><!-- .row -->
  35 + </div><!-- .bar-buttons-action -->
  36 +
  37 + <breadcrumb ng-workspace="workspace"></breadcrumb>
  38 +
  39 + <list-view ng-lista="tipoSuporteDocumento" ng-repository="TipoSuporteDocumentoRepository" ng-headers="headers" ng-filter-criteria="filterCriteria" ng-item-selecionado="tipoSuporteDocumentoChecked"></list-view>
  40 +
  41 +</div><!-- .page-content -->
0 \ No newline at end of file 42 \ No newline at end of file