source: trunk/grails-app/views/inventoryItem/show.gsp @ 175

Last change on this file since 175 was 175, checked in by gav, 15 years ago

Substantial refactor of the Inventory domain.
InventoryItems can now be added to tasks, no quantity adjustments done yet.
Removed StoredItem and with it the ability to store an inventoryItem in multiple places, just too complex right now.
Svn move StoreLocation to InventoryLocation.

File size: 11.2 KB
Line 
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>Show InventoryItem</title>
8    </head>
9    <body>
10        <div class="nav">
11            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
12            <span class="menuButton"><g:link class="list" action="list">InventoryItem List</g:link></span>
13            <span class="menuButton"><g:link class="create" action="create">New InventoryItem</g:link></span>
14        </div>
15        <div class="body">
16            <h1>Show InventoryItem</h1>
17            <g:if test="${flash.message}">
18            <div class="message">${flash.message}</div>
19            </g:if>
20            <div class="dialog">
21                <table>
22                    <tbody>
23
24                   
25                        <tr class="prop">
26                            <td valign="top" class="name">Id:</td>
27                           
28                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'id')}</td>
29                           
30                        </tr>
31                   
32                        <tr class="prop">
33                            <td valign="top" class="name">Name:</td>
34                           
35                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'name')}</td>
36                           
37                        </tr>
38                   
39                        <tr class="prop">
40                            <td valign="top" class="name">Description:</td>
41                           
42                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'description')}</td>
43                           
44                        </tr>
45                   
46                        <tr class="prop">
47                            <td valign="top" class="name">Units In Stock:</td>
48                           
49                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td>
50                           
51                        </tr>
52                   
53                        <tr class="prop">
54                            <td valign="top" class="name">Unit Of Measure:</td>
55                           
56                            <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td>
57                           
58                        </tr>
59                   
60                        <tr class="prop">
61                            <td valign="top" class="name">Reorder Point:</td>
62                           
63                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td>
64                           
65                        </tr>
66                   
67                        <tr class="prop">
68                            <td valign="top" class="name">Enable Reorder:</td>
69                           
70                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td>
71                           
72                        </tr>
73                   
74                        <tr class="prop">
75                            <td valign="top" class="name">Recommended Reorder Point:</td>
76                           
77                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td>
78                           
79                        </tr>
80                   
81                        <tr class="prop">
82                            <td valign="top" class="name">Is Active:</td>
83                           
84                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>
85                           
86                        </tr>
87                   
88                        <tr class="prop">
89                            <td valign="top" class="name">Is Obsolete:</td>
90                           
91                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td>
92                           
93                        </tr>
94                   
95                        <tr class="prop">
96                            <td valign="top" class="name">Inventory Group:</td>
97                           
98                            <td valign="top" class="value"><g:link controller="inventoryGroup" action="show" id="${inventoryItemInstance?.inventoryGroup?.id}">${inventoryItemInstance?.inventoryGroup?.encodeAsHTML()}</g:link></td>
99                           
100                        </tr>
101                   
102                        <tr class="prop">
103                            <td valign="top" class="name">Inventory Type:</td>
104                           
105                            <td valign="top" class="value"><g:link controller="inventoryType" action="show" id="${inventoryItemInstance?.inventoryType?.id}">${inventoryItemInstance?.inventoryType?.encodeAsHTML()}</g:link></td>
106                           
107                        </tr>
108                   
109                        <tr class="prop">
110                            <td valign="top" class="name">Manufacturers Part Number:</td>
111                           
112                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'manufacturersPartNumber')}</td>
113                           
114                        </tr>
115                   
116                        <tr class="prop">
117                            <td valign="top" class="name">Suppliers Part Number:</td>
118                           
119                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'suppliersPartNumber')}</td>
120                           
121                        </tr>
122                   
123                        <tr class="prop">
124                            <td valign="top" class="name">Average Delivery Time:</td>
125                           
126                            <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'averageDeliveryTime')}</td>
127                           
128                        </tr>
129                   
130                        <tr class="prop">
131                            <td valign="top" class="name">Average Delivery Period:</td>
132                           
133                            <td valign="top" class="value"><g:link controller="period" action="show" id="${inventoryItemInstance?.averageDeliveryPeriod?.id}">${inventoryItemInstance?.averageDeliveryPeriod?.encodeAsHTML()}</g:link></td>
134                           
135                        </tr>
136                   
137                        <tr class="prop">
138                            <td valign="top" class="name">Alternate Items:</td>
139                           
140                            <td  valign="top" style="text-align:left;" class="value">
141                                <ul>
142                                <g:each var="a" in="${inventoryItemInstance.alternateItems}">
143                                    <li><g:link controller="inventoryItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
144                                </g:each>
145                                </ul>
146                            </td>
147                           
148                        </tr>
149                   
150                        <tr class="prop">
151                            <td valign="top" class="name">Inventory Location:</td>
152                           
153                            <td valign="top" class="value"><g:link controller="inventoryLocation" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td>
154                           
155                        </tr>
156                   
157                        <tr class="prop">
158                            <td valign="top" class="name">Inventory Movements:</td>
159                           
160                            <td  valign="top" style="text-align:left;" class="value">
161                                <ul>
162                                <g:each var="i" in="${inventoryItemInstance.inventoryMovements}">
163                                    <li><g:link controller="inventoryMovement" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
164                                </g:each>
165                                </ul>
166                            </td>
167                           
168                        </tr>
169                   
170                        <tr class="prop">
171                            <td valign="top" class="name">Manufacturers:</td>
172                           
173                            <td  valign="top" style="text-align:left;" class="value">
174                                <ul>
175                                <g:each var="m" in="${inventoryItemInstance.manufacturers}">
176                                    <li><g:link controller="manufacturer" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
177                                </g:each>
178                                </ul>
179                            </td>
180                           
181                        </tr>
182                   
183                        <tr class="prop">
184                            <td valign="top" class="name">Spare For:</td>
185                           
186                            <td  valign="top" style="text-align:left;" class="value">
187                                <ul>
188                                <g:each var="s" in="${inventoryItemInstance.spareFor}">
189                                    <li><g:link controller="asset" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
190                                </g:each>
191                                </ul>
192                            </td>
193                           
194                        </tr>
195                   
196                        <tr class="prop">
197                            <td valign="top" class="name">Suppliers:</td>
198                           
199                            <td  valign="top" style="text-align:left;" class="value">
200                                <ul>
201                                <g:each var="s" in="${inventoryItemInstance.suppliers}">
202                                    <li><g:link controller="supplier" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
203                                </g:each>
204                                </ul>
205                            </td>
206                           
207                        </tr>
208                   
209                    </tbody>
210                </table>
211            </div>
212            <div class="buttons">
213                <g:form>
214                    <input type="hidden" name="id" value="${inventoryItemInstance?.id}" />
215                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
216                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
217                </g:form>
218            </div>
219        </div>
220    </body>
221</html>
Note: See TracBrowser for help on using the repository browser.