Changeset 1621 for trunk/grails-app
- Timestamp:
- Mar 11, 2011, 11:02:30 AM (10 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/SandboxController.groovy
r1430 r1621 8 8 9 9 def index = { 10 10 println Study.list(); 11 11 12 // Get the example study in a lazy way 12 13 def st = Study.get(1) -
trunk/grails-app/controllers/dbnp/studycapturing/SimpleWizardController.groovy
r1612 r1621 193 193 194 194 missingFields { 195 on( "refresh" ) { 196 handleMissingFields( flow.study, params, flow ); 197 success(); 198 }.to "missingFields" 195 199 on( "next" ) { 196 200 if( !handleMissingFields( flow.study, params, flow ) ) { -
trunk/grails-app/controllers/dbnp/studycapturing/StudyController.groovy
r1588 r1621 28 28 def offset = params.offset ? params.int( 'offset' ) : 0 29 29 def studies = Study.giveReadableStudies( user, max, offset ); 30 30 println "Studies: " + studies 31 31 [studyInstanceList: studies, studyInstanceTotal: Study.countReadableStudies( user ), loggedInUser: user] 32 32 } -
trunk/grails-app/domain/dbnp/studycapturing/Study.groovy
r1594 r1621 460 460 order("title", "asc") 461 461 462 } 462 }.unique() 463 463 } 464 464 … … 472 472 } 473 473 } 474 } 474 }.unique() 475 475 } 476 476 … … 491 491 eq("publicstudy", true) 492 492 } 493 } 493 }.unique() 494 494 } else if (user.hasAdminRights()) { 495 495 return c.list { … … 497 497 firstResult(offset) 498 498 order("title", "asc") 499 } 499 }.unique() 500 500 } else { 501 501 return c.list { … … 515 515 } 516 516 } 517 } 517 }.unique() 518 518 } 519 519 } -
trunk/grails-app/services/dbnp/importer/ImporterService.groovy
r1613 r1621 406 406 Cell cell = excelRow.getCell( i ); 407 407 408 if( !cell ) 409 continue; 410 408 411 // get the MappingColumn information of the current cell 409 412 def mc = mcmap[cell.getColumnIndex()] -
trunk/grails-app/views/study/list.gsp
r1609 r1621 87 87 <sec:ifLoggedIn> 88 88 <span class="button"><g:link class="create" controller="studyWizard" params="[jump:'create']"><g:message code="default.new.label" args="[entityName]"/></g:link></span> 89 <span class="button"><g:link class="create" controller="simpleWizard">Simple wizard</g:link></span> 89 90 <span class="button"><a class="compare" href="#" onClick="$( 'form#list_extended' ).first().submit(); return false;">Compare selected studies</a></span> 90 91 </sec:ifLoggedIn>
Note: See TracChangeset
for help on using the changeset viewer.