264265266267268269270
auditDetailsList.addAll(unionPolis(dst, src, false)); auditDetailsList.addAll(unionPolis(dst, src, true)); auditDetailsList.addAll(fillClientDetails(dst, src)); } } return new ModificationInfo(pacientsMap.size(), auditDetailsList); }
129130131132133134135
} manager.flush(); AuditDoc<CollaboratorFunctions> auditDoc = new AuditDoc<CollaboratorFunctions>(null, getCollaborator()); auditDoc.check(functions); return new ModificationInfo(functions.getId(), persistAudit(auditDoc)); }
146147148149150151152
AuditDoc<CollaboratorFunctions> auditDoc = new AuditDoc<CollaboratorFunctions>(functions, getCollaborator()); functions.setTrash(true); manager.merge(functions); manager.flush(); auditDoc.check(functions); return new ModificationInfo(persistAudit(auditDoc)); }
194195196197198199200
new Field("id.collId", eid), new Field("id.rightId", oldRights, Field.OPERATOR_IN) }; deleteEntityList2(CollaboratorRight.class, f, auditDocList); } return new ModificationInfo(0, persistAudit(auditDocList)); }
187188189190191192193
event.setDate(details.date); event.setCancelled(details.cancelled); event.setCalled(details.called); int id = saveEntity(event); auditFEvent.check(event); return new ModificationInfo(id, persistAudit(auditFEvent)); }
250251252253254255256
FollowupEvent event = findEntity(FollowupEvent.class, id); checkTheSame(event.getFollup()); AuditDoc<FollowupEvent> auditFevent = new AuditDoc<FollowupEvent>(event, getCollaborator()); manager.remove(event); auditFevent.check(null); return new ModificationInfo(0, persistAudit(auditFevent)); }
202203204205206207208
AuditDoc<Checkup> auditCheckup = new AuditDoc<Checkup>(entity, getCollaborator()); entity.setCheckupShedule(null); saveEntity(entity); auditCheckup.check(entity); target.add(persistAudit(auditCheckup)); return new ModificationInfo(entity.getId(), target); }
317318319320321322323
} servicePrice.setMoney(details.money); servicePrice.setPrice(details.price); int id = saveEntity(servicePrice); auditDoc.check(servicePrice); return new ModificationInfo(id, persistAudit(auditDoc)); }
355356357358359360361
} AuditDoc<ServicePrice> auditDoc = new AuditDoc<ServicePrice>(servicePrice, getCollaborator()); manager.remove(servicePrice); auditDoc.check(null); return new ModificationInfo(anID, persistAudit(auditDoc)); }
434435436437438439440
new Field("key.contract", eid), new Field("key.packetTemplate", old, Field.OPERATOR_IN) }; deleteEntityList2(ContractPacket.class, f, auditDocList); } return new ModificationInfo(0, persistAudit(auditDocList)); }