Commit 228a848ba5b86751629dee3855dad85c3e940a6b

Authored by erick.sato
1 parent 35e058d7
Exists in master

[Redmine Atendimento #4559]Exclusão rascunho

cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js
@@ -122,7 +122,6 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -122,7 +122,6 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
122 $scope.atualizarListaSizeSelectRecursoHumano(); 122 $scope.atualizarListaSizeSelectRecursoHumano();
123 $scope.atualizarListaSizeSelectAcaoContigencia(); 123 $scope.atualizarListaSizeSelectAcaoContigencia();
124 124
125 - $scope.startTimerIntervalSaveDraft($scope.workspace , $scope.estudoTecnico, true);  
126 $timeout(function() { 125 $timeout(function() {
127 $scope.estudoTecnicoForm.planejamentoContratacaoForm.$submitted = false; 126 $scope.estudoTecnicoForm.planejamentoContratacaoForm.$submitted = false;
128 $scope.estudoTecnicoForm.definicaoRequisitosForm.$submitted = false; 127 $scope.estudoTecnicoForm.definicaoRequisitosForm.$submitted = false;
@@ -168,7 +167,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository @@ -168,7 +167,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository
168 $scope.atualizarListaSizeSelectAcaoContigencia(); 167 $scope.atualizarListaSizeSelectAcaoContigencia();
169 168
170 $scope.setCurrentStep(0); 169 $scope.setCurrentStep(0);
171 - 170 + $scope.stopTimerIntervalDraft($scope.workspace);
172 $scope.setLoading(false); 171 $scope.setLoading(false);
173 }); 172 });
174 }; 173 };
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
@@ -710,6 +710,7 @@ citApp.controller('TermoReferenciaController', ['$scope', @@ -710,6 +710,7 @@ citApp.controller('TermoReferenciaController', ['$scope',
710 $scope.atualizaListaBeneficiosEsperados($scope.termoReferencia.estudoTecnico); 710 $scope.atualizaListaBeneficiosEsperados($scope.termoReferencia.estudoTecnico);
711 $scope.atualizaListaJustificativasContratacao($scope.termoReferencia.estudoTecnico); 711 $scope.atualizaListaJustificativasContratacao($scope.termoReferencia.estudoTecnico);
712 $scope.atualizaInformacoesIntegrantesEstudoTecnico($scope.termoReferencia.estudoTecnico); 712 $scope.atualizaInformacoesIntegrantesEstudoTecnico($scope.termoReferencia.estudoTecnico);
  713 + $scope.stopTimerIntervalDraft($scope.workspace);
713 $scope.setLoading(false); 714 $scope.setLoading(false);
714 }); 715 });
715 }; 716 };
cit-contratos-web/src/main/webapp/html/contrato/contratoList.html
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate> 22 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate>
23 </button> 23 </button>
24 24
25 - <button class="btn btn-clear" ng-click="showListRascunho(workspace.name)" type="button"> 25 + <button class="btn btn-clear" ng-click="showListRascunho(workspace.name, 'editContrato')" type="button">
26 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate> 26 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate>
27 </button> 27 </button>
28 28
cit-contratos-web/src/main/webapp/html/estudoTecnico/estudoTecnicoList.html
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate> 27 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate>
28 </button> 28 </button>
29 29
30 - <button class="btn btn-clear" ng-click="showListRascunho(workspace.name)" type="button"> 30 + <button class="btn btn-clear" ng-click="showListRascunho(workspace.name, 'estudoTecnicoControllerId')" type="button">
31 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate> 31 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate>
32 </button> 32 </button>
33 33
cit-contratos-web/src/main/webapp/html/termoReferencia/termoReferenciaList.html
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate> 30 <i class="fa fa-file-excel-o"></i> <translate>LABEL.EXPORTAR_CSV</translate>
31 </button> 31 </button>
32 32
33 - <button class="btn btn-clear" ng-click="showListRascunho(workspace.name)" type="button"> 33 + <button class="btn btn-clear" ng-click="showListRascunho(workspace.name, 'editTermoReferencia')" type="button">
34 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate> 34 <i class="fa fa-list"></i> <translate>PORTAL.LABEL.SHOW_RASCUNHO</translate>
35 </button> 35 </button>
36 36