Commit 31a343e21ad0935c40096e82848e4602e5e999da

Authored by Ronan Tavares Camargo
1 parent d94160fb
Exists in master

Redmine #4587

Showing 25 changed files with 176 additions and 49 deletions   Show diff stats
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ContratoController.js
... ... @@ -1002,6 +1002,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1002 1002  
1003 1003 $scope.contratoEmpenhoTemp = {};
1004 1004 $scope.editEmpenho = true;
  1005 + $scope.showButtonSalvarEmpenho = false;
1005 1006 $scope.$openModal('modal-empenho.html', 'lg');
1006 1007 } else {
1007 1008 $scope.showAlert('error', $translate.instant('CONTRATOS.VALIDACAO.NECESSARIO_VALOR_CONTRATO_INFO_EMPENHO'));
... ... @@ -1173,6 +1174,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1173 1174 $scope.abrirEmpenho = function(edit) {
1174 1175  
1175 1176 $scope.editEmpenho = edit;
  1177 + $scope.showButtonSalvarEmpenho = edit;
1176 1178  
1177 1179 $scope.contratoEmpenhoTemp = null;
1178 1180  
... ... @@ -1231,6 +1233,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1231 1233  
1232 1234 $scope.itemContratoTemp = {};
1233 1235 $scope.editItemContrato = true;
  1236 + $scope.showButtonSalvarItem = false;
1234 1237 $scope.$openModal('modal-item-contrato.html', 'lg');
1235 1238 } else {
1236 1239 $scope.showAlert('error', $translate.instant('CONTRATOS.VALIDACAO.NECESSARIO_VALOR_CONTRATO_INFO_ITENS_CONTRATO'));
... ... @@ -1370,6 +1373,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1370 1373 $scope.abrirItemContrato = function(edit) {
1371 1374  
1372 1375 $scope.editItemContrato = edit;
  1376 + $scope.showButtonSalvarItem = edit;
1373 1377  
1374 1378 $scope.itemContratoTemp = null;
1375 1379  
... ... @@ -1423,6 +1427,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1423 1427 $scope.openModalContratoEnvolvido = function() {
1424 1428  
1425 1429 $scope.editEnvolvido = true;
  1430 + $scope.showButtonSalvarEnvolvido = false;
1426 1431 $scope.contratoEnvolvidoTemp = {justificativas : []};
1427 1432 $scope.contrato.ctrtEnvolvidos.forEach(function(item){
1428 1433 if(item.$checked){
... ... @@ -1603,6 +1608,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C
1603 1608 $scope.visualizarEditarContratoEnvolvido = function(edit) {
1604 1609  
1605 1610 $scope.editEnvolvido = edit;
  1611 + $scope.showButtonSalvarEnvolvido = edit;
1606 1612 $scope.contratoEnvolvidoTemp = null;
1607 1613 // recupera o item de contrato selecionado
1608 1614 $scope.contratoEnvolvidoTemp = $scope.getCheckedContratoEnvolvido();
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/CronogramaExecucaoController.js
... ... @@ -107,6 +107,7 @@ citApp.controller('CronogramaExecucaoController', ['$scope', '$translate', '$tim
107 107  
108 108 if ($scope.cronogramaExecucao.contrato) {
109 109 $scope.editItemCronograma = true;
  110 + $scope.showButtonSalvarItem = false;
110 111  
111 112 limparItemCronogramaExecucao();
112 113  
... ... @@ -264,6 +265,7 @@ citApp.controller('CronogramaExecucaoController', ['$scope', '$translate', '$tim
264 265  
265 266 limparItemCronogramaExecucao();
266 267 $scope.editItemCronograma = edit;
  268 + $scope.showButtonSalvarItem = edit;
267 269  
268 270 var lista = recuperarItensSelecionadas();
269 271 if (lista.length === 0) {
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js
... ... @@ -546,7 +546,8 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
546 546 });
547 547  
548 548 $scope.editRequisitoNegocio = true;
549   -
  549 + $scope.showButtonSalvar = false;
  550 +
550 551 $scope.reqNegocio = {};
551 552  
552 553 $timeout(function() {
... ... @@ -576,6 +577,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
576 577  
577 578 $scope.openModalSolucao = function() {
578 579 $scope.editSolucao = true;
  580 + $scope.showButtonSalvarSolucao = false;
579 581  
580 582 resetModalSolucao();
581 583  
... ... @@ -586,6 +588,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
586 588  
587 589 $scope.openModalBensServico = function() {
588 590 $scope.editBemServico = true;
  591 + $scope.showButtonSalvarBens = false;
589 592  
590 593 $scope.bemServico = {};
591 594  
... ... @@ -597,6 +600,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
597 600 $scope.openModalBeneficioEsperado = function() {
598 601  
599 602 $scope.editBeneficioEsperado = true;
  603 + $scope.showButtonSalvarBeneficio = false;
600 604  
601 605 $scope.beneficioEsperado = {};
602 606  
... ... @@ -613,7 +617,9 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
613 617 };
614 618  
615 619 $scope.editRecursoMaterial = true;
616   - $scope.$openModal('modal-recurso-material.html', 'lg');
  620 + $scope.showButtonSalvarRMaterial = false;
  621 +
  622 + $scope.$openModal('modal-recurso-material.html', 'lg');
617 623 };
618 624  
619 625 // Responsavel por abrir modal de adicao de um recurso humano
... ... @@ -621,11 +627,13 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
621 627  
622 628 $scope.estudoTecnicoRecursoHumanoTemp = {};
623 629 $scope.editRecursoHumano = true;
  630 + $scope.showButtonSalvarRHumano = false;
624 631 $scope.$openModal('modal-recurso-humano.html', 'lg');
625 632 };
626 633  
627 634 $scope.openModalAcaoContingencia = function() {
628 635 $scope.editAcaoCont = true;
  636 + $scope.showButtonSalvarAcaoCont = false;
629 637  
630 638 $scope.acaoCont = {};
631 639  
... ... @@ -641,6 +649,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
641 649 });
642 650  
643 651 $scope.editRequisitoNegocio = edit;
  652 + $scope.showButtonSalvar = edit;
644 653  
645 654 $scope.reqNegocio = null;
646 655 // recupera a EstudoTecnico selecionada
... ... @@ -668,6 +677,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
668 677 $scope.abrirSolucao = function(edit) {
669 678  
670 679 $scope.editSolucao = edit;
  680 + $scope.showButtonSalvarSolucao = edit;
671 681  
672 682 $scope.solucao = null;
673 683  
... ... @@ -701,6 +711,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
701 711 $scope.abrirBensServico = function(edit) {
702 712  
703 713 $scope.editBemServico = edit;
  714 + $scope.showButtonSalvarBens = edit;
704 715  
705 716 $scope.bemServico = null;
706 717  
... ... @@ -726,6 +737,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
726 737 $scope.abrirBeneficioEsperado = function(edit) {
727 738  
728 739 $scope.editBeneficioEsperado = edit;
  740 + $scope.showButtonSalvarBeneficio = edit;
729 741  
730 742 $scope.beneficioEsperado = null;
731 743  
... ... @@ -752,22 +764,23 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
752 764 $scope.abrirRecursoMaterial = function(edit) {
753 765  
754 766 $scope.editRecursoMaterial = edit;
  767 + $scope.showButtonSalvarRMaterial = edit;
755 768  
756 769 $scope.estudoTecnicoRecursoMaterialTemp = null;
757 770  
758   - var recursosMateriaisSelecionados = $scope.getRecursoMaterialChecked();
  771 + var recursosMateriaisSelecionados = $scope.getRecursoMaterialChecked();
759 772  
760 773 if (recursosMateriaisSelecionados.length > 1) {
761 774 $scope.showAlert('warning', edit? $translate.instant('MSG.SELECIONE_APENAS_UM_ITEM_PARA_EDICAO') : $translate.instant('MSG.SELECIONE_APENAS_UM_ITEM_PARA_VISUALIZACAO'));
762   - return;
  775 + return;
763 776 }
764 777  
765   - if(recursosMateriaisSelecionados.length === 0) {
766   - $scope.showAlert('warning', edit? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO'));
767   - return;
768   - }
  778 + if(recursosMateriaisSelecionados.length === 0) {
  779 + $scope.showAlert('warning', edit? $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_EDICAO') : $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO'));
  780 + return;
  781 + }
769 782  
770   - $scope.estudoTecnicoRecursoMaterialTemp = recursosMateriaisSelecionados[0];
  783 + $scope.estudoTecnicoRecursoMaterialTemp = recursosMateriaisSelecionados[0];
771 784  
772 785 $timeout(function() {
773 786 $scope.$openModal('modal-recurso-material.html', 'lg');
... ... @@ -778,6 +791,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
778 791 $scope.abrirRecursoHumano = function(edit) {
779 792  
780 793 $scope.editRecursoHumano = edit;
  794 + $scope.showButtonSalvarRHumano = edit;
781 795  
782 796 $scope.estudoTecnicoRecursoHumanoTemp = null;
783 797  
... ... @@ -803,6 +817,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
803 817 $scope.abrirAcaoContingencia = function(edit) {
804 818  
805 819 $scope.editAcaoCont = edit;
  820 + $scope.showButtonSalvarAcaoCont = edit;
806 821  
807 822 $scope.acaoCont = null;
808 823  
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoListController.js
... ... @@ -75,7 +75,7 @@ citApp.controller('EstudoTecnicoListController', ['$scope', 'EstudoTecnicoReposi
75 75  
76 76 EstudoTecnicoRepository.remove(estudoTecnico).then(function(result) {
77 77 $scope.showAlert('success', $translate.instant('MSG.REGISTRO_EXCLUIDO'));
78   - $scope.atualizarLista('estudoTecnicoListControllerId');
  78 + angular.element('#EstudoTecnicoListControllerId').scope().fetchResult();
79 79 });
80 80  
81 81 };
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ObjetivoEstrategicoController.js
... ... @@ -35,6 +35,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
35 35 $scope.openModalNecessidade = function() {
36 36  
37 37 $scope.editNecessidade = true;
  38 + $scope.showButtonSalvar = false;
38 39  
39 40 $scope.objetivoEstrategicoNecessidade = {};
40 41  
... ... @@ -193,6 +194,7 @@ citApp.controller('ObjetivoEstrategicoController', ['$scope', '$translate', '$ti
193 194 $scope.editarNecessidade = function(edit) {
194 195  
195 196 $scope.editNecessidade = edit;
  197 + $scope.showButtonSalvar = true;
196 198  
197 199 var lista = recuperarNecessidadesSelecionadas();
198 200 if (lista.length === 0) {
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/OrdemFornecimentoController.js
... ... @@ -71,6 +71,7 @@ citApp.controller('OrdemFornecimentoController', ['$scope', 'OrdemFornecimentoRe
71 71 $scope.openModalItensBensServicos = function() {
72 72  
73 73 $scope.editItem = true;
  74 + $scope.showButtonSalvarItem = false;
74 75  
75 76 $scope.item = {};
76 77  
... ... @@ -91,6 +92,7 @@ citApp.controller('OrdemFornecimentoController', ['$scope', 'OrdemFornecimentoRe
91 92 $scope.abrirItensBensServicos = function(edit) {
92 93  
93 94 $scope.editItem = edit;
  95 + $scope.showButtonSalvarItem = edit;
94 96  
95 97 $scope.item = null;
96 98 // recupera a EstudoTecnico selecionada
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ProgramaController.js
... ... @@ -37,6 +37,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr
37 37 $scope.openModalProgramaAcao = function() {
38 38  
39 39 $scope.editProgramaAcao = true;
  40 + $scope.showButtonSalvar = false;
40 41  
41 42 $scope.programaAcao = {};
42 43  
... ... @@ -58,7 +59,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr
58 59 }
59 60  
60 61 $scope.limparProgramaAcao();
61   -
  62 +
62 63 if (continuar) {
63 64 formDialogProgramaAcao.$submitted = false;
64 65 formDialogProgramaAcao.$setPristine();
... ... @@ -189,6 +190,7 @@ citApp.controller('ProgramaController', ['$scope', '$translate', '$timeout', 'Pr
189 190 $scope.editAcao = function(edit) {
190 191  
191 192 $scope.editProgramaAcao = edit;
  193 + $scope.showButtonSalvar = true;
192 194  
193 195 var lista = recuperarAcoesSelecionadas();
194 196 if (lista.length === 0) {
... ...
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
... ... @@ -61,10 +61,12 @@ citApp.controller('TermoReferenciaController', ['$scope',
61 61 //Dados da tabela de Justificativa de Contratacao
62 62 $scope.headers = [{
63 63 title : $translate.instant('LABEL.NECESSIDADE_NEGOCIO'),
64   - value : 'objetivoEstrategicoNecessidade.descricao'
  64 + value : 'objetivoEstrategicoNecessidade.descricao',
  65 + align : 'text-left'
65 66 },{
66 67 title : $translate.instant('LABEL.JUSTIFICATIVA'),
67   - value : 'justificativaNecessidade'
  68 + value : 'justificativaNecessidade',
  69 + align : 'text-left'
68 70 }];
69 71  
70 72 $scope.fields = [ 'id', 'objetivoEstrategicoNecessidade.descricao', 'justificativaNecessidade'];
... ... @@ -91,10 +93,12 @@ citApp.controller('TermoReferenciaController', ['$scope',
91 93 //Dados da tabela de Beneficios Esperados
92 94 $scope.headersBeneficios = [{
93 95 title : $translate.instant('LABEL.BENEFICIO'),
94   - value : 'beneficioEsperado'
  96 + value : 'beneficioEsperado',
  97 + align : 'text-left'
95 98 },{
96 99 title : $translate.instant('LABEL.DESCRICAO'),
97   - value : 'descricaoBeneficioEsperado'
  100 + value : 'descricaoBeneficioEsperado',
  101 + align : 'text-left'
98 102 }];
99 103  
100 104 $scope.fieldsBeneficios = [ 'id', 'beneficioEsperado', 'descricaoBeneficioEsperado'];
... ... @@ -286,6 +290,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
286 290  
287 291 $scope.openModalDetalhamentoSolucao = function() {
288 292 $scope.edicao = false;
  293 + $scope.showButtonSalvarDetalhamento = false;
289 294 $scope.termoReferenciaDetalhamentoSolucao = {};
290 295 $scope.editDetalhamento = true;
291 296 // $scope.atualizaListaEtBensServicos();
... ... @@ -300,6 +305,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
300 305  
301 306 $scope.penalidade = {};
302 307 $scope.editPenalidade = true;
  308 + $scope.showButtonSalvarPenalidade = false;
303 309  
304 310 $timeout(function() {
305 311 $scope.$openModal('modal-penalidade.html', 'lg');
... ... @@ -310,6 +316,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
310 316  
311 317 $scope.sancao = {};
312 318 $scope.editSancao = true;
  319 + $scope.showButtonSalvarSancao = false;
313 320  
314 321 $timeout(function() {
315 322 $scope.$openModal('modal-sancao.html', 'lg');
... ... @@ -755,6 +762,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
755 762 $scope.termoReferenciaDetalhamentoSolucao = clone($scope.getDetalhamentoSolucaoChecked());
756 763 $scope.edicao = true;
757 764 $scope.editDetalhamento = edit;
  765 + $scope.showButtonSalvarDetalhamento = edit;
758 766  
759 767 $scope.bemServicoSolucaoValidatorId = $scope.termoReferenciaDetalhamentoSolucao.bemServicoSolucao.id;
760 768  
... ... @@ -783,6 +791,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
783 791 $scope.penalidade = clone($scope.getPenalidadeChecked());
784 792  
785 793 $scope.editPenalidade = edit;
  794 + $scope.showButtonSalvarPenalidade = edit;
786 795  
787 796 if(!edit && !$scope.penalidade) {
788 797 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO'));
... ... @@ -804,6 +813,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
804 813 $scope.sancao = clone($scope.getSancaoChecked());
805 814  
806 815 $scope.editSancao = edit;
  816 + $scope.showButtonSalvarSancao = edit;
807 817  
808 818 if(!edit && !$scope.sancao) {
809 819 $scope.showAlert('warning', $translate.instant('MSG.SELECIONE_UM_ITEM_PARA_VISUALIZACAO'));
... ...
cit-contratos-web/src/main/webapp/html/contrato/dialog_empenho.html
1 1 <ng-form name="formDialogEmpenho" autocomplete="off">
2 2 <div class="modal-header">
3 3 <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"
4   - ng-click="adicionarEmpenho(formDialogEmpenho, false)" ng-if="editEmpenho" class="btn btn-clear" type="button">
  4 + ng-click="adicionarEmpenho(formDialogEmpenho, false)" ng-if="editEmpenho && !showButtonSalvarEmpenho" class="btn btn-clear" type="button">
5 5 <i class="fa fa-save green"></i>
6 6 <translate>LABEL.ADICIONAR</translate>
7 7 </button>
8 8  
  9 + <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}"
  10 + ng-click="adicionarEmpenho(formDialogEmpenho, false)" ng-if="editEmpenho && showButtonSalvarEmpenho" class="btn btn-clear" type="button">
  11 + <i class="fa fa-save green"></i>
  12 + <translate>LABEL.SALVAR</translate>
  13 + </button>
  14 +
9 15 <button title="{{$translate.instant('LABEL.ADICIONAR_CONTINUAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR_CONTINUAR')}}"
10   - ng-click="adicionarEmpenho(formDialogEmpenho, true)" ng-if="editEmpenho" class="btn btn-clear" type="button">
  16 + ng-click="adicionarEmpenho(formDialogEmpenho, true)" ng-if="editEmpenho && !showButtonSalvarEmpenho" class="btn btn-clear" type="button">
11 17 <i class="fa fa-save green"></i>
12 18 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
13 19 </button>
... ...
cit-contratos-web/src/main/webapp/html/contrato/dialog_envolvido.html
1 1 <ng-form name="formDialogEnvolvido" autocomplete="off">
2 2 <div class="modal-header">
3 3 <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"
4   - ng-click="adicionarContratoEnvolvido(formDialogEnvolvido, false)" ng-if="editEnvolvido" class="btn btn-clear" type="button">
  4 + ng-click="adicionarContratoEnvolvido(formDialogEnvolvido, false)" ng-if="editEnvolvido && !showButtonSalvarEnvolvido" class="btn btn-clear" type="button">
5 5 <i class="fa fa-save green"></i>
6 6 <translate>LABEL.ADICIONAR</translate>
7 7 </button>
  8 + <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}"
  9 + ng-click="adicionarContratoEnvolvido(formDialogEnvolvido, false)" ng-if="editEnvolvido && showButtonSalvarEnvolvido" class="btn btn-clear" type="button">
  10 + <i class="fa fa-save green"></i>
  11 + <translate>LABEL.SALVAR</translate>
  12 + </button>
8 13 <button title="{{$translate.instant('LABEL.ADICIONAR_NOVO')}}" alt="{{$translate.instant('LABEL.ADICIONAR_NOVO')}}"
9   - ng-click="adicionarContratoEnvolvido(formDialogEnvolvido, true)" ng-show="editEnvolvido && !hasAlteracaoEnvolvido" class="btn btn-clear" type="button">
  14 + ng-click="adicionarContratoEnvolvido(formDialogEnvolvido, true)" ng-show="editEnvolvido && !hasAlteracaoEnvolvido && !showButtonSalvarEnvolvido" class="btn btn-clear" type="button">
10 15 <i class="fa fa-save green"></i>
11 16 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
12 17 </button>
... ...
cit-contratos-web/src/main/webapp/html/contrato/dialog_item_contrato.html
1 1 <ng-form name="formDialogItemContrato" autocomplete="off">
2 2 <div class="modal-header">
3 3 <button title="{{$translate.instant('LABEL.ADICIONAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR')}}"
4   - ng-click="adicionarItemContrato(formDialogItemContrato, false)" ng-if="editItemContrato" class="btn btn-clear" type="button">
  4 + ng-click="adicionarItemContrato(formDialogItemContrato, false)" ng-if="editItemContrato && !showButtonSalvarItem" class="btn btn-clear" type="button">
5 5 <i class="fa fa-save green"></i>
6 6 <translate>LABEL.ADICIONAR</translate>
7 7 </button>
8 8  
  9 + <button title="{{$translate.instant('LABEL.SALVAR')}}" alt="{{$translate.instant('LABEL.SALVAR')}}"
  10 + ng-click="adicionarItemContrato(formDialogItemContrato, false)" ng-if="editItemContrato && showButtonSalvarItem" class="btn btn-clear" type="button">
  11 + <i class="fa fa-save green"></i>
  12 + <translate>LABEL.SALVAR</translate>
  13 + </button>
  14 +
9 15 <button title="{{$translate.instant('LABEL.ADICIONAR_CONTINUAR')}}" alt="{{$translate.instant('LABEL.ADICIONAR_CONTINUAR')}}"
10   - ng-click="adicionarItemContrato(formDialogItemContrato, true)" ng-if="editItemContrato" class="btn btn-clear" type="button">
  16 + ng-click="adicionarItemContrato(formDialogItemContrato, true)" ng-if="editItemContrato && !showButtonSalvarItem" class="btn btn-clear" type="button">
11 17 <i class="fa fa-save green"></i>
12 18 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
13 19 </button>
... ...
cit-contratos-web/src/main/webapp/html/cronogramaExecucao/dialog_itens_cronograma.html
1 1 <ng-form name="formDialogItemCronogramaExecucao" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editItemCronograma" ng-click="addItemCronogramaExecucao(formDialogItemCronogramaExecucao, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editItemCronograma && !showButtonSalvarItem" ng-click="addItemCronogramaExecucao(formDialogItemCronogramaExecucao, false)">
4 4 <i class="fa fa-save green"></i>
5 5 <translate>LABEL.ADICIONAR</translate>
6 6 </button>
7 7  
8   - <button class="btn btn-clear" type="button" ng-if="editItemCronograma" ng-click="addItemCronogramaExecucao(formDialogItemCronogramaExecucao, true)">
  8 + <button class="btn btn-clear" type="button" ng-if="editItemCronograma && showButtonSalvarItem" ng-click="addItemCronogramaExecucao(formDialogItemCronogramaExecucao, false)">
  9 + <i class="fa fa-save green"></i>
  10 + <translate>LABEL.SALVAR</translate>
  11 + </button>
  12 +
  13 + <button class="btn btn-clear" type="button" ng-if="editItemCronograma && !showButtonSalvarItem" ng-click="addItemCronogramaExecucao(formDialogItemCronogramaExecucao, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_acao_contingencia.html
1 1 <ng-form name="formDialogAcaoContingencia" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editAcaoCont" ng-click="salvaAcaoCont(formDialogAcaoContingencia, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editAcaoCont && !showButtonSalvarAcaoCont" ng-click="salvaAcaoCont(formDialogAcaoContingencia, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editAcaoCont && showButtonSalvarAcaoCont" ng-click="salvaAcaoCont(formDialogAcaoContingencia, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editAcaoCont" ng-click="salvaAcaoCont(formDialogAcaoContingencia, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editAcaoCont && !showButtonSalvarAcaoCont" ng-click="salvaAcaoCont(formDialogAcaoContingencia, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_beneficio_esperado.html
1 1 <ng-form name="formDialogBeneficioEsperado" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editBeneficioEsperado" ng-click="salvaBeneficioEsperado(formDialogBeneficioEsperado, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editBeneficioEsperado && !showButtonSalvarBeneficio" ng-click="salvaBeneficioEsperado(formDialogBeneficioEsperado, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editBeneficioEsperado && showButtonSalvarBeneficio" ng-click="salvaBeneficioEsperado(formDialogBeneficioEsperado, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editBeneficioEsperado" ng-click="salvaBeneficioEsperado(formDialogBeneficioEsperado, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editBeneficioEsperado && !showButtonSalvarBeneficio" ng-click="salvaBeneficioEsperado(formDialogBeneficioEsperado, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_bens_servico.html
1 1 <ng-form name="formDialogBensServico" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editBemServico" ng-click="salvaBemServico(formDialogBensServico, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editBemServico && !showButtonSalvarBens" ng-click="salvaBemServico(formDialogBensServico, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editBemServico && showButtonSalvarBens" ng-click="salvaBemServico(formDialogBensServico, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editBemServico" ng-click="salvaBemServico(formDialogBensServico, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editBemServico && !showButtonSalvarBens" ng-click="salvaBemServico(formDialogBensServico, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_recurso_humano.html
1 1 <ng-form name="formDialogRecursoHumano" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editRecursoHumano" ng-click="salvaRecursoHumano(formDialogRecursoHumano, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editRecursoHumano && !showButtonSalvarRHumano" ng-click="salvaRecursoHumano(formDialogRecursoHumano, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editRecursoHumano && showButtonSalvarRHumano" ng-click="salvaRecursoHumano(formDialogRecursoHumano, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editRecursoHumano" ng-click="salvaRecursoHumano(formDialogRecursoHumano, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editRecursoHumano && !showButtonSalvarRHumano" ng-click="salvaRecursoHumano(formDialogRecursoHumano, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_recurso_material.html
1 1 <ng-form name="formDialogRecursoMaterial" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editRecursoMaterial" ng-click="salvaRecursoMaterial(formDialogRecursoMaterial, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editRecursoMaterial && !showButtonSalvarRMaterial" ng-click="salvaRecursoMaterial(formDialogRecursoMaterial, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editRecursoMaterial && showButtonSalvarRMaterial" ng-click="salvaRecursoMaterial(formDialogRecursoMaterial, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editRecursoMaterial" ng-click="salvaRecursoMaterial(formDialogRecursoMaterial, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editRecursoMaterial && !showButtonSalvarRMaterial" ng-click="salvaRecursoMaterial(formDialogRecursoMaterial, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_requisito_negocio.html
1 1 <ng-form name="formDialogRequisitoNegocio" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editRequisitoNegocio" ng-click="salvaRequisitoNegocio(formDialogRequisitoNegocio, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editRequisitoNegocio && !showButtonSalvar" ng-click="salvaRequisitoNegocio(formDialogRequisitoNegocio, false)">
4 4 <i class="fa fa-save green"></i>
5 5 <translate>LABEL.ADICIONAR</translate>
6 6 </button>
7   - <button class="btn btn-clear" type="button" ng-if="editRequisitoNegocio" ng-click="salvaRequisitoNegocio(formDialogRequisitoNegocio, true)">
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editRequisitoNegocio && showButtonSalvar" ng-click="salvaRequisitoNegocio(formDialogRequisitoNegocio, false)">
  9 + <i class="fa fa-save green"></i>
  10 + <translate>LABEL.SALVAR</translate>
  11 + </button>
  12 +
  13 + <button class="btn btn-clear" type="button" ng-if="editRequisitoNegocio && !showButtonSalvar" ng-click="salvaRequisitoNegocio(formDialogRequisitoNegocio, true)">
8 14 <i class="fa fa-save green"></i>
9 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
10 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/estudoTecnico/dialog_solucao.html
1 1 <ng-form name="formDialogSolucao" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editSolucao" ng-click="salvaSolucao(formDialogSolucao, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editSolucao && !showButtonSalvarSolucao" ng-click="salvaSolucao(formDialogSolucao, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editSolucao && showButtonSalvarSolucao" ng-click="salvaSolucao(formDialogSolucao, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editSolucao" ng-click="salvaSolucao(formDialogSolucao, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editSolucao && !showButtonSalvarSolucao" ng-click="salvaSolucao(formDialogSolucao, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/objetivoEstrategico/dialog_necessidade.html
1 1 <ng-form name="formDialogNecessidade" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editNecessidade" ng-click="addNecessidade(formDialogNecessidade, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editNecessidade && !showButtonSalvar" ng-click="addNecessidade(formDialogNecessidade, false)">
4 4 <i class="fa fa-save green"></i>
5 5 <translate>LABEL.ADICIONAR</translate>
6 6 </button>
7 7  
8   - <button class="btn btn-clear" type="button" ng-if="editNecessidade" ng-click="addNecessidade(formDialogNecessidade, true)">
  8 + <button class="btn btn-clear" type="button" ng-if="editNecessidade && showButtonSalvar" ng-click="addNecessidade(formDialogNecessidade, false)">
  9 + <i class="fa fa-save green"></i>
  10 + <translate>LABEL.SALVAR</translate>
  11 + </button>
  12 +
  13 + <button class="btn btn-clear" type="button" ng-if="editNecessidade && !showButtonSalvar" ng-click="addNecessidade(formDialogNecessidade, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/ordemFornecimento/dialog_itens_bens_servicos.html
1 1 <ng-form name="formDialogItem" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editItem" ng-click="salvaItem(formDialogItem, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editItem && !showButtonSalvarItem" ng-click="salvaItem(formDialogItem, false)">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-if="editItem && showButtonSalvarItem" ng-click="salvaItem(formDialogItem, false)">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-if="editItem" ng-click="salvaItem(formDialogItem, true)">
  13 + <button class="btn btn-clear" type="button" ng-if="editItem && !showButtonSalvarItem" ng-click="salvaItem(formDialogItem, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/programa/dialog_programa_acao.html
1 1 <ng-form name="formDialogProgramaAcao" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-if="editProgramaAcao" ng-click="addAcao(formDialogProgramaAcao, false)">
  3 + <button class="btn btn-clear" type="button" ng-if="editProgramaAcao && !showButtonSalvar" ng-click="addAcao(formDialogProgramaAcao, false)">
4 4 <i class="fa fa-save green"></i>
5 5 <translate>LABEL.ADICIONAR</translate>
6 6 </button>
7 7  
8   - <button class="btn btn-clear" type="button" ng-if="editProgramaAcao" ng-click="addAcao(formDialogProgramaAcao, true)">
  8 + <button class="btn btn-clear" type="button" ng-if="editProgramaAcao && showButtonSalvar" ng-click="addAcao(formDialogProgramaAcao, false)">
  9 + <i class="fa fa-save green"></i>
  10 + <translate>LABEL.SALVAR</translate>
  11 + </button>
  12 +
  13 + <button class="btn btn-clear" type="button" ng-if="editProgramaAcao && !showButtonSalvar" ng-click="addAcao(formDialogProgramaAcao, true)">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/termoReferencia/dialog_detalhamento_solucao.html
1 1 <ng-form name="formDetalhamentoSolucao" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-click="addDetalhamentoSolucao(formDetalhamentoSolucao, false)" ng-show="editDetalhamento">
  3 + <button class="btn btn-clear" type="button" ng-click="addDetalhamentoSolucao(formDetalhamentoSolucao, false)" ng-show="editDetalhamento && !showButtonSalvarDetalhamento">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-click="addDetalhamentoSolucao(formDetalhamentoSolucao, false)" ng-show="editDetalhamento && showButtonSalvarDetalhamento">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-click="addDetalhamentoSolucao(formDetalhamentoSolucao, true)" ng-show="editDetalhamento">
  13 + <button class="btn btn-clear" type="button" ng-click="addDetalhamentoSolucao(formDetalhamentoSolucao, true)" ng-show="editDetalhamento && !showButtonSalvarDetalhamento">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/termoReferencia/dialog_penalidade.html
1 1 <ng-form name="formPenalidade" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-click="addPenalidade(formPenalidade, false)" ng-show="editPenalidade">
  3 + <button class="btn btn-clear" type="button" ng-click="addPenalidade(formPenalidade, false)" ng-show="editPenalidade && !showButtonSalvarPenalidade">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-click="addPenalidade(formPenalidade, false)" ng-show="editPenalidade && showButtonSalvarPenalidade">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-click="addPenalidade(formPenalidade, true)" ng-show="editPenalidade">
  13 + <button class="btn btn-clear" type="button" ng-click="addPenalidade(formPenalidade, true)" ng-show="editPenalidade && !showButtonSalvarPenalidade">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...
cit-contratos-web/src/main/webapp/html/termoReferencia/dialog_sancao.html
1 1 <ng-form name="formSancao" autocomplete="off">
2 2 <div class="modal-header">
3   - <button class="btn btn-clear" type="button" ng-click="addSancao(formSancao, false)" ng-show="editSancao">
  3 + <button class="btn btn-clear" type="button" ng-click="addSancao(formSancao, false)" ng-show="editSancao && !showButtonSalvarSancao">
  4 + <i class="fa fa-save green"></i>
  5 + <translate>LABEL.ADICIONAR</translate>
  6 + </button>
  7 +
  8 + <button class="btn btn-clear" type="button" ng-click="addSancao(formSancao, false)" ng-show="editSancao && showButtonSalvarSancao">
4 9 <i class="fa fa-save green"></i>
5 10 <translate>LABEL.SALVAR</translate>
6 11 </button>
7 12  
8   - <button class="btn btn-clear" type="button" ng-click="addSancao(formSancao, true)" ng-show="editSancao">
  13 + <button class="btn btn-clear" type="button" ng-click="addSancao(formSancao, true)" ng-show="editSancao && !showButtonSalvarSancao">
9 14 <i class="fa fa-save green"></i>
10 15 <translate>LABEL.ADICIONAR_CONTINUAR</translate>
11 16 </button>
... ...