Changeset 544 for trunk/grails-app/controllers/ReportController.groovy
- Timestamp:
- May 24, 2010, 3:48:53 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r542 r544 48 48 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 49 49 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 else54 params.startDate = dateUtilService.today-755 50 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 else60 params.endDate = dateUtilService.today61 51 params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate) 62 52 … … 71 61 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 72 62 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 else77 params.startDate = dateUtilService.today-778 63 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 else83 params.endDate = dateUtilService.today84 64 params.endDateString = g.formatDate(format: "EEE, dd-MMM-yyyy", date: params.endDate) 85 65
Note: See TracChangeset
for help on using the changeset viewer.