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