Package clips.delegate.directory.simple.serviceClass

Examples of clips.delegate.directory.simple.serviceClass.DirectoryServiceClass


        initComponents();
       
        this.group = group_;
        tfGroupCodePref.setText(group.getFullCode());

        DirectoryServiceClass dirClass = DirectoryLocator.getDirectory(DirectoryServiceClass.class);
        SelectorEditableExceptional<DirectoryServiceClassItem> it = dirClass.getItems();
        for(int i=0; i<it.size(); i++) {
            cbClass.addItem(it.get(i));
        }
        StateSaver.attachTo(this);
    }
View Full Code Here


     */
    public TableModelDiscount(Discounts discounts) throws ClipsException {
        this.discounts = discounts;
       
        //row data
        DirectoryServiceClass directory = DirectoryLocator.getDirectory(DirectoryServiceClass.class);
        SelectorEditableExceptional<DirectoryServiceClassItem> ii = directory.getItems();
        int row = 0;
        for(int i=0; i<ii.size(); i++) {
            DirectoryItem item = (DirectoryItem) ii.get(i);
            if(item.getID() == 0) {
                continue;
View Full Code Here

            clearBean();
            throw new ClipsException("Не удалось загрузить дисконты",ex);
        }

        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);
        }
       
        discount.setLoaded();
       
View Full Code Here

     * Возвращает класс услуги, к которому относится дання услуга
     * @return класс услуги
     * @throws ClipsException
     */
    public DirectoryServiceClassItem getServiceClass() throws ClipsException {
        DirectoryServiceClass classList = DirectoryLocator.getDirectory(DirectoryServiceClass.class);
        return classList.getItemFromID(getDetails().serviceClass);
    }
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.serviceClass.DirectoryServiceClass

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.