Changeset 740 for trunk/grails-app/controllers
- Timestamp:
- Dec 13, 2010, 4:46:31 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r733 r740 264 264 } 265 265 266 def regulatoryRequirementsGsp = { 267 render(view: 'regulatoryRequirements') 268 } 269 270 def regulatoryRequirements = { 271 272 def result = assetReportService.getRegulatoryRequirements(params, RCU.getLocale(request)) 273 274 params.reportTitle = "Asset Regulatory Requirements" 275 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 276 params.currentUser = authService.currentUser 277 params.startDateString = result.startDateString 278 params.endDateString = result.endDateString 279 280 if(!result.error) { 281 // Jasper plugin controller expects data to be a Collection. 282 chain(controller:'jasper', action:'index', model:[data: [result]], params:params) 283 return 284 } 285 286 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 287 redirect(action: 'equipmentRegisterOhsGsp') 288 289 // render { 290 // p("DataList:") 291 // result.dataList?.each { 292 // p("$it") 293 // } 294 // } 295 296 } // regulatoryRequirements 297 266 298 } // end of class.
Note: See TracChangeset
for help on using the changeset viewer.