Package clips.delegate.directory.simple.speciality

Examples of clips.delegate.directory.simple.speciality.DirectorySpecialityItem


        for (int i = 0; i < funcList.size(); i++) {
            CollaboratorFunctionsChunk function = funcList.get(i);
            if (defaultid == 0) {
                defaultid = function.getId();
            }
            DirectorySpecialityItem item = function.getSpeciality();
            if (item != null) {
                PairIntStr pair = new PairIntStr(item.getID(), item.getTitle());
                allItems.add(pair);
            }
        }
    }
View Full Code Here


                    data.setDescription(description);
                    MessageBox.showException(ex);
                }
            }
            if (col == COL_DS_SPECIALITY) {
                DirectorySpecialityItem speciality = data.getSpeciality();
                try {
                    data.setSpeciality((DirectorySpecialityItem) aValue);
                    dangerServices.append(data);
                } catch (ClipsException ex) {
                    data.setSpeciality(speciality);
View Full Code Here

        String clinicType = UserInfo.get().getCollaborator().getLpu().getClinicType().getExtKey().trim();
        ArrayList<DirectoryCollaboratorFunctionsItem> availableFunctions = new ArrayList<DirectoryCollaboratorFunctionsItem>();
            DirectoryCollaboratorItem collaborator = UserInfo.get().getCollaborator();
            DirectoryCollaboratorFunctions dcf = DirectoryLocator.getDirectory(DirectoryCollaboratorFunctions.class);
            Selector<DirectoryCollaboratorFunctionsItem> functions = dcf.getFilteredItems(collaborator);
            DirectorySpecialityItem spec = serRenLocal.getSpeciality();
            DirectoryReceptionTypeItem recType = null;
            if (serRenLocal.getContractService() != null
                    && serRenLocal.getContractService().getReceptionType() != null
                    && !serRenLocal.getContractService().getReceptionType().isNullItem()) {
                recType = serRenLocal.getContractService().getReceptionType();
            }
            for (int i = 0; i < functions.size(); i++) {
                boolean validRecType = recType == null || recType.getID() == || functions.get(i).getReceptionType().equals(recType);
                boolean validSpec = spec == null || spec.getID() == 0 || functions.get(i).getSpeciality().equals(spec);
                if (validRecType && validSpec) {
                    if (functions.get(i).getReceptionType().getExtKey().trim().startsWith(clinicType)) {
                        availableFunctions.add(functions.get(i));
                    }
                }
View Full Code Here

                DirectoryLocator.getDirectory(DirectorySpeciality.class).getItems();
       
        //hide empty
        List<DirectorySpecialityItem> visible = new LinkedList<DirectorySpecialityItem>();
        for(int i=0; i<specDir.size(); i++) {
            DirectorySpecialityItem spec = specDir.get(i);
            if(getColls(lpu, spec).size() > 0) {
                visible.add(spec);
            }
        }
 
View Full Code Here

    public Object getChild(Object parent, int index) {
        try {
            if(parent instanceof DefaultMutableTreeNode) {
                return specList[index];
            } else if(parent instanceof DirectorySpecialityItem) {
                DirectorySpecialityItem item = (DirectorySpecialityItem)parent;
                return getColls(lpu, item).get(index);
            }
        } catch (ClipsException ex) {
            ex.printStackTrace();
        }
View Full Code Here

    public int getChildCount(Object parent) {
        try {
            if(parent instanceof DefaultMutableTreeNode) {
                return specList.length;
            } else if(parent instanceof DirectorySpecialityItem) {
                DirectorySpecialityItem item = (DirectorySpecialityItem)parent;
                return getColls(lpu, item).size();
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

        if(node instanceof DefaultMutableTreeNode) {
            return false;
        } else {
            try {
                if(node instanceof DirectorySpecialityItem) {
                    DirectorySpecialityItem item = (DirectorySpecialityItem)node;
                    return getColls(lpu, item).size() == 0;
                }
            } catch (ClipsException ex) {
                ex.printStackTrace();
            }
View Full Code Here

   
    @Override
    public String toString() {
        try {
            String res = "";
            DirectorySpecialityItem spec = null;
            if (getSpeciality() != null && getSpeciality().getID() != 0) {
                spec = getSpeciality();
            }
            if (getCollaboratorFunctions() != null){
                DirectoryReceptionTypeItem recType = getCollaboratorFunctions().getReceptionType();
View Full Code Here

            CollaboratorFunctionsChunk cfc = it.get(i);
            specSet.add(cfc.getSpeciality());
        }
        String s = "";
        for (Iterator<DirectorySpecialityItem> it1 = specSet.iterator(); it1.hasNext();) {
            DirectorySpecialityItem spec = it1.next();
            s = s + spec.toString();
            if (it1.hasNext()) {
                s = s + ", ";
            }
        }
        return s;
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.speciality.DirectorySpecialityItem

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.