Changeset 546 for trunk/grails-app
- Timestamp:
- May 26, 2010, 12:29:05 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 1 added
- 3 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. -
trunk/grails-app/i18n/messages.properties
r530 r546 313 313 inventoryItem.search.text.recently.used.description=Items used in the last {0} days. 314 314 inventoryItem.search.text.recently.used.none.found=No items used in the last {0} days. 315 316 # Reports 317 report.stock.take.overview=Stock Take (Overview) 318 report.stock.take.overview.help=Use this report to manage inventory stock take. Use in conjunction with the Stock Take (By Location) report. 319 report.stock.take.by.location=Stock Take (Location) 320 report.stock.take.by.location.help=Enter a comma separated list of inventory locations. \ 321 Use the Stock Take (Overview) report to get the list of locations. A % symbol may be used as a wild card, e.g: X1, X2, Y%, Z%7 -
trunk/grails-app/views/appCore/start.gsp
r545 r546 123 123 <br /> 124 124 <g:jasperReport controller="report" 125 action="stockTakeOverview" 126 jasper="stockTakeOverview" 127 name="Stock Take (Overview)" 128 format="PDF, XLS"> 129 <g:helpBalloon class="helpballoon" code="report.stock.take.overview" /> 130 </g:jasperReport> 131 <br /> 132 <g:jasperReport controller="report" 133 action="stockTakeByLocation" 134 jasper="stockTakeByLocation" 135 name="Stock Take (By Location)" 136 format="PDF, XLS"> 137 <g:textField name="locationString" value="e.g: A1%, C55" /> 138 <g:helpBalloon class="helpballoon" code="report.stock.take.by.location" /> 139 </g:jasperReport> 140 <br /> 141 <g:jasperReport controller="report" 125 142 action="templatePortrait" 126 143 jasper="templatePortrait" 127 144 name="Template (Portrait)" 128 format="PDF, XLS"/> 129 <g:link controller="report" action="downloadTemplate" params="[fileName: 'templatePortrait.jrxml']"> 130 Download 131 </g:link> 145 format="PDF, XLS"> 146 <g:link controller="report" action="downloadTemplate" params="[fileName: 'templatePortrait.jrxml']"> 147 Download 148 </g:link> 149 </g:jasperReport> 132 150 <br /> 133 151 <g:jasperReport controller="report" … … 135 153 jasper="templateLandscape" 136 154 name="Template (Landscape)" 137 format="PDF, XLS"/> 138 <g:link controller="report" action="downloadTemplate" params="[fileName: 'templateLandscape.jrxml']"> 139 Download 140 </g:link> 155 format="PDF, XLS"> 156 <g:link controller="report" action="downloadTemplate" params="[fileName: 'templateLandscape.jrxml']"> 157 Download 158 </g:link> 159 </g:jasperReport> 141 160 <br /> 142 161 </td>
Note: See TracChangeset
for help on using the changeset viewer.