Package er.grouping

Examples of er.grouping.DRMasterCriteria


        return (String)valueForBinding("title");
    }
   

    public NSArray vertSubList() {
        DRMasterCriteria masterCritForCrit = topCriteriaV().masterCriteria();
        DRGroup drg = (DRGroup)model().vList().lastObject();
       
        if(drg != null){
            DRMasterCriteria bottomMasterCrit = drg.masterCriteria();
            if (masterCritForCrit.equals(bottomMasterCrit)) {
                return null;
            }
        }
        DRGroup innerGroup = (DRGroup)model().vList().objectAtIndex(currentLevelV - 1);
View Full Code Here


    public NSArray horzSubList() {
        // current DRGroup for row is: hGroup
        // current DRCriteria for nesting is: topCriteria
        // need list of sub criteria if any give the above
        DRGroup innerGroup;
        DRMasterCriteria masterCritForCrit = topCriteria().masterCriteria();
        if (masterCritForCrit.equals(hGroup.masterCriteria())) {
            return null;
        }
        innerGroup = (DRGroup)model().hList().objectAtIndex(currentLevel-1);
        return innerGroup.sortedCriteriaList();
    }
View Full Code Here

        return innerGroup.sortedCriteriaList();
    }


    public NSArray horzSubList2() {
        DRMasterCriteria masterCritForCrit = topCriteria().masterCriteria();
        DRGroup grp = (DRGroup)model().hList().lastObject();
        DRMasterCriteria bottomMasterCrit = grp.masterCriteria();

        if (masterCritForCrit.equals(bottomMasterCrit)) {
            return null;
        }
View Full Code Here

    public void initializeDimensionArrayFromBindings(String dimension) {
        NSArray keypaths = ERXValueUtilities.arrayValue(valueForBinding("keysIn" + dimension));
        if(keypaths != null && keypaths.count() > 0) {
            for (Enumeration en = keypaths.objectEnumerator(); en.hasMoreElements(); ) {
                String keypath = (String)en.nextElement();
                DRMasterCriteria crit = model().masterCriteriaForKeyPath(keypath);
                if(crit != null) {
                    DRGroup group = model().groupForMasterCriteria(crit);
                    if("Z".equals(dimension))
                        model().addToZList(group);
                    else if("H".equals(dimension))
View Full Code Here

        Enumeration en = model().groups().objectEnumerator();
        //log.debug( "currCritDict:"+currCritDict);

        while (en.hasMoreElements()) {
            DRGroup grp = (DRGroup)en.nextElement();
            DRMasterCriteria dmc = grp.masterCriteria();
            DRCriteria crt = (DRCriteria)currCritDict.objectForKey(dmc.label());
            if(crt != null) {
                dict.setObjectForKey(crt, dmc.keyDesc());

                if (crt.isTotal()) {
                    NSMutableDictionary d = (NSMutableDictionary)dict.objectForKey("isTotal");

                    if (d == null) {
                        d = new NSMutableDictionary();
                        dict.setObjectForKey(d, "isTotal");
                    }

                    d.setObjectForKey("true", dmc.keyDesc());
                }
            }

        }
        return dict;
View Full Code Here

        zCriteria = null;
    }

    public String currentZCriteriaLabel() {
        NSArray srtdList = zGroup.sortedCriteriaList();
        DRMasterCriteria mc = zGroup.masterCriteria();
        DRCriteria crt = (DRCriteria)zCriteria().objectForKey(mc.label());

        if (crt == null) {
            return "ERROR";
        }
View Full Code Here

        return crt.label();
    }

    public void updateZList(DRGroup group) {
        DRCriteria crit;
        DRMasterCriteria mc = group.masterCriteria();
        NSArray srtdList = group.sortedCriteriaList();
        String mcLabel = mc.label();
        crit = (DRCriteria)zCriteria().objectForKey(mcLabel);

        if (crit == null) {
            crit = (DRCriteria)srtdList.objectAtIndex(0);
            zCriteria().setObjectForKey(crit, mcLabel);
View Full Code Here

    }

    public WOComponent nextZ() {
        DRCriteria crt;
        NSArray srtdList = zGroup.sortedCriteriaList();
        DRMasterCriteria mc = zGroup.masterCriteria();
        int index = srtdList.indexOfObject(zCriteria().objectForKey(mc.label()));
        int count = srtdList.count();
        int newIndex = index+1;

        if (newIndex == count) {
            newIndex = 0;
        }

        crt = (DRCriteria)srtdList.objectAtIndex(newIndex);
        zCriteria().setObjectForKey(crt, mc.label());
        return null;
    }
View Full Code Here


    public WOComponent prevZ() {
        DRCriteria crt;
        NSArray srtdList = zGroup.sortedCriteriaList();
        DRMasterCriteria mc = zGroup.masterCriteria();
        int index = srtdList.indexOfObject(zCriteria().objectForKey(mc.label()));
        int count = srtdList.count();
        int newIndex = index-1;

        if (newIndex < 0) {
            newIndex = count-1;
        }

        crt = (DRCriteria)srtdList.objectAtIndex(newIndex);
        zCriteria().setObjectForKey(crt, mc.label());
        return null;
    }
View Full Code Here

    public Object regenReportGroup() {
        NSArray oldMCs = new NSArray(masterCriteriaList());
        Enumeration en = oldMCs.objectEnumerator();

        while (en.hasMoreElements()) {
            DRMasterCriteria amc = (DRMasterCriteria)en.nextElement();
            NSArray smcList = newSubCriteriaListFromMC(amc);
            replaceMCWith(amc, smcList);
        }

        if (masterCriteriaUpdateAction != null) {
View Full Code Here

TOP

Related Classes of er.grouping.DRMasterCriteria

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.