Package framework.beans

Examples of framework.beans.ModificationInfo


            saveEntity(a);
            polis.setAddress(a);
        }
        int id = saveEntity(polis);
        auditDoc.check(polis);
        return new ModificationInfo(id, persistAudit(auditDocList));
    }
View Full Code Here


            removeEntity(address);
        }
        AuditDoc<Polis> auditDoc = new AuditDoc<Polis>(polis, getCollaborator());
        removeEntity(polis);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }
View Full Code Here

            copyServices(contract, newContract, auditDocList);
            copyPackets(contract, newContract, auditDocList);
            copyMembers(contract, newContract, auditDocList);

            return new ModificationInfo(id, persistAudit(auditDocList));

        } catch (CloneNotSupportedException ex) {
            throw new ClipsServerException("Внутренняя ошибка: не удалось скопировать договор", ex);
        }
    }
View Full Code Here

                ServicePriceDetails d = new ServicePriceDetails();
                d.serviceID = service.getId();
                d.receptionTypeID = receptionType.getId();
                d.price = price; //договорная стоимость услгуи
                d.money = price; //сумма денег оплачиваемая за услугу страховой команией
                ModificationInfo mi = setService(d);
                auditDetList.addAll(mi.getAudit());
            } else {
                ServicePriceDetails d = servicePrice.getDetails(this);
                d.price = price; //договорная стоимость услгуи
                d.money = price; //сумма денег оплачиваемая за услугу страховой команией
                ModificationInfo mi = setService(d);
                auditDetList.addAll(mi.getAudit());
                priceMap.remove(visitPrice.getId());
            }
        }

        for (Iterator<Entry<String, ServicePrice>> it = priceMap.entrySet().iterator(); it.hasNext();) {
            Entry<String, ServicePrice> entry = it.next();
            ServicePrice servicePrice = entry.getValue();
            AuditDoc<ServicePrice> auditSP = new AuditDoc<ServicePrice>(servicePrice, collab);
            removeEntity(servicePrice);
            auditSP.check(null);
            auditDetList.add(persistAudit(auditSP));
        }
        return new ModificationInfo(0, auditDetList);
    }
View Full Code Here

        if(newAddr) {
            entity.setAddress(addr);
            saveEntity(entity);
        }
        if (auditDoc.check(entity)) {
            return new ModificationInfo(persistAudit(auditDoc));
        } else {
            return new ModificationInfo(null);
        }
    }
View Full Code Here

        saveEntity(polis);
        if (auditDoc.check(polis)) {
            AuditDetails auditChangePolis = persistAudit(auditDoc);
            auditDetailsList.add(auditChangePolis);
        }
        return new ModificationInfo(polis.getId(), auditDetailsList);
    }
View Full Code Here

                entity.setClientDocument(doc);
                saveEntity(entity);
            }
        }
        if (auditDoc.check(entity)) {
            return new ModificationInfo(persistAudit(auditDoc));
        } else {
            return new ModificationInfo(null);
        }
    }
View Full Code Here

            member.setCommittee(entity);
        }     
        member.setCollaborator(coll);
        int id = saveEntity(member);
        auditDoc.check(member);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

        CommitteeMember member = findEntity(CommitteeMember.class, id);
        AuditDoc<CommitteeMember> auditDoc = new AuditDoc<CommitteeMember>(member, getCollaborator());
        checkTheSame(member.getCommittee());
        removeEntity(member);
        auditDoc.check(null);
        return new ModificationInfo(persistAudit(auditDoc));
    }   
View Full Code Here

            direct.setCommittee(entity);
        }  
        direct.setDirection(findEntity(Direction.class, details.directionID));
        int id = saveEntity(direct);
        auditDoc.check(direct);
        return new ModificationInfo(id, persistAudit(auditDoc));
    }
View Full Code Here

TOP

Related Classes of framework.beans.ModificationInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.