[139] | 1 | |
---|
| 2 | |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 6 | <meta name="layout" content="main" /> |
---|
| 7 | <title>InventoryItem Search</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
[182] | 9 | <g:render template="/shared/pictureHead" /> |
---|
[156] | 10 | <filterpane:includes /> |
---|
[392] | 11 | <export:resource /> |
---|
[139] | 12 | </head> |
---|
[578] | 13 | <body onload="if(document.textSearchForm) {document.textSearchForm.searchText.focus();}"> |
---|
[139] | 14 | <div class="nav"> |
---|
| 15 | <nav:renderSubItems group="nav"/> |
---|
| 16 | </div> |
---|
| 17 | <div class="body"> |
---|
[405] | 18 | <g:render template="/shared/messages" /> |
---|
[156] | 19 | |
---|
[569] | 20 | <div class="textSearchWrapper"> |
---|
| 21 | <div class="textSearchInput"> |
---|
[156] | 22 | |
---|
[569] | 23 | <filterpane:isFiltered > |
---|
| 24 | <filterpane:currentCriteria domainBean="InventoryItem" |
---|
| 25 | action="search" |
---|
| 26 | dateFormat="EEE, dd-MMM-yyyy" |
---|
| 27 | removeImgDir="images" |
---|
| 28 | removeImgFile="bullet_delete.png" |
---|
| 29 | title="Advanced Search"/> |
---|
| 30 | <div class="paginateButtons"> |
---|
| 31 | Results: ${inventoryItemInstanceList.size()} / ${inventoryItemInstanceTotal} |
---|
| 32 | </div> |
---|
| 33 | </filterpane:isFiltered > |
---|
[392] | 34 | |
---|
[569] | 35 | <filterpane:isNotFiltered > |
---|
| 36 | <g:form method="post" id="textSearchForm" name="textSearchForm" > |
---|
| 37 | <g:hiddenField name="newTextSearch" value="true" /> |
---|
| 38 | |
---|
| 39 | <span> <!--Prevent IE inheriting margin--> |
---|
[629] | 40 | <g:textField style="width:450px;" maxlength="75" id="searchText" name="searchText" value="${filterParams.searchText}" /> |
---|
[569] | 41 | <g:helpBalloon code="inventoryItem.search.searchText" /> |
---|
| 42 | |
---|
| 43 | <g:if test="${params.searchName || params.searchDescription || params.searchComment || params.searchLocation || params.searchGroup || params.searchSpareFor}" > |
---|
| 44 | <div id="limitSearch" class="textSearchSelect"> |
---|
| 45 | </g:if> |
---|
| 46 | <g:else> |
---|
| 47 | <div id="limitSearch" class="textSearchSelect" style="display:none;"> |
---|
| 48 | </g:else> |
---|
| 49 | Limit Search: |
---|
| 50 | <br /> |
---|
| 51 | <g:checkBox name="searchName" value="${params.searchName}" ></g:checkBox> |
---|
| 52 | <label for="searchName">Name</label> |
---|
| 53 | <g:checkBox name="searchDescription" value="${params.searchDescription}" ></g:checkBox> |
---|
| 54 | <label for="searchDescription">Description</label> |
---|
| 55 | <g:checkBox name="searchComment" value="${params.searchComment}" ></g:checkBox> |
---|
| 56 | <label for="searchComment">Comment</label> |
---|
| 57 | <g:checkBox name="searchLocation" value="${params.searchLocation}" ></g:checkBox> |
---|
| 58 | <label for="searchLocation">Location</label> |
---|
| 59 | <g:checkBox name="searchGroup" value="${params.searchGroup}" ></g:checkBox> |
---|
| 60 | <label for="searchGroup">Group</label> |
---|
| 61 | <br /> |
---|
| 62 | <g:checkBox name="searchSpareFor" value="${params.searchSpareFor}" ></g:checkBox> |
---|
| 63 | <label for="searchSpareFor">Spare For (Asset: Name, Description and Comment).</label> |
---|
| 64 | </div> |
---|
| 65 | |
---|
| 66 | <div class="paginateButtons"> |
---|
| 67 | <span class="buttons"> |
---|
| 68 | <g:actionSubmit class="search" value="Search" action="search" /> |
---|
| 69 | </span> |
---|
| 70 | <span class="buttons" style="margin-left: 5px;"> |
---|
| 71 | <g:actionSubmit class="complete" value="Select" action="search" onclick="toggleWithEffectUtil('limitSearch'); return false;"/> |
---|
| 72 | </span> |
---|
| 73 | <div class="paginateButtons"> |
---|
| 74 | Results: ${inventoryItemInstanceList.size()} / ${inventoryItemInstanceTotal} |
---|
| 75 | </div> |
---|
| 76 | </div><!--paginateButtons--> |
---|
| 77 | </span> <!--Prevent IE inheriting margin--> |
---|
| 78 | |
---|
| 79 | </g:form> |
---|
| 80 | </filterpane:isNotFiltered > |
---|
| 81 | |
---|
| 82 | </div><!--textSearchInput--> |
---|
| 83 | |
---|
| 84 | <div class="textSearchRightFloat"> |
---|
| 85 | <div class="paginateButtons"> |
---|
| 86 | <span class="searchButtons"> |
---|
| 87 | <a href='' onclick="showElement('searchPane'); return false;">Quick</a> |
---|
| 88 | </span> |
---|
| 89 | <br /> |
---|
| 90 | <br /> |
---|
| 91 | <span class="searchButtons"> |
---|
| 92 | <filterpane:filterButton text="Advanced" appliedText="Advanced" /> |
---|
| 93 | </span> |
---|
| 94 | </div> |
---|
| 95 | |
---|
| 96 | <jsUtil:toggleControl toggleId="options" |
---|
| 97 | imageId="optionsImg" |
---|
| 98 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_right.png')}" |
---|
| 99 | openImgUrl="${resource(dir:'images/skin',file:'bullet_arrow_down.png')}" |
---|
| 100 | text="${g.message(code: 'default.options.text')}" |
---|
| 101 | /> |
---|
| 102 | </div><!--textSearchRightFloat--> |
---|
| 103 | </div><!--textSearchWrapper--> |
---|
| 104 | |
---|
| 105 | <div id="options" style="display:none; clear:both;"> |
---|
[570] | 106 | <g:form method="post" action="setSearchParamsMax" > |
---|
[392] | 107 | <g:hiddenField name="params" value="${filterParams}" /> |
---|
| 108 | <div class="dialog"> |
---|
| 109 | <table> |
---|
| 110 | <tbody> |
---|
| 111 | |
---|
| 112 | <tr class="prop"> |
---|
| 113 | <td valign="top" class="name"> |
---|
| 114 | <label for="max">Results per page:</label> |
---|
| 115 | </td> |
---|
| 116 | <td valign="top" class="value"> |
---|
| 117 | <input type="text" maxlength="4" id="description" name="newMax" value="${params.max}"/> |
---|
| 118 | |
---|
| 119 | <span class="buttons"> |
---|
| 120 | <g:actionSubmit action="setSearchParamsMax" class="go" value="Update" /> |
---|
| 121 | </span> |
---|
| 122 | </td> |
---|
| 123 | </tr> |
---|
| 124 | |
---|
[423] | 125 | <tr class="prop"> |
---|
| 126 | <td valign="top" class="name"> |
---|
| 127 | <label for="max">Inventory:</label> |
---|
| 128 | </td> |
---|
| 129 | <td valign="top" class="value"> |
---|
| 130 | <g:link action="exportInventory"> |
---|
| 131 | Export |
---|
| 132 | </g:link> |
---|
| 133 | / |
---|
| 134 | <g:link action="exportInventoryTemplate"> |
---|
| 135 | Template |
---|
| 136 | </g:link> |
---|
| 137 | / |
---|
| 138 | <g:link action="exportInventoryExample"> |
---|
| 139 | Example |
---|
| 140 | </g:link> |
---|
| 141 | / |
---|
| 142 | <g:link action="importInventory"> |
---|
[441] | 143 | Import Inventory |
---|
[423] | 144 | </g:link> |
---|
[441] | 145 | / |
---|
| 146 | <g:link action="importInventoryItemPurchases"> |
---|
| 147 | Import Purchases |
---|
| 148 | </g:link> |
---|
[635] | 149 | / |
---|
| 150 | <g:link action="importInventoryItemPictures"> |
---|
| 151 | Import Pictures |
---|
| 152 | </g:link> |
---|
[423] | 153 | </td> |
---|
| 154 | </tr> |
---|
| 155 | |
---|
[392] | 156 | </tbody> |
---|
| 157 | </table> |
---|
| 158 | </div> |
---|
| 159 | </g:form> |
---|
| 160 | <export:formats params="${filterParams}" formats="['csv', 'excel', 'pdf', 'rtf']"/> |
---|
| 161 | </div> |
---|
| 162 | |
---|
| 163 | <br /> |
---|
| 164 | |
---|
[569] | 165 | <g:if test="${inventoryItemInstanceList.size() > 2}"> |
---|
[392] | 166 | <g:if test="${inventoryItemInstanceTotal > inventoryItemInstanceList.size()}"> |
---|
| 167 | <div class="paginateButtons"> |
---|
[615] | 168 | <g:paginate action="search" total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
[392] | 169 | </div> |
---|
| 170 | </g:if> |
---|
| 171 | </g:if> |
---|
| 172 | |
---|
[468] | 173 | <g:if test="${inventoryItemInstanceList.size() > 0}"> |
---|
| 174 | <div class="list"> |
---|
| 175 | <table> |
---|
| 176 | <thead> |
---|
| 177 | <tr> |
---|
[182] | 178 | |
---|
[468] | 179 | <th>Picture</th> |
---|
[645] | 180 | <th>Description</th> |
---|
[175] | 181 | |
---|
[507] | 182 | <g:sortableColumn property="inventoryGroup" title="Group" params="${filterParams}" /> |
---|
| 183 | |
---|
| 184 | <g:sortableColumn property="unitsInStock" title="In Stock" params="${filterParams}" /> |
---|
[139] | 185 | |
---|
[468] | 186 | <th></th> |
---|
| 187 | |
---|
| 188 | </tr> |
---|
| 189 | </thead> |
---|
| 190 | <tbody> |
---|
| 191 | <g:each in="${inventoryItemInstanceList}" status="i" var="inventoryItemInstance"> |
---|
| 192 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" /> |
---|
[182] | 193 | |
---|
[498] | 194 | <td class='notClickable'> |
---|
[468] | 195 | <g:if test="${inventoryItemInstance.picture}" > |
---|
| 196 | <wa:pictureLightboxAnchor picture="${inventoryItemInstance.picture}" |
---|
| 197 | size="${Image.Small}" |
---|
| 198 | lightboxSize="${Image.Large}" |
---|
| 199 | target="_blank" |
---|
| 200 | title="Show Original" /> |
---|
| 201 | </g:if> |
---|
| 202 | </td> |
---|
| 203 | |
---|
| 204 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
[645] | 205 | <b>${fieldValue(bean:inventoryItemInstance, field:'name')}</b><br /> |
---|
[468] | 206 | ${fieldValue(bean:inventoryItemInstance, field:'description')} |
---|
[644] | 207 | <br /> |
---|
| 208 | <br /> |
---|
| 209 | Location: ${inventoryItemInstance.inventoryLocation?.encodeAsHTML()} |
---|
| 210 | in ${inventoryItemInstance.inventoryLocation?.inventoryStore.encodeAsHTML()}<br /> |
---|
[468] | 211 | </td> |
---|
| 212 | |
---|
| 213 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
[507] | 214 | ${fieldValue(bean:inventoryItemInstance, field:'inventoryGroup')} |
---|
| 215 | </td> |
---|
| 216 | |
---|
| 217 | <td onclick='window.location = "${request.getContextPath()}/inventoryItemDetailed/show/${inventoryItemInstance.id}"' > |
---|
[468] | 218 | ${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')} |
---|
| 219 | ${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')} |
---|
| 220 | </td> |
---|
[139] | 221 | |
---|
[498] | 222 | <td class="notClickable"> |
---|
[468] | 223 | <g:link action="show" id="${inventoryItemInstance.id}"> |
---|
| 224 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 225 | </g:link> |
---|
| 226 | </td> |
---|
| 227 | |
---|
| 228 | </tr> |
---|
| 229 | </g:each> |
---|
| 230 | </tbody> |
---|
| 231 | </table> |
---|
| 232 | </div> |
---|
| 233 | </g:if> |
---|
[139] | 234 | <div class="paginateButtons"> |
---|
[615] | 235 | <g:paginate action="search" total="${inventoryItemInstanceTotal}" params="${filterParams}" /> |
---|
[139] | 236 | </div> |
---|
[156] | 237 | |
---|
| 238 | <filterpane:filterPane domainBean="InventoryItem" |
---|
[562] | 239 | title="Advanced Search" |
---|
[156] | 240 | action="search" |
---|
| 241 | class="overlayPane" |
---|
[718] | 242 | excludeProperties="estimatedUnitPriceCurrency" |
---|
[175] | 243 | associatedProperties="inventoryLocation.name, |
---|
[719] | 244 | spareFor.name" |
---|
[554] | 245 | filterPropertyValues="${['inventoryLocation.name':[values: associatedPropertyValues.inventoryLocationList], |
---|
| 246 | 'spareFor.name':[values: associatedPropertyValues.assetList], |
---|
| 247 | 'preferredSupplier.name':[values: associatedPropertyValues.supplierList] |
---|
[175] | 248 | ]}"/> |
---|
[156] | 249 | </div> <!-- end body div --> |
---|
[468] | 250 | |
---|
| 251 | <!-- Start Search Pane --> |
---|
| 252 | <div class="overlayPane" id="searchPane" style="display:none;"> |
---|
| 253 | <h2>Quick Search</h2> |
---|
[562] | 254 | |
---|
[468] | 255 | <g:form method="post" id="searchForm" name="searchForm" > |
---|
[562] | 256 | <g:hiddenField name="newTextSearch" value="true" /> |
---|
| 257 | |
---|
[468] | 258 | <table> |
---|
| 259 | <tbody> |
---|
| 260 | |
---|
| 261 | <tr class="prop"> |
---|
| 262 | <td valign="top" class="name"> |
---|
[485] | 263 | <label>Inventory:</label> |
---|
| 264 | </td> |
---|
| 265 | <td valign="top" class="value"> |
---|
| 266 | <g:link controller="inventoryItemDetailed" |
---|
| 267 | action="search" |
---|
| 268 | params="[quickSearch: 'all']"> |
---|
| 269 | <g:message code="default.all.text" /> |
---|
| 270 | </g:link> |
---|
| 271 | <br /> |
---|
| 272 | <g:link controller="inventoryItemDetailed" |
---|
| 273 | action="search" |
---|
| 274 | params="[quickSearch: 'inventoryBelowReorder']"> |
---|
| 275 | <g:message code="inventoryItem.search.text.below.reorder" /> |
---|
| 276 | </g:link> - <g:message code="inventoryItem.search.text.below.reorder.description" /> |
---|
| 277 | <br /> |
---|
| 278 | <g:link controller="inventoryItemDetailed" |
---|
| 279 | action="search" |
---|
| 280 | params="[quickSearch: 'inventoryBelowReorderAll']"> |
---|
| 281 | <g:message code="inventoryItem.search.text.below.reorder.all" /> |
---|
| 282 | </g:link> - <g:message code="inventoryItem.search.text.below.reorder.all.description" /> |
---|
[489] | 283 | <br /> |
---|
| 284 | <g:link controller="inventoryItemDetailed" |
---|
| 285 | action="search" |
---|
| 286 | params="[quickSearch: 'recentlyUsed', daysBack: '14']"> |
---|
| 287 | <g:message code="inventoryItem.search.text.recently.used" /> |
---|
| 288 | </g:link> - <g:message code="inventoryItem.search.text.recently.used.description" args="[14]"/> |
---|
| 289 | <br /> |
---|
| 290 | <g:link controller="inventoryItemDetailed" |
---|
| 291 | action="search" |
---|
| 292 | params="[quickSearch: 'recentlyUsed', daysBack: '30']"> |
---|
| 293 | <g:message code="inventoryItem.search.text.recently.used" /> |
---|
| 294 | </g:link> - <g:message code="inventoryItem.search.text.recently.used.description" args="[30]"/> |
---|
[485] | 295 | </td> |
---|
| 296 | </tr> |
---|
| 297 | |
---|
| 298 | <tr class="prop"> |
---|
| 299 | <td valign="top" class="name"> |
---|
[468] | 300 | <label>Links:</label> |
---|
| 301 | </td> |
---|
| 302 | <td valign="top" class="value"> |
---|
| 303 | <g:link controller="inventoryItemPurchaseDetailed" |
---|
| 304 | action="search"> |
---|
| 305 | Purchases |
---|
| 306 | </g:link> |
---|
[644] | 307 | <br /> |
---|
| 308 | <g:link controller="inventoryItemDetailed" |
---|
| 309 | action="reorder"> |
---|
| 310 | Reorder |
---|
| 311 | </g:link> |
---|
[468] | 312 | </td> |
---|
| 313 | </tr> |
---|
| 314 | |
---|
| 315 | </tbody> |
---|
| 316 | </table> |
---|
[562] | 317 | |
---|
[468] | 318 | <div class="buttons"> |
---|
| 319 | <span class="button"> |
---|
[562] | 320 | <g:actionSubmit class="cancel" value="${g.message(code:'fp.tag.filterPane.button.cancel.text', default:'Cancel')}" onclick="return hideElement('searchPane');" /> |
---|
[468] | 321 | </span> |
---|
| 322 | </div> |
---|
| 323 | </g:form> |
---|
| 324 | </div> <!-- end search pane --> |
---|
| 325 | |
---|
[139] | 326 | </body> |
---|
| 327 | </html> |
---|