Ignore:
Timestamp:
Jun 7, 2010, 9:20:00 AM (11 years ago)
Author:
roberth
Message:

Samples are now shown in the study overview page. Also some tests are added and the bootstrap is updated to show some sample fields with a template

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/dbnp/studycapturing/Study.groovy

    r511 r536  
    6666        }
    6767
     68        /**
     69         * returns all events and sampling events that do not belong to a group
     70         */
     71        def Set<Event> getOrphanEvents() {
     72            def orphans =
     73                events.findAll{ event -> !event.belongsToGroup( eventGroups ) } +
     74                samplingEvents.findAll { event -> !event.belongsToGroup( eventGroups ) };
     75
     76            return orphans;
     77        }
     78
    6879        /**
    6980         * Return the unique Subject templates that are used in this study
Note: See TracChangeset for help on using the changeset viewer.