Commit cc41b97cf46ed38276cb53f3d926b98356372ae7
Exists in
master
Merge remote-tracking branch 'remotes/origin/cnt-1.1.0-alfa4'
Showing
11 changed files
with
635 additions
and
559 deletions
Show diff stats
cit-core/src/main/java/br/com/centralit/framework/model/ConfiguracaoParametroSistema.java
... | ... | @@ -194,4 +194,11 @@ public class ConfiguracaoParametroSistema extends PersistentObjectAudit { |
194 | 194 | this.isObrigatorio = isObrigatorio; |
195 | 195 | } |
196 | 196 | |
197 | + public String getGrupo() { | |
198 | + return grupo; | |
199 | + } | |
200 | + | |
201 | + public void setGrupo(String grupo) { | |
202 | + this.grupo = grupo; | |
203 | + } | |
197 | 204 | } | ... | ... |
cit-portal-api/src/main/java/br/com/centralit/api/dao/ConfiguracaoDao.java
... | ... | @@ -65,6 +65,23 @@ public interface ConfiguracaoDao extends CitGenericDAO { |
65 | 65 | * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> |
66 | 66 | * </p> |
67 | 67 | * |
68 | + * Método responsável por obter a configuração por organizacao e grupo parâmetro | |
69 | + * | |
70 | + * @author luis.camargo | |
71 | + * | |
72 | + * @return Configuracao | |
73 | + */ | |
74 | + public Configuracao getConfiguracao(Long idOrganizacao, String grupoParametro); | |
75 | + | |
76 | + /** | |
77 | + * <p> | |
78 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | |
79 | + * </p> | |
80 | + * | |
81 | + * <p> | |
82 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | |
83 | + * </p> | |
84 | + * | |
68 | 85 | * Método responsável por obter o valor de um determinado parametro da configuração de uma organizacao. |
69 | 86 | * |
70 | 87 | * @param chave "Chave" do parametro | ... | ... |
cit-portal-api/src/main/java/br/com/centralit/api/dao/impl/AuditDaoHibernate.java
... | ... | @@ -245,6 +245,8 @@ public class AuditDaoHibernate extends CitGenericDAOImpl implements AuditDao { |
245 | 245 | return new String[]{" , ADIT.NUMEROREPACTUACAO FROM CNT_EV_REPACTUACAO_AUD AS ADIT INNER JOIN CNT_CN_EVENTO_AUD AUD ON AUD.ID = ADIT.ID ", this.internacionalizacaoService.getTranslate("CONTRATOS.LABEL.NUM_REPACTUACAO", idioma), "EVENTO_REPACTUACAO"}; |
246 | 246 | case "18": //EVENTO_RESCISAO |
247 | 247 | return new String[]{" , ADIT.NUMERORESCISAO FROM CNT_EV_RESCISAOCONTRATO_AUD AS ADIT INNER JOIN CNT_CN_EVENTO_AUD AUD ON AUD.ID = ADIT.ID ", this.internacionalizacaoService.getTranslate("CONTRATOS.RESCISAO_CONTRATO.NUM_RESCISAO", idioma), "EVENTO_RESCISAO"}; |
248 | + case "19": //ANALISE_RISCO | |
249 | + return new String[]{" , AUD.SEQUENCIALANO FROM CNT_ANALISERISCO_AUD AS AUD ", this.internacionalizacaoService.getTranslate("CONTRATOS.LABEL.NUMERO_IDENTIFICACAO", idioma), "ANALISE_RISCO"}; | |
248 | 250 | |
249 | 251 | } |
250 | 252 | return null; | ... | ... |
cit-portal-api/src/main/java/br/com/centralit/api/dao/impl/ConfiguracaoDaoHibernate.java
... | ... | @@ -98,6 +98,32 @@ public class ConfiguracaoDaoHibernate extends CitGenericDAOImpl implements Confi |
98 | 98 | return searchUnique(searchSeven); |
99 | 99 | } |
100 | 100 | |
101 | + /** | |
102 | + * <p> | |
103 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | |
104 | + * </p> | |
105 | + * | |
106 | + * <p> | |
107 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | |
108 | + * </p> | |
109 | + * | |
110 | + * Método responsável por obter a configuração por organizacao e grupo parametro | |
111 | + * | |
112 | + * @author luis.camargo | |
113 | + * | |
114 | + * @return Configuracao | |
115 | + */ | |
116 | + @Override | |
117 | + public Configuracao getConfiguracao(Long idOrganizacao, String grupoParametro) { | |
118 | + | |
119 | + SearchSeven searchSeven = new SearchSeven(this.persistentClass); | |
120 | + | |
121 | + searchSeven.addFilterEqual("organizacao.id", idOrganizacao); | |
122 | + searchSeven.addFilterEqual("parametros.grupo", grupoParametro); | |
123 | + | |
124 | + return searchUnique(searchSeven); | |
125 | + } | |
126 | + | |
101 | 127 | |
102 | 128 | /** |
103 | 129 | * <p> | ... | ... |
cit-portal-api/src/main/java/br/com/centralit/api/service/ConfiguracaoService.java
... | ... | @@ -68,6 +68,23 @@ public interface ConfiguracaoService extends GenericService<Configuracao, Long> |
68 | 68 | * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> |
69 | 69 | * </p> |
70 | 70 | * |
71 | + * Método responsável por obter a configuração por organizacao e grupo parâmetro | |
72 | + * | |
73 | + * @author luis.camargo | |
74 | + * | |
75 | + * @return Configuracao | |
76 | + */ | |
77 | + public Configuracao getConfiguracao(Long idOrganizacao, String grupoParametro); | |
78 | + | |
79 | + /** | |
80 | + * <p> | |
81 | + * <b>Iniciativa(s):</b> <a href="LINK_PORTAL">NUMERO_INICIATIVA</a> | |
82 | + * </p> | |
83 | + * | |
84 | + * <p> | |
85 | + * <b>Regra(s) de negócio:</b> <a href="LINK_PORTAL">NUMERO_REGRA_DE_NEGOCIO</a> | |
86 | + * </p> | |
87 | + * | |
71 | 88 | * Método responsável por |
72 | 89 | * |
73 | 90 | * @author renato.jesus | ... | ... |
cit-portal-api/src/main/java/br/com/centralit/api/service/impl/ConfiguracaoServiceImpl.java
... | ... | @@ -112,6 +112,12 @@ public class ConfiguracaoServiceImpl extends GenericServiceImpl<Configuracao, Lo |
112 | 112 | } |
113 | 113 | |
114 | 114 | @Override |
115 | + public Configuracao getConfiguracao(Long idOrganizacao, String grupoParametro) { | |
116 | + | |
117 | + return this.configuracaoDao.getConfiguracao(idOrganizacao, grupoParametro); | |
118 | + } | |
119 | + | |
120 | + @Override | |
115 | 121 | public String getParametro(String chave) { |
116 | 122 | |
117 | 123 | return configuracaoDao.getParametro(chave); | ... | ... |
cit-portal-web/src/main/java/br/com/centralit/controller/ConfiguracaoController.java
... | ... | @@ -122,4 +122,15 @@ public class ConfiguracaoController extends GenericController<Configuracao> { |
122 | 122 | |
123 | 123 | return responseBody; |
124 | 124 | } |
125 | + | |
126 | + @RequestMapping(value = "/getConfiguracaoPorGrupoParametro", method = RequestMethod.GET) | |
127 | + @ResponseBody | |
128 | + public ResponseBodyWrapper getConfiguracaoPorGrupoParametro(@RequestParam(value = "idOrganizacao") Long idOrganizacao, @RequestParam(value = "grupoParametro") String grupoParametro) { | |
129 | + | |
130 | + ResultResponseVH<Configuracao> resultResponseVH = new ResultResponseVH<Configuracao>(configuracaoService.getConfiguracao(idOrganizacao, grupoParametro)); | |
131 | + | |
132 | + ResponseBodyWrapper responseBody = new ResponseBodyWrapper(resultResponseVH, this.getEditView()); | |
133 | + | |
134 | + return responseBody; | |
135 | + } | |
125 | 136 | } | ... | ... |
cit-portal-web/src/main/webapp/assets/js/angular/custom/controller/AppController.js
... | ... | @@ -756,35 +756,33 @@ citApp.controller('AppController', ['$scope', '$routeParams', '$timeout', '$loca |
756 | 756 | $scope.setLoadingRelatorio(true); |
757 | 757 | $http.get(url, {responseType:'arraybuffer'}).success(function (response) { |
758 | 758 | |
759 | - var file = new Blob([response], {type: 'application/pdf'}); | |
760 | - var fileURL = URL.createObjectURL(file); | |
761 | - | |
762 | - $scope.idRelatorio = ++idRelatorioCount; | |
763 | - | |
764 | - $scope.arrayContentReports[$scope.idRelatorio] = angular.copy($sce.trustAsResourceUrl(fileURL)); | |
765 | - | |
766 | - obterWorskspaceAtiva(); | |
767 | - $timeout(function(){ | |
768 | - $scope.addNewWorkspace(titleTab, "relatorioTab.html", true, $scope.workspaceAtiva ? $scope.workspaceAtiva.classePagina : classePaginaPortal , undefined, undefined, undefined, $scope.idRelatorio); | |
769 | - | |
770 | - $timeout(function(){ | |
759 | + abrirRelatorio(response, titleTab); | |
760 | + }).error(function(data, status){ | |
761 | + if(status == 412){ | |
762 | + $scope.showAlert("warning", $translate.instant("PORTAL.MSG.RELATORIO_SEM_DADOS") + " ", false ); | |
763 | + } else{ | |
764 | + $scope.showAlert("error", $translate.instant("PORTAL.MSG.ERRO_RELATORIO") + " ", false ); | |
765 | + } | |
766 | + $scope.setLoading(false); | |
771 | 767 | |
772 | - var relatorios = $scope.workspaces.filter(function(f){ | |
773 | - return f.idRelatorio === $scope.idRelatorio; | |
774 | - }); | |
768 | + }); | |
769 | + }; | |
770 | + | |
771 | + $scope.visualizarRelatorioPost = function(url, data, titleTab) { | |
775 | 772 | |
776 | - if(relatorios && relatorios.length > 0){ | |
777 | - $scope.activeWorkspace(relatorios[0]); | |
778 | - } else{ | |
779 | - $scope.workspaces.splice($scope.workspaces.length - 1, 1); | |
780 | - $scope.showAlert("error", $translate.instant("PORTAL.MSG.ERRO_RELATORIO") + " ", false ); | |
781 | - } | |
773 | + $scope.titleReport = titleTab; | |
782 | 774 | |
783 | - $scope.setLoading(false); | |
784 | - }, 2000); | |
775 | + var info = getAcrobatInfo(); | |
776 | + if(info.acrobat){ | |
777 | + data.download = false; | |
778 | + }else{ | |
779 | + data.download = true; | |
780 | + } | |
785 | 781 | |
786 | - }); | |
782 | + $scope.setLoadingRelatorio(true); | |
783 | + $http.post(url, data, {responseType:'arraybuffer'}).success(function (response) { | |
787 | 784 | |
785 | + abrirRelatorio(response, titleTab); | |
788 | 786 | }).error(function(data, status){ |
789 | 787 | if(status == 412){ |
790 | 788 | $scope.showAlert("warning", $translate.instant("PORTAL.MSG.RELATORIO_SEM_DADOS") + " ", false ); |
... | ... | @@ -796,6 +794,37 @@ citApp.controller('AppController', ['$scope', '$routeParams', '$timeout', '$loca |
796 | 794 | }); |
797 | 795 | }; |
798 | 796 | |
797 | + function abrirRelatorio (response, titleTab) { | |
798 | + var file = new Blob([response], {type: 'application/pdf'}); | |
799 | + var fileURL = URL.createObjectURL(file); | |
800 | + | |
801 | + $scope.idRelatorio = ++idRelatorioCount; | |
802 | + | |
803 | + $scope.arrayContentReports[$scope.idRelatorio] = angular.copy($sce.trustAsResourceUrl(fileURL)); | |
804 | + | |
805 | + obterWorskspaceAtiva(); | |
806 | + $timeout(function(){ | |
807 | + $scope.addNewWorkspace(titleTab, "relatorioTab.html", true, $scope.workspaceAtiva ? $scope.workspaceAtiva.classePagina : classePaginaPortal , undefined, undefined, undefined, $scope.idRelatorio); | |
808 | + | |
809 | + $timeout(function(){ | |
810 | + | |
811 | + var relatorios = $scope.workspaces.filter(function(f){ | |
812 | + return f.idRelatorio === $scope.idRelatorio; | |
813 | + }); | |
814 | + | |
815 | + if(relatorios && relatorios.length > 0){ | |
816 | + $scope.activeWorkspace(relatorios[0]); | |
817 | + } else{ | |
818 | + $scope.workspaces.splice($scope.workspaces.length - 1, 1); | |
819 | + $scope.showAlert("error", $translate.instant("PORTAL.MSG.ERRO_RELATORIO") + " ", false ); | |
820 | + } | |
821 | + | |
822 | + $scope.setLoading(false); | |
823 | + }, 2000); | |
824 | + | |
825 | + }); | |
826 | + }; | |
827 | + | |
799 | 828 | // Metodo responsavel por fazer a requisicao relatorios no GRP em uma MODAL, abrindo uma nova $modalRelatorioInstace posteriormente |
800 | 829 | $scope.visualizarRelatorioModal = function(url) { |
801 | 830 | ... | ... |
cit-portal-web/src/main/webapp/assets/js/angular/custom/controller/AuditController.js
... | ... | @@ -72,6 +72,7 @@ citApp.controller('AuditController', ['$scope', '$http', '$filter', 'AuditReposi |
72 | 72 | {id:16, codigo: 16, nome: $translate.instant('CONTRATO_LABEL_EVENTO_RECEBIMENTO_OBJETO')}, |
73 | 73 | {id:17, codigo: 17, nome: $translate.instant('CONTRATO_LABEL_EVENTO_REPACTUACAO')}, |
74 | 74 | {id:18, codigo: 18, nome: $translate.instant('CONTRATO_LABEL_EVENTO_RESCISAO')}, |
75 | + {id:19, codigo: 19, nome: $translate.instant('CONTRATOS.LABEL.ANALISE_RISCOS')}, | |
75 | 76 | ]; |
76 | 77 | } |
77 | 78 | } | ... | ... |
cit-portal-web/src/main/webapp/assets/js/angular/custom/repository/ConfiguracaoRepository.js
... | ... | @@ -6,6 +6,9 @@ citApp.factory('ConfiguracaoRepository', ['Restangular', 'AbstractRepository', f |
6 | 6 | this.getConfiguracao = function(idOrganizacao) { |
7 | 7 | return this.restangular.one(this.route + "/getConfiguracao").get({idOrganizacao : idOrganizacao}); |
8 | 8 | }; |
9 | + this.getConfiguracaoPorGrupoParametro = function(idOrganizacao, grupoParametro) { | |
10 | + return this.restangular.one(this.route + "/getConfiguracaoPorGrupoParametro").get({idOrganizacao : idOrganizacao, grupoParametro : grupoParametro}); | |
11 | + }; | |
9 | 12 | |
10 | 13 | AbstractRepository.call(this, restangular, 'rest/configuracao'); |
11 | 14 | } | ... | ... |
cit-portal-web/src/main/webapp/html/configuracao/configuracao.html
... | ... | @@ -22,185 +22,81 @@ |
22 | 22 | <small>( <span class="red">*</span> ) <translate>LABEL.CAMPOS_OBRIGATORIOS</translate></small> |
23 | 23 | </p> |
24 | 24 | |
25 | - <tabset class="tabbable margin-top margin-bottom"> <tab> <tab-heading> <translate>PORTAL.LABEL.PAGINA_LOGIN</translate></tab-heading> | |
25 | + <tabset class="tabbable margin-top margin-bottom"> | |
26 | + <tab> | |
27 | + <tab-heading> <translate>PORTAL.LABEL.PAGINA_LOGIN</translate></tab-heading> | |
26 | 28 | |
27 | - <form enctype="multipart/form-data" name="configuracaoPaginaLoginForm"> | |
28 | - <fieldset> | |
29 | - <div class="row"> | |
30 | - <div class="col-sm-12"> | |
31 | - <div class="form-group"> | |
32 | - <label class="control-label"><translate>PORTAL.LABEL.LOGO_PAGINA_LOGIN</translate></label> | |
33 | - | |
34 | - <div nv-file-drop="" uploader="uploader" id="actionUploadLogoLogin" onclick="$('#uploadLogoLogin').click();"> | |
35 | - <div nv-file-over="" uploader="uploader" over-class="another-file-over-class" class="well my-drop-zone"> | |
36 | - <span ng-show="uploader.queue.length <= 0"><translate>MSG.ARRASTE_SOLTE_ARQUIVO</translate></span> <span ng-show="uploader.queue.length > 0">{{uploader.queue[0].file.name}}</span> | |
29 | + <form enctype="multipart/form-data" name="configuracaoPaginaLoginForm"> | |
30 | + <fieldset> | |
31 | + <div class="row"> | |
32 | + <div class="col-sm-12"> | |
33 | + <div class="form-group"> | |
34 | + <label class="control-label"><translate>PORTAL.LABEL.LOGO_PAGINA_LOGIN</translate></label> | |
35 | + | |
36 | + <div nv-file-drop="" uploader="uploader" id="actionUploadLogoLogin" onclick="$('#uploadLogoLogin').click();"> | |
37 | + <div nv-file-over="" uploader="uploader" over-class="another-file-over-class" class="well my-drop-zone"> | |
38 | + <span ng-show="uploader.queue.length <= 0"><translate>MSG.ARRASTE_SOLTE_ARQUIVO</translate></span> <span ng-show="uploader.queue.length > 0">{{uploader.queue[0].file.name}}</span> | |
39 | + </div> | |
40 | + </div> | |
41 | + <input id="uploadLogoLogin" type="file" nv-file-select="" uploader="uploader" ng-show="false" /> | |
42 | + </div> | |
43 | + <!-- .form-group --> | |
44 | + <div> | |
45 | + <img src="/cit-portal-web/assets/css/images/logo-login.png" class="img-thumbnail" style="max-width: 300px; height: auto;" /> | |
37 | 46 | </div> |
38 | 47 | </div> |
39 | - <input id="uploadLogoLogin" type="file" nv-file-select="" uploader="uploader" ng-show="false" /> | |
40 | - </div> | |
41 | - <!-- .form-group --> | |
42 | - <div> | |
43 | - <img src="/cit-portal-web/assets/css/images/logo-login.png" class="img-thumbnail" style="max-width: 300px; height: auto;" /> | |
44 | - </div> | |
45 | - </div> | |
46 | - <!-- .col --> | |
47 | - </div> | |
48 | - <!-- .row --> | |
49 | - | |
50 | - <div class="row margin-top"> | |
51 | - <div class="col-sm-4"> | |
52 | - <button class="btn btn-success" ng-click="saveOrUpdateConfigPaginaLogin();"> | |
53 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
54 | - </button> | |
55 | - </div> | |
56 | - <!-- .col --> | |
57 | - </div> | |
58 | - <!-- .row --> | |
59 | - </fieldset> | |
60 | - </form> | |
61 | - </tab> <tab> <tab-heading> <translate>LABEL.EMAIL</translate></tab-heading> | |
62 | - | |
63 | - <form name="configuracaoEmailForm"> | |
64 | - <fieldset> | |
65 | - <p> | |
66 | - <strong><translate>PORTAL.LABEL.AUTENTICACAO</translate></strong> | |
67 | - </p> | |
68 | - | |
69 | - <div class="row"> | |
70 | - <div class="col-sm-4"> | |
71 | - <div class="form-group"> | |
72 | - <label class="control-label"><translate>LABEL.USUARIO</translate>:</label> <input type="text" class="form-control" ng-model="parametro.EMAIL_LOGIN" /> | |
73 | - </div> | |
74 | - <!-- .form-control --> | |
75 | - </div> | |
76 | - <!-- .col --> | |
77 | - </div> | |
78 | - <!-- .row --> | |
79 | - | |
80 | - <div class="row"> | |
81 | - <div class="col-sm-4"> | |
82 | - <div class="form-group"> | |
83 | - <label class="control-label"><translate>PORTAL.LABEL.SENHA</translate>:</label> <input type="password" class="form-control" ng-model="parametro.EMAIL_SENHA" /> | |
84 | - </div> | |
85 | - <!-- .form-control --> | |
86 | - </div> | |
87 | - <!-- .col --> | |
88 | - </div> | |
89 | - <!-- .row --> | |
90 | - | |
91 | - <div class="row"> | |
92 | - <div class="col-sm-4"> | |
93 | - <div class="form-group"> | |
94 | - <div class="checkbox" style="margin: 0;"> | |
95 | - <label> <input type="checkbox" ng-model="parametro.EMAIL_EXIGE_AUTENTICACAO" ng-true-value="'true'" ng-false-value="'false'" /> <translate>PORTAL.LABEL.EXIGE_AUTENTICACAO</translate> | |
96 | - </label> | |
97 | - </div> | |
98 | - <!-- .checkbox --> | |
48 | + <!-- .col --> | |
99 | 49 | </div> |
100 | - <!-- .form-control --> | |
101 | - </div> | |
102 | - <!-- .col --> | |
103 | - </div> | |
104 | - <!-- .row --> | |
105 | - | |
106 | - <div class="row"> | |
107 | - <div class="col-sm-4"> | |
108 | - <div class="form-group"> | |
109 | - <div class="checkbox" style="margin: 0;"> | |
110 | - <label> <input type="checkbox" ng-model="parametro.EMAIL_TSL_SSL" ng-true-value="'true'" ng-false-value="'false'" /> <translate>PORTAL.LABEL.TSL_SSL</translate> | |
111 | - </label> | |
50 | + <!-- .row --> | |
51 | + | |
52 | + <div class="row margin-top"> | |
53 | + <div class="col-sm-4"> | |
54 | + <button class="btn btn-success" ng-click="saveOrUpdateConfigPaginaLogin();"> | |
55 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
56 | + </button> | |
112 | 57 | </div> |
113 | - <!-- .checkbox --> | |
58 | + <!-- .col --> | |
114 | 59 | </div> |
115 | - <!-- .form-control --> | |
116 | - </div> | |
117 | - <!-- .col --> | |
118 | - </div> | |
119 | - <!-- .row --> | |
120 | - | |
121 | - <p> | |
122 | - <strong><translate>PORTAL.LABEL.CONFIGURACOES_SERVIDOR</translate></strong> | |
123 | - </p> | |
124 | - | |
125 | - <div class="row"> | |
126 | - <div class="col-sm-4"> | |
127 | - | |
128 | - <label-input label-info-tooltip="{{$translate.instant('MSG.INFO_SMTP_HOST')}}" ng-type="text" ng-id="parametro.EMAIL_SMTP_HOST" ng-label="PORTAL.LABEL.SMTP_HOST" ng-model="parametro.EMAIL_SMTP_HOST" | |
129 | - ng-custom-maxlength="30" form="configuracaoPaginaLoginForm" /> | |
130 | - | |
131 | - </div> | |
132 | - <!-- .col --> | |
133 | - </div> | |
134 | - <!-- .row --> | |
135 | - | |
136 | - <div class="row"> | |
137 | - <div class="col-sm-4"> | |
138 | - | |
139 | - <label-input label-info-tooltip="{{$translate.instant('MSG.INFO_SMTP_PORTA')}}" ng-type="text" ng-id="parametro.EMAIL_SMTP_PORTA" ng-label="PORTAL.LABEL.SMTP_PORTA" ng-model="parametro.EMAIL_SMTP_PORTA" | |
140 | - ng-custom-maxlength="30" form="configuracaoPaginaLoginForm" /> | |
141 | - | |
142 | - </div> | |
143 | - <!-- .col --> | |
144 | - </div> | |
145 | - <!-- .row --> | |
146 | - | |
147 | - <div class="row"> | |
148 | - <div class="col-sm-4"> | |
149 | - <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
150 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
151 | - </button> | |
152 | - </div> | |
153 | - <!-- .col --> | |
154 | - </div> | |
155 | - <!-- .row --> | |
156 | - </fieldset> | |
157 | - </form> | |
158 | - </tab> <tab> <tab-heading> <translate>PORTAL.LABEL.MODULOS</translate></tab-heading> | |
159 | - | |
160 | - <form name="configuracaoModulosForm"> | |
60 | + <!-- .row --> | |
61 | + </fieldset> | |
62 | + </form> | |
63 | + </tab> | |
64 | + <tab> | |
65 | + <tab-heading> <translate>LABEL.EMAIL</translate></tab-heading> | |
161 | 66 | |
162 | - <fieldset> | |
163 | - <div class="row"> | |
164 | - <div class="col-sm-4"> | |
165 | - <div class="form-group"> | |
166 | - <div class="checkbox" style="margin: 0;"> | |
167 | - <label> <input type="checkbox" ng-model="parametro.EMAIL_EXIGE_AUTENTICACAO" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXIGE_AUTENTICACAO</translate> | |
168 | - </label> | |
67 | + <form name="configuracaoEmailForm"> | |
68 | + <fieldset> | |
69 | + <p> | |
70 | + <strong><translate>PORTAL.LABEL.AUTENTICACAO</translate></strong> | |
71 | + </p> | |
72 | + | |
73 | + <div class="row"> | |
74 | + <div class="col-sm-4"> | |
75 | + <div class="form-group"> | |
76 | + <label class="control-label"><translate>LABEL.USUARIO</translate>:</label> <input type="text" class="form-control" ng-model="parametro.EMAIL_LOGIN" /> | |
77 | + </div> | |
78 | + <!-- .form-control --> | |
169 | 79 | </div> |
170 | - <!-- .checkbox --> | |
80 | + <!-- .col --> | |
171 | 81 | </div> |
172 | - <!-- .form-control --> | |
173 | - </div> | |
174 | - <!-- .col --> | |
175 | - </div> | |
176 | - <!-- .row --> | |
177 | - </fieldset> | |
178 | - | |
179 | - <div class="row"> | |
180 | - <div class="col-sm-4"> | |
181 | - <fieldset> | |
182 | - <legend> | |
183 | - <translate>PORTAL.LABEL.PORTAL</translate> | |
184 | - </legend> | |
82 | + <!-- .row --> | |
83 | + | |
185 | 84 | <div class="row"> |
186 | - <div class="col-sm-12"> | |
85 | + <div class="col-sm-4"> | |
187 | 86 | <div class="form-group"> |
188 | - <div class="checkbox" style="margin: 0;"> | |
189 | - <label> <input type="checkbox" ng-model="parametro['EXECUTAR_SCRIPT_MENU']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_SCRIPT_MENU</translate> | |
190 | - </label> | |
191 | - </div> | |
192 | - <!-- .checkbox --> | |
87 | + <label class="control-label"><translate>PORTAL.LABEL.SENHA</translate>:</label> <input type="password" class="form-control" ng-model="parametro.EMAIL_SENHA" /> | |
193 | 88 | </div> |
194 | 89 | <!-- .form-control --> |
195 | 90 | </div> |
196 | 91 | <!-- .col --> |
197 | 92 | </div> |
198 | 93 | <!-- .row --> |
94 | + | |
199 | 95 | <div class="row"> |
200 | - <div class="col-sm-12"> | |
96 | + <div class="col-sm-4"> | |
201 | 97 | <div class="form-group"> |
202 | 98 | <div class="checkbox" style="margin: 0;"> |
203 | - <label> <input type="checkbox" ng-model="parametro['EXECUTAR_BASE_INICIAL']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_BASE_INICIAL</translate> | |
99 | + <label> <input type="checkbox" ng-model="parametro.EMAIL_EXIGE_AUTENTICACAO" ng-true-value="'true'" ng-false-value="'false'" /> <translate>PORTAL.LABEL.EXIGE_AUTENTICACAO</translate> | |
204 | 100 | </label> |
205 | 101 | </div> |
206 | 102 | <!-- .checkbox --> |
... | ... | @@ -210,11 +106,12 @@ |
210 | 106 | <!-- .col --> |
211 | 107 | </div> |
212 | 108 | <!-- .row --> |
109 | + | |
213 | 110 | <div class="row"> |
214 | - <div class="col-sm-12"> | |
111 | + <div class="col-sm-4"> | |
215 | 112 | <div class="form-group"> |
216 | 113 | <div class="checkbox" style="margin: 0;"> |
217 | - <label> <input type="checkbox" ng-model="parametro['EXECUTAR_INTERNACIONALIZACAO']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_INTERNACIONALIZACAO</translate> | |
114 | + <label> <input type="checkbox" ng-model="parametro.EMAIL_TSL_SSL" ng-true-value="'true'" ng-false-value="'false'" /> <translate>PORTAL.LABEL.TSL_SSL</translate> | |
218 | 115 | </label> |
219 | 116 | </div> |
220 | 117 | <!-- .checkbox --> |
... | ... | @@ -224,21 +121,56 @@ |
224 | 121 | <!-- .col --> |
225 | 122 | </div> |
226 | 123 | <!-- .row --> |
227 | - | |
124 | + | |
125 | + <p> | |
126 | + <strong><translate>PORTAL.LABEL.CONFIGURACOES_SERVIDOR</translate></strong> | |
127 | + </p> | |
128 | + | |
129 | + <div class="row"> | |
130 | + <div class="col-sm-4"> | |
131 | + | |
132 | + <label-input label-info-tooltip="{{$translate.instant('MSG.INFO_SMTP_HOST')}}" ng-type="text" ng-id="parametro.EMAIL_SMTP_HOST" ng-label="PORTAL.LABEL.SMTP_HOST" ng-model="parametro.EMAIL_SMTP_HOST" | |
133 | + ng-custom-maxlength="30" form="configuracaoPaginaLoginForm" /> | |
134 | + | |
135 | + </div> | |
136 | + <!-- .col --> | |
137 | + </div> | |
138 | + <!-- .row --> | |
139 | + | |
140 | + <div class="row"> | |
141 | + <div class="col-sm-4"> | |
142 | + | |
143 | + <label-input label-info-tooltip="{{$translate.instant('MSG.INFO_SMTP_PORTA')}}" ng-type="text" ng-id="parametro.EMAIL_SMTP_PORTA" ng-label="PORTAL.LABEL.SMTP_PORTA" ng-model="parametro.EMAIL_SMTP_PORTA" | |
144 | + ng-custom-maxlength="30" form="configuracaoPaginaLoginForm" /> | |
145 | + | |
146 | + </div> | |
147 | + <!-- .col --> | |
148 | + </div> | |
149 | + <!-- .row --> | |
150 | + | |
151 | + <div class="row"> | |
152 | + <div class="col-sm-4"> | |
153 | + <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
154 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
155 | + </button> | |
156 | + </div> | |
157 | + <!-- .col --> | |
158 | + </div> | |
159 | + <!-- .row --> | |
228 | 160 | </fieldset> |
229 | - </div> | |
230 | - <div class="col-sm-4"> | |
161 | + </form> | |
162 | + </tab> | |
163 | + <tab> | |
164 | + <tab-heading> <translate>PORTAL.LABEL.MODULOS</translate></tab-heading> | |
165 | + | |
166 | + <form name="configuracaoModulosForm"> | |
167 | + | |
231 | 168 | <fieldset> |
232 | - <legend> | |
233 | - <translate>LABEL.ITSM</translate> | |
234 | - </legend> | |
235 | 169 | <div class="row"> |
236 | - <div class="col-sm-12"> | |
170 | + <div class="col-sm-4"> | |
237 | 171 | <div class="form-group"> |
238 | 172 | <div class="checkbox" style="margin: 0;"> |
239 | - <label> | |
240 | - <input type="checkbox" ng-model="parametro['ITSM_ATIVO']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> | |
241 | - <translate>LABEL.ITSM_ATIVO</translate> | |
173 | + <label> <input type="checkbox" ng-model="parametro.EMAIL_EXIGE_AUTENTICACAO" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXIGE_AUTENTICACAO</translate> | |
242 | 174 | </label> |
243 | 175 | </div> |
244 | 176 | <!-- .checkbox --> |
... | ... | @@ -247,401 +179,426 @@ |
247 | 179 | </div> |
248 | 180 | <!-- .col --> |
249 | 181 | </div> |
182 | + <!-- .row --> | |
250 | 183 | </fieldset> |
251 | - </div> | |
252 | - </div> | |
253 | - | |
254 | - <div class="row"> | |
255 | - | |
256 | - <div ng-repeat="modulo in mondulosAtivos"> | |
257 | - | |
258 | - <div class="col-sm-4"> | |
259 | - <fieldset> | |
260 | - <legend>{{modulo.nome}}</legend> | |
261 | - <div class="row"> | |
262 | - <div class="col-sm-12"> | |
263 | - <div class="form-group"> | |
264 | - <div class="checkbox" style="margin: 0;"> | |
265 | - <label> <input type="checkbox" ng-model="parametro['EXECUTAR_SCRIPT_MENU-'+modulo.id]" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_SCRIPT_MENU</translate> | |
266 | - </label> | |
184 | + | |
185 | + <div class="row"> | |
186 | + <div class="col-sm-4"> | |
187 | + <fieldset> | |
188 | + <legend> | |
189 | + <translate>PORTAL.LABEL.PORTAL</translate> | |
190 | + </legend> | |
191 | + <div class="row"> | |
192 | + <div class="col-sm-12"> | |
193 | + <div class="form-group"> | |
194 | + <div class="checkbox" style="margin: 0;"> | |
195 | + <label> <input type="checkbox" ng-model="parametro['EXECUTAR_SCRIPT_MENU']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_SCRIPT_MENU</translate> | |
196 | + </label> | |
197 | + </div> | |
198 | + <!-- .checkbox --> | |
267 | 199 | </div> |
268 | - <!-- .checkbox --> | |
200 | + <!-- .form-control --> | |
269 | 201 | </div> |
270 | - <!-- .form-control --> | |
202 | + <!-- .col --> | |
271 | 203 | </div> |
272 | - <!-- .col --> | |
273 | - </div> | |
274 | - <!-- .row --> | |
275 | - <div class="row"> | |
276 | - <div class="col-sm-12"> | |
277 | - <div class="form-group"> | |
278 | - <div class="checkbox" style="margin: 0;"> | |
279 | - <label> <input type="checkbox" ng-model="parametro['EXECUTAR_BASE_INICIAL-'+modulo.id]" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_BASE_INICIAL</translate> | |
280 | - </label> | |
204 | + <!-- .row --> | |
205 | + <div class="row"> | |
206 | + <div class="col-sm-12"> | |
207 | + <div class="form-group"> | |
208 | + <div class="checkbox" style="margin: 0;"> | |
209 | + <label> <input type="checkbox" ng-model="parametro['EXECUTAR_BASE_INICIAL']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_BASE_INICIAL</translate> | |
210 | + </label> | |
211 | + </div> | |
212 | + <!-- .checkbox --> | |
281 | 213 | </div> |
282 | - <!-- .checkbox --> | |
214 | + <!-- .form-control --> | |
283 | 215 | </div> |
284 | - <!-- .form-control --> | |
216 | + <!-- .col --> | |
285 | 217 | </div> |
286 | - <!-- .col --> | |
287 | - </div> | |
288 | - <!-- .row --> | |
289 | - | |
290 | - </fieldset> | |
291 | - </div> | |
292 | - | |
293 | - </div> | |
294 | - </div> | |
295 | - | |
296 | - <div class="row"> | |
297 | - <div class="col-sm-4"> | |
298 | - <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
299 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
300 | - </button> | |
301 | - </div> | |
302 | - <!-- .col --> | |
303 | - </div> | |
304 | - <!-- .row --> | |
305 | - | |
306 | - </form> | |
307 | - </tab> <tab> <tab-heading> <translate>LABEL.RELATORIOS</translate></tab-heading> | |
308 | - | |
309 | - <form name="configuracaoRelatorioForm"> | |
310 | - <fieldset> | |
311 | - <div class="row"> | |
312 | - <div class="col-sm-12"> | |
313 | - <label-input ng-type="text" ng-id="parametro.RELATORIO_PRIMEIRO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.PRIMEIRO_TITULO" ng-obrigatorio="false" | |
314 | - ng-model="parametro.RELATORIO_PRIMEIRO_TITULO"></label-input> | |
315 | - </div> | |
316 | - <!-- .col --> | |
317 | - </div> | |
318 | - <!-- .row --> | |
319 | - <div class="row"> | |
320 | - <div class="col-sm-12"> | |
321 | - <label-input ng-type="text" ng-id="parametro.RELATORIO_SEGUNDO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.SEGUNDO_TITULO" ng-obrigatorio="false" | |
322 | - ng-model="parametro.RELATORIO_SEGUNDO_TITULO"></label-input> | |
323 | - </div> | |
324 | - <!-- .col --> | |
325 | - </div> | |
326 | - <!-- .row --> | |
327 | - <div class="row"> | |
328 | - <div class="col-sm-12"> | |
329 | - <label-input ng-type="text" ng-id="parametro.RELATORIO_TERCEIRO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.TERCEIRO_TITULO" ng-obrigatorio="false" | |
330 | - ng-model="parametro.RELATORIO_TERCEIRO_TITULO"></label-input> | |
331 | - </div> | |
332 | - <!-- .col --> | |
333 | - </div> | |
334 | - <!-- .row --> | |
335 | - | |
336 | - <div class="row"> | |
337 | - <div class="col-sm-12"> | |
338 | - <div class="form-group"> | |
339 | - <label class="control-label"><translate>PORTAL.LABEL.LOGO_RELATORIO</translate></label> | |
340 | - | |
341 | - <div nv-file-drop="" uploader="uploaderLogo" onclick="$('#uploadLogoOrganizacao').click();"> | |
342 | - <div nv-file-over="" uploader="uploaderLogo" over-class="another-file-over-class" class="well my-drop-zone"> | |
343 | - <span ng-show="uploaderLogo.queue.length <= 0"><translate>MSG.ARRASTE_SOLTE_ARQUIVO</translate></span> <span ng-show="uploaderLogo.queue.length > 0">{{uploaderLogo.queue[0].file.name}}</span> | |
218 | + <!-- .row --> | |
219 | + <div class="row"> | |
220 | + <div class="col-sm-12"> | |
221 | + <div class="form-group"> | |
222 | + <div class="checkbox" style="margin: 0;"> | |
223 | + <label> <input type="checkbox" ng-model="parametro['EXECUTAR_INTERNACIONALIZACAO']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_INTERNACIONALIZACAO</translate> | |
224 | + </label> | |
225 | + </div> | |
226 | + <!-- .checkbox --> | |
227 | + </div> | |
228 | + <!-- .form-control --> | |
229 | + </div> | |
230 | + <!-- .col --> | |
344 | 231 | </div> |
345 | - </div> | |
346 | - <input id="uploadLogoOrganizacao" type="file" nv-file-select="" uploader="uploaderLogo" ng-show="false" /> | |
347 | - | |
232 | + <!-- .row --> | |
233 | + | |
234 | + </fieldset> | |
348 | 235 | </div> |
349 | - <!-- .form-group --> | |
350 | - | |
351 | - <div> | |
352 | - <img ng-src="data:image/JPEG;base64,{{configuracao.anexoImagem.anexo}}" class="img-thumbnail" style="max-width: 300px; height: auto;"> | |
353 | - <!-- <div ng-show="uploaderLogo.isHTML5" upload-thumb="{ file: uploaderLogo.queue[0]._file, height: 100 }"> --> | |
354 | - <!-- </div> --> | |
236 | + <div class="col-sm-4"> | |
237 | + <fieldset> | |
238 | + <legend> | |
239 | + <translate>LABEL.ITSM</translate> | |
240 | + </legend> | |
241 | + <div class="row"> | |
242 | + <div class="col-sm-12"> | |
243 | + <div class="form-group"> | |
244 | + <div class="checkbox" style="margin: 0;"> | |
245 | + <label> | |
246 | + <input type="checkbox" ng-model="parametro['ITSM_ATIVO']" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> | |
247 | + <translate>LABEL.ITSM_ATIVO</translate> | |
248 | + </label> | |
249 | + </div> | |
250 | + <!-- .checkbox --> | |
251 | + </div> | |
252 | + <!-- .form-control --> | |
253 | + </div> | |
254 | + <!-- .col --> | |
255 | + </div> | |
256 | + </fieldset> | |
355 | 257 | </div> |
356 | - | |
357 | 258 | </div> |
358 | - </div> | |
359 | - | |
360 | - <div class="row margin-top"> | |
361 | - <div class="col-sm-4"> | |
362 | - <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
363 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
364 | - </button> | |
365 | - </div> | |
366 | - <!-- .col --> | |
367 | - </div> | |
368 | - <!-- .row --> | |
369 | - </fieldset> | |
370 | - </form> | |
371 | - </tab> <tab ng-if="almoxarifadoAtivo"> <tab-heading> <translate>PORTAL.LABEL.CONF_ALMOXARIFADO</translate></tab-heading> | |
372 | - | |
373 | - <form name="configuracaoAlmoxarifadoForm"> | |
374 | - <fieldset> | |
375 | - <div class="row"> | |
376 | - <div class="col-sm-3"> | |
377 | - <label-select ng-id="parametro.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-model="parametro.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-label="PORTAL.LABEL.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-obrigatorio="true" | |
378 | - form="configuracaoAlmoxarifadoForm" ng-list="dominiosTipoAvaliacaoMonetariaEstoque" ng-custom-options="dominioTipoAvaliacao.codigo as dominioTipoAvaliacao.descricao for dominioTipoAvaliacao"></label-select> | |
379 | - </div> | |
380 | - <!-- .col --> | |
381 | - </div> | |
382 | - <!-- .row --> | |
383 | - | |
384 | - <div class="row"> | |
385 | - <div class="col-sm-2"> | |
386 | - <label-input-number ng-id="parametro.MARGEM_ERRO_PRECO_MEDIO" ng-label="PORTAL.LABEL.MARGEM_PRECO_MEDIO" form="configuracaoAlmoxarifadoForm" ng-disabled="false" ng-obrigatorio="true" | |
387 | - ng-model="parametro.MARGEM_ERRO_PRECO_MEDIO" ng-custom-maxlength="3" ng-min-number="0" ng-max-number="100" /> | |
259 | + | |
260 | + <div class="row"> | |
261 | + | |
262 | + <div ng-repeat="modulo in mondulosAtivos"> | |
263 | + | |
264 | + <div class="col-sm-4"> | |
265 | + <fieldset> | |
266 | + <legend>{{modulo.nome}}</legend> | |
267 | + <div class="row"> | |
268 | + <div class="col-sm-12"> | |
269 | + <div class="form-group"> | |
270 | + <div class="checkbox" style="margin: 0;"> | |
271 | + <label> <input type="checkbox" ng-model="parametro['EXECUTAR_SCRIPT_MENU-'+modulo.id]" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_SCRIPT_MENU</translate> | |
272 | + </label> | |
273 | + </div> | |
274 | + <!-- .checkbox --> | |
275 | + </div> | |
276 | + <!-- .form-control --> | |
277 | + </div> | |
278 | + <!-- .col --> | |
279 | + </div> | |
280 | + <!-- .row --> | |
281 | + <div class="row"> | |
282 | + <div class="col-sm-12"> | |
283 | + <div class="form-group"> | |
284 | + <div class="checkbox" style="margin: 0;"> | |
285 | + <label> <input type="checkbox" ng-model="parametro['EXECUTAR_BASE_INICIAL-'+modulo.id]" ng-true-value="'true'" ng-false-value="'false'" form="configuracaoModulosForm" /> <translate>PORTAL.LABEL.EXECUTAR_BASE_INICIAL</translate> | |
286 | + </label> | |
287 | + </div> | |
288 | + <!-- .checkbox --> | |
289 | + </div> | |
290 | + <!-- .form-control --> | |
291 | + </div> | |
292 | + <!-- .col --> | |
293 | + </div> | |
294 | + <!-- .row --> | |
295 | + | |
296 | + </fieldset> | |
297 | + </div> | |
298 | + | |
299 | + </div> | |
388 | 300 | </div> |
389 | - <!-- .col --> | |
390 | - </div> | |
391 | - <!-- .row --> | |
392 | - | |
393 | - <div class="row margin-top"> | |
394 | - <div class="col-sm-4"> | |
395 | - <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
396 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
397 | - </button> | |
301 | + | |
302 | + <div class="row"> | |
303 | + <div class="col-sm-4"> | |
304 | + <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
305 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
306 | + </button> | |
307 | + </div> | |
308 | + <!-- .col --> | |
398 | 309 | </div> |
399 | - <!-- .col --> | |
400 | - </div> | |
401 | - <!-- .row --> | |
402 | - </fieldset> | |
403 | - </form> | |
404 | - </tab> <tab ng-if="patrimonioAtivo"> <tab-heading> <translate>PORTAL.LABEL.CONF_PATRIMONIO</translate></tab-heading> | |
310 | + <!-- .row --> | |
311 | + | |
312 | + </form> | |
313 | + </tab> | |
314 | + <tab> | |
315 | + <tab-heading> <translate>LABEL.RELATORIOS</translate></tab-heading> | |
405 | 316 | |
406 | - <form name="configuracaoPatrimonioForm"> | |
407 | - <fieldset> | |
408 | - <div class="row"> | |
409 | - <div class="col-sm-4"> | |
410 | - <label-input-number ng-type="text" ng-id="parametro.PATRIMONIO_MASCARA_NUMERO_PATRIMONIO" form="configuracaoPatrimonioForm" ng-custom-maxlength="15" ng-disabled="false" | |
411 | - ng-label="PORTAL.LABEL.MASCARA_NUMERO_PATRIMONIO" ng-obrigatorio="true" ng-model="parametro.PATRIMONIO_MASCARA_NUMERO_PATRIMONIO"></label-input-number> | |
412 | - <div class="col-sm-12"> | |
413 | - <small><translate>PORTAL.MSG.FORMATO_MASCARA_NUMERO_PATRIMONIAL</translate></small> | |
317 | + <form name="configuracaoRelatorioForm"> | |
318 | + <fieldset> | |
319 | + <div class="row"> | |
320 | + <div class="col-sm-12"> | |
321 | + <label-input ng-type="text" ng-id="parametro.RELATORIO_PRIMEIRO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.PRIMEIRO_TITULO" ng-obrigatorio="false" | |
322 | + ng-model="parametro.RELATORIO_PRIMEIRO_TITULO"></label-input> | |
323 | + </div> | |
324 | + <!-- .col --> | |
414 | 325 | </div> |
415 | - </div> | |
416 | - <!-- .col --> | |
417 | - </div> | |
418 | - <!-- .row --> | |
419 | - <br /> | |
420 | - <div class="row"> | |
421 | - <div class="col-sm-8"> | |
422 | - <div> | |
423 | - <auto-complete ng-id="parametro.CONTA_CONTABIL_ALMOXARIFADO" ng-label="PORTAL.LABEL.CONTA_ALMOXARIFADO" ng-model="contaAlmoxarifado" form="configuracaoPatrimonioForm" ng-obrigatorio="true" | |
424 | - ng-disabled="contaAlmoxarifadoEmUso" ng-find="findContaAlmoxarifado(value)" ng-item="item.codigo + ' / ' + item.descricao" ng-set-result="defineContaAlmox(item.id)" /> | |
326 | + <!-- .row --> | |
327 | + <div class="row"> | |
328 | + <div class="col-sm-12"> | |
329 | + <label-input ng-type="text" ng-id="parametro.RELATORIO_SEGUNDO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.SEGUNDO_TITULO" ng-obrigatorio="false" | |
330 | + ng-model="parametro.RELATORIO_SEGUNDO_TITULO"></label-input> | |
331 | + </div> | |
332 | + <!-- .col --> | |
425 | 333 | </div> |
426 | - <div class="col-sm-12"> | |
427 | - <small><translate>LABEL.PROIBIDO_EDITAR_APOS_USO_CONTA</translate></small> | |
334 | + <!-- .row --> | |
335 | + <div class="row"> | |
336 | + <div class="col-sm-12"> | |
337 | + <label-input ng-type="text" ng-id="parametro.RELATORIO_TERCEIRO_TITULO" form="configuracaoRelatorioForm" ng-disabled="false" ng-label="PORTAL.LABEL.TERCEIRO_TITULO" ng-obrigatorio="false" | |
338 | + ng-model="parametro.RELATORIO_TERCEIRO_TITULO"></label-input> | |
339 | + </div> | |
340 | + <!-- .col --> | |
428 | 341 | </div> |
429 | - </div> | |
430 | - </div> | |
431 | - </br> | |
432 | - <div class="row"> | |
433 | - <div class="col-sm-8"> | |
434 | - <label-select ng-id="parametro.TIPO_DEP_REAVALIACAO_REDUCAO" ng-model="parametro.TIPO_DEP_REAVALIACAO_REDUCAO" ng-label="PORTAL.LABEL.TIPO_DEP_REAVALIACAO_REDUCAO" ng-obrigatorio="true" | |
435 | - form="configuracaoPatrimonioForm" ng-list="dominiosTipoReavaliacaoReducao" | |
436 | - ng-custom-options="dominioTipoReavaliacaoReducao.codigo as dominioTipoReavaliacaoReducao.descricao for dominioTipoReavaliacaoReducao"> </label-select> | |
437 | - <div ng-show="parametro.TIPO_DEP_REAVALIACAO_REDUCAO == 1" class="col-sm-12"> | |
438 | - <small><translate>PORTAL.MSG.DETALHE_REINICIAR_DEP_REAV_RED</translate></small> | |
439 | - </div> | |
440 | - <div ng-show="parametro.TIPO_DEP_REAVALIACAO_REDUCAO == 2" class="col-sm-12"> | |
441 | - <small><translate>PORTAL.MSG.DETALHE_ENTRADA_DEP_ACUMULADA_DEP_REAV_RED</translate></small> | |
342 | + <!-- .row --> | |
343 | + | |
344 | + <div class="row"> | |
345 | + <div class="col-sm-12"> | |
346 | + <div class="form-group"> | |
347 | + <label class="control-label"><translate>PORTAL.LABEL.LOGO_RELATORIO</translate></label> | |
348 | + | |
349 | + <div nv-file-drop="" uploader="uploaderLogo" onclick="$('#uploadLogoOrganizacao').click();"> | |
350 | + <div nv-file-over="" uploader="uploaderLogo" over-class="another-file-over-class" class="well my-drop-zone"> | |
351 | + <span ng-show="uploaderLogo.queue.length <= 0"><translate>MSG.ARRASTE_SOLTE_ARQUIVO</translate></span> <span ng-show="uploaderLogo.queue.length > 0">{{uploaderLogo.queue[0].file.name}}</span> | |
352 | + </div> | |
353 | + </div> | |
354 | + <input id="uploadLogoOrganizacao" type="file" nv-file-select="" uploader="uploaderLogo" ng-show="false" /> | |
355 | + | |
356 | + </div> | |
357 | + <!-- .form-group --> | |
358 | + | |
359 | + <div> | |
360 | + <img ng-src="data:image/JPEG;base64,{{configuracao.anexoImagem.anexo}}" class="img-thumbnail" style="max-width: 300px; height: auto;"> | |
361 | + <!-- <div ng-show="uploaderLogo.isHTML5" upload-thumb="{ file: uploaderLogo.queue[0]._file, height: 100 }"> --> | |
362 | + <!-- </div> --> | |
363 | + </div> | |
364 | + | |
365 | + </div> | |
442 | 366 | </div> |
443 | - </div> | |
444 | - <!-- .col --> | |
445 | - </div> | |
446 | - <!-- .row --> | |
447 | - </br> | |
448 | - <div class="row"> | |
449 | - <div class="col-sm-8"> | |
450 | - <label-select ng-id="parametro.TIPO_MOV_REAVALIACAO_REDUCAO" ng-model="parametro.TIPO_MOV_REAVALIACAO_REDUCAO" ng-label="PORTAL.LABEL.TIPO_MOV_REAVALIACAO_REDUCAO" ng-obrigatorio="true" | |
451 | - form="configuracaoPatrimonioForm" ng-list="dominiosTipoMovReavaliacaoReducao" | |
452 | - ng-custom-options="dominioTipoMovReavaliacaoReducao.codigo as dominioTipoMovReavaliacaoReducao.descricao for dominioTipoMovReavaliacaoReducao"> </label-select> | |
453 | - <div ng-show="parametro.TIPO_MOV_REAVALIACAO_REDUCAO == 1" class="col-sm-12"> | |
454 | - <small><translate>PORTAL.MSG.DETALHE_SAIDA_VALOR_ANTIGO_ENTRADA_VALOR_NOVO</translate></small> | |
455 | - </div> | |
456 | - <div ng-show="parametro.TIPO_MOV_REAVALIACAO_REDUCAO == 2" class="col-sm-12"> | |
457 | - <small><translate>PORTAL.MSG.DETALHE_ENTRADA_SAIDA_DIFERENCA_ENTRE_VALORES</translate></small> | |
367 | + | |
368 | + <div class="row margin-top"> | |
369 | + <div class="col-sm-4"> | |
370 | + <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
371 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
372 | + </button> | |
373 | + </div> | |
374 | + <!-- .col --> | |
458 | 375 | </div> |
459 | - </div> | |
460 | - <!-- .col --> | |
461 | - </div> | |
462 | - <!-- .row --> | |
463 | - | |
464 | - <div class="row margin-top"> | |
465 | - <div class="col-sm-4"> | |
466 | - <button class="btn btn-success" ng-disabled="configuracaoPatrimonioForm.$invalid" ng-click="saveOrUpdateParametros();"> | |
467 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
468 | - </button> | |
469 | - </div> | |
470 | - <!-- .col --> | |
471 | - </div> | |
472 | - <!-- .row --> | |
473 | - </fieldset> | |
474 | - </form> | |
475 | - </tab> <tab> <tab-heading> <translate>LABEL.CONF_GERAL</translate></tab-heading> | |
476 | - | |
477 | - <form name="configuracaoGeralForm"> | |
478 | - <fieldset> | |
479 | - <div class="row"> | |
480 | - <div class="col-sm-8"> | |
481 | - <label-input-radio ng-label="PORTAL.LABEL.MASCARA_NUMERO_IDENTIFICACAO" list="radioValueList" ng-model="mascara.dominioTipoMascara.codigo" ng-disabled="false" text="descricao" ng-obrigatorio="true" | |
482 | - value="codigo" form="configuracaoGeralForm" ng-click="configurarMascara()"></label-input-radio> | |
483 | - </div> | |
484 | - <!-- .col --> | |
485 | - </div> | |
486 | - <!-- .row --> | |
487 | - | |
488 | - <div class="row"> | |
489 | - <div class="col-sm-2"> | |
490 | - <label-input-number label-info-tooltip="{{$translate.instant('PORTAL.MSG.INFO_TAMANHO_MASCARA_OPERACAO')}}" ng-id="mascara.tamanhoSequencial" ng-label="PORTAL.LABEL.TAMANHO_MASCARA" | |
491 | - form="configuracaoGeralForm" ng-disabled="false" ng-obrigatorio="true" ng-model="mascara.tamanhoSequencial" ng-custom-maxlength="2" ng-min-number="5" ng-max-number="10" | |
492 | - ng-keyup="configurarMascara()" /> | |
493 | - </div> | |
494 | - <!-- .col --> | |
495 | - </div> | |
496 | - <!-- .row --> | |
497 | - | |
498 | - <div class="row"> | |
499 | - <div class="col-sm-2"> | |
500 | - <label-input ng-type="text" ng-id="parametro.MASCARA_NUMERO_IDENTIFICACAO" form="configuracaoGeralForm" ng-disabled="true" ng-model="parametro.MASCARA_NUMERO_IDENTIFICACAO"></label-input> | |
501 | - </div> | |
502 | - <!-- .col --> | |
503 | - </div> | |
504 | - | |
505 | - <div class="row"> | |
506 | - <div class="col-sm-2"> | |
507 | - <label-input-number label-info-tooltip="{{$translate.instant('PORTAL.MSG.INFO_TEMPO_GRAVACAO_RASCUNHO')}}" ng-id="parametro.TEMPO_GRAVACAO_RASCUNHO" ng-label="PORTAL.LABEL.TEMPO_GRAVACAO_RASCUNHO" | |
508 | - form="configuracaoGeralForm" ng-disabled="false" ng-obrigatorio="true" ng-model="parametro.TEMPO_GRAVACAO_RASCUNHO" ng-custom-maxlength="3" ng-min-number="10" ng-max-number="300" /> | |
509 | - | |
510 | - <!-- <label-input ng-type="text" ng-id="parametro.MASCARA_NUMERO_IDENTIFICACAO" form="configuracaoGeralForm" ng-disabled="true" ng-model="parametro.MASCARA_NUMERO_IDENTIFICACAO"></label-input> --> | |
511 | - </div> | |
512 | - <!-- .col --> | |
513 | - </div> | |
514 | - <!-- .row --> | |
515 | - | |
516 | - <div class="row margin-top"> | |
517 | - <div class="col-sm-2"> | |
518 | - <button class="btn btn-success" ng-disabled="configuracaoGeralForm.$invalid" ng-click="saveOrUpdateParametrosGeral();"> | |
519 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
520 | - </button> | |
521 | - </div> | |
522 | - <!-- .col --> | |
523 | - </div> | |
524 | - <!-- .row --> | |
525 | - </fieldset> | |
526 | - </form> | |
527 | - </tab> <tab> <tab-heading> <translate>LABEL.UNIDADE_PRINCIPAL</translate> </tab-heading> | |
528 | - | |
529 | - <form name="configuracaoPermissaoForm"> | |
530 | - | |
531 | - <div class="row"> | |
532 | - <div class="col-md-6"> | |
533 | - <auto-complete ng-id="unidade" ng-set-result="setUnidade(item)" ng-label="LABEL.UNIDADE" ng-model="parametro.unidadeAdd" form="configuracaoPermissaoForm" ng-disabled="false" | |
534 | - ng-find="findUnidade(value)" ng-item="item.estruturaOrganizacional.codigoENome" /> | |
535 | - </div> | |
536 | - </div> | |
537 | - | |
538 | - <div class="row"> | |
539 | - <div class="col-sm-12"> | |
540 | - <div class="panel panel-default"> | |
541 | - <div class="panel-heading clearfix"> | |
542 | - | |
543 | - <button class="btn btn-clear" type="button" ng-click="dialogRemocaoUnidade()" ng-show='configuracaoUsuarioUnidades.length != 0'> | |
544 | - <i class="fa fa-times red"></i> | |
545 | - <translate>LABEL.REMOVER</translate> | |
546 | - </button> | |
376 | + <!-- .row --> | |
377 | + </fieldset> | |
378 | + </form> | |
379 | + </tab> | |
380 | + <tab ng-if="almoxarifadoAtivo"> | |
381 | + <tab-heading> <translate>PORTAL.LABEL.CONF_ALMOXARIFADO</translate></tab-heading> | |
547 | 382 | |
383 | + <form name="configuracaoAlmoxarifadoForm"> | |
384 | + <fieldset> | |
385 | + <div class="row"> | |
386 | + <div class="col-sm-3"> | |
387 | + <label-select ng-id="parametro.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-model="parametro.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-label="PORTAL.LABEL.TIPO_AVALIACAO_MONETARIA_ESTOQUE" ng-obrigatorio="true" | |
388 | + form="configuracaoAlmoxarifadoForm" ng-list="dominiosTipoAvaliacaoMonetariaEstoque" ng-custom-options="dominioTipoAvaliacao.codigo as dominioTipoAvaliacao.descricao for dominioTipoAvaliacao"></label-select> | |
389 | + </div> | |
390 | + <!-- .col --> | |
548 | 391 | </div> |
392 | + <!-- .row --> | |
393 | + | |
394 | + <div class="row"> | |
395 | + <div class="col-sm-2"> | |
396 | + <label-input-number ng-id="parametro.MARGEM_ERRO_PRECO_MEDIO" ng-label="PORTAL.LABEL.MARGEM_PRECO_MEDIO" form="configuracaoAlmoxarifadoForm" ng-disabled="false" ng-obrigatorio="true" | |
397 | + ng-model="parametro.MARGEM_ERRO_PRECO_MEDIO" ng-custom-maxlength="3" ng-min-number="0" ng-max-number="100" /> | |
398 | + </div> | |
399 | + <!-- .col --> | |
400 | + </div> | |
401 | + <!-- .row --> | |
402 | + | |
403 | + <div class="row margin-top"> | |
404 | + <div class="col-sm-4"> | |
405 | + <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
406 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
407 | + </button> | |
408 | + </div> | |
409 | + <!-- .col --> | |
410 | + </div> | |
411 | + <!-- .row --> | |
412 | + </fieldset> | |
413 | + </form> | |
414 | + </tab> | |
415 | + <tab ng-if="patrimonioAtivo"> | |
416 | + <tab-heading> <translate>PORTAL.LABEL.CONF_PATRIMONIO</translate></tab-heading> | |
549 | 417 | |
550 | - <table class="table table-bordered table-striped"> | |
551 | - <thead> | |
552 | - <tr> | |
553 | - <th class="text-center" style="width: 5%;"></th> | |
554 | - <th style="width: 10%;"><translate>LABEL.CODIGO</translate></th> | |
555 | - <th style="width: 10%;"><translate>LABEL.SIGLA</translate></th> | |
556 | - <th style="width: 20%;"><translate>LABEL.LOCALIZACAO</translate></th> | |
557 | - <th style="width: 45%;"><translate>LABEL.NOME</translate></th> | |
558 | - <th style="width: 10%;"><translate>PORTAL.LABEL.UNIDADE_PRINCIPAL</translate></th> | |
559 | - </tr> | |
560 | - </thead> | |
561 | - <tbody> | |
562 | - <tr ng-repeat="configuracao in configuracaoUsuarioUnidades"> | |
563 | - <td class="text-center"><input type="radio" ng-value='configuracao' ng-model="$parent.parametro.configuracaoUnidade" /></td> | |
564 | - <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.codigo}}</td> | |
565 | - <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.sigla}}</td> | |
566 | - <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.localizacao.nome}}</td> | |
567 | - <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.nome}}</td> | |
568 | - <td class="text-center"> | |
569 | - <input type="radio" ng-model="unidade.unidadePrincipal" name="configuracao" ng-value='configuracao.estruturaOrganizacionalECM'/> | |
570 | - </td> | |
571 | - </tr> | |
572 | - <tr ng-hide="configuracaoUsuarioUnidades.length != 0"> | |
573 | - <td colspan="6"><translate>LABEL.TABELA_VAZIA</translate></td> | |
574 | - </tr> | |
575 | - | |
576 | - </tbody> | |
577 | - </table> | |
578 | - | |
579 | - </div> | |
580 | - </div> | |
581 | - </div> | |
418 | + <form name="configuracaoPatrimonioForm"> | |
419 | + <fieldset> | |
420 | + <div class="row"> | |
421 | + <div class="col-sm-4"> | |
422 | + <label-input-number ng-type="text" ng-id="parametro.PATRIMONIO_MASCARA_NUMERO_PATRIMONIO" form="configuracaoPatrimonioForm" ng-custom-maxlength="15" ng-disabled="false" | |
423 | + ng-label="PORTAL.LABEL.MASCARA_NUMERO_PATRIMONIO" ng-obrigatorio="true" ng-model="parametro.PATRIMONIO_MASCARA_NUMERO_PATRIMONIO"></label-input-number> | |
424 | + <div class="col-sm-12"> | |
425 | + <small><translate>PORTAL.MSG.FORMATO_MASCARA_NUMERO_PATRIMONIAL</translate></small> | |
426 | + </div> | |
427 | + </div> | |
428 | + <!-- .col --> | |
429 | + </div> | |
430 | + <!-- .row --> | |
431 | + <br /> | |
432 | + <div class="row"> | |
433 | + <div class="col-sm-8"> | |
434 | + <div> | |
435 | + <auto-complete ng-id="parametro.CONTA_CONTABIL_ALMOXARIFADO" ng-label="PORTAL.LABEL.CONTA_ALMOXARIFADO" ng-model="contaAlmoxarifado" form="configuracaoPatrimonioForm" ng-obrigatorio="true" | |
436 | + ng-disabled="contaAlmoxarifadoEmUso" ng-find="findContaAlmoxarifado(value)" ng-item="item.codigo + ' / ' + item.descricao" ng-set-result="defineContaAlmox(item.id)" /> | |
437 | + </div> | |
438 | + <div class="col-sm-12"> | |
439 | + <small><translate>LABEL.PROIBIDO_EDITAR_APOS_USO_CONTA</translate></small> | |
440 | + </div> | |
441 | + </div> | |
442 | + </div> | |
443 | + </br> | |
444 | + <div class="row"> | |
445 | + <div class="col-sm-8"> | |
446 | + <label-select ng-id="parametro.TIPO_DEP_REAVALIACAO_REDUCAO" ng-model="parametro.TIPO_DEP_REAVALIACAO_REDUCAO" ng-label="PORTAL.LABEL.TIPO_DEP_REAVALIACAO_REDUCAO" ng-obrigatorio="true" | |
447 | + form="configuracaoPatrimonioForm" ng-list="dominiosTipoReavaliacaoReducao" | |
448 | + ng-custom-options="dominioTipoReavaliacaoReducao.codigo as dominioTipoReavaliacaoReducao.descricao for dominioTipoReavaliacaoReducao"> </label-select> | |
449 | + <div ng-show="parametro.TIPO_DEP_REAVALIACAO_REDUCAO == 1" class="col-sm-12"> | |
450 | + <small><translate>PORTAL.MSG.DETALHE_REINICIAR_DEP_REAV_RED</translate></small> | |
451 | + </div> | |
452 | + <div ng-show="parametro.TIPO_DEP_REAVALIACAO_REDUCAO == 2" class="col-sm-12"> | |
453 | + <small><translate>PORTAL.MSG.DETALHE_ENTRADA_DEP_ACUMULADA_DEP_REAV_RED</translate></small> | |
454 | + </div> | |
455 | + </div> | |
456 | + <!-- .col --> | |
457 | + </div> | |
458 | + <!-- .row --> | |
459 | + </br> | |
460 | + <div class="row"> | |
461 | + <div class="col-sm-8"> | |
462 | + <label-select ng-id="parametro.TIPO_MOV_REAVALIACAO_REDUCAO" ng-model="parametro.TIPO_MOV_REAVALIACAO_REDUCAO" ng-label="PORTAL.LABEL.TIPO_MOV_REAVALIACAO_REDUCAO" ng-obrigatorio="true" | |
463 | + form="configuracaoPatrimonioForm" ng-list="dominiosTipoMovReavaliacaoReducao" | |
464 | + ng-custom-options="dominioTipoMovReavaliacaoReducao.codigo as dominioTipoMovReavaliacaoReducao.descricao for dominioTipoMovReavaliacaoReducao"> </label-select> | |
465 | + <div ng-show="parametro.TIPO_MOV_REAVALIACAO_REDUCAO == 1" class="col-sm-12"> | |
466 | + <small><translate>PORTAL.MSG.DETALHE_SAIDA_VALOR_ANTIGO_ENTRADA_VALOR_NOVO</translate></small> | |
467 | + </div> | |
468 | + <div ng-show="parametro.TIPO_MOV_REAVALIACAO_REDUCAO == 2" class="col-sm-12"> | |
469 | + <small><translate>PORTAL.MSG.DETALHE_ENTRADA_SAIDA_DIFERENCA_ENTRE_VALORES</translate></small> | |
470 | + </div> | |
471 | + </div> | |
472 | + <!-- .col --> | |
473 | + </div> | |
474 | + <!-- .row --> | |
475 | + | |
476 | + <div class="row margin-top"> | |
477 | + <div class="col-sm-4"> | |
478 | + <button class="btn btn-success" ng-disabled="configuracaoPatrimonioForm.$invalid" ng-click="saveOrUpdateParametros();"> | |
479 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
480 | + </button> | |
481 | + </div> | |
482 | + <!-- .col --> | |
483 | + </div> | |
484 | + <!-- .row --> | |
485 | + </fieldset> | |
486 | + </form> | |
487 | + </tab> | |
488 | + <tab> | |
489 | + <tab-heading> <translate>LABEL.CONF_GERAL</translate></tab-heading> | |
582 | 490 | |
583 | - <div class="row margin-top"> | |
584 | - <div class="col-sm-2"> | |
585 | - <button class="btn btn-success" ng-click="salvarConfiguracaoUsuarioUnidade();"> | |
586 | - <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
587 | - </button> | |
588 | - </div> | |
589 | - </div> | |
590 | - </form> | |
591 | - </tab> | |
592 | - | |
593 | - <tab ng-show="contratosAtivo"> | |
594 | - <tab-heading> <translate>PORTAL.LABEL.DEFINICOES_CONTRATOS</translate></tab-heading> | |
595 | - <form name="definicoesContratoForm"> | |
491 | + <form name="configuracaoGeralForm"> | |
596 | 492 | <fieldset> |
597 | - <!-- | |
598 | 493 | <div class="row"> |
599 | - <div class="col-sm-6"> | |
600 | - <div class="form-group"> | |
601 | - <label-input-money ng-id="parametro.VALOR_CONTRATO_REFERENCIA_GARANTIA" name="definicoesContrato.valorContratoReferenciaGarantia" | |
602 | - ng-label="CONTRATOS.LABEL.VALOR_CONTRATO_REFERENCIA_GARANTIA" ng-model="parametro.VALOR_CONTRATO_REFERENCIA_GARANTIA" | |
603 | - form="definicoesContratoForm" ng-custom-maxlength="19" ng-obrigatorio="false" ng-disabled="edit" /> | |
604 | - </div>.form-group | |
605 | - </div>.col | |
606 | - </div>.row | |
607 | - --> | |
494 | + <div class="col-sm-8"> | |
495 | + <label-input-radio ng-label="PORTAL.LABEL.MASCARA_NUMERO_IDENTIFICACAO" list="radioValueList" ng-model="mascara.dominioTipoMascara.codigo" ng-disabled="false" text="descricao" ng-obrigatorio="true" | |
496 | + value="codigo" form="configuracaoGeralForm" ng-click="configurarMascara()"></label-input-radio> | |
497 | + </div> | |
498 | + <!-- .col --> | |
499 | + </div> | |
500 | + <!-- .row --> | |
501 | + | |
608 | 502 | <div class="row"> |
609 | - <div class="col-sm-12"> | |
610 | - <div class="form-group"> | |
611 | - <label-text-area ng-id="parametro.TERMO_ENCERRAMENTO_INTRODUCAO" | |
612 | - name="definicoesContrato.termoEncerramentoIntroducao" | |
613 | - ng-model="parametro.TERMO_ENCERRAMENTO_INTRODUCAO" | |
614 | - ng-label="LABEL.TERMO_ENCERRAMENTO_INTRODUCAO" ng-custom-maxlength="500" | |
615 | - ng-obrigatorio="true" form="definicoesContratoForm" ng-disabled="edit" rows="2"/> | |
616 | - </div><!-- .form-group --> | |
617 | - </div><!-- .col --> | |
618 | - </div><!-- .row --> | |
503 | + <div class="col-sm-2"> | |
504 | + <label-input-number label-info-tooltip="{{$translate.instant('PORTAL.MSG.INFO_TAMANHO_MASCARA_OPERACAO')}}" ng-id="mascara.tamanhoSequencial" ng-label="PORTAL.LABEL.TAMANHO_MASCARA" | |
505 | + form="configuracaoGeralForm" ng-disabled="false" ng-obrigatorio="true" ng-model="mascara.tamanhoSequencial" ng-custom-maxlength="2" ng-min-number="5" ng-max-number="10" | |
506 | + ng-keyup="configurarMascara()" /> | |
507 | + </div> | |
508 | + <!-- .col --> | |
509 | + </div> | |
510 | + <!-- .row --> | |
511 | + | |
619 | 512 | <div class="row"> |
620 | - <div class="col-sm-12"> | |
621 | - <div class="form-group"> | |
622 | - <label-text-area ng-id="parametro.TERMO_ENCERRAMENTO_ENCAMINHAMENTOS" | |
623 | - name="definicoesContrato.termoEncerramentoEncaminhamentos" | |
624 | - ng-model="parametro.TERMO_ENCERRAMENTO_ENCAMINHAMENTOS" | |
625 | - ng-label="LABEL.TERMO_ENCERRAMENTO_ENCAMINHAMENTOS" ng-custom-maxlength="4000" | |
626 | - ng-obrigatorio="true" form="definicoesContratoForm" ng-disabled="edit" rows="6"/> | |
627 | - </div><!-- .form-group --> | |
628 | - </div><!-- .col --> | |
629 | - </div><!-- .row --> | |
513 | + <div class="col-sm-2"> | |
514 | + <label-input ng-type="text" ng-id="parametro.MASCARA_NUMERO_IDENTIFICACAO" form="configuracaoGeralForm" ng-disabled="true" ng-model="parametro.MASCARA_NUMERO_IDENTIFICACAO"></label-input> | |
515 | + </div> | |
516 | + <!-- .col --> | |
517 | + </div> | |
518 | + | |
630 | 519 | <div class="row"> |
631 | - <div class="col-sm-12"> | |
632 | - <div class="form-group"> | |
633 | - <label-text-area ng-id="parametro.TERMO_ENCERRAMENTO_DECISAO" | |
634 | - name="definicoesContrato.termoEncerramentoDecisao" | |
635 | - ng-model="parametro.TERMO_ENCERRAMENTO_DECISAO" | |
636 | - ng-label="LABEL.TERMO_ENCERRAMENTO_DECISAO" ng-custom-maxlength="500" | |
637 | - ng-obrigatorio="true" form="definicoesContratoForm" ng-disabled="edit" rows="1"/> | |
638 | - </div><!-- .form-group --> | |
639 | - </div><!-- .col --> | |
640 | - </div><!-- .row --> | |
520 | + <div class="col-sm-2"> | |
521 | + <label-input-number label-info-tooltip="{{$translate.instant('PORTAL.MSG.INFO_TEMPO_GRAVACAO_RASCUNHO')}}" ng-id="parametro.TEMPO_GRAVACAO_RASCUNHO" ng-label="PORTAL.LABEL.TEMPO_GRAVACAO_RASCUNHO" | |
522 | + form="configuracaoGeralForm" ng-disabled="false" ng-obrigatorio="true" ng-model="parametro.TEMPO_GRAVACAO_RASCUNHO" ng-custom-maxlength="3" ng-min-number="10" ng-max-number="300" /> | |
523 | + | |
524 | + <!-- <label-input ng-type="text" ng-id="parametro.MASCARA_NUMERO_IDENTIFICACAO" form="configuracaoGeralForm" ng-disabled="true" ng-model="parametro.MASCARA_NUMERO_IDENTIFICACAO"></label-input> --> | |
525 | + </div> | |
526 | + <!-- .col --> | |
527 | + </div> | |
528 | + <!-- .row --> | |
529 | + | |
530 | + <div class="row margin-top"> | |
531 | + <div class="col-sm-2"> | |
532 | + <button class="btn btn-success" ng-disabled="configuracaoGeralForm.$invalid" ng-click="saveOrUpdateParametrosGeral();"> | |
533 | + <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> | |
534 | + </button> | |
535 | + </div> | |
536 | + <!-- .col --> | |
537 | + </div> | |
538 | + <!-- .row --> | |
641 | 539 | </fieldset> |
540 | + </form> | |
541 | + </tab> | |
542 | + <tab> | |
543 | + <tab-heading> <translate>LABEL.UNIDADE_PRINCIPAL</translate> </tab-heading> | |
544 | + | |
545 | + <form name="configuracaoPermissaoForm"> | |
546 | + | |
547 | + <div class="row"> | |
548 | + <div class="col-md-6"> | |
549 | + <auto-complete ng-id="unidade" ng-set-result="setUnidade(item)" ng-label="LABEL.UNIDADE" ng-model="parametro.unidadeAdd" form="configuracaoPermissaoForm" ng-disabled="false" | |
550 | + ng-find="findUnidade(value)" ng-item="item.estruturaOrganizacional.codigoENome" /> | |
551 | + </div> | |
552 | + </div> | |
553 | + | |
554 | + <div class="row"> | |
555 | + <div class="col-sm-12"> | |
556 | + <div class="panel panel-default"> | |
557 | + <div class="panel-heading clearfix"> | |
558 | + | |
559 | + <button class="btn btn-clear" type="button" ng-click="dialogRemocaoUnidade()" ng-show='configuracaoUsuarioUnidades.length != 0'> | |
560 | + <i class="fa fa-times red"></i> | |
561 | + <translate>LABEL.REMOVER</translate> | |
562 | + </button> | |
563 | + | |
564 | + </div> | |
565 | + | |
566 | + <table class="table table-bordered table-striped"> | |
567 | + <thead> | |
568 | + <tr> | |
569 | + <th class="text-center" style="width: 5%;"></th> | |
570 | + <th style="width: 10%;"><translate>LABEL.CODIGO</translate></th> | |
571 | + <th style="width: 10%;"><translate>LABEL.SIGLA</translate></th> | |
572 | + <th style="width: 20%;"><translate>LABEL.LOCALIZACAO</translate></th> | |
573 | + <th style="width: 45%;"><translate>LABEL.NOME</translate></th> | |
574 | + <th style="width: 10%;"><translate>PORTAL.LABEL.UNIDADE_PRINCIPAL</translate></th> | |
575 | + </tr> | |
576 | + </thead> | |
577 | + <tbody> | |
578 | + <tr ng-repeat="configuracao in configuracaoUsuarioUnidades"> | |
579 | + <td class="text-center"><input type="radio" ng-value='configuracao' ng-model="$parent.parametro.configuracaoUnidade" /></td> | |
580 | + <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.codigo}}</td> | |
581 | + <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.sigla}}</td> | |
582 | + <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.localizacao.nome}}</td> | |
583 | + <td>{{configuracao.estruturaOrganizacionalECM.estruturaOrganizacional.nome}}</td> | |
584 | + <td class="text-center"> | |
585 | + <input type="radio" ng-model="unidade.unidadePrincipal" name="configuracao" ng-value='configuracao.estruturaOrganizacionalECM'/> | |
586 | + </td> | |
587 | + </tr> | |
588 | + <tr ng-hide="configuracaoUsuarioUnidades.length != 0"> | |
589 | + <td colspan="6"><translate>LABEL.TABELA_VAZIA</translate></td> | |
590 | + </tr> | |
591 | + | |
592 | + </tbody> | |
593 | + </table> | |
594 | + | |
595 | + </div> | |
596 | + </div> | |
597 | + </div> | |
598 | + | |
642 | 599 | <div class="row margin-top"> |
643 | 600 | <div class="col-sm-2"> |
644 | - <button class="btn btn-success" ng-click="saveOrUpdateParametros();"> | |
601 | + <button class="btn btn-success" ng-click="salvarConfiguracaoUsuarioUnidade();"> | |
645 | 602 | <translate>PORTAL.LABEL.SALVAR_CONFIGURACAO</translate> |
646 | 603 | </button> |
647 | 604 | </div> | ... | ... |