Package er.grouping

Examples of er.grouping.DRCriteria


        //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");
View Full Code Here



    public String vIndentCriteriaLabel() {
        DRGroup grp = (DRGroup)model().vList().objectAtIndex(vheadingIndex());
        String ky = grp.masterCriteria().label();
        DRCriteria crt = (DRCriteria)_currentZCriteria.objectForKey(ky);
        return crt.label();
    }
View Full Code Here

    }

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

        if (crt == null) {
            return "ERROR";
        }

        int index = srtdList.indexOfObject(crt);
        int srtdListCount = srtdList.count();


        if (index > srtdListCount-1) {
            crt = (DRCriteria)srtdList.objectAtIndex(srtdListCount-1);
        }
        //else {
        //    crt = (DRCriteria)srtdList.objectAtIndex(index);
        //}

        return crt.label();
    }
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);
View Full Code Here

            return "V";
        }
    }

    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;
View Full Code Here

        return null;
    }


    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;
View Full Code Here

            DRSubMasterCriteria mainSubMasterCriteria = (DRSubMasterCriteria) mainGroup.masterCriteria().subCriteriaList().lastObject();
            String mainKey = mainSubMasterCriteria.keyDesc();
            NSArray mainCriterias = mainGroup.sortedCriteriaList();

            for (Enumeration values = mainCriterias.objectEnumerator(); values.hasMoreElements();) {
                DRCriteria mainCriteria = (DRCriteria)values.nextElement();
                String label = (String) mainCriteria.valueDict().objectForKey(mainKey);
                coordinates.setObjectForKey(mainCriteria, mainGroup.masterCriteria().keyDesc());
                if(!mainCriteria.isTotal()) {
                    for (Enumeration days = dayCriterias.objectEnumerator(); days.hasMoreElements();) {
                        DRCriteria dayCriteria = (DRCriteria)days.nextElement();
                        Object o = dayCriteria.valueDict().objectForKey(dayKey);
                        if(!dayCriteria.isTotal()) {
                            // we just want the actual times, not the totals
                            if(o instanceof NSTimestamp) {
                                NSTimestamp ts = (NSTimestamp)o;
                                if(ts != null) {
                                    double value = 0.0D;
View Full Code Here

TOP

Related Classes of er.grouping.DRCriteria

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.