Commit 53aad76234ffb8c2c59c0b97da18bb570bcf5228
1 parent
8bdeda97
Exists in
master
redmine #4455 Construção funcionalidade Rascunho;
Showing
2 changed files
with
8 additions
and
0 deletions
Show diff stats
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/ContratoController.js
... | ... | @@ -115,6 +115,7 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C |
115 | 115 | $scope.edit = true; |
116 | 116 | $scope.setCurrentStep(0); |
117 | 117 | |
118 | + $scope.startTimerIntervalSaveDraft($scope.workspace, $scope.contrato); | |
118 | 119 | $timeout(function(){ |
119 | 120 | $scope.contratoForm.informacoesGeraisContratoForm.$submitted = false; |
120 | 121 | $scope.contratoForm.informacoesContratoForm.$submitted = false; |
... | ... | @@ -130,6 +131,11 @@ citApp.controller('ContratoController', ['$scope', '$filter', 'FileUploader', 'C |
130 | 131 | $scope.contratoForm.informacoesEnvolvidosContratoForm.$setPristine(); |
131 | 132 | $scope.contratoForm.anexosObservacoesContratoForm.$setPristine(); |
132 | 133 | }); |
134 | + | |
135 | + $scope.getRascunho($scope.workspace, 201501378976); | |
136 | + $timeout(function(){ | |
137 | + $scope.contrato = JSON.parse($scope.workspace.rascunho.json); | |
138 | + }); | |
133 | 139 | }; |
134 | 140 | |
135 | 141 | $scope.gerarRelatorioTermoContrato = function() { | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
... | ... | @@ -236,6 +236,8 @@ citApp.controller('TermoReferenciaController', ['$scope', |
236 | 236 | $scope.editSancao = false; |
237 | 237 | $scope.step = 0; |
238 | 238 | |
239 | + $scope.startTimerIntervalSaveDraft($scope.workspace, $scope.termoReferencia); | |
240 | + | |
239 | 241 | $timeout(function(){ |
240 | 242 | $scope.termoReferenciaForm.$submitted = false; |
241 | 243 | $scope.termoReferenciaForm.equipeContratacaoForm.$submitted = false; | ... | ... |