Changeset 546 for trunk/grails-app/controllers
- Timestamp:
- May 26, 2010, 12:29:05 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r545 r546 8 8 def dateUtilService 9 9 def taskReportService 10 def inventoryReportService 10 11 11 12 def index = { redirect(action:templatePortrait,params:params) } … … 111 112 } // immediateCallouts 112 113 114 def stockTakeOverview = { 115 116 params.reportTitle = "Stock Take Overview" 117 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 118 params.currentUser = authService.currentUser 119 120 def dataModel = inventoryReportService.getStockTakeOverview(params, RCU.getLocale(request)) 121 122 // Jasper plugin controller expects data to be a Collection. 123 chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params) 124 125 } // stockTakeOverview 126 127 def stockTakeByLocation = { 128 129 params.reportTitle = "Stock Take By Location" 130 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 131 params.currentUser = authService.currentUser 132 133 def dataModel = inventoryReportService.getStockTakeByLocation(params, RCU.getLocale(request)) 134 135 // Jasper plugin controller expects data to be a Collection. 136 chain(controller:'jasper', action:'index', model:[data: [dataModel]], params:params) 137 138 } // stockTakeByLocation 139 113 140 } // end of class.
Note: See TracChangeset
for help on using the changeset viewer.