Changeset 589 for trunk/grails-app/controllers
- Timestamp:
- Jun 9, 2010, 12:51:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r588 r589 234 234 if(isFilterApplied) { 235 235 // filterPane: 236 params.sort = params.sort ?: "id" 237 params.order = params.order ?: "desc" 236 238 if(params.sort == "attentionFlag") // See ticket #64 in Trac. 237 239 params.sort = "id" … … 298 300 filterParams.max = params.max 299 301 filterParams.offset = params.offset?.toInteger() ?: 0 302 filterParams.sort = params.sort ?: "id" 303 filterParams.order = params.order ?: "desc" 304 305 // Get some associatedProperty values for filterpane. 306 def associatedPropertyValues = [:] 307 def associatedPropertyMax = 10000 308 associatedPropertyValues.taskPriorityList = TaskPriority.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 309 def lastNameQuery = 'select distinct p.lastName from Person p where p.isActive = ? order by p.lastName' 310 associatedPropertyValues.lastNameList = Person.executeQuery(lastNameQuery, [true], [max:associatedPropertyMax]) 311 def firstNameQuery = 'select distinct p.firstName from Person p where p.isActive = ? order by p.firstName' 312 associatedPropertyValues.firstNameList = Person.executeQuery(firstNameQuery, [true], [max:associatedPropertyMax]) 313 associatedPropertyValues.taskGroupList = TaskGroup.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 314 associatedPropertyValues.assetList = Asset.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 315 associatedPropertyValues.taskStatusList = TaskStatus.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 316 associatedPropertyValues.taskTypeList = TaskType.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name']) 317 def startOfYearRange = dateUtilService.getYearFromDate(dateUtilService.plusYear(new Date(), -10)) 318 def endOfYearRange = dateUtilService.getYearFromDate(dateUtilService.plusYear(new Date(), 10)) 319 associatedPropertyValues.yearRange = startOfYearRange..endOfYearRange 300 320 301 321 return[taskInstanceList: taskInstanceList, … … 303 323 filterParams: filterParams, 304 324 params: params, 325 associatedPropertyValues: associatedPropertyValues, 305 326 showDate: showDate, 306 327 today: calendarMonthControls.today,
Note: See TracChangeset
for help on using the changeset viewer.