Ignore:
Timestamp:
Mar 31, 2010, 1:42:00 PM (14 years ago)
Author:
gav
Message:

Scroll month feature to task search calendar.
Add reasoning, asset and sub item columns on procedure tab of task show view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r473 r474  
    122122    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
    123123    def searchCalendar = {
    124         params.max = 30
     124
     125        if(session.taskSearchParamsMax)
     126            params.max = session.taskSearchParamsMax
     127
     128        // Protect filterPane.
     129        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
     130
     131        // Set the month to show.
     132        def showMonth = new Date()
     133        if(session.taskSearchCalendarShowMonth)
     134            showMonth = session.taskSearchCalendarShowMonth
     135
     136        if(params.nextMonth)
     137            showMonth = dateUtilService.getNextMonth(showMonth)
     138        else if(params.previousMonth)
     139            showMonth = dateUtilService.getPreviousMonth(showMonth)
     140        session.taskSearchCalendarShowMonth = showMonth
    125141
    126142        // Quick Search:
     
    155171                params.quickSearch = "searchTodays"
    156172            }
    157             return[taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.totalCount, filterParams: params]
     173            return[taskInstanceList: taskInstanceList, taskInstanceTotal: taskInstanceList.totalCount, showMonth: showMonth, filterParams: params]
    158174        }
    159175        // filterPane:
     
    163179            taskInstanceTotal: taskInstanceTotal,
    164180            filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params),
     181            showMonth: showMonth,
    165182            params:params ]
    166183    }
Note: See TracChangeset for help on using the changeset viewer.