- Timestamp:
- Oct 3, 2010, 10:51:52 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/ReportController.groovy
r668 r671 196 196 } // equipmentRegister 197 197 198 def inventoryValue Gsp = {199 render(view: 'inventoryValue ')198 def inventoryValueDetailedGsp = { 199 render(view: 'inventoryValueDetailed') 200 200 } 201 201 202 def inventoryValue = {203 204 params.reportTitle = "Inventory Value "205 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 206 params.currentUser = authService.currentUser 207 208 def dataModel = inventoryReportService.getInventoryValue (params, RCU.getLocale(request))202 def inventoryValueDetailed = { 203 204 params.reportTitle = "Inventory Value Detailed" 205 params.logoUrl = grailsApplication.mainContext.getResource('images/logo.png').getURL() 206 params.currentUser = authService.currentUser 207 208 def dataModel = inventoryReportService.getInventoryValueDetailed(params, RCU.getLocale(request)) 209 209 210 210 // Jasper plugin controller expects data to be a Collection. -
trunk/grails-app/services/InventoryReportService.groovy
r670 r671 167 167 168 168 /** 169 * Get the data for the inventory value .169 * Get the data for the inventory value with detail. 170 170 * @param params The request params, may contain params to specify the search. 171 171 * @param locale The locale to use when generating result.message. 172 172 */ 173 def getInventoryValue (params, locale) {173 def getInventoryValueDetailed(params, locale) { 174 174 def result = [:] 175 175 … … 241 241 return result 242 242 243 } // getInventoryValue ByGroupAndType()243 } // getInventoryValueDetailed() 244 244 245 245 } // end class -
trunk/grails-app/views/appCore/start.gsp
r668 r671 201 201 </td> 202 202 <td valign="top" class="value"> 203 <g:link controller="report" action="inventoryValue Gsp">204 InventoryValue203 <g:link controller="report" action="inventoryValueDetailedGsp"> 204 Detailed Value 205 205 </g:link> 206 206 </td> -
trunk/grails-app/views/report/inventoryValueDetailed.gsp
r669 r671 3 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 4 4 <meta name="layout" content="main" /> 5 <title>Inventory Value Report</title>5 <title>Inventory Detailed Value Report</title> 6 6 <nav:resources override="true"/> 7 7 </head> … … 11 11 </div> 12 12 <div class="body"> 13 <h1>Inventory Value Report</h1>13 <h1>Inventory Detailed Value Report</h1> 14 14 <g:render template="/shared/messages" /> 15 15 <div class="dialog"> … … 18 18 19 19 <g:jasperForm controller="report" 20 action="inventoryValue "21 jasper="inventoryValue "22 name="Inventory Value ">20 action="inventoryValueDetailed" 21 jasper="inventoryValueDetailed" 22 name="Inventory Value Detailed"> 23 23 24 24 <tr class="prop"> … … 67 67 </td> 68 68 <td valign="top" class="value"> 69 <custom:jasperButtons formName="inventoryValue " format="PDF, XLS" text="PDF" />69 <custom:jasperButtons formName="inventoryValueDetailed" format="PDF, XLS" text="PDF" /> 70 70 </td> 71 71 </tr>
Note: See TracChangeset
for help on using the changeset viewer.