Package beans.directory.packet.entity

Examples of beans.directory.packet.entity.PacketTemplate


        q.setParameter("contract", getExistentEntity());
        List foundedPST = q.getResultList();
        if (foundedPST.size() > 0) {
            String packets = "";
            for (int i = 0; i < foundedPST.size(); i++) {
                PacketTemplate packetTemplate = (PacketTemplate) foundedPST.get(i);
                packets += packetTemplate.getTitle() + "\n";
            }
            throw new EDataIntegrity("В договоре присутствуют следующие пакеты, содержащие эту услугу :\n" + packets);
        }

        AuditDoc<ServicePrice> auditDoc = new AuditDoc<ServicePrice>(servicePrice, getCollaborator());
View Full Code Here


        PacketService packetService = null;
        Medexam medexam = null;
        //если присутствует пакет
        if (chunk.packetServiceTemplateID != 0) {
            packetService = new PacketService();
            PacketTemplate packetTemplate = findEntity(PacketTemplate.class, chunk.packetServiceTemplateID);
            packetService.setPacketTemplate(packetTemplate);
            saveEntity(packetService);
            MedexamType medexamType = packetTemplate.getMedexamType();
            if (medexamType != null) {
                //не просто пакет, а медосмотр
                if (chunk.diseaseID != 0) {
                    throw new EDataIntegrity("Для медосмотра необходимо создать новое заболевание");
                }
View Full Code Here

            List<Integer> services, int discountCardID, int packetServiceTemplateID) throws ClipsServerException {

        /**Если присутствует пакет услуг то это список договоров, содержащих данный пакет*/
        HashSet<Contract> contractSet = null;
        if (packetServiceTemplateID != 0) {
            PacketTemplate packetTemplate = findEntity(PacketTemplate.class, packetServiceTemplateID);
            List<ContractPacket> contractPachetList = findEntityList(ContractPacket.class, "packetServiceTemplate", packetTemplate);
            contractSet = new HashSet<Contract>();
            for (int i = 0; i < contractPachetList.size(); i++) {
                Contract contract = (contractPachetList.get(i)).getContract();
                contractSet.add(contract);
View Full Code Here

TOP

Related Classes of beans.directory.packet.entity.PacketTemplate

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.