Changeset 857 for trunk/grails-app/domain
- Timestamp:
- Aug 30, 2010, 12:12:21 PM (11 years ago)
- Location:
- trunk/grails-app/domain/dbnp/studycapturing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/studycapturing/EventGroup.groovy
r813 r857 23 23 name(unique:['parent']) 24 24 } 25 26 /** 27 * Return all events and samplingEvents 28 * @return ArrayList 29 */ 30 def ArrayList getAllEvents() { 31 return ( 32 ((events) ? events : []) 33 + 34 ((samplingEvents) ? samplingEvents : []) 35 ) 36 } 25 37 } -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r819 r857 109 109 def ArrayList<Subject> giveSubjectsForTemplate(Template template) { 110 110 subjects.findAll { it.template.equals(template) } 111 } 112 113 /** 114 * Return all unique assay templates 115 * @return Set 116 */ 117 Set<Template> giveAllAssayTemplates() { 118 TemplateEntity.giveTemplates(( (assays) ? assays : [] )) 119 } 120 121 /** 122 * Return all assays for a particular template 123 * @return ArrayList 124 */ 125 def ArrayList giveAssaysForTemplate(Template template) { 126 assays.findAll { it.template.equals(template) } 111 127 } 112 128
Note: See TracChangeset
for help on using the changeset viewer.