Changeset 535 for trunk/grails-app/controllers
- Timestamp:
- May 16, 2010, 5:47:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r533 r535 44 44 45 45 def reactiveRatio = { 46 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100)47 46 48 47 params.reportTitle = "Reactive Ratio Report" 48 params.logoUrl = resource(dir:'images',file:'logo.png', absolute:true) 49 49 params.currentUser = authService.currentUser 50 params.startDate = dateUtilService.yesterday-14 51 params.endDate = dateUtilService.tomorrow+15 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 55 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 61 params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate) 62 52 63 def dataModel = [taskReportService.getReactiveRatio(params, RCU.getLocale(request))] 53 64
Note: See TracChangeset
for help on using the changeset viewer.