Package beans.contract.entity

Examples of beans.contract.entity.ContractPacket


        Contract entity = getExistentEntity();

        Iterator<ContractPacket> list = findEntityList(ContractPacket.class, "key.contract", entity.getId()).iterator();
        Set<Integer> res = new HashSet<Integer>();
        while (list.hasNext()) {
            ContractPacket templates = list.next();
            res.add(templates.getKey().getPacketTemplate());
        }
        return res;
    }
View Full Code Here


                }
                throw new EDataIntegrity("В договоре отсутствуют необходимые услуги : \n" + serviceTitles);
            }
            AuditDoc<ContractPacket> auditCP = new AuditDoc<ContractPacket>(null, getCollaborator());
            auditDocList.add(auditCP);
            ContractPacket cp = new ContractPacket();
            cp.setKey(new ContractPacketPK(eid, packetTemplateID));
            cp.setContract(entity);
            cp.setPacketServiceTemplate(findEntity(PacketTemplate.class, packetTemplateID));
            manager.persist(cp);
            auditCP.check(cp);
        }

        if (old.size() > 0) {
View Full Code Here

        List<ContractPacket> cps = findEntityList(ContractPacket.class, "key.contract", src.getId());
        CollaboratorAbstract collab = getCollaborator();
        for (ContractPacket b : cps) {
            AuditDoc<ContractPacket> auditDoc = new AuditDoc<ContractPacket>(null, collab);
            auditDocList.add(auditDoc);
            ContractPacket cp = ((ContractPacket) (b).clone());
            cp.setKey(new ContractPacketPK(dst.getId(), cp.getKey().getPacketTemplate()));
            manager.persist(cp);
            manager.flush();
            manager.refresh(cp);
            auditDoc.check(cp);
        }
View Full Code Here

TOP

Related Classes of beans.contract.entity.ContractPacket

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.