Changeset 175 for trunk/grails-app/views/inventoryItemDetailed
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app/views/inventoryItemDetailed
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r139 r175 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/>42 <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 43 43 </td> 44 </tr> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="unitsInStock">In Stock:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 51 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 52 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 53 </td> 54 </tr> 45 55 46 56 <tr class="prop"> … … 60 70 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 61 71 </td> 62 </tr> 72 </tr> 63 73 64 74 <tr class="prop"> 65 75 <td valign="top" class="name"> 66 <label for="isActive">Is Active:</label> 76 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 79 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Active:</label> 67 86 </td> 68 87 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 73 92 <tr class="prop"> 74 93 <td valign="top" class="name"> 75 <label for="isObsolete"> IsObsolete:</label>94 <label for="isObsolete">Obsolete:</label> 76 95 </td> 77 96 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 96 115 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 97 116 </td> 98 </tr> 99 100 <tr class="prop"> 101 <td valign="top" class="name"> 102 <label for="unitOfMeasure">Unit Of Measure:</label> 103 </td> 104 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 105 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 106 </td> 107 </tr> 117 </tr> 108 118 109 119 <tr class="prop"> … … 118 128 <tr class="prop"> 119 129 <td valign="top" class="name"> 130 <label for="manufacturers">Manufacturers:</label> 131 </td> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 133 <g:select id="manufacturers" name="manufacturers" 134 from="${Manufacturer.list()}" 135 size="5" multiple="yes" optionKey="id" 136 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 137 138 </td> 139 </tr> 140 141 <tr class="prop"> 142 <td valign="top" class="name"> 120 143 <label for="suppliersPartNumber">Suppliers Part Number:</label> 121 144 </td> … … 123 146 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 124 147 </td> 125 </tr> 148 </tr> 126 149 127 150 <tr class="prop"> 128 151 <td valign="top" class="name"> 129 <label for=" recommendedReorderPoint">Recommended Reorder Point:</label>152 <label for="suppliers">Suppliers:</label> 130 153 </td> 131 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 132 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 154 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 155 <g:select id="suppliers" name="suppliers" 156 from="${Supplier.list()}" 157 size="5" multiple="yes" optionKey="id" 158 value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> 159 133 160 </td> 134 </tr> 161 </tr> 135 162 136 163 <tr class="prop"> … … 140 167 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 141 168 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 169 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 142 170 </td> 143 </tr> 171 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name"> 175 <label for="inventoryLocation">Inventory Location:</label> 176 </td> 177 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 178 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 179 </td> 180 </tr> 144 181 145 182 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r139 r175 33 33 </td> 34 34 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 35 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>35 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 36 36 </td> 37 37 </tr> … … 48 48 <tr class="prop"> 49 49 <td valign="top" class="name"> 50 <label for="unitsInStock">Units In Stock:</label> 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 53 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 54 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 50 60 <label for="reorderPoint">Reorder Point:</label> 51 61 </td> … … 62 72 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 63 73 </td> 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name"> 68 <label for="isActive">Is Active:</label> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 81 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="isActive">Active:</label> 69 88 </td> 70 89 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 75 94 <tr class="prop"> 76 95 <td valign="top" class="name"> 77 <label for="isObsolete"> IsObsolete:</label>96 <label for="isObsolete">Obsolete:</label> 78 97 </td> 79 98 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 98 117 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 99 118 </td> 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name"> 104 <label for="unitOfMeasure">Unit Of Measure:</label> 105 </td> 106 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 107 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 108 </td> 109 </tr> 119 </tr> 110 120 111 121 <tr class="prop"> … … 125 135 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 126 136 </td> 127 </tr> 128 129 <tr class="prop"> 130 <td valign="top" class="name"> 131 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 132 </td> 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 134 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 135 </td> 136 </tr> 137 </tr> 137 138 138 139 <tr class="prop"> … … 143 144 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 144 145 </td> 145 </tr> 146 </tr> 147 148 <tr class="prop"> 149 <td valign="top" class="name"> 150 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 151 </td> 152 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 153 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 154 </td> 155 </tr> 146 156 147 157 <tr class="prop"> … … 179 189 </td> 180 190 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 181 <g:select name="manufacturers"182 from="${Manufacturer.list()}"183 size="5" multiple="yes" optionKey="id"184 value="${inventoryItemInstance?.manufacturers}" />191 <g:select id="manufacturers" name="manufacturers" 192 from="${Manufacturer.list()}" 193 size="5" multiple="yes" optionKey="id" 194 value="${inventoryItemInstance?.manufacturers.id}" /> 185 195 186 196 </td> … … 198 208 199 209 </td> 200 </tr> 201 202 <tr class="prop"> 203 <td valign="top" class="name"> 204 <label for="storedItems">Stored Items:</label> 205 </td> 206 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}"> 207 208 <ul> 209 <g:each var="s" in="${inventoryItemInstance?.storedItems?}"> 210 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 211 </g:each> 212 </ul> 213 <g:link controller="storedItemDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link> 214 215 </td> 216 </tr> 210 </tr> 211 212 <tr class="prop"> 213 <td valign="top" class="name"> 214 <label for="inventoryLocation">Inventory Location:</label> 215 </td> 216 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 217 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 218 </td> 219 </tr> 217 220 218 221 <tr class="prop"> … … 221 224 </td> 222 225 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 223 <g:select name="suppliers"224 from="${Supplier.list()}"225 size="5" multiple="yes" optionKey="id"226 value="${inventoryItemInstance?.suppliers}"/>227 228 </td> 229 </tr> 226 <g:select id="suppliers" name="suppliers" 227 from="${Supplier.list()}" 228 size="5" multiple="yes" optionKey="id" 229 value="${inventoryItemInstance?.suppliers.id}" noSelection="['':'--None--']"/> 230 231 </td> 232 </tr> 230 233 231 234 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/list.gsp
r151 r175 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="enableReorder" title="Enable Reorder" /> 29 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 30 31 <th>Unit Of Measure</th> 30 32 31 <g:sortableColumn property="isActive" title="Is Active" />32 33 33 34 <th></th> … … 45 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 46 47 47 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>48 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 49 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>50 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 50 51 51 52 <td> -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r156 r175 40 40 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 41 41 42 <g:sortableColumn property="enableReorder" title="Enable Reorder" params="${filterParams}" />43 44 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />42 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 43 44 <th>Unit Of Measure</th> 45 45 46 46 <th></th> … … 58 58 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 59 59 60 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>60 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 61 61 62 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>62 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 63 63 64 64 <td> … … 81 81 action="search" 82 82 class="overlayPane" 83 excludeProperties="" /> 83 excludeProperties="" 84 associatedProperties="inventoryLocation.name, 85 spareFor.name, 86 manufacturers.name, 87 suppliers.name" 88 filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], 89 'spareFor.name':[values:Asset.list()], 90 'manufacturers.name':[values:Manufacturer.list()], 91 'suppliers.name':[values:Supplier.list()], 92 ]}"/> 84 93 </div> <!-- end body div --> 85 94 </body> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r139 r175 41 41 42 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name">Units In Stock:</td> 46 47 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 </tr> 50 51 <tr class="prop"> 52 <td valign="top" class="name">Unit Of Measure:</td> 53 54 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td> 55 56 </tr> 57 43 58 44 59 <tr class="prop"> … … 55 70 56 71 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Is Active:</td> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Recommended Reorder Point:</td> 75 76 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> 77 78 </tr> 79 80 <tr class="prop"> 81 <td valign="top" class="name">Active:</td> 60 82 61 83 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> … … 64 86 65 87 <tr class="prop"> 66 <td valign="top" class="name"> IsObsolete:</td>88 <td valign="top" class="name">Obsolete:</td> 67 89 68 90 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td> … … 76 98 77 99 </tr> 100 78 101 79 102 <tr class="prop"> … … 85 108 86 109 <tr class="prop"> 87 <td valign="top" class="name">Unit Of Measure:</td>88 89 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td>90 91 </tr>92 93 <tr class="prop">94 110 <td valign="top" class="name">Manufacturers Part Number:</td> 95 111 … … 125 141 <ul> 126 142 <g:each var="a" in="${inventoryItemInstance.alternateItems}"> 127 <li><g:link controller="inventoryItem " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>143 <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 128 144 </g:each> 129 145 </ul> … … 138 154 <ul> 139 155 <g:each var="i" in="${inventoryItemInstance.inventoryMovements}"> 140 <li><g:link controller="inventoryMovement " action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>156 <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 141 157 </g:each> 142 158 </ul> … … 151 167 <ul> 152 168 <g:each var="m" in="${inventoryItemInstance.manufacturers}"> 153 <li><g:link controller="manufacturer " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>169 <li><g:link controller="manufacturerDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 154 170 </g:each> 155 171 </ul> … … 170 186 171 187 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name">Stored Items:</td> 175 176 <td valign="top" style="text-align:left;" class="value"> 177 <ul> 178 <g:each var="s" in="${inventoryItemInstance.storedItems}"> 179 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 180 </g:each> 181 </ul> 182 </td> 188 189 <tr class="prop"> 190 <td valign="top" class="name">Inventory Location:</td> 191 192 <td valign="top" class="value"><g:link controller="inventoryLocationDetailed" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td> 183 193 184 194 </tr> … … 190 200 <ul> 191 201 <g:each var="s" in="${inventoryItemInstance.suppliers}"> 192 <li><g:link controller="supplier " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>202 <li><g:link controller="supplierDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 193 203 </g:each> 194 204 </ul>
Note: See TracChangeset
for help on using the changeset viewer.