Changeset 954
- Timestamp:
- Jun 29, 2011, 4:55:11 PM (13 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/CostCodeDetailedController.groovy
r953 r954 13 13 def list = { 14 14 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 15 def associatedPropertyMax = 1000 16 def associatedPropertyValues = [:] 17 def purchasingGroupNameQuery = 'select distinct a.name from PurchasingGroup a where a.isActive = ? order by a.name' 18 associatedPropertyValues.purchasingGroupList = PurchasingGroup.executeQuery(purchasingGroupNameQuery, [true], [max:associatedPropertyMax]) 15 19 16 20 if(!params.filter) { 17 21 return [costCodeInstanceList: CostCode.list(params), 18 22 costCodeInstanceTotal: CostCode.count(), 23 associatedPropertyValues: associatedPropertyValues, 19 24 filterParams: params] 20 25 } … … 23 28 return[ costCodeInstanceList: filterService.filter( params, CostCode ), 24 29 costCodeInstanceTotal: filterService.count( params, CostCode ), 30 associatedPropertyValues: associatedPropertyValues, 25 31 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params), 26 32 params:params ] -
trunk/grails-app/views/costCodeDetailed/list.gsp
r953 r954 97 97 class="overlayPane" 98 98 associatedProperties="purchasingGroup.name" 99 filterPropertyValues="${['purchasingGroup.name':[values: PurchasingGroup.findAllByIsActive(true)]]}" />99 filterPropertyValues="${['purchasingGroup.name':[values: associatedPropertyValues.purchasingGroupList]]}" /> 100 100 101 101 </div>
Note: See TracChangeset
for help on using the changeset viewer.