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