Ignore:
Timestamp:
Apr 18, 2010, 10:03:40 PM (14 years ago)
Author:
gav
Message:

Add work done by person and date feature with view and search logic.

File:
1 edited

Legend:

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

    r488 r490  
    748748
    749749    }
     750
     751    /**
     752    * Render a users total work done hours.
     753    */
     754    @Secured(['ROLE_AppAdmin', 'ROLE_Manager', 'ROLE_TaskManager', 'ROLE_TaskUser'])
     755    def workDone = {
     756        def result = taskSearchService.getWorkDone(params, RCU.getLocale(request))
     757
     758        params.message = result.message
     759
     760        return[entries: result.entries,
     761                    totalEntries : result.totalEntries,
     762                    startOfDay: result.startOfDay,
     763                    person: result.person,
     764                    totalHours: result.totalHours,
     765                    totalMinutes: result.totalMinutes]
     766    } // workDone
    750767
    751768    /**
Note: See TracChangeset for help on using the changeset viewer.