Package clips.delegate.directory.filtered

Examples of clips.delegate.directory.filtered.DirectoryServiceItem$ServicesActions


    }

    @Override
    protected boolean isFit(Object item) throws ClipsException {
        if(item instanceof DirectoryServiceItem) {
            DirectoryServiceItem si  =(DirectoryServiceItem) item;
            if(si.isVisible()) {
                return true;
            }
        }
        return false;
    }
View Full Code Here


                    return path;
                }
            }
            Selector<DirectoryServiceItem> si = dirServ.getFilteredItems(parent);
            for (int i = 0; i < si.size(); i++) {
                DirectoryServiceItem child = si.get(i);
                List path = findMatch(child, pattern);
                if (path != null) {
                    path.add(parent);
                    return path;
                }
View Full Code Here

    }
   
    public DirectoryServiceItem getService() throws ClipsException {
        DirectoryService directory = (DirectoryService)
                DirectoryLocator.getDirectory(DirectoryService.class, false);
        DirectoryServiceItem item = directory.getItemFromID(getDetails().service);
        return item;
    }   
View Full Code Here

            Iterator<Integer> it;
            it = chunk.priceMap.keySet().iterator();
            while (it.hasNext()) {
                Integer serviseID = it.next();
                DirectoryServiceItem service = directoryService.getItemFromID(serviseID);
                priceMap.put(service, chunk.priceMap.get(serviseID));
                moneyMap.put(service, chunk.moneyMap.get(serviseID));
                discountMap.put(service, chunk.discountMap.get(serviseID));
            }
            ServiceContractPriceData scpd = new ServiceContractPriceData(index, type, enterprise, polisID, priceMap, moneyMap, discountMap);
View Full Code Here

            DirectoryDialogService dds = new DirectoryDialogService(false, selectedService);
            dds.setVisible(true);
            if (dds.getDlgResult() == DirectoryDialogService.DLG_OK) {
                Selector ii = dds.getSelectedItems();
                if (ii.size() > 0) {
                    DirectoryServiceItem item = (DirectoryServiceItem) ii.get(0);
                    tfService.setText(item.toString());
                    selectedService = item;
                }
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

    /**
     * Обновление списка чекапов (с сервера)
     */
    private void reloadFromServer() {                                            
        DirectoryLaboratoryItem laboratory = (DirectoryLaboratoryItem) jComboBox1.getSelectedItem();
        DirectoryServiceItem service = null;
        if (cbOnlyService.isSelected()) {
            service = selectedService;
        }
        boolean rendered = rbRendered.isSelected();
        Date from = dateFrom.getDate();
View Full Code Here

        Set<Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>> keySet = serviceRecTypeList.getKeySet();
        DirectoryService dirService = DirectoryLocator.getDirectory(DirectoryService.class);
        DirectoryReceptionType dirRecType = DirectoryLocator.getDirectory(DirectoryReceptionType.class);
        Selector<DirectoryServiceItem> it = dirService.getFilteredItems(group);
        for (int i = 0; i < it.size(); i++) {
            DirectoryServiceItem service = it.get(i);
            int founded = 0;
            for (Pair<DirectoryServiceItem, DirectoryReceptionTypeItem> pair : keySet) {
                if (pair.first.getID() == service.getID()) {
                    founded ++;
                }
            }
            if (service.getGroup().getID() != ServiceGroup.SERVICE_GROUP_VISIT) {
                //Если услуга не посещение, то достаточно найти одно значение в кейсете
                if (founded > 0) {
                    statAll ++;
                } else {
                    statNo ++;
View Full Code Here

        DirectoryService ds = DirectoryLocator.getDirectory(DirectoryService.class, false);
        DirectoryReceptionType recTypeDir = DirectoryLocator.getDirectory(DirectoryReceptionType.class);
        Selector<DirectoryServiceItem> it = ds.getFilteredItems(group);
        Set<Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>> keySet = serviceRecTypeList.getKeySet();
        for (int i = 0; i < it.size(); i++) {
            DirectoryServiceItem service = it.get(i);
            if (status == SEL_STATUS_ALL) {
                //МОЖЕТ услуга уже есть
                int founded = 0;
                for (Pair<DirectoryServiceItem, DirectoryReceptionTypeItem> pair : keySet) {
                    if (pair.first.getID() == service.getID()) {
                        founded ++;
                    }
                }
                if (founded == 0) {
                    Pair<DirectoryServiceItem, DirectoryReceptionTypeItem> pair = new Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>();
                    pair.first = service;
                    pair.second = recTypeDir.getItemFromID(0);
                    ServisePriceData spd = new ServisePriceData(pair);
                    getContractServiceList().append(spd);
                }

            } else if (status == SEL_STATUS_NOTHING) {
                ArrayList<Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>> forDelete = new ArrayList<Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>>();
                for (Iterator<Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>> it1 = keySet.iterator(); it1.hasNext();) {
                    Pair<DirectoryServiceItem, DirectoryReceptionTypeItem> pair = it1.next();
                    if (pair.first.getID() == service.getID()) {
                        forDelete.add(pair);
                    }
                }
                for (Pair<DirectoryServiceItem, DirectoryReceptionTypeItem> pair : forDelete) {
                    removeService(pair);
View Full Code Here

            contract = contractMap.get(contractID);
        } else {
            contract = getPolisData().getContract();
            contractMap.put(contractID, contract);
        }
        DirectoryServiceItem service = getService();
        ServisePriceData contractService = null;
        DirectoryReceptionTypeItem nullItem = DirectoryLocator.getDirectory(DirectoryReceptionType.class).getNullItem();
        DirectoryReceptionTypeItem recType = nullItem;
        if (getCollaboratorFunctions() != null){
            recType = getCollaboratorFunctions().getReceptionType();
View Full Code Here

TOP

Related Classes of clips.delegate.directory.filtered.DirectoryServiceItem$ServicesActions

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.