Package beans.discount.entity

Examples of beans.discount.entity.DiscountDetails


    public void update(int discountCardTypeID, List<DiscountDetails> list) throws ClipsServerException {
        checkCommandAccessibility(COMMAND_WRITE);
        DiscountCardType type = findEntity(DiscountCardType.class, discountCardTypeID);
       
        for(int i=0; i<list.size(); i++) {
            DiscountDetails d = list.get(i);
            DiscountLevel level = findEntity(DiscountLevel.class, d.level);
            ServiceClass cls = findEntity(ServiceClass.class, d.cls);
      Field field[] = {
          new Field("cardType", type),
          new Field("serviceClass", cls),
View Full Code Here


        DirectoryDiscountLevel directoryLevels = DirectoryLocator.getDirectory(DirectoryDiscountLevel.class, false);
        DirectoryServiceClass directoryClasses = DirectoryLocator.getDirectory(DirectoryServiceClass.class);
       
        for(int i=0; i<list.size(); i++) {
            DiscountDetails d = list.get(i);
            DirectoryDiscountLevelItem level = directoryLevels.getItemFromID(d.level);
            DirectoryServiceClassItem cls = directoryClasses.getItemFromID(d.cls);
            discount.setValue(level, cls, d.value);
        }
       
View Full Code Here

            List<DiscountDetails> list = new ArrayList<DiscountDetails>();
            while(i.hasNext()) {
                ServiceLevelKey key = i.next();
                Value v = values.get(key);
                if(v.original != v.value) {
                    DiscountDetails d = new DiscountDetails();
                    d.cls = key.service.getID();
                    d.level = key.level.getID();
                    d.value = v.value;
                    list.add(d);
                }
View Full Code Here

TOP

Related Classes of beans.discount.entity.DiscountDetails

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.