- Timestamp:
- Oct 20, 2009, 5:55:50 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/AssetDetailedController.groovy
r139 r156 2 2 3 3 class AssetDetailedController extends BaseController { 4 4 5 def filterService 6 5 7 def index = { redirect(action:search,params:params) } 6 8 … … 15 17 def search = { 16 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 17 [ assetInstanceList: Asset.list( params ), assetInstanceTotal: Asset.count() ] 19 20 // Quick Search: 21 if(!params.filter) { 22 return [ assetInstanceList: Asset.list( params ), assetInstanceTotal: Asset.count() ] 23 } 24 // filterPane: 25 return[ assetInstanceList: filterService.filter( params, Asset ), 26 assetInstanceTotal: filterService.count( params, Asset ), 27 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params), 28 params:params ] 18 29 } 19 30 -
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r139 r156 2 2 3 3 class InventoryItemDetailedController extends BaseController { 4 4 5 def filterService 6 5 7 def index = { redirect(action:search, params:params) } 6 8 … … 15 17 def search = { 16 18 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 17 [ inventoryItemInstanceList: InventoryItem.list( params ), inventoryItemInstanceTotal: InventoryItem.count() ] 19 20 // Quick Search: 21 if(!params.filter) { 22 return[ inventoryItemInstanceList: InventoryItem.list( params ), inventoryItemInstanceTotal: InventoryItem.count() ] 23 } 24 // filterPane: 25 return[ inventoryItemInstanceList: filterService.filter( params, InventoryItem ), 26 inventoryItemInstanceTotal: filterService.count( params, InventoryItem ), 27 filterParams: com.zeddware.grails.plugins.filterpane.FilterUtils.extractFilterParams(params), 28 params:params ] 18 29 } 19 30 -
trunk/grails-app/views/assetDetailed/search.gsp
r151 r156 7 7 <title>Asset Search</title> 8 8 <nav:resources override="true"/> 9 <filterpane:includes /> 9 10 </head> 10 11 <body> … … 16 17 <div class="message">${flash.message}</div> 17 18 </g:if> 19 <filterpane:currentCriteria domainBean="Asset" 20 action="search" 21 dateFormat="${'EEE, dd-MMM-yyyy'}" 22 removeImgDir="images" 23 removeImgFile="bullet_delete.png" 24 title="Search"/> 25 26 <div class="paginateButtons"> 27 <filterpane:filterButton text="Search" appliedText="Change Search" /> 28 Results:${assetInstanceTotal} 29 </div> 30 18 31 <div class="list"> 19 32 <table> … … 21 34 <tr> 22 35 23 <g:sortableColumn property="id" title="Id" />36 <g:sortableColumn property="id" title="Id" params="${filterParams}" /> 24 37 25 <g:sortableColumn property="name" title="Name" />38 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 26 39 27 <g:sortableColumn property="assetType" title="Asset Type" />40 <g:sortableColumn property="assetType" title="Asset Type" params="${filterParams}" /> 28 41 29 <g:sortableColumn property="systemSection" title="System Section" />42 <g:sortableColumn property="systemSection" title="System Section" params="${filterParams}" /> 30 43 31 <g:sortableColumn property="isActive" title="Is Active" />44 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> 32 45 33 46 <th></th> … … 61 74 </div> 62 75 <div class="paginateButtons"> 63 <g:paginate total="${assetInstanceTotal}" />76 <g:paginate total="${assetInstanceTotal}" params="${filterParams}" /> 64 77 </div> 65 </div> 78 79 <filterpane:filterPane domainBean="Asset" 80 title="Search" 81 action="search" 82 class="overlayPane" 83 excludeProperties="" 84 associatedProperties="systemSection.name, assetType.name" 85 filterPropertyValues="${['systemSection.name':[values:SystemSection.list()], 86 'assetType.name':[values:AssetType.list()] ]}" /> 87 </div> <!-- end body div --> 66 88 </body> 67 89 </html> -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r151 r156 7 7 <title>InventoryItem Search</title> 8 8 <nav:resources override="true"/> 9 < resource:tabView skin="tabviewCustom"/>9 <filterpane:includes /> 10 10 </head> 11 11 <body> … … 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 Search 20 <br /> 21 <br /> 22 19 <filterpane:currentCriteria domainBean="InventoryItem" 20 action="search" 21 dateFormat="${'EEE, dd-MMM-yyyy'}" 22 removeImgDir="images" 23 removeImgFile="bullet_delete.png" 24 title="Search"/> 25 26 <div class="paginateButtons"> 27 <filterpane:filterButton text="Search" appliedText="Change Search" /> 28 Results:${inventoryItemInstanceTotal} 29 </div> 30 23 31 <div class="list"> 24 32 <table> … … 26 34 <tr> 27 35 28 <g:sortableColumn property="id" title="Id" />36 <g:sortableColumn property="id" title="Id" params="${filterParams}" /> 29 37 30 <g:sortableColumn property="name" title="Name" />38 <g:sortableColumn property="name" title="Name" params="${filterParams}" /> 31 39 32 <g:sortableColumn property="description" title="Description" />40 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 33 41 34 <g:sortableColumn property="enableReorder" title="Enable Reorder" />42 <g:sortableColumn property="enableReorder" title="Enable Reorder" params="${filterParams}" /> 35 43 36 <g:sortableColumn property="isActive" title="Is Active" />44 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" /> 37 45 38 46 <th></th> … … 66 74 </div> 67 75 <div class="paginateButtons"> 68 <g:paginate total="${inventoryItemInstanceTotal}" />76 <g:paginate total="${inventoryItemInstanceTotal}" params="${filterParams}" /> 69 77 </div> 70 </div> 78 79 <filterpane:filterPane domainBean="InventoryItem" 80 title="Search" 81 action="search" 82 class="overlayPane" 83 excludeProperties="" /> 84 </div> <!-- end body div --> 71 85 </body> 72 86 </html> -
trunk/grails-app/views/person/list.gsp
r155 r156 74 74 75 75 76 </div> <!-- end body div -->76 </div> <!-- end body div --> 77 77 </body>
Note: See TracChangeset
for help on using the changeset viewer.