Changeset 836 for trunk/grails-app/conf/BootStrapTemplates.groovy
- Timestamp:
- Aug 25, 2010, 9:44:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapTemplates.groovy
r776 r836 591 591 println ".adding plant sampling event template" 592 592 def plantSamplingEventTemplate = new Template( 593 name: 'Plant-sample 593 name: 'Plant-sample', 594 594 description: 'plant sample ', 595 595 entity: dbnp.studycapturing.SamplingEvent, … … 629 629 .with { if (!validate()) { errors.each { println it} } else save()} 630 630 631 632 // assay templates 633 634 def assayDescriptionField = new TemplateField( 635 name: 'Description', 636 comment: 'add general assay information here', 637 entity: Assay, 638 type: TemplateFieldType.STRING 639 ); 640 assayDescriptionField.with { if (!validate()) { errors.each { println it} } else save()} 641 642 println ".adding clinical chemistry assay template" 643 def ccAssayTemplate = new Template( 644 name: 'Clinical chemistry assay', 645 description: 'Clinical chemistry assay stored in a SAM module', 646 entity: dbnp.studycapturing.Assay 647 ) 648 .addToFields(assayDescriptionField) 649 .with { if (!validate()) { errors.each { println it} } else save()} 650 651 println ".adding metabolomics assay template" 652 def metAssayTemplate = new Template( 653 name: 'Metabolomics assay', 654 description: 'Metabolomics assay stored in a metabolomics module', 655 entity: dbnp.studycapturing.Assay 656 ) 657 .addToFields(assayDescriptionField) 658 .addToFields( 659 new TemplateField( 660 name: 'Spectrometry technique', 661 comment: 'Select the used metabolomics technique', 662 entity: Assay, 663 type: TemplateFieldType.STRINGLIST, 664 listEntries: [ 665 new TemplateFieldListItem(name: 'GC/MS'), 666 new TemplateFieldListItem(name: 'LC/MS'), 667 new TemplateFieldListItem(name: 'NMR'), 668 new TemplateFieldListItem(name: 'HPLC') 669 ]) 670 ) 671 .with { if (!validate()) { errors.each { println it} } else save()} 631 672 } 632 673
Note: See TracChangeset
for help on using the changeset viewer.