Index: /trunk/application.properties
===================================================================
--- /trunk/application.properties	(revision 124)
+++ /trunk/application.properties	(revision 125)
@@ -1,4 +1,4 @@
 #utf-8
-#Mon May 04 01:41:27 EST 2009
+#Mon May 04 14:08:06 EST 2009
 plugins.help-balloons=1.2
 app.version=
@@ -7,4 +7,4 @@
 app.grails.version=1.1
 plugins.hibernate=1.1
+app.name=gnuMims
 plugins.quartz=0.4.1-SNAPSHOT
-app.name=gnuMims
Index: /trunk/grails-app/conf/BootStrap.groovy
===================================================================
--- /trunk/grails-app/conf/BootStrap.groovy	(revision 124)
+++ /trunk/grails-app/conf/BootStrap.groovy	(revision 125)
@@ -415,5 +415,6 @@
         recurringScheduleInstance = new RecurringSchedule(recurEvery: 1,
                                                                                                     period: Period.get(1),
-                                                                                                    task: Task.get(1))
+                                                                                                    task: Task.get(1),
+                                                                                                    nextDueDate: new Date())
         BootStrapSaveAndTest(recurringScheduleInstance)
 
@@ -421,5 +422,6 @@
         recurringScheduleInstance = new RecurringSchedule(recurEvery: 1,
                                                                                                     period: Period.get(2),
-                                                                                                    task: Task.get(2))
+                                                                                                    task: Task.get(2),
+                                                                                                    nextDueDate: new Date())
         BootStrapSaveAndTest(recurringScheduleInstance)
 
