- Timestamp:
- Jun 29, 2011, 3:30:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/CostCodeDetailedController.groovy
r633 r953 3 3 @Secured(['ROLE_AppAdmin', 'ROLE_Manager']) 4 4 class CostCodeDetailedController extends BaseController { 5 5 6 def filterService 7 6 8 def index = { redirect(action:list,params:params) } 7 9 … … 11 13 def list = { 12 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 13 [ costCodeInstanceList: CostCode.list( params ), costCodeInstanceTotal: CostCode.count() ] 15 16 if(!params.filter) { 17 return [costCodeInstanceList: CostCode.list(params), 18 costCodeInstanceTotal: CostCode.count(), 19 filterParams: params] 20 } 21 22 // filterPane: 23 return[ costCodeInstanceList: filterService.filter( params, CostCode ), 24 costCodeInstanceTotal: filterService.count( params, CostCode ), 25 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params), 26 params:params ] 14 27 } 15 28
Note: See TracChangeset
for help on using the changeset viewer.