Changeset 743 for trunk/grails-app/controllers
- Timestamp:
- Dec 13, 2010, 10:14:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r740 r743 285 285 286 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 // } 287 redirect(action: 'regulatoryRequirementsGsp') 295 288 296 289 } // regulatoryRequirements 297 290 291 def mandatoryRequirementsGsp = { 292 render(view: 'mandatoryRequirements') 293 } 294 295 def mandatoryRequirements = { 296 297 def result = assetReportService.getMandatoryRequirements(params, RCU.getLocale(request)) 298 299 params.reportTitle = "Asset Mandatory Requirements" 300 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 301 params.currentUser = authService.currentUser 302 params.startDateString = result.startDateString 303 params.endDateString = result.endDateString 304 305 if(!result.error) { 306 // Jasper plugin controller expects data to be a Collection. 307 chain(controller:'jasper', action:'index', model:[data: [result]], params:params) 308 return 309 } 310 311 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 312 redirect(action: 'mandatoryRequirementsGsp') 313 314 } // mandatoryRequirements 315 298 316 } // end of class.
Note: See TracChangeset
for help on using the changeset viewer.