Package beans.directory.packet.entity

Examples of beans.directory.packet.entity.PacketTemplateItemDetails


                        break;
                    }                   
                }
                //если нет в пакете то добавляем
                if (!isInPacket) {
                    PacketTemplateItemDetails d = new PacketTemplateItemDetails();
                    d.id = 0;
                    d.title = service.getTitle();
                    d.service = service.getID();
                    d.defaultDuration = 0;
                    d.discount = 0;
View Full Code Here


        return getDetails().defaultDuration;
    }   
   
    public void setDefaultDuration(int defaultDuration) throws ClipsException {
       if(isInDirectory()) {
            PacketTemplateItemDetails newDetails = getDetailsCopy();
            newDetails.defaultDuration = defaultDuration;
            saveDetails(newDetails);
        } else {
            getDetails().defaultDuration = defaultDuration;
       
View Full Code Here

        return getDetails().discount;
    }
   
    public void setDiscount(int discount) throws ClipsException {
       if(isInDirectory()) {
            PacketTemplateItemDetails newDetails = getDetailsCopy();
            newDetails.discount = discount;
            saveDetails(newDetails);
        } else {
            getDetails().discount = discount;
       
View Full Code Here

        return getDetails().weight;
    }   
   
    public void setWeight(int weight) throws ClipsException {
       if(isInDirectory()) {
            PacketTemplateItemDetails newDetails = getDetailsCopy();
            newDetails.weight = weight;
            saveDetails(newDetails);
        } else {
            getDetails().weight = weight;
       
View Full Code Here

        return item;
    }   
   
    public void setPacketTemplate(DirectoryPacketTemplateItem item) throws ClipsException {
       if(isInDirectory()) {
            PacketTemplateItemDetails newDetails = getDetailsCopy();
            newDetails.packetTemplate = item.getID();
            saveDetails(newDetails);
        } else {
            getDetails().packetTemplate = item.getID();
        }        
View Full Code Here

        return item;
    }   
   
    public void setService(DirectoryServiceItem item) throws ClipsException {
       if(isInDirectory()) {
            PacketTemplateItemDetails newDetails = getDetailsCopy();
            newDetails.service = item.getID();
            newDetails.title = item.getTitle();
            saveDetails(newDetails);
        } else {
            getDetails().service = item.getID();
View Full Code Here

        return "Пакетные услуги";
    }

    @Override
    protected DirectoryPacketTemplateListItem createFromLoadedDetails(DirectoryItemDetails details) {
        PacketTemplateItemDetails d = (PacketTemplateItemDetails) details;
        return new DirectoryPacketTemplateListItem(d);
    }
View Full Code Here

TOP

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

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.