Changeset 151
- Timestamp:
- Jan 29, 2010, 6:26:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/EventDescriptionController.groovy
r150 r151 47 47 48 48 def showMyProtocol = { 49 println params // dbg, remove50 49 51 50 def protocol = ( params.protocolid) ? Protocol.get(params.protocolid) : Protocol.find("for Protocol id") … … 53 52 def protocolInstance = event.eventDescription.protocol 54 53 55 println params56 println event57 println protocol58 println protocolInstance59 60 54 if( protocolInstance && protocolInstance && protocol.id==protocolInstance.id ) { 61 55 def parameterStringValues = event.parameterStringValues 62 println parameterStringValues63 print "showFull"64 56 render( view:"showMyProtocolFilled", model:["protocolInstance":protocolInstance,"event":event,"parameterStringValues":parameterStringValues] ) 65 57 } 66 58 else { 67 print "showEmpty"68 59 if(protocol!=null) render( view: "showMyProtocolEmpty", model:["protocolInstance":protocol] ) 69 60 else render( "NULL" ) 70 61 } 71 62 } 72 73 63 74 64
Note: See TracChangeset
for help on using the changeset viewer.