Changeset 834
- Timestamp:
- Aug 23, 2010, 10:10:16 PM (12 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapStudies.groovy
r830 r834 456 456 name: 'Lipid profiling', 457 457 module: clinicalModule, 458 externalAssayID: 1458 externalAssayID: 'PPS3_SAM' 459 459 ) 460 460 … … 473 473 name: 'Glucose assay 2', 474 474 module: clinicalModule, 475 externalAssayID: 2475 externalAssayID: 'PPSH-2' 476 476 ) 477 477 … … 479 479 name: 'Glucose assay 3', 480 480 module: clinicalModule, 481 externalAssayID: 3481 externalAssayID: 'PPSH-3' 482 482 ) 483 483 … … 491 491 humanStudy.addToAssays(glucoseAssay3Ref) 492 492 humanStudy.save() 493 println "Saving"493 494 494 //glucoseAssay2Ref.with { if (!validate()) { errors.each { println it} } else save()} 495 495 //glucoseAssay3Ref.with { if (!validate()) { errors.each { println it} } else save()} -
trunk/grails-app/controllers/RestController.groovy
r833 r834 125 125 def items = [] 126 126 if( params.externalAssayID ) { 127 def id = Long.parseLong(params.externalAssayID) 128 def assay = Assay.find( "from Assay as a where externalAssayID=?",[id]) 127 def assay = Assay.find( "from Assay as a where externalAssayID=?",[params.externalAssayID]) 129 128 assay.getSamples().each { sample -> 130 129 def item = [ -
trunk/grails-app/domain/dbnp/studycapturing/Assay.groovy
r825 r834 15 15 // The assay ID which is used in the dbNP submodule which contains the actual omics data of this assay. 16 16 // This ID is generated in GSCF, but is used in the submodules to refer to this particular Assay. 17 long externalAssayID17 String externalAssayID 18 18 19 19 /**
Note: See TracChangeset
for help on using the changeset viewer.