Ignore:
Timestamp:
Aug 6, 2010, 3:13:11 PM (11 years ago)
Author:
duh
Message:
  • refactored wizard sample page
  • more code improvements (unique entity names)
File:
1 edited

Legend:

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

    r784 r787  
    100100        }
    101101
    102 
    103102        /**
    104103         * Return all subjects for a specific template
     
    153152                TemplateEntity.giveTemplates(samples)
    154153        }
     154
     155        /**
     156         * Return all samples for a specific template
     157         * @param Template
     158         * @return ArrayList
     159         */
     160        def ArrayList<Subject> giveSamplesForTemplate(Template template) {
     161                samples.findAll { it.template.equals(template) }
     162        }
     163
    155164        /**
    156165         * Returns the template of the study
Note: See TracChangeset for help on using the changeset viewer.