Commit 7549ab1cc7517fad4dab578028cd2cdfe7afa39f
1 parent
e2f8365a
Exists in
master
[Redmine #4159]
Removido campo liberacao de pagamento da relacao com recebimento de objeto.
Showing
6 changed files
with
55 additions
and
105 deletions
Show diff stats
cit-contratos-api/src/main/java/br/com/centralit/api/model/EventoRecebimentoObjeto.java
... | ... | @@ -102,11 +102,6 @@ public class EventoRecebimentoObjeto extends ContratoEvento { |
102 | 102 | @JsonView({ ViewsContrato.EventoRecebimentoObjetoEditView.class }) |
103 | 103 | private String nomeObjeto; |
104 | 104 | |
105 | - /** Atributo eventoLiberacaoPagamento. */ | |
106 | - @ManyToOne(fetch = FetchType.LAZY, optional = false) | |
107 | - @JsonView({ ViewsContrato.EventoRecebimentoObjetoEditView.class }) | |
108 | - private EventoLiberacaoPagamento liberacaoPagamento; | |
109 | - | |
110 | 105 | /** Atributo justificativa. */ |
111 | 106 | @Column(length = 2000, nullable = true) |
112 | 107 | @JsonView({ ViewsContrato.EventoRecebimentoObjetoEditView.class }) |
... | ... | @@ -203,27 +198,6 @@ public class EventoRecebimentoObjeto extends ContratoEvento { |
203 | 198 | this.nomeObjeto = nomeObjeto; |
204 | 199 | } |
205 | 200 | |
206 | - /** | |
207 | - * Retorna o valor do atributo <code>eventoLiberacaoPagamento</code> | |
208 | - * | |
209 | - * @return <code>EventoLiberacaoPagamento</code> | |
210 | - */ | |
211 | - public EventoLiberacaoPagamento getLiberacaoPagamento() { | |
212 | - | |
213 | - return liberacaoPagamento; | |
214 | - } | |
215 | - | |
216 | - /** | |
217 | - * Define o valor do atributo <code>eventoLiberacaoPagamento</code>. | |
218 | - * | |
219 | - * @param liberacaoPagamento | |
220 | - */ | |
221 | - public void setLiberacaoPagamento(EventoLiberacaoPagamento liberacaoPagamento) { | |
222 | - | |
223 | - this.liberacaoPagamento = liberacaoPagamento; | |
224 | - } | |
225 | - | |
226 | - | |
227 | 201 | public Dominio getTipoAvaliacaoPrazo() { |
228 | 202 | |
229 | 203 | return tipoAvaliacaoPrazo; | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/service/impl/EventoRecebimentoObjetoServiceImpl.java
... | ... | @@ -33,7 +33,6 @@ import br.com.centralit.api.model.RegistroSequencial; |
33 | 33 | import br.com.centralit.api.service.AnexoService; |
34 | 34 | import br.com.centralit.api.service.ContratoService; |
35 | 35 | import br.com.centralit.api.service.DominioService; |
36 | -import br.com.centralit.api.service.EventoLiberacaoPagamentoService; | |
37 | 36 | import br.com.centralit.api.service.EventoRecebimentoObjetoService; |
38 | 37 | import br.com.centralit.api.service.InternacionalizacaoService; |
39 | 38 | import br.com.centralit.api.service.ParceiroService; |
... | ... | @@ -113,9 +112,6 @@ public class EventoRecebimentoObjetoServiceImpl extends GenericServiceImpl<Event |
113 | 112 | private InternacionalizacaoService internacionalizacaoService; |
114 | 113 | |
115 | 114 | @Autowired |
116 | - private EventoLiberacaoPagamentoService eventoLiberacaoPagamentoService; | |
117 | - | |
118 | - @Autowired | |
119 | 115 | private ReportController reportService; |
120 | 116 | |
121 | 117 | private Dominio idioma; |
... | ... | @@ -174,8 +170,6 @@ public class EventoRecebimentoObjetoServiceImpl extends GenericServiceImpl<Event |
174 | 170 | entity.setTipoAvaliacaoPrazo(this.dominioService.getReference(entity.getTipoAvaliacaoPrazo().getId())); |
175 | 171 | entity.setTipoAvaliacaoAdesao(this.dominioService.getReference(entity.getTipoAvaliacaoAdesao().getId())); |
176 | 172 | |
177 | - entity.setLiberacaoPagamento(eventoLiberacaoPagamentoService.find(entity.getLiberacaoPagamento().getId())); | |
178 | - | |
179 | 173 | this.montarDocsObs(entity); |
180 | 174 | } |
181 | 175 | private void montarDocsObs(EventoRecebimentoObjeto evento) { | ... | ... |
cit-contratos-api/src/main/java/br/com/centralit/api/service/validation/EventoRecebimentoObjetoValidator.java
... | ... | @@ -38,7 +38,6 @@ public class EventoRecebimentoObjetoValidator implements Validator{ |
38 | 38 | ValidationUtils.rejectIfEmpty(errors, "contrato", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "LABEL.CONTRATO"); |
39 | 39 | ValidationUtils.rejectIfEmpty(errors, "tipoRecebimento", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "CONTRATOS.LABEL.TIPO_RECEBIMENTO"); |
40 | 40 | ValidationUtils.rejectIfEmpty(errors, "nomeObjeto", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "CONTRATOS.LABEL.NOME_OBJETO"); |
41 | - ValidationUtils.rejectIfEmpty(errors, "liberacaoPagamento", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "CONTRATOS.LABEL.NUMERO_LIBERACAO_PAGAMENTO"); | |
42 | 41 | ValidationUtils.rejectIfEmpty(errors, "tipoStatus", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "LABEL.STATUS"); |
43 | 42 | ValidationUtils.rejectIfEmpty(errors, "tipoAvaliacaoPrazo", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "CONTRATOS.LABEL.AVALIACAO_OBJETO"); |
44 | 43 | ValidationUtils.rejectIfEmpty(errors, "tipoAvaliacaoAdesao", CodigoErro.VALIDACAO_CAMPOS_OBRIGATORIOS.getValue().toString(), "CONTRATOS.LABEL.AVALIACAO_OBJETO"); | ... | ... |
cit-contratos-api/src/main/resources/script-bd/v1.0.0-alpha10/01-cit-contratos-1.0.0-ALFA-10-postgres.sql
1 | 1 | -- ERICK SATO INÍCIO 30/03/2016 |
2 | 2 | TRUNCATE INTERNACIONALIZACAO; |
3 | 3 | UPDATE DOMINIO SET descricao = 'Reforço' where CHAVE = 'tipoFinalidadeEmpenhoContrato' AND descricao = 'Redorço'; |
4 | --- ERICK SATO FIM 30/03/2016 | |
5 | 4 | \ No newline at end of file |
5 | +-- ERICK SATO FIM 30/03/2016 | |
6 | + | |
7 | +-- CIRO - INÍCIO 01/04/2016 | |
8 | +ALTER TABLE cnt_ev_recebimentoobjeto DROP CONSTRAINT fk_mqveh23a280q09lmgmnousda1; | |
9 | +ALTER TABLE cnt_ev_recebimentoobjeto DROP COLUMN liberacaopagamento_id; | |
10 | +-- CIRO - FIM 01/04/2016 | |
6 | 11 | \ No newline at end of file | ... | ... |
cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EventoRecebimentoObjetoController.js
... | ... | @@ -46,7 +46,6 @@ citApp.controller('EventoRecebimentoObjetoController', ['$scope', |
46 | 46 | tipoRecebimento : null, |
47 | 47 | tipoAvaliacaoPrazo : null, |
48 | 48 | tipoAvaliacaoAdesao : null, |
49 | - liberacaoPagamento : null, | |
50 | 49 | nomeObjeto : "", |
51 | 50 | justificativa : "" |
52 | 51 | }; |
... | ... | @@ -59,14 +58,6 @@ citApp.controller('EventoRecebimentoObjetoController', ['$scope', |
59 | 58 | }; |
60 | 59 | }; |
61 | 60 | |
62 | - $scope.findLiberacaoPagamentoPorContrato = function (idContrato) { | |
63 | - return ContratoEventoRepository.buscaEventosContratoPorTipo(idContrato, 'LIBERA_PAGAMENTO').then(function(result){ | |
64 | - angular.forEach(result, function(liberacaoPagamento){ | |
65 | - $scope.listaLiberacaoPagamento.push(liberacaoPagamento.originalElement); | |
66 | - }); | |
67 | - }); | |
68 | - }; | |
69 | - | |
70 | 61 | $scope.carregarDominios = function(){ |
71 | 62 | DominioRepository.findAllDominio('tipoEventoContratoRecebimentoObjeto').then(function(result) { |
72 | 63 | angular.forEach(result, function(item, key){ |
... | ... | @@ -88,14 +79,14 @@ citApp.controller('EventoRecebimentoObjetoController', ['$scope', |
88 | 79 | }); |
89 | 80 | |
90 | 81 | DominioRepository.findAllDominio('tipoEventoContratoRecebimentoObjetoAvaliacaoPrazo').then(function(result) { |
91 | - angular.forEach(result, function(item, key){ | |
92 | - $scope.dominiosRecebimentoObjeto.tiposAvaliacaoPrazo.push(item.originalElement); | |
93 | - }); | |
82 | + angular.forEach(result, function(item, key){ | |
83 | + $scope.dominiosRecebimentoObjeto.tiposAvaliacaoPrazo.push(item.originalElement); | |
84 | + }); | |
94 | 85 | }); |
95 | 86 | DominioRepository.findAllDominio('tipoEventoContratoRecebimentoObjetoAvaliacaoAdesao').then(function(result) { |
96 | - angular.forEach(result, function(item, key){ | |
97 | - $scope.dominiosRecebimentoObjeto.tiposAvaliacaoAdesao.push(item.originalElement); | |
98 | - }); | |
87 | + angular.forEach(result, function(item, key){ | |
88 | + $scope.dominiosRecebimentoObjeto.tiposAvaliacaoAdesao.push(item.originalElement); | |
89 | + }); | |
99 | 90 | }); |
100 | 91 | }; |
101 | 92 | |
... | ... | @@ -185,14 +176,12 @@ citApp.controller('EventoRecebimentoObjetoController', ['$scope', |
185 | 176 | tiposAvaliacaoPrazo : [], |
186 | 177 | tiposAvaliacaoAdesao : [], |
187 | 178 | }; |
188 | - $scope.listaLiberacaoPagamento = []; | |
189 | 179 | $scope.carregarDominios(); |
190 | 180 | if($scope.evento){ |
191 | 181 | $scope.getRecebimentoObjeto(); |
192 | 182 | } else { |
193 | - $scope.resetForm(); | |
183 | + $scope.resetForm(); | |
194 | 184 | } |
195 | - $scope.findLiberacaoPagamentoPorContrato($scope.contrato.id); | |
196 | 185 | })(); |
197 | 186 | |
198 | 187 | }]); | ... | ... |
cit-contratos-web/src/main/webapp/html/eventos/cnt_ev_recebimentoobjeto.html
... | ... | @@ -69,7 +69,7 @@ |
69 | 69 | </div><!-- .col --> |
70 | 70 | </div><!-- .row --> |
71 | 71 | <div class="row"> |
72 | - <div class="col-sm-4"> | |
72 | + <div class="col-sm-3"> | |
73 | 73 | <label-input ng-type="text" |
74 | 74 | ng-id="recebimentoObjeto.registroSequencial.sequencialAno" |
75 | 75 | ng-label="LABEL.NUMERO_RECEBIMENTO_OBJETO" |
... | ... | @@ -79,7 +79,7 @@ |
79 | 79 | ng-mask="99999/9999" |
80 | 80 | form="formDialogRecebimentoObjeto"/> |
81 | 81 | </div><!-- .col --> |
82 | - <div class="col-sm-4"> | |
82 | + <div class="col-sm-3"> | |
83 | 83 | <label-input-data ng-id="recebimentoObjeto.dataRecebimento" |
84 | 84 | ng-label="LABEL.DATA_RECEBIMENTO_OBJETO" |
85 | 85 | ng-disabled="!edit" |
... | ... | @@ -88,7 +88,7 @@ |
88 | 88 | ng-obrigatorio="true" |
89 | 89 | ng-format="dd/MM/yyyy"/> |
90 | 90 | </div><!-- .col --> |
91 | - <div class="col-sm-4"> | |
91 | + <div class="col-sm-3"> | |
92 | 92 | <label-select ng-id="recebimentoObjeto.tiposRecebimentos" |
93 | 93 | ng-label="LABEL.TIPO_RECEBIMENTO" |
94 | 94 | ng-model="recebimentoObjeto.tipoRecebimento" |
... | ... | @@ -101,7 +101,7 @@ |
101 | 101 | <option value="">Selecione</option> |
102 | 102 | </select> |
103 | 103 | </div><!--.col --> |
104 | - <div class="col-sm-4"> | |
104 | + <div class="col-sm-3"> | |
105 | 105 | <label-input ng-type="text" |
106 | 106 | ng-id="recebimentoObjeto.nomeObjeto" |
107 | 107 | ng-label="LABEL.NOME_OBJETO" |
... | ... | @@ -114,20 +114,44 @@ |
114 | 114 | </div><!-- .row --> |
115 | 115 | |
116 | 116 | <div class="row"> |
117 | - <div class="col-sm-4"> | |
118 | - <label-select ng-id="recebimentoObjeto.listaLiberacaoPagamento" | |
119 | - ng-label="LIBERACAO_PAGAMENTO.NUMERO_LIBERACAO" | |
120 | - ng-model="recebimentoObjeto.liberacaoPagamento" | |
121 | - form="formDialogRecebimentoObjeto" | |
122 | - ng-obrigatorio="true" | |
123 | - ng-disabled="!edit || recebimentoObjeto.id" | |
124 | - ng-list="listaLiberacaoPagamento" | |
125 | - ng-custom-options="liberacaoPagamento as liberacaoPagamento.numeroLiberacao for liberacaoPagamento" | |
126 | - track-by="track by liberacaoPagamento.id"/> | |
127 | - <option value="">Selecione</option> | |
128 | - </select> | |
129 | - </div><!-- .col --> | |
130 | - <div class="col-sm-4"> | |
117 | + <div class="col-sm-3"> | |
118 | + <div class="row"> | |
119 | + <div class="col-sm-12"> | |
120 | + <label class='control-label'><translate>LABEL.AVALIACAO_OBJETO</translate> | |
121 | + <span class='red'>*</span> | |
122 | + </label> | |
123 | + </div> | |
124 | + </div> | |
125 | + <div class="row"> | |
126 | + <div class="col-sm-12"> | |
127 | + <label-select ng-id="tipoAvaliacaoPrazo" | |
128 | + ng-model="recebimentoObjeto.tipoAvaliacaoPrazo" | |
129 | + form="formDialogRecebimentoObjeto" | |
130 | + ng-obrigatorio="edit" | |
131 | + ng-disabled="!edit || recebimentoObjeto.id" | |
132 | + ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoPrazo" | |
133 | + ng-custom-options="tipoAvaliacaoPrazo as tipoAvaliacaoPrazo.descricao for tipoAvaliacaoPrazo" | |
134 | + track-by="track by tipoAvaliacaoPrazo.id"/> | |
135 | + <option value="">Selecione</option> | |
136 | + </select> | |
137 | + </div> | |
138 | + </div> | |
139 | + <div class="row"> | |
140 | + <div class="col-sm-12"> | |
141 | + <label-select ng-id="tipoAvaliacaoAtendimento" | |
142 | + ng-model="recebimentoObjeto.tipoAvaliacaoAdesao" | |
143 | + form="formDialogRecebimentoObjeto" | |
144 | + ng-obrigatorio="edit" | |
145 | + ng-disabled="!edit || recebimentoObjeto.id" | |
146 | + ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoAdesao" | |
147 | + ng-custom-options="tipoAvaliacaoAtendimento as tipoAvaliacaoAtendimento.descricao for tipoAvaliacaoAtendimento" | |
148 | + track-by="track by tipoAvaliacaoAtendimento.id"/> | |
149 | + <option value="">Selecione</option> | |
150 | + </select> | |
151 | + </div> | |
152 | + </div> | |
153 | + </div> | |
154 | + <div class="col-sm-3"> | |
131 | 155 | <label-select ng-id="recebimentoObjeto.tiposStatus" |
132 | 156 | ng-label="LABEL.STATUS" |
133 | 157 | ng-model="recebimentoObjeto.tipoStatus" |
... | ... | @@ -144,41 +168,6 @@ |
144 | 168 | |
145 | 169 | <div class="row"> |
146 | 170 | <div class="col-sm-12"> |
147 | - <label class='control-label'><translate>LABEL.AVALIACAO_OBJETO</translate> | |
148 | - <span class='red'>*</span> | |
149 | - </label> | |
150 | - </div> | |
151 | - </div> | |
152 | - | |
153 | - <div class="row"> | |
154 | - <div class="col-sm-4"> | |
155 | - <label-select ng-id="tipoAvaliacaoPrazo" | |
156 | - ng-model="recebimentoObjeto.tipoAvaliacaoPrazo" | |
157 | - form="formDialogRecebimentoObjeto" | |
158 | - ng-obrigatorio="edit" | |
159 | - ng-disabled="!edit || recebimentoObjeto.id" | |
160 | - ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoPrazo" | |
161 | - ng-custom-options="tipoAvaliacaoPrazo as tipoAvaliacaoPrazo.descricao for tipoAvaliacaoPrazo" | |
162 | - track-by="track by tipoAvaliacaoPrazo.id"/> | |
163 | - <option value="">Selecione</option> | |
164 | - </select> | |
165 | - </div> | |
166 | - <div class="col-sm-4"> | |
167 | - <label-select ng-id="tipoAvaliacaoAtendimento" | |
168 | - ng-model="recebimentoObjeto.tipoAvaliacaoAdesao" | |
169 | - form="formDialogRecebimentoObjeto" | |
170 | - ng-obrigatorio="edit" | |
171 | - ng-disabled="!edit || recebimentoObjeto.id" | |
172 | - ng-list="dominiosRecebimentoObjeto.tiposAvaliacaoAdesao" | |
173 | - ng-custom-options="tipoAvaliacaoAtendimento as tipoAvaliacaoAtendimento.descricao for tipoAvaliacaoAtendimento" | |
174 | - track-by="track by tipoAvaliacaoAtendimento.id"/> | |
175 | - <option value="">Selecione</option> | |
176 | - </select> | |
177 | - </div> | |
178 | - </div> | |
179 | - | |
180 | - <div class="row"> | |
181 | - <div class="col-sm-12"> | |
182 | 171 | <label-text-area ng-id="recebimentoObjeto.respostaContratada" |
183 | 172 | ng-label="LABEL.JUSTIFICATIVA" |
184 | 173 | ng-model="recebimentoObjeto.justificativa" | ... | ... |