Ignore:
Timestamp:
May 23, 2010, 4:43:44 PM (14 years ago)
Author:
gav
Message:

Start Immediate Callout report.

File:
1 edited

Legend:

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

    r538 r542  
    6666    }
    6767
    68     def test = {
    69         render taskReportService.getReactiveRatio(params, RCU.getLocale(request))
     68    def immediateCallouts = {
     69
     70        params.reportTitle = "Immediate Callouts"
     71        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
     72        params.currentUser = authService.currentUser
     73
     74        if(params.startDate == 'struct')
     75            params.startDate = dateUtilService.makeDate(params.startDate_year, params.startDate_month, params.startDate_day)
     76        else
     77            params.startDate = dateUtilService.today-7
     78        params.startDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.startDate)
     79
     80        if(params.endDate == 'struct')
     81            params.endDate = dateUtilService.makeDate(params.endDate_year, params.endDate_month, params.endDate_day)
     82        else
     83            params.endDate = dateUtilService.today
     84        params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate)
     85
     86        def dataModel = [taskReportService.getImmediateCallouts(params, RCU.getLocale(request))]
     87
     88//         render dataModel
     89        chain(controller:'jasper', action:'index', model:[data: dataModel], params:params)
     90
    7091    }
    7192
Note: See TracChangeset for help on using the changeset viewer.