Commit d94160fb9c5958e86a2f29232536e02bd59e8796
1 parent
478766df
Exists in
master
[Redmine Atendimento #4506:]Merge rascunho
Showing
2 changed files
with
2 additions
and
8 deletions
Show diff stats
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js
| ... | ... | @@ -168,14 +168,6 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 168 | 168 | }); |
| 169 | 169 | }; |
| 170 | 170 | |
| 171 | - $scope.setRascunho = function(rascunho){ | |
| 172 | - | |
| 173 | - $scope.workspace.objetoScope = $scope.contrato; | |
| 174 | - $scope.startTimerIntervalSaveDraft($scope.workspace); | |
| 175 | - $scope.edit = true; | |
| 176 | - $scope.setLoading(false); | |
| 177 | - }; | |
| 178 | - | |
| 179 | 171 | //INICIO DE METODOS REFERENTES AOS RELATORIOS |
| 180 | 172 | |
| 181 | 173 | $scope.gerarRelatorioEstudoTecnico = function() { |
| ... | ... | @@ -215,6 +207,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository |
| 215 | 207 | } |
| 216 | 208 | }); |
| 217 | 209 | |
| 210 | + $scope.estudoTecnico.rascunho = $scope.workspace.rascunho ? $scope.workspace.rascunho.id : null; | |
| 218 | 211 | EstudoTecnicoRepository.save($scope.estudoTecnico).then(function(result) { |
| 219 | 212 | |
| 220 | 213 | $scope.estudoTecnico = result.originalElement; | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js
| ... | ... | @@ -685,6 +685,7 @@ citApp.controller('TermoReferenciaController', ['$scope', |
| 685 | 685 | |
| 686 | 686 | $scope.setLoadingSalva(true); |
| 687 | 687 | |
| 688 | + $scope.termoReferencia.rascunho = $scope.workspace.rascunho ? $scope.workspace.rascunho.id : null; | |
| 688 | 689 | TermoReferenciaRepository.save($scope.termoReferencia).then(function(result) { |
| 689 | 690 | |
| 690 | 691 | $scope.termoReferencia = result.originalElement; | ... | ... |