Changeset 149 for trunk/grails-app/conf


Ignore:
Timestamp:
Jan 29, 2010, 1:43:38 PM (14 years ago)
Author:
jahn
Message:

Added another protocol and related protocol parameter types for testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrap.groovy

    r148 r149  
    6262                        ).with { if (!validate()) { errors.each { println it} } else save()}
    6363
     64
     65                        // added by Jahn for testing the event views
     66                        def treatmentProtocol2 = new Protocol(
     67                                name: 'MADMAX Experimental Protocol 2',
     68                                reference: treatmentTerm
     69                        ).with { if (!validate()) { errors.each { println it} } else save()}
     70
     71
     72
    6473                        treatmentProtocol
    6574                        .addToParameters(new ProtocolParameter(
     
    7584                                type: ProtocolParameterType.STRING))
    7685                        .save()
     86
     87
     88                        // added by Jahn for testing the event views
     89                        treatmentProtocol2
     90                        .addToParameters(new ProtocolParameter(
     91                                name: 'Diet',
     92                                type: ProtocolParameterType.STRINGLIST,
     93                                listEntries: ['99% fat (crude oil)','1% fat (palm oil)']))
     94                        .addToParameters(new ProtocolParameter(
     95                                name: 'Compound',
     96                                type: ProtocolParameterType.STRINGLIST,
     97                                listEntries: ['Vehicle','Leptin']))
     98                        .addToParameters(new ProtocolParameter(
     99                                name: 'Administration',
     100                                type: ProtocolParameterType.STRING))
     101                        .save()
     102
    77103
    78104
     
    109135                        ).with { if (!validate()) { errors.each { println it} } else save()}
    110136
     137
    111138                        // studies
    112139                        def exampleStudy = new Study(
Note: See TracChangeset for help on using the changeset viewer.