Commit a8d0db66e6823ad02677264d9f4fd5a2461b8164
Exists in
master
Merge remote-tracking branch 'origin/tarefa-4271' into ctr-pj-0001-sprint11
Showing
4 changed files
with
11 additions
and
12 deletions
Show diff stats
cit-contratos-web/src/main/java/br/com/centralit/controller/ContratoEventoController.java
... | ... | @@ -3,15 +3,12 @@ package br.com.centralit.controller; |
3 | 3 | import java.io.IOException; |
4 | 4 | import java.sql.SQLException; |
5 | 5 | import java.util.ArrayList; |
6 | -import java.util.Arrays; | |
7 | 6 | import java.util.Collection; |
8 | 7 | import java.util.Date; |
9 | 8 | import java.util.List; |
10 | 9 | |
11 | 10 | import javax.servlet.http.HttpServletResponse; |
12 | 11 | |
13 | -import net.sf.jasperreports.engine.JRException; | |
14 | - | |
15 | 12 | import org.apache.commons.lang3.StringUtils; |
16 | 13 | import org.springframework.beans.factory.annotation.Autowired; |
17 | 14 | import org.springframework.stereotype.Controller; |
... | ... | @@ -33,6 +30,7 @@ import br.com.centralit.framework.exception.BusinessException; |
33 | 30 | import br.com.centralit.framework.json.ResponseBodyWrapper; |
34 | 31 | import br.com.centralit.framework.util.UtilDate; |
35 | 32 | import br.com.centralit.framework.util.UtilString; |
33 | +import net.sf.jasperreports.engine.JRException; | |
36 | 34 | |
37 | 35 | /** |
38 | 36 | * | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EventoRecebimentoObjetoController.js
... | ... | @@ -25,6 +25,9 @@ citApp.controller('EventoRecebimentoObjetoController', ['$scope', |
25 | 25 | $scope.setLoadingGet(true); |
26 | 26 | EventoRecebimentoObjetoRepository.get(idRecebimentoObjeto).then(function(result) { |
27 | 27 | $scope.recebimentoObjeto = result.originalElement; |
28 | + if($scope.contratoTemp == undefined){ | |
29 | + $scope.contratoTemp= angular.copy($scope.recebimentoObjeto.contrato); | |
30 | + } | |
28 | 31 | $scope.setLoading(false); |
29 | 32 | }); |
30 | 33 | }; | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/VisaoContratoController.js
... | ... | @@ -112,17 +112,15 @@ citApp.controller('VisaoContratoController', ['$scope', |
112 | 112 | $scope.$openModalController('modal-cnt_ev_registro_nc.html', 'lg', 'EventoRegistroNaoConformidadeController'); |
113 | 113 | break; |
114 | 114 | case 'RECEBIMENTO_OBJETO': |
115 | + $scope.setLoadingGet(true); | |
115 | 116 | if ($scope.evento) { |
116 | 117 | var recebimentoObjetoid = $scope.evento.id; |
117 | - $scope.setLoadingGet(true); | |
118 | 118 | EventoRecebimentoObjetoRepository.get(recebimentoObjetoid).then(function(result) { |
119 | 119 | $scope.recebimentoObjeto = result.originalElement; |
120 | 120 | }); |
121 | - $scope.$openModalController('modal-cnt_ev_recebimentoobjeto.html', 'lg', 'EventoRecebimentoObjetoController'); | |
122 | - $scope.setLoadingGet(false); | |
123 | - } else { | |
124 | - $scope.$openModalController('modal-cnt_ev_recebimentoobjeto.html', 'lg', 'EventoRecebimentoObjetoController'); | |
125 | 121 | } |
122 | + $scope.$openModalController('modal-cnt_ev_recebimentoobjeto.html', 'lg', 'EventoRecebimentoObjetoController'); | |
123 | + $scope.setLoadingGet(false); | |
126 | 124 | break; |
127 | 125 | case 'REPACTUACAO': |
128 | 126 | if ($scope.evento) { | ... | ... |
cit-contratos-web/src/main/webapp/html/eventos/cnt_ev_recebimentoobjeto.html
... | ... | @@ -94,7 +94,7 @@ |
94 | 94 | ng-model="recebimentoObjeto.tipoRecebimento" |
95 | 95 | form="formDialogRecebimentoObjeto" |
96 | 96 | ng-obrigatorio="true" |
97 | - ng-disabled="!edit || recebimentoObjeto.id" | |
97 | + ng-disabled="!edit" | |
98 | 98 | ng-list="dominiosRecebimentoObjeto.tiposRecebimentos" |
99 | 99 | ng-custom-options="tiposRecebimentos as tiposRecebimentos.descricao for tiposRecebimentos" |
100 | 100 | track-by="track by tiposRecebimentos.id"/> |
... | ... | @@ -128,7 +128,7 @@ |
128 | 128 | ng-model="recebimentoObjeto.tipoAvaliacaoPrazo" |
129 | 129 | form="formDialogRecebimentoObjeto" |
130 | 130 | ng-obrigatorio="edit" |
131 | - ng-disabled="!edit || recebimentoObjeto.id" | |
131 | + ng-disabled="!edit" | |
132 | 132 | ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoPrazo" |
133 | 133 | ng-custom-options="tipoAvaliacaoPrazo as tipoAvaliacaoPrazo.descricao for tipoAvaliacaoPrazo" |
134 | 134 | track-by="track by tipoAvaliacaoPrazo.id"/> |
... | ... | @@ -142,7 +142,7 @@ |
142 | 142 | ng-model="recebimentoObjeto.tipoAvaliacaoAdesao" |
143 | 143 | form="formDialogRecebimentoObjeto" |
144 | 144 | ng-obrigatorio="edit" |
145 | - ng-disabled="!edit || recebimentoObjeto.id" | |
145 | + ng-disabled="!edit" | |
146 | 146 | ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoAdesao" |
147 | 147 | ng-custom-options="tipoAvaliacaoAtendimento as tipoAvaliacaoAtendimento.descricao for tipoAvaliacaoAtendimento" |
148 | 148 | track-by="track by tipoAvaliacaoAtendimento.id"/> |
... | ... | @@ -157,7 +157,7 @@ |
157 | 157 | ng-model="recebimentoObjeto.tipoStatus" |
158 | 158 | form="formDialogRecebimentoObjeto" |
159 | 159 | ng-obrigatorio="true" |
160 | - ng-disabled="!edit || recebimentoObjeto.id" | |
160 | + ng-disabled="!edit" | |
161 | 161 | ng-list="dominiosRecebimentoObjeto.tiposStatus" |
162 | 162 | ng-custom-options="tipoStatus as tipoStatus.descricao for tipoStatus" |
163 | 163 | track-by="track by tipoStatus.id"/> | ... | ... |