Changeset 554 for trunk/grails-app
- Timestamp:
- May 31, 2010, 4:48:53 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r507 r554 235 235 filterParams.order = params.order ?: "asc" 236 236 237 // Get some associatedProperty values for filterpane. 238 def associatedPropertyValues = [:] 239 def associatedPropertyMax = 10000 240 associatedPropertyValues.inventoryLocationList = InventoryLocation.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 241 associatedPropertyValues.assetList = Asset.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 242 associatedPropertyValues.manufacturerList = Manufacturer.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 243 associatedPropertyValues.supplierList = Supplier.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 244 237 245 return[ inventoryItemInstanceList: inventoryItemInstanceList, 238 inventoryItemInstanceTotal: inventoryItemInstanceTotal, 239 filterParams: filterParams, 240 params: params ] 246 inventoryItemInstanceTotal: inventoryItemInstanceTotal, 247 filterParams: filterParams, 248 params: params, 249 associatedPropertyValues: associatedPropertyValues ] 241 250 } // end search() 242 251 -
trunk/grails-app/controllers/TaskDetailedController.groovy
r553 r554 169 169 filterParams: filterParams, 170 170 params: params, 171 associatedPropertyValues: associatedPropertyValues ]171 associatedPropertyValues: associatedPropertyValues ] 172 172 173 173 } // search -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r551 r554 187 187 preferredManufacturer.name, 188 188 preferredSupplier.name" 189 filterPropertyValues="${['inventoryLocation.name':[values: InventoryLocation.findAllByIsActive(true, [max:10000, sort:'name'])],190 'spareFor.name':[values: Asset.findAllByIsActive(true, [max:10000, sort:'name'])],191 'preferredManufacturer.name':[values: Manufacturer.findAllByIsActive(true, [max:10000, sort:'name'])],192 'preferredSupplier.name':[values: Supplier.findAllByIsActive(true, [max:10000, sort:'name'])],189 filterPropertyValues="${['inventoryLocation.name':[values: associatedPropertyValues.inventoryLocationList], 190 'spareFor.name':[values: associatedPropertyValues.assetList], 191 'preferredManufacturer.name':[values: associatedPropertyValues.manufacturerList], 192 'preferredSupplier.name':[values: associatedPropertyValues.supplierList] 193 193 ]}"/> 194 194 </div> <!-- end body div -->
Note: See TracChangeset
for help on using the changeset viewer.