Commit 7ee697837bea39fd0a82cb50ab8cad4c8c70f7ee
Exists in
master
Merge branch 'tarefa-3822' into adm-1.16.0
# Conflicts: # cit-adm-materiais-api/src/main/resources/scripts-bd/postgres/v1.16.0/01-cit-adm-materiais-v1.16.0-postgres.sql
Showing
5 changed files
with
292 additions
and
3 deletions
Show diff stats
cit-adm-materiais-api/src/main/java/br/com/centralit/api/model/MaterialConsumo.java
... | ... | @@ -70,7 +70,8 @@ public class MaterialConsumo extends Material { |
70 | 70 | ViewsAdmMateriais.EntradaAlmoxarifadoEditView.class, |
71 | 71 | ViewsAdmMateriais.MaterialConsumoBaixaAutoCompleteView.class, |
72 | 72 | ViewsAdmMateriais.BaixaAlmoxarifadoEditView.class, |
73 | - ViewsAdmMateriais.CatalogoMaterialItemEditView.class, Views.MaterialConsultaInfo.class, ViewsAdmMateriais.RequisicaoConsumo.class}) | |
73 | + ViewsAdmMateriais.CatalogoMaterialItemEditView.class, Views.MaterialConsultaInfo.class, ViewsAdmMateriais.RequisicaoConsumo.class, | |
74 | + Views.GenericView.class}) | |
74 | 75 | private UnidadeMedida unidadeArmazenamento; |
75 | 76 | |
76 | 77 | /** Atributo tiposUnidadeMedidaEntrada. */ | ... | ... |
cit-adm-materiais-api/src/main/java/br/com/centralit/api/service/impl/ContaContabilServiceImpl.java
... | ... | @@ -202,7 +202,7 @@ public class ContaContabilServiceImpl extends GenericServiceImpl<ContaContabil, |
202 | 202 | this.montaContaContabilSaldoAnterior(entity); |
203 | 203 | } |
204 | 204 | |
205 | - contaContabil = calcularTaxaDepreciacao(entity); | |
205 | + calcularTaxaDepreciacao(entity); | |
206 | 206 | |
207 | 207 | return super.merge(entity); |
208 | 208 | ... | ... |
cit-adm-materiais-api/src/main/java/br/com/centralit/api/viewHelper/AtendimentoVH.java
1 | 1 | package br.com.centralit.api.viewHelper; |
2 | 2 | |
3 | 3 | import java.io.Serializable; |
4 | +import java.util.List; | |
5 | + | |
6 | +import br.com.centralit.framework.model.SearchParams; | |
4 | 7 | |
5 | 8 | /** |
6 | 9 | * <p> |
... | ... | @@ -46,6 +49,16 @@ public class AtendimentoVH implements Serializable { |
46 | 49 | /** Atributo idRequisicao. */ |
47 | 50 | private Long idRequisicao; |
48 | 51 | |
52 | + private List<Long> idsRequisicao; | |
53 | + | |
54 | + private List<Long> idsMaterais; | |
55 | + | |
56 | + private List<Long> idsUnidadesRequisitantes; | |
57 | + | |
58 | + private SearchParams searchParams; | |
59 | + | |
60 | + private boolean bloquearAtendimento; | |
61 | + | |
49 | 62 | /** |
50 | 63 | * Retorna o valor do atributo <code>idOrganizacao</code> |
51 | 64 | * |
... | ... | @@ -86,4 +99,43 @@ public class AtendimentoVH implements Serializable { |
86 | 99 | this.idRequisicao = idRequisicao; |
87 | 100 | } |
88 | 101 | |
102 | + public List<Long> getIdsRequisicao() { | |
103 | + return idsRequisicao; | |
104 | + } | |
105 | + | |
106 | + public void setIdsRequisicao(List<Long> idsRequisicao) { | |
107 | + this.idsRequisicao = idsRequisicao; | |
108 | + } | |
109 | + | |
110 | + public List<Long> getIdsMaterais() { | |
111 | + return idsMaterais; | |
112 | + } | |
113 | + | |
114 | + public void setIdsMaterais(List<Long> idsMaterais) { | |
115 | + this.idsMaterais = idsMaterais; | |
116 | + } | |
117 | + | |
118 | + public List<Long> getIdsUnidadesRequisitantes() { | |
119 | + return idsUnidadesRequisitantes; | |
120 | + } | |
121 | + | |
122 | + public void setIdsUnidadesRequisitantes(List<Long> idsUnidadesRequisitantes) { | |
123 | + this.idsUnidadesRequisitantes = idsUnidadesRequisitantes; | |
124 | + } | |
125 | + | |
126 | + public SearchParams getSearchParams() { | |
127 | + return searchParams; | |
128 | + } | |
129 | + | |
130 | + public void setSearchParams(SearchParams searchParams) { | |
131 | + this.searchParams = searchParams; | |
132 | + } | |
133 | + | |
134 | + public boolean isBloquearAtendimento() { | |
135 | + return bloquearAtendimento; | |
136 | + } | |
137 | + | |
138 | + public void setBloquearAtendimento(boolean bloquearAtendimento) { | |
139 | + this.bloquearAtendimento = bloquearAtendimento; | |
140 | + } | |
89 | 141 | } | ... | ... |
cit-adm-materiais-api/src/main/java/br/com/centralit/api/viewHelper/RequisicaoVH.java
... | ... | @@ -78,6 +78,8 @@ public class RequisicaoVH implements Serializable { |
78 | 78 | @JsonDeserialize(using = JsonCalendarSimpleDateDeserializer.class) |
79 | 79 | private Calendar dataFinalizacao; |
80 | 80 | |
81 | + private Boolean statusAtendimentoRequsicao; | |
82 | + | |
81 | 83 | /** |
82 | 84 | * Retorna o valor do atributo <code>idsTtipoStatusRequisicao</code> |
83 | 85 | * |
... | ... | @@ -238,4 +240,12 @@ public class RequisicaoVH implements Serializable { |
238 | 240 | this.dataFinalizacao = dataFinalizacao; |
239 | 241 | } |
240 | 242 | |
243 | + public Boolean getStatusAtendimentoRequsicao() { | |
244 | + return statusAtendimentoRequsicao; | |
245 | + } | |
246 | + | |
247 | + public void setStatusAtendimentoRequsicao(Boolean statusAtendimentoRequsicao) { | |
248 | + this.statusAtendimentoRequsicao = statusAtendimentoRequsicao; | |
249 | + } | |
250 | + | |
241 | 251 | } | ... | ... |
cit-adm-materiais-api/src/main/resources/scripts-bd/postgres/v1.16.0/01-cit-adm-materiais-v1.16.0-postgres.sql
... | ... | @@ -72,4 +72,230 @@ FROM |
72 | 72 | WHERE |
73 | 73 | und.materialconsumo_id = undidadesEnt.id AND und.unidademedida_id = undidadesEnt.unidadearmazenamento_id; |
74 | 74 | |
75 | --- GEOVANE FIM 24/05/2016 | |
76 | 75 | \ No newline at end of file |
76 | +-- GEOVANE FIM 24/05/2016 | |
77 | +-- ERICK INICIO 16/05/2016 | |
78 | +DELETE FROM DOMINIO WHERE CHAVE = 'tipoStatusRequisicao'; | |
79 | + | |
80 | +INSERT INTO dominio | |
81 | +(id, datacriacao, dataedicao, datainativo, version, chave, descricao, nome, codigo, ispadrao) | |
82 | +VALUES | |
83 | +(NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Atendida parcialmente', 'ATENDIDA_PARCIALMENTE', 1, false), | |
84 | +(NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Pronta para atendimento', 'PRONTA_PARA_ATENDIMENTO', 2, false), | |
85 | +(NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Não concluída', 'NAO_CONCLUIDA', 3, false), | |
86 | +(NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Devolvida', 'DEVOLVIDA', 4, false), | |
87 | +(NEXTVAL('hibernate_sequence'), LOCALTIMESTAMP, LOCALTIMESTAMP, NULL, 0, 'tipoStatusRequisicao', 'Finalizada', 'FINALIZADA', 5, false); | |
88 | +-- ERICK FIM 16/05/2016 | |
89 | + | |
90 | +-- RONAN INICIO 18/05/2016 | |
91 | + | |
92 | +ALTER TABLE alm_rc_atendimentoitem ADD COLUMN materiallocalestoque_id bigint; | |
93 | +ALTER TABLE alm_rc_atendimentoitem | |
94 | + ADD CONSTRAINT fk_hx3srtvuubkwfds6s3bckj3yp FOREIGN KEY (materiallocalestoque_id) | |
95 | + REFERENCES public.alm_me_localestoque (id) MATCH SIMPLE | |
96 | + ON UPDATE NO ACTION ON DELETE NO ACTION; | |
97 | + | |
98 | +-- RONAN FIM 18/05/2016 | |
99 | + | |
100 | + | |
101 | +-- ERICK INICIO 19/05/2016 | |
102 | + | |
103 | + CREATE TABLE alm_rc_atendimento_aud | |
104 | +( | |
105 | + id bigint NOT NULL, | |
106 | + rev integer NOT NULL, | |
107 | + revtype smallint, | |
108 | + databloqueio date, | |
109 | + datainativo date, | |
110 | + datacriacao timestamp without time zone, | |
111 | + dataedicao timestamp without time zone, | |
112 | + dataatendimento timestamp without time zone, | |
113 | + numeroatendimento character varying(30), | |
114 | + autor_id bigint, | |
115 | + editor_id bigint, | |
116 | + requisicaoconsumo_id bigint | |
117 | +); | |
118 | + | |
119 | +CREATE TABLE alm_requisicaoconsumo_aud | |
120 | +( | |
121 | + id bigint NOT NULL, | |
122 | + rev integer NOT NULL, | |
123 | + revtype smallint, | |
124 | + databloqueio date, | |
125 | + datainativo date, | |
126 | + datacriacao timestamp without time zone, | |
127 | + dataedicao timestamp without time zone, | |
128 | + datafinalizacaoatendimento timestamp without time zone, | |
129 | + datarequisicao timestamp without time zone, | |
130 | + numerorequisicao character varying(30), | |
131 | + autor_id bigint, | |
132 | + editor_id bigint, | |
133 | + almoxarifado_id bigint, | |
134 | + centrocusto_id bigint, | |
135 | + tipostatusrequisicao_id bigint, | |
136 | + unidaderequisitante_id bigint | |
137 | +); | |
138 | + | |
139 | +CREATE TABLE centrocusto_aud | |
140 | +( | |
141 | + id bigint NOT NULL, | |
142 | + rev integer NOT NULL, | |
143 | + revtype smallint, | |
144 | + databloqueio date, | |
145 | + datainativo date, | |
146 | + datacriacao timestamp without time zone, | |
147 | + dataedicao timestamp without time zone, | |
148 | + codigo character varying(30), | |
149 | + descricao character varying(255), | |
150 | + autor_id bigint, | |
151 | + editor_id bigint, | |
152 | + centrocustoparent_id bigint | |
153 | +); | |
154 | + | |
155 | + | |
156 | +CREATE TABLE alm_rc_item_aud | |
157 | +( | |
158 | + id bigint NOT NULL, | |
159 | + rev integer NOT NULL, | |
160 | + revtype smallint, | |
161 | + databloqueio date, | |
162 | + datainativo date, | |
163 | + datacriacao timestamp without time zone, | |
164 | + dataedicao timestamp without time zone, | |
165 | + quantidade numeric(19,2), | |
166 | + quantidadeatendida numeric(19,2), | |
167 | + quantidadedevolvida numeric(19,2), | |
168 | + autor_id bigint, | |
169 | + editor_id bigint, | |
170 | + materialconsumo_id bigint, | |
171 | + requisicaoconsumo_id bigint | |
172 | +); | |
173 | + | |
174 | + | |
175 | +CREATE TABLE alm_rc_atenditem_aud | |
176 | +( | |
177 | + id bigint NOT NULL, | |
178 | + rev integer NOT NULL, | |
179 | + revtype smallint, | |
180 | + databloqueio date, | |
181 | + datainativo date, | |
182 | + datacriacao timestamp without time zone, | |
183 | + dataedicao timestamp without time zone, | |
184 | + quantidade numeric(19,2), | |
185 | + autor_id bigint, | |
186 | + editor_id bigint, | |
187 | + atendimentoreqconsumo_id bigint, | |
188 | + material_id bigint, | |
189 | + materiallocalestoque_id bigint, | |
190 | + requisicaoconsumoitem_id bigint | |
191 | +); | |
192 | + | |
193 | +-- ERICK FIM 19/05/2016 | |
194 | + | |
195 | +-- ERICK INICIO 20/05/2016 | |
196 | +ALTER TABLE alm_requisicaoconsumo ADD COLUMN emAtendimento BOOLEAN DEFAULT FALSE; | |
197 | +ALTER TABLE alm_requisicaoconsumo_aud ADD COLUMN emAtendimento BOOLEAN; | |
198 | + | |
199 | +ALTER TABLE alm_requisicaoconsumo ADD COLUMN atendente_id BIGINT; | |
200 | +ALTER TABLE alm_requisicaoconsumo_aud ADD COLUMN atendente_id BIGINT; | |
201 | + | |
202 | +ALTER TABLE ONLY alm_requisicaoconsumo | |
203 | +ADD CONSTRAINT fk_req_atendente FOREIGN KEY (atendente_id) REFERENCES seguranca_usuario(id); | |
204 | +-- ERICK FIM 20/05/2016 | |
205 | + | |
206 | +-- RONAN INICIO 19/05/2016 | |
207 | + | |
208 | +alter table alm_rc_atendimentoitem drop column quantidade; | |
209 | +alter table alm_rc_atendimentoitem drop constraint fk_hx3srtvuubkwfds6s3bckj3yp; | |
210 | +alter table alm_rc_atendimentoitem drop column materiallocalestoque_id; | |
211 | + | |
212 | +CREATE TABLE alm_rc_at_item_endereco | |
213 | +( | |
214 | + id bigint NOT NULL, | |
215 | + databloqueio date, | |
216 | + datainativo date, | |
217 | + quantidade numeric(19,2), | |
218 | + inativador_id bigint, | |
219 | + at_req_consumoitem_id bigint NOT NULL, | |
220 | + materiallocalestoque_id bigint NOT NULL, | |
221 | + CONSTRAINT alm_rc_at_item_endereco_pkey PRIMARY KEY (id), | |
222 | + CONSTRAINT fk_7ep45inuirh29oxc70t085n7t FOREIGN KEY (at_req_consumoitem_id) | |
223 | + REFERENCES public.alm_rc_atendimentoitem (id) MATCH SIMPLE | |
224 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
225 | + CONSTRAINT fk_9tdi5v43fn5qtt3n4wn2c9ma4 FOREIGN KEY (materiallocalestoque_id) | |
226 | + REFERENCES public.alm_me_localestoque (id) MATCH SIMPLE | |
227 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
228 | + CONSTRAINT fk_g385pn6ltxma9nmkq8sohtkw2 FOREIGN KEY (inativador_id) | |
229 | + REFERENCES public.seguranca_usuario (id) MATCH SIMPLE | |
230 | + ON UPDATE NO ACTION ON DELETE NO ACTION | |
231 | +) | |
232 | + | |
233 | +-- RONAN FIM 19/05/2016 | |
234 | + | |
235 | +-- Erick INICIO 23/05/2016 | |
236 | +CREATE TABLE alm_rc_at_item_end_aud | |
237 | +( | |
238 | + id bigint NOT NULL, | |
239 | + rev integer NOT NULL, | |
240 | + revtype smallint, | |
241 | + databloqueio date, | |
242 | + datainativo date, | |
243 | + quantidade numeric(19,2), | |
244 | + at_req_consumoitem_id bigint, | |
245 | + materiallocalestoque_id bigint | |
246 | +); | |
247 | + | |
248 | +-- ERICK FIM 23/05/2016 | |
249 | + | |
250 | +-- Erick INICIO 24/05/2016 | |
251 | +CREATE TABLE alm_rc_atendimentoitemfifo | |
252 | +( | |
253 | + id bigint NOT NULL, | |
254 | + databloqueio date, | |
255 | + datainativo date, | |
256 | + datacriacao timestamp without time zone NOT NULL, | |
257 | + dataedicao timestamp without time zone NOT NULL, | |
258 | + version bigint, | |
259 | + quantidadeutilizada numeric(20,4) NOT NULL, | |
260 | + inativador_id bigint, | |
261 | + autor_id bigint, | |
262 | + editor_id bigint, | |
263 | + organizacao_id bigint, | |
264 | + at_req_consumoitem_id bigint NOT NULL, | |
265 | + materialestoquefifoitem_id bigint, | |
266 | + CONSTRAINT alm_rc_atendimentoitemfifo_pkey PRIMARY KEY (id), | |
267 | + CONSTRAINT fk_182ti3frfvwwapjtm4qkhoyao FOREIGN KEY (inativador_id) | |
268 | + REFERENCES seguranca_usuario (id) MATCH SIMPLE | |
269 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
270 | + CONSTRAINT fk_97ui5rhx7nsr6h8eourfsxct0 FOREIGN KEY (at_req_consumoitem_id) | |
271 | + REFERENCES alm_rc_atendimentoitem (id) MATCH SIMPLE | |
272 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
273 | + CONSTRAINT fk_cvmj6dr7enhmoi7huv9rjf2sp FOREIGN KEY (organizacao_id) | |
274 | + REFERENCES organizacao (id) MATCH SIMPLE | |
275 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
276 | + CONSTRAINT fk_pfax4c9citfm74ok7q8oe7m2l FOREIGN KEY (autor_id) | |
277 | + REFERENCES seguranca_usuario (id) MATCH SIMPLE | |
278 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
279 | + CONSTRAINT fk_r6b6iwwn5nu263ulnugc55o8a FOREIGN KEY (editor_id) | |
280 | + REFERENCES seguranca_usuario (id) MATCH SIMPLE | |
281 | + ON UPDATE NO ACTION ON DELETE NO ACTION, | |
282 | + CONSTRAINT fk_s34cvykt2pw5kmw63ctdod3hi FOREIGN KEY (materialestoquefifoitem_id) | |
283 | + REFERENCES alm_me_fifoitem (id) MATCH SIMPLE | |
284 | + ON UPDATE NO ACTION ON DELETE NO ACTION | |
285 | +); | |
286 | + | |
287 | +CREATE TABLE alm_rc_atitfifo_aud | |
288 | +( | |
289 | + id bigint NOT NULL, | |
290 | + rev integer NOT NULL, | |
291 | + revtype smallint, | |
292 | + databloqueio date, | |
293 | + datainativo date, | |
294 | + datacriacao timestamp without time zone, | |
295 | + dataedicao timestamp without time zone, | |
296 | + quantidadeutilizada numeric(20,4), | |
297 | + autor_id bigint, | |
298 | + editor_id bigint, | |
299 | + at_req_consumoitem_id bigint, | |
300 | + materialestoquefifoitem_id bigint | |
301 | +); | |
302 | +-- Erick FIM 24/05/2016 | ... | ... |