Changeset 414 for trunk/grails-app/controllers
- Timestamp:
- Feb 24, 2010, 4:01:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r403 r414 6 6 class AssetDetailedController extends BaseController { 7 7 8 def csvService8 def assetCsvService 9 9 def filterService 10 10 def exportService … … 61 61 */ 62 62 def importAssetTreeSave = { 63 def result = csvService.importAssetTree(request)63 def result = assetCsvService.importAssetTree(request) 64 64 65 65 if(!result.error) … … 80 80 response.contentType = ConfigurationHolder.config.grails.mime.types["csv"] 81 81 response.setHeader("Content-disposition", "attachment; filename=AssetTreeTemplate.csv") 82 def s = csvService.buildAssetTreeTemplate()82 def s = assetCsvService.buildAssetTreeTemplate() 83 83 render s 84 84 } … … 90 90 response.contentType = ConfigurationHolder.config.grails.mime.types["csv"] 91 91 response.setHeader("Content-disposition", "attachment; filename=AssetTreeTestFile.csv") 92 def s = csvService.buildAssetTreeTest()92 def s = assetCsvService.buildAssetTreeTest() 93 93 render s 94 94 } … … 104 104 response.contentType = ConfigurationHolder.config.grails.mime.types["csv"] 105 105 response.setHeader("Content-disposition", "attachment; filename=AssetTree.csv") 106 def s = csvService.buildAssetTree(assetList)106 def s = assetCsvService.buildAssetTree(assetList) 107 107 render s 108 108 }
Note: See TracChangeset
for help on using the changeset viewer.