Index: /trunk/grails-app/controllers/StoreLocationDetailedController.groovy
===================================================================
--- /trunk/grails-app/controllers/StoreLocationDetailedController.groovy	(revision 125)
+++ /trunk/grails-app/controllers/StoreLocationDetailedController.groovy	(revision 125)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class StoreLocationDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ storeLocationInstanceList: StoreLocation.list( params ), storeLocationInstanceTotal: StoreLocation.count() ]
+    }
+
+    def show = {
+        def storeLocationInstance = StoreLocation.get( params.id )
+
+        if(!storeLocationInstance) {
+            flash.message = "StoreLocation not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ storeLocationInstance : storeLocationInstance ] }
+    }
+
+    def delete = {
+        def storeLocationInstance = StoreLocation.get( params.id )
+        if(storeLocationInstance) {
+            try {
+                storeLocationInstance.delete()
+                flash.message = "StoreLocation ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "StoreLocation ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "StoreLocation not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def storeLocationInstance = StoreLocation.get( params.id )
+
+        if(!storeLocationInstance) {
+            flash.message = "StoreLocation not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ storeLocationInstance : storeLocationInstance ]
+        }
+    }
+
+    def update = {
+        def storeLocationInstance = StoreLocation.get( params.id )
+        if(storeLocationInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(storeLocationInstance.version > version) {
+                    
+                    storeLocationInstance.errors.rejectValue("version", "storeLocation.optimistic.locking.failure", "Another user has updated this StoreLocation while you were editing.")
+                    render(view:'edit',model:[storeLocationInstance:storeLocationInstance])
+                    return
+                }
+            }
+            storeLocationInstance.properties = params
+            if(!storeLocationInstance.hasErrors() && storeLocationInstance.save()) {
+                flash.message = "StoreLocation ${params.id} updated"
+                redirect(action:show,id:storeLocationInstance.id)
+            }
+            else {
+                render(view:'edit',model:[storeLocationInstance:storeLocationInstance])
+            }
+        }
+        else {
+            flash.message = "StoreLocation not found with id ${params.id}"
+            redirect(action:edit,id:params.id)
+        }
+    }
+
+    def create = {
+        def storeLocationInstance = new StoreLocation()
+        storeLocationInstance.properties = params
+        return ['storeLocationInstance':storeLocationInstance]
+    }
+
+    def save = {
+        def storeLocationInstance = new StoreLocation(params)
+        if(!storeLocationInstance.hasErrors() && storeLocationInstance.save()) {
+            flash.message = "StoreLocation ${storeLocationInstance.id} created"
+            redirect(action:show,id:storeLocationInstance.id)
+        }
+        else {
+            render(view:'create',model:[storeLocationInstance:storeLocationInstance])
+        }
+    }
+}
Index: /trunk/grails-app/controllers/StoredItemDetailedController.groovy
===================================================================
--- /trunk/grails-app/controllers/StoredItemDetailedController.groovy	(revision 125)
+++ /trunk/grails-app/controllers/StoredItemDetailedController.groovy	(revision 125)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class StoredItemDetailedController extends BaseController {
+    
+    def index = { redirect(action:list,params:params) }
+
+    // the delete, save and update actions only accept POST requests
+    static allowedMethods = [delete:'POST', save:'POST', update:'POST']
+
+    def list = {
+        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
+        [ storedItemInstanceList: StoredItem.list( params ), storedItemInstanceTotal: StoredItem.count() ]
+    }
+
+    def show = {
+        def storedItemInstance = StoredItem.get( params.id )
+
+        if(!storedItemInstance) {
+            flash.message = "StoredItem not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ storedItemInstance : storedItemInstance ] }
+    }
+
+    def delete = {
+        def storedItemInstance = StoredItem.get( params.id )
+        if(storedItemInstance) {
+            try {
+                storedItemInstance.delete()
+                flash.message = "StoredItem ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "StoredItem ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "StoredItem not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def storedItemInstance = StoredItem.get( params.id )
+
+        if(!storedItemInstance) {
+            flash.message = "StoredItem not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ storedItemInstance : storedItemInstance ]
+        }
+    }
+
+    def update = {
+        def storedItemInstance = StoredItem.get( params.id )
+        if(storedItemInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(storedItemInstance.version > version) {
+                    
+                    storedItemInstance.errors.rejectValue("version", "storedItem.optimistic.locking.failure", "Another user has updated this StoredItem while you were editing.")
+                    render(view:'edit',model:[storedItemInstance:storedItemInstance])
+                    return
+                }
+            }
+            storedItemInstance.properties = params
+            if(!storedItemInstance.hasErrors() && storedItemInstance.save()) {
+                flash.message = "StoredItem ${params.id} updated"
+                redirect(action:show,id:storedItemInstance.id)
+            }
+            else {
+                render(view:'edit',model:[storedItemInstance:storedItemInstance])
+            }
+        }
+        else {
+            flash.message = "StoredItem not found with id ${params.id}"
+            redirect(action:edit,id:params.id)
+        }
+    }
+
+    def create = {
+        def storedItemInstance = new StoredItem()
+        storedItemInstance.properties = params
+        return ['storedItemInstance':storedItemInstance]
+    }
+
+    def save = {
+        def storedItemInstance = new StoredItem(params)
+        if(!storedItemInstance.hasErrors() && storedItemInstance.save()) {
+            flash.message = "StoredItem ${storedItemInstance.id} created"
+            redirect(action:show,id:storedItemInstance.id)
+        }
+        else {
+            render(view:'create',model:[storedItemInstance:storedItemInstance])
+        }
+    }
+}
Index: /trunk/grails-app/domain/RecurringSchedule.groovy
===================================================================
--- /trunk/grails-app/domain/RecurringSchedule.groovy	(revision 124)
+++ /trunk/grails-app/domain/RecurringSchedule.groovy	(revision 125)
@@ -18,5 +18,4 @@
         plannedMaintenance(blank:true, nullable:true)
         lastExecutedDate(blank:true, nullable:true)
-        nextDueDate(blank:true, nullable:true)
     }
 
Index: /trunk/grails-app/domain/StoredItem.groovy
===================================================================
--- /trunk/grails-app/domain/StoredItem.groovy	(revision 124)
+++ /trunk/grails-app/domain/StoredItem.groovy	(revision 125)
@@ -12,5 +12,5 @@
 
     String toString() {
-        "${this.quantity}"
+        "${this.quantity} item(s) at ${storeLocation} in ${storeLocation.inventoryStore}"
     }
 }
Index: /trunk/grails-app/jobs/TaskRecurringScheduleJob.groovy
===================================================================
--- /trunk/grails-app/jobs/TaskRecurringScheduleJob.groovy	(revision 124)
+++ /trunk/grails-app/jobs/TaskRecurringScheduleJob.groovy	(revision 125)
@@ -1,8 +1,10 @@
 
 class TaskRecurringScheduleJob {
-    def timeout = 5000 // execute job once in 5 seconds
+//     def timeout = 5000 // execute job once in 5 seconds
+    def timeout = 60000
 
     def execute() {
-        println "5"
+//         println "TaskRecurringScheduleJob: tick"
+//         println "TaskRecurringScheduleJob: tock"
         def recurringScheduleInstanceList = RecurringSchedule.list()
         def now = new Date()
@@ -10,5 +12,5 @@
         recurringScheduleInstanceList.each() {
 
-            if ( now < it.nextDueDate) {
+            if ( now > it.nextDueDate) {
                 def taskInstance = it.task
                 def subTaskInstance = new Task()
@@ -25,5 +27,6 @@
                 subTaskInstance.taskType = TaskType.get(1)
                 subTaskInstance.leadPerson = taskInstance.leadPerson
-                if(subTaskInstance.save()){println "yes"}
+                subTaskInstance.save()
+//                 if(subTaskInstance.save()){println "yes"}
     
                 //Set the assignedPersons
@@ -37,5 +40,5 @@
 
                 //Set the nextDueDate so that we don't loop ;-)
-//                 it.nextDueDate = new DateTime(date:2.weeks.from.now)
+                it.nextDueDate = it.nextDueDate + 1
     
             }
Index: /trunk/grails-app/views/inventoryItemDetailed/edit.gsp
===================================================================
--- /trunk/grails-app/views/inventoryItemDetailed/edit.gsp	(revision 124)
+++ /trunk/grails-app/views/inventoryItemDetailed/edit.gsp	(revision 125)
@@ -168,8 +168,8 @@
 <ul>
 <g:each var="i" in="${inventoryItemInstance?.inventoryMovements?}">
-    <li><g:link controller="inventoryMovement" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+    <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="inventoryMovement" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add InventoryMovement</g:link>
+<g:link controller="inventoryMovementDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add InventoryMovement</g:link>
 
                                 </td>
@@ -210,8 +210,8 @@
 <ul>
 <g:each var="s" in="${inventoryItemInstance?.storedItems?}">
-    <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+    <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="storedItem" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link>
+<g:link controller="storedItemDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link>
 
                                 </td>
Index: /trunk/grails-app/views/inventoryItemDetailed/show.gsp
===================================================================
--- /trunk/grails-app/views/inventoryItemDetailed/show.gsp	(revision 124)
+++ /trunk/grails-app/views/inventoryItemDetailed/show.gsp	(revision 125)
@@ -75,5 +75,5 @@
                             <td valign="top" class="name">Inventory Group:</td>
                             
-                            <td valign="top" class="value"><g:link controller="inventoryGroup" action="show" id="${inventoryItemInstance?.inventoryGroup?.id}">${inventoryItemInstance?.inventoryGroup?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value">${inventoryItemInstance?.inventoryGroup?.encodeAsHTML()}</td>
                             
                         </tr>
@@ -82,5 +82,5 @@
                             <td valign="top" class="name">Inventory Type:</td>
                             
-                            <td valign="top" class="value"><g:link controller="inventoryType" action="show" id="${inventoryItemInstance?.inventoryType?.id}">${inventoryItemInstance?.inventoryType?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value">${inventoryItemInstance?.inventoryType?.encodeAsHTML()}</td>
                             
                         </tr>
@@ -89,5 +89,5 @@
                             <td valign="top" class="name">Unit Of Measure:</td>
                             
-                            <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td>
                             
                         </tr>
@@ -179,5 +179,5 @@
                                 <ul>
                                 <g:each var="s" in="${inventoryItemInstance.storedItems}">
-                                    <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                    <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
Index: /trunk/grails-app/views/storeLocationDetailed/create.gsp
===================================================================
--- /trunk/grails-app/views/storeLocationDetailed/create.gsp	(revision 125)
+++ /trunk/grails-app/views/storeLocationDetailed/create.gsp	(revision 125)
@@ -0,0 +1,65 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create StoreLocation</title>         
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoreLocation List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create StoreLocation</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${storeLocationInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${storeLocationInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="bin">Bin:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}">
+                                    <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="inventoryStore">Inventory Store:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'inventoryStore','errors')}">
+                                    <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${storeLocationInstance?.inventoryStore?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storeLocationDetailed/edit.gsp
===================================================================
--- /trunk/grails-app/views/storeLocationDetailed/edit.gsp	(revision 125)
+++ /trunk/grails-app/views/storeLocationDetailed/edit.gsp	(revision 125)
@@ -0,0 +1,85 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit StoreLocation</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoreLocation List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit StoreLocation</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${storeLocationInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${storeLocationInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${storeLocationInstance?.id}" />
+                <input type="hidden" name="version" value="${storeLocationInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="bin">Bin:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}">
+                                    <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="inventoryStore">Inventory Store:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'inventoryStore','errors')}">
+                                    <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${storeLocationInstance?.inventoryStore?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="storedItems">Stored Items:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${storeLocationInstance?.storedItems?}">
+    <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="storedItemDetailed" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storeLocationDetailed/list.gsp
===================================================================
--- /trunk/grails-app/views/storeLocationDetailed/list.gsp	(revision 125)
+++ /trunk/grails-app/views/storeLocationDetailed/list.gsp	(revision 125)
@@ -0,0 +1,56 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>StoreLocation List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>
+        </div>
+        <div class="body">
+            <h1>StoreLocation List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="bin" title="Bin" />
+                        
+                   	        <th>Inventory Store</th>
+                   	    
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${storeLocationInstanceList}" status="i" var="storeLocationInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:storeLocationInstance, field:'bin')}</td>
+                        
+                            <td>${fieldValue(bean:storeLocationInstance, field:'inventoryStore')}</td>
+                        
+                            <td>${fieldValue(bean:storeLocationInstance, field:'isActive')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${storeLocationInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storeLocationDetailed/show.gsp
===================================================================
--- /trunk/grails-app/views/storeLocationDetailed/show.gsp	(revision 125)
+++ /trunk/grails-app/views/storeLocationDetailed/show.gsp	(revision 125)
@@ -0,0 +1,78 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show StoreLocation</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoreLocation List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show StoreLocation</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Bin:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Inventory Store:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="inventoryStoreDetailed" action="show" id="${storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Stored Items:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${storeLocationInstance.storedItems}">
+                                    <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${storeLocationInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storedItemDetailed/create.gsp
===================================================================
--- /trunk/grails-app/views/storedItemDetailed/create.gsp	(revision 125)
+++ /trunk/grails-app/views/storedItemDetailed/create.gsp	(revision 125)
@@ -0,0 +1,65 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create StoredItem</title>         
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoredItem List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create StoredItem</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${storedItemInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${storedItemInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form action="save" method="post" >
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="quantity">Quantity:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'quantity','errors')}">
+                                    <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:storedItemInstance,field:'quantity')}" />
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="inventoryItem">Inventory Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'inventoryItem','errors')}">
+                                    <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${storedItemInstance?.inventoryItem?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="storeLocation">Store Location:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'storeLocation','errors')}">
+                                    <g:select optionKey="id" from="${StoreLocation.list()}" name="storeLocation.id" value="${storedItemInstance?.storeLocation?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><input class="save" type="submit" value="Create" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storedItemDetailed/edit.gsp
===================================================================
--- /trunk/grails-app/views/storedItemDetailed/edit.gsp	(revision 125)
+++ /trunk/grails-app/views/storedItemDetailed/edit.gsp	(revision 125)
@@ -0,0 +1,69 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit StoredItem</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoredItem List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoredItem</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit StoredItem</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${storedItemInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${storedItemInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${storedItemInstance?.id}" />
+                <input type="hidden" name="version" value="${storedItemInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="quantity">Quantity:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'quantity','errors')}">
+                                    <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:storedItemInstance,field:'quantity')}" />
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="inventoryItem">Inventory Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'inventoryItem','errors')}">
+                                    <g:select optionKey="id" from="${InventoryItem.list()}" name="inventoryItem.id" value="${storedItemInstance?.inventoryItem?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="storeLocation">Store Location:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:storedItemInstance,field:'storeLocation','errors')}">
+                                    <g:select optionKey="id" from="${StoreLocation.list()}" name="storeLocation.id" value="${storedItemInstance?.storeLocation?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                        </tbody>
+                    </table>
+                </div>
+                <div class="buttons">
+                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </div>
+            </g:form>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storedItemDetailed/list.gsp
===================================================================
--- /trunk/grails-app/views/storedItemDetailed/list.gsp	(revision 125)
+++ /trunk/grails-app/views/storedItemDetailed/list.gsp	(revision 125)
@@ -0,0 +1,56 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>StoredItem List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoredItem</g:link></span>
+        </div>
+        <div class="body">
+            <h1>StoredItem List</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="list">
+                <table>
+                    <thead>
+                        <tr>
+                        
+                   	        <g:sortableColumn property="id" title="Id" />
+                        
+                   	        <g:sortableColumn property="quantity" title="Quantity" />
+                        
+                   	        <th>Inventory Item</th>
+                   	    
+                   	        <th>Store Location</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${storedItemInstanceList}" status="i" var="storedItemInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${storedItemInstance.id}">${fieldValue(bean:storedItemInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:storedItemInstance, field:'quantity')}</td>
+                        
+                            <td>${fieldValue(bean:storedItemInstance, field:'inventoryItem')}</td>
+                        
+                            <td>${fieldValue(bean:storedItemInstance, field:'storeLocation')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${storedItemInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/storedItemDetailed/show.gsp
===================================================================
--- /trunk/grails-app/views/storedItemDetailed/show.gsp	(revision 125)
+++ /trunk/grails-app/views/storedItemDetailed/show.gsp	(revision 125)
@@ -0,0 +1,65 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show StoredItem</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
+            <span class="menuButton"><g:link class="list" action="list">StoredItem List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New StoredItem</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show StoredItem</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <div class="dialog">
+                <table>
+                    <tbody>
+
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Id:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:storedItemInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Quantity:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:storedItemInstance, field:'quantity')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Inventory Item:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="inventoryItemDetailed" action="show" id="${storedItemInstance?.inventoryItem?.id}">${storedItemInstance?.inventoryItem?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Store Location:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="storeLocationDetailed" action="show" id="${storedItemInstance?.storeLocation?.id}">${storedItemInstance?.storeLocation?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${storedItemInstance?.id}" />
+                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
+                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
+                </g:form>
+            </div>
+        </div>
+    </body>
+</html>
