Ignore:
Timestamp:
Oct 29, 2009, 8:30:58 PM (15 years ago)
Author:
gav
Message:

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.

Location:
trunk/grails-app/views/inventoryLocation
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryLocation/show.gsp

    r151 r175  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Show StoreLocation</title>
     7        <title>Show InventoryLocation</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="list" action="list">StoreLocation List</g:link></span>
    13             <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>
     12            <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span>
     13            <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span>
    1414        </div>
    1515        <div class="body">
    16             <h1>Show StoreLocation</h1>
     16            <h1>Show InventoryLocation</h1>
    1717            <g:if test="${flash.message}">
    1818            <div class="message">${flash.message}</div>
     
    2626                            <td valign="top" class="name">Id:</td>
    2727                           
    28                             <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'id')}</td>
     28                            <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td>
    2929                           
    3030                        </tr>
    3131                   
    3232                        <tr class="prop">
    33                             <td valign="top" class="name">Bin:</td>
     33                            <td valign="top" class="name">Name:</td>
    3434                           
    35                             <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td>
     35                            <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td>
     36                           
     37                        </tr>
     38                   
     39                        <tr class="prop">
     40                            <td valign="top" class="name">Inventory Items:</td>
     41                           
     42                            <td  valign="top" style="text-align:left;" class="value">
     43                                <ul>
     44                                <g:each var="i" in="${inventoryLocationInstance.inventoryItems}">
     45                                    <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     46                                </g:each>
     47                                </ul>
     48                            </td>
    3649                           
    3750                        </tr>
     
    4053                            <td valign="top" class="name">Inventory Store:</td>
    4154                           
    42                             <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>
     55                            <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>
    4356                           
    4457                        </tr>
     
    4760                            <td valign="top" class="name">Is Active:</td>
    4861                           
    49                             <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td>
    50                            
    51                         </tr>
    52                    
    53                         <tr class="prop">
    54                             <td valign="top" class="name">Stored Items:</td>
    55                            
    56                             <td  valign="top" style="text-align:left;" class="value">
    57                                 <ul>
    58                                 <g:each var="s" in="${storeLocationInstance.storedItems}">
    59                                     <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    60                                 </g:each>
    61                                 </ul>
    62                             </td>
     62                            <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td>
    6363                           
    6464                        </tr>
     
    6969            <div class="buttons">
    7070                <g:form>
    71                     <input type="hidden" name="id" value="${storeLocationInstance?.id}" />
     71                    <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" />
    7272                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
    7373                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset for help on using the changeset viewer.