Changeset 886 for branches/features/grailsUpgrade/grails-app/controllers
- Timestamp:
- Apr 15, 2011, 4:55:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/grailsUpgrade/grails-app/controllers/TaskProcedureDetailedController.groovy
r813 r886 17 17 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 18 18 19 if(!params.filter) 20 { return [taskProcedureInstanceList: TaskProcedure.list(params), taskProcedureInstanceTotal: TaskProcedure.count()] } 19 def taskProcedureInstanceList 20 def taskProcedureInstanceTotal 21 def filterParams = com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params) 22 23 if(params.filter) { 24 taskProcedureInstanceList = filterService.filter( params, TaskProcedure ) 25 taskProcedureInstanceTotal = filterService.count( params, TaskProcedure ) 26 } 27 else { 28 taskProcedureInstanceList = TaskProcedure.list(params) 29 taskProcedureInstanceTotal = TaskProcedure.count() 30 } 21 31 22 32 // filterPane: 23 return[ taskProcedureInstanceList: filterService.filter( params, TaskProcedure ),24 taskProcedureInstanceTotal: filterService.count( params, TaskProcedure ),25 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params),26 params: params ]33 return[ taskProcedureInstanceList: taskProcedureInstanceList, 34 taskProcedureInstanceTotal: taskProcedureInstanceTotal, 35 filterParams: filterParams, 36 params: params ] 27 37 } 28 38
Note: See TracChangeset
for help on using the changeset viewer.