Ignore:
Timestamp:
Jun 8, 2010, 10:41:21 PM (14 years ago)
Author:
gav
Message:

First draft of displaying work load on task calendar, see ticket #66.

File:
1 edited

Legend:

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

    r582 r585  
    1010    def taskService
    1111    def taskSearchService
     12    def taskReportService
    1213    def filterService
    1314    def exportService
     
    197198        params.max = Math.min( params.max ? params.max.toInteger() : 100,  1000 )
    198199
     200        def displayList = []
    199201        def taskInstanceList = []
    200202        def taskInstanceTotal
     
    261263        }
    262264
     265        displayList = taskReportService.getWorkLoadSummary(
     266                                    [taskInstanceList: taskInstanceList], RCU.getLocale(request)
     267                                ).displayList
     268
    263269        // export plugin:
    264270        if(params?.format && params.format != "html") {
     
    286292        }
    287293
    288         if(taskInstanceTotal > params.max)
    289             params.errorMessage = g.message(code:"task.search.calendar.text.too.many.results", args:[params.max])
     294//         if(taskInstanceTotal > params.max)
     295//             params.errorMessage = g.message(code:"task.search.calendar.text.too.many.results", args:[params.max])
    290296
    291297        // Add some basic params to filterParams.
     
    293299        filterParams.offset = params.offset?.toInteger() ?: 0
    294300
    295         return[taskInstanceList: taskInstanceList,
     301        return[displayList: displayList,
     302                        taskInstanceList: taskInstanceList,
    296303                        taskInstanceTotal: taskInstanceTotal,
    297304                        filterParams: filterParams,
Note: See TracChangeset for help on using the changeset viewer.