Ignore:
Timestamp:
May 24, 2010, 3:48:53 AM (14 years ago)
Author:
gav
Message:

Improvements to Immediate Callout Report.

File:
1 edited

Legend:

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

    r542 r544  
    4848        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
    4949        params.currentUser = authService.currentUser
    50 
    51         if(params.startDate == 'struct')
    52             params.startDate = dateUtilService.makeDate(params.startDate_year, params.startDate_month, params.startDate_day)
    53         else
    54             params.startDate = dateUtilService.today-7
    5550        params.startDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.startDate)
    56 
    57         if(params.endDate == 'struct')
    58             params.endDate = dateUtilService.makeDate(params.endDate_year, params.endDate_month, params.endDate_day)
    59         else
    60             params.endDate = dateUtilService.today
    6151        params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate)
    6252
     
    7161        params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL()
    7262        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
    7863        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
    8464        params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate)
    8565
Note: See TracChangeset for help on using the changeset viewer.