Index: /trunk/grails-app/conf/BootStrap.groovy
===================================================================
--- /trunk/grails-app/conf/BootStrap.groovy	(revision 267)
+++ /trunk/grails-app/conf/BootStrap.groovy	(revision 268)
@@ -13,7 +13,7 @@
         {
             case "development":
-                        createDataService.ensureSystemAndAdminAccess()
-                        createDataService.createBaseData()
-                        createDataService.createDemoData()
+                        //createDataService.ensureSystemAndAdminAccess()
+                        //createDataService.createBaseData()
+                        //createDataService.createDemoData()
                         break
             case "test":
Index: /trunk/grails-app/controllers/AssetSubItemController.groovy
===================================================================
--- /trunk/grails-app/controllers/AssetSubItemController.groovy	(revision 267)
+++ /trunk/grails-app/controllers/AssetSubItemController.groovy	(revision 268)
@@ -1,5 +1,5 @@
 import org.codehaus.groovy.grails.plugins.springsecurity.Secured
 
-class AssetTypeController extends BaseAppAdminController {
+class AssetSubItemController extends BaseAppAdminController {
     
     def index = { redirect(action:list,params:params) }
@@ -10,32 +10,32 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ assetTypeInstanceList: AssetType.list( params ), assetTypeInstanceTotal: AssetType.count() ]
+        [ assetSubItemInstanceList: AssetSubItem.list( params ), assetSubItemInstanceTotal: AssetSubItem.count() ]
     }
 
     def show = {
-        def assetTypeInstance = AssetType.get( params.id )
+        def assetSubItemInstance = AssetSubItem.get( params.id )
 
-        if(!assetTypeInstance) {
-            flash.message = "AssetType not found with id ${params.id}"
+        if(!assetSubItemInstance) {
+            flash.message = "AssetSubItem not found with id ${params.id}"
             redirect(action:list)
         }
-        else { return [ assetTypeInstance : assetTypeInstance ] }
+        else { return [ assetSubItemInstance : assetSubItemInstance ] }
     }
 
     def delete = {
-        def assetTypeInstance = AssetType.get( params.id )
-        if(assetTypeInstance) {
+        def assetSubItemInstance = AssetSubItem.get( params.id )
+        if(assetSubItemInstance) {
             try {
-                assetTypeInstance.delete(flush:true)
-                flash.message = "AssetType ${params.id} deleted"
+                assetSubItemInstance.delete(flush:true)
+                flash.message = "AssetSubItem ${params.id} deleted"
                 redirect(action:list)
             }
             catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "AssetType ${params.id} could not be deleted"
+                flash.message = "AssetSubItem ${params.id} could not be deleted"
                 redirect(action:show,id:params.id)
             }
         }
         else {
-            flash.message = "AssetType not found with id ${params.id}"
+            flash.message = "AssetSubItem not found with id ${params.id}"
             redirect(action:list)
         }
@@ -43,38 +43,38 @@
 
     def edit = {
-        def assetTypeInstance = AssetType.get( params.id )
+        def assetSubItemInstance = AssetSubItem.get( params.id )
 
-        if(!assetTypeInstance) {
-            flash.message = "AssetType not found with id ${params.id}"
+        if(!assetSubItemInstance) {
+            flash.message = "AssetSubItem not found with id ${params.id}"
             redirect(action:list)
         }
         else {
-            return [ assetTypeInstance : assetTypeInstance ]
+            return [ assetSubItemInstance : assetSubItemInstance ]
         }
     }
 
     def update = {
-        def assetTypeInstance = AssetType.get( params.id )
-        if(assetTypeInstance) {
+        def assetSubItemInstance = AssetSubItem.get( params.id )
+        if(assetSubItemInstance) {
             if(params.version) {
                 def version = params.version.toLong()
-                if(assetTypeInstance.version > version) {
+                if(assetSubItemInstance.version > version) {
                     
-                    assetTypeInstance.errors.rejectValue("version", "assetType.optimistic.locking.failure", "Another user has updated this AssetType while you were editing.")
-                    render(view:'edit',model:[assetTypeInstance:assetTypeInstance])
+                    assetSubItemInstance.errors.rejectValue("version", "assetSubItem.optimistic.locking.failure", "Another user has updated this AssetSubItem while you were editing.")
+                    render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance])
                     return
                 }
             }
-            assetTypeInstance.properties = params
-            if(!assetTypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) {
-                flash.message = "AssetType ${params.id} updated"
-                redirect(action:show,id:assetTypeInstance.id)
+            assetSubItemInstance.properties = params
+            if(!assetSubItemInstance.hasErrors() && assetSubItemInstance.save(flush: true)) {
+                flash.message = "AssetSubItem ${params.id} updated"
+                redirect(action:show,id:assetSubItemInstance.id)
             }
             else {
-                render(view:'edit',model:[assetTypeInstance:assetTypeInstance])
+                render(view:'edit',model:[assetSubItemInstance:assetSubItemInstance])
             }
         }
         else {
-            flash.message = "AssetType not found with id ${params.id}"
+            flash.message = "AssetSubItem not found with id ${params.id}"
             redirect(action:list)
         }
@@ -82,17 +82,17 @@
 
     def create = {
-        def assetTypeInstance = new AssetType()
-        assetTypeInstance.properties = params
-        return ['assetTypeInstance':assetTypeInstance]
+        def assetSubItemInstance = new AssetSubItem()
+        assetSubItemInstance.properties = params
+        return ['assetSubItemInstance':assetSubItemInstance]
     }
 
     def save = {
-        def assetTypeInstance = new AssetType(params)
-        if(!assetTypeInstance.hasErrors() && assetTypeInstance.save(flush: true)) {
-            flash.message = "AssetType ${assetTypeInstance.id} created"
-            redirect(action:show,id:assetTypeInstance.id)
+        def assetSubItemInstance = new AssetSubItem(params)
+        if(!assetSubItemInstance.hasErrors() && assetSubItemInstance.save(flush: true)) {
+            flash.message = "AssetSubItem ${assetSubItemInstance.id} created"
+            redirect(action:show,id:assetSubItemInstance.id)
         }
         else {
-            render(view:'create',model:[assetTypeInstance:assetTypeInstance])
+            render(view:'create',model:[assetSubItemInstance:assetSubItemInstance])
         }
     }
Index: /trunk/grails-app/controllers/AssetSubItemExtendedAttributeController.groovy
===================================================================
--- /trunk/grails-app/controllers/AssetSubItemExtendedAttributeController.groovy	(revision 268)
+++ /trunk/grails-app/controllers/AssetSubItemExtendedAttributeController.groovy	(revision 268)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class AssetSubItemExtendedAttributeController extends BaseAppAdminController {
+    
+    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)
+        [ assetSubItemExtendedAttributeInstanceList: AssetSubItemExtendedAttribute.list( params ), assetSubItemExtendedAttributeInstanceTotal: AssetSubItemExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def assetSubItemExtendedAttributeInstance = AssetSubItemExtendedAttribute.get( params.id )
+
+        if(!assetSubItemExtendedAttributeInstance) {
+            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ assetSubItemExtendedAttributeInstance : assetSubItemExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def assetSubItemExtendedAttributeInstance = AssetSubItemExtendedAttribute.get( params.id )
+        if(assetSubItemExtendedAttributeInstance) {
+            try {
+                assetSubItemExtendedAttributeInstance.delete(flush:true)
+                flash.message = "AssetSubItemExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "AssetSubItemExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def assetSubItemExtendedAttributeInstance = AssetSubItemExtendedAttribute.get( params.id )
+
+        if(!assetSubItemExtendedAttributeInstance) {
+            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ assetSubItemExtendedAttributeInstance : assetSubItemExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def assetSubItemExtendedAttributeInstance = AssetSubItemExtendedAttribute.get( params.id )
+        if(assetSubItemExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(assetSubItemExtendedAttributeInstance.version > version) {
+                    
+                    assetSubItemExtendedAttributeInstance.errors.rejectValue("version", "assetSubItemExtendedAttribute.optimistic.locking.failure", "Another user has updated this AssetSubItemExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[assetSubItemExtendedAttributeInstance:assetSubItemExtendedAttributeInstance])
+                    return
+                }
+            }
+            assetSubItemExtendedAttributeInstance.properties = params
+            if(!assetSubItemExtendedAttributeInstance.hasErrors() && assetSubItemExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "AssetSubItemExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:assetSubItemExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[assetSubItemExtendedAttributeInstance:assetSubItemExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "AssetSubItemExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def assetSubItemExtendedAttributeInstance = new AssetSubItemExtendedAttribute()
+        assetSubItemExtendedAttributeInstance.properties = params
+        return ['assetSubItemExtendedAttributeInstance':assetSubItemExtendedAttributeInstance]
+    }
+
+    def save = {
+        def assetSubItemExtendedAttributeInstance = new AssetSubItemExtendedAttribute(params)
+        if(!assetSubItemExtendedAttributeInstance.hasErrors() && assetSubItemExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "AssetSubItemExtendedAttribute ${assetSubItemExtendedAttributeInstance.id} created"
+            redirect(action:show,id:assetSubItemExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[assetSubItemExtendedAttributeInstance:assetSubItemExtendedAttributeInstance])
+        }
+    }
+}
Index: /trunk/grails-app/controllers/DepartmentExtendedAttributeController.groovy
===================================================================
--- /trunk/grails-app/controllers/DepartmentExtendedAttributeController.groovy	(revision 268)
+++ /trunk/grails-app/controllers/DepartmentExtendedAttributeController.groovy	(revision 268)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class DepartmentExtendedAttributeController extends BaseAppAdminController {
+    
+    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)
+        [ departmentExtendedAttributeInstanceList: DepartmentExtendedAttribute.list( params ), departmentExtendedAttributeInstanceTotal: DepartmentExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+
+        if(!departmentExtendedAttributeInstance) {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+        if(departmentExtendedAttributeInstance) {
+            try {
+                departmentExtendedAttributeInstance.delete(flush:true)
+                flash.message = "DepartmentExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "DepartmentExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+
+        if(!departmentExtendedAttributeInstance) {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ departmentExtendedAttributeInstance : departmentExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def departmentExtendedAttributeInstance = DepartmentExtendedAttribute.get( params.id )
+        if(departmentExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(departmentExtendedAttributeInstance.version > version) {
+                    
+                    departmentExtendedAttributeInstance.errors.rejectValue("version", "departmentExtendedAttribute.optimistic.locking.failure", "Another user has updated this DepartmentExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+                    return
+                }
+            }
+            departmentExtendedAttributeInstance.properties = params
+            if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "DepartmentExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:departmentExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "DepartmentExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute()
+        departmentExtendedAttributeInstance.properties = params
+        return ['departmentExtendedAttributeInstance':departmentExtendedAttributeInstance]
+    }
+
+    def save = {
+        def departmentExtendedAttributeInstance = new DepartmentExtendedAttribute(params)
+        if(!departmentExtendedAttributeInstance.hasErrors() && departmentExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "DepartmentExtendedAttribute ${departmentExtendedAttributeInstance.id} created"
+            redirect(action:show,id:departmentExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[departmentExtendedAttributeInstance:departmentExtendedAttributeInstance])
+        }
+    }
+}
Index: /trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy
===================================================================
--- /trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy	(revision 267)
+++ /trunk/grails-app/controllers/ExtendedAttributeTypeController.groovy	(revision 268)
@@ -1,5 +1,5 @@
 import org.codehaus.groovy.grails.plugins.springsecurity.Secured
 
-class AssetExtendedAttributeTypeController extends BaseAppAdminController {
+class ExtendedAttributeTypeController extends BaseAppAdminController {
     
     def index = { redirect(action:list,params:params) }
@@ -10,32 +10,32 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ assetExtendedAttributeTypeInstanceList: AssetExtendedAttributeType.list( params ), assetExtendedAttributeTypeInstanceTotal: AssetExtendedAttributeType.count() ]
+        [ extendedAttributeTypeInstanceList: ExtendedAttributeType.list( params ), extendedAttributeTypeInstanceTotal: ExtendedAttributeType.count() ]
     }
 
     def show = {
-        def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
 
-        if(!assetExtendedAttributeTypeInstance) {
-            flash.message = "AssetExtendedAttributeType not found with id ${params.id}"
+        if(!extendedAttributeTypeInstance) {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
             redirect(action:list)
         }
-        else { return [ assetExtendedAttributeTypeInstance : assetExtendedAttributeTypeInstance ] }
+        else { return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ] }
     }
 
     def delete = {
-        def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )
-        if(assetExtendedAttributeTypeInstance) {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+        if(extendedAttributeTypeInstance) {
             try {
-                assetExtendedAttributeTypeInstance.delete(flush:true)
-                flash.message = "AssetExtendedAttributeType ${params.id} deleted"
+                extendedAttributeTypeInstance.delete(flush:true)
+                flash.message = "ExtendedAttributeType ${params.id} deleted"
                 redirect(action:list)
             }
             catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "AssetExtendedAttributeType ${params.id} could not be deleted"
+                flash.message = "ExtendedAttributeType ${params.id} could not be deleted"
                 redirect(action:show,id:params.id)
             }
         }
         else {
-            flash.message = "AssetExtendedAttributeType not found with id ${params.id}"
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
             redirect(action:list)
         }
@@ -43,38 +43,38 @@
 
     def edit = {
-        def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
 
-        if(!assetExtendedAttributeTypeInstance) {
-            flash.message = "AssetExtendedAttributeType not found with id ${params.id}"
+        if(!extendedAttributeTypeInstance) {
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
             redirect(action:list)
         }
         else {
-            return [ assetExtendedAttributeTypeInstance : assetExtendedAttributeTypeInstance ]
+            return [ extendedAttributeTypeInstance : extendedAttributeTypeInstance ]
         }
     }
 
     def update = {
-        def assetExtendedAttributeTypeInstance = AssetExtendedAttributeType.get( params.id )
-        if(assetExtendedAttributeTypeInstance) {
+        def extendedAttributeTypeInstance = ExtendedAttributeType.get( params.id )
+        if(extendedAttributeTypeInstance) {
             if(params.version) {
                 def version = params.version.toLong()
-                if(assetExtendedAttributeTypeInstance.version > version) {
+                if(extendedAttributeTypeInstance.version > version) {
                     
-                    assetExtendedAttributeTypeInstance.errors.rejectValue("version", "assetExtendedAttributeType.optimistic.locking.failure", "Another user has updated this AssetExtendedAttributeType while you were editing.")
-                    render(view:'edit',model:[assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])
+                    extendedAttributeTypeInstance.errors.rejectValue("version", "extendedAttributeType.optimistic.locking.failure", "Another user has updated this ExtendedAttributeType while you were editing.")
+                    render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
                     return
                 }
             }
-            assetExtendedAttributeTypeInstance.properties = params
-            if(!assetExtendedAttributeTypeInstance.hasErrors() && assetExtendedAttributeTypeInstance.save(flush: true)) {
-                flash.message = "AssetExtendedAttributeType ${params.id} updated"
-                redirect(action:show,id:assetExtendedAttributeTypeInstance.id)
+            extendedAttributeTypeInstance.properties = params
+            if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
+                flash.message = "ExtendedAttributeType ${params.id} updated"
+                redirect(action:show,id:extendedAttributeTypeInstance.id)
             }
             else {
-                render(view:'edit',model:[assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])
+                render(view:'edit',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
             }
         }
         else {
-            flash.message = "AssetExtendedAttributeType not found with id ${params.id}"
+            flash.message = "ExtendedAttributeType not found with id ${params.id}"
             redirect(action:list)
         }
@@ -82,17 +82,17 @@
 
     def create = {
-        def assetExtendedAttributeTypeInstance = new AssetExtendedAttributeType()
-        assetExtendedAttributeTypeInstance.properties = params
-        return ['assetExtendedAttributeTypeInstance':assetExtendedAttributeTypeInstance]
+        def extendedAttributeTypeInstance = new ExtendedAttributeType()
+        extendedAttributeTypeInstance.properties = params
+        return ['extendedAttributeTypeInstance':extendedAttributeTypeInstance]
     }
 
     def save = {
-        def assetExtendedAttributeTypeInstance = new AssetExtendedAttributeType(params)
-        if(!assetExtendedAttributeTypeInstance.hasErrors() && assetExtendedAttributeTypeInstance.save(flush: true)) {
-            flash.message = "AssetExtendedAttributeType ${assetExtendedAttributeTypeInstance.id} created"
-            redirect(action:show,id:assetExtendedAttributeTypeInstance.id)
+        def extendedAttributeTypeInstance = new ExtendedAttributeType(params)
+        if(!extendedAttributeTypeInstance.hasErrors() && extendedAttributeTypeInstance.save(flush: true)) {
+            flash.message = "ExtendedAttributeType ${extendedAttributeTypeInstance.id} created"
+            redirect(action:show,id:extendedAttributeTypeInstance.id)
         }
         else {
-            render(view:'create',model:[assetExtendedAttributeTypeInstance:assetExtendedAttributeTypeInstance])
+            render(view:'create',model:[extendedAttributeTypeInstance:extendedAttributeTypeInstance])
         }
     }
Index: /trunk/grails-app/controllers/SectionController.groovy
===================================================================
--- /trunk/grails-app/controllers/SectionController.groovy	(revision 267)
+++ /trunk/grails-app/controllers/SectionController.groovy	(revision 268)
@@ -1,5 +1,5 @@
 import org.codehaus.groovy.grails.plugins.springsecurity.Secured
 
-class SystemSectionController extends BaseAppAdminController {
+class SectionController extends BaseAppAdminController {
     
     def index = { redirect(action:list,params:params) }
@@ -10,32 +10,32 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ systemSectionInstanceList: SystemSection.list( params ), systemSectionInstanceTotal: SystemSection.count() ]
+        [ sectionInstanceList: Section.list( params ), sectionInstanceTotal: Section.count() ]
     }
 
     def show = {
-        def systemSectionInstance = SystemSection.get( params.id )
+        def sectionInstance = Section.get( params.id )
 
-        if(!systemSectionInstance) {
-            flash.message = "SystemSection not found with id ${params.id}"
+        if(!sectionInstance) {
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
-        else { return [ systemSectionInstance : systemSectionInstance ] }
+        else { return [ sectionInstance : sectionInstance ] }
     }
 
     def delete = {
-        def systemSectionInstance = SystemSection.get( params.id )
-        if(systemSectionInstance) {
+        def sectionInstance = Section.get( params.id )
+        if(sectionInstance) {
             try {
-                systemSectionInstance.delete(flush:true)
-                flash.message = "SystemSection ${params.id} deleted"
+                sectionInstance.delete(flush:true)
+                flash.message = "Section ${params.id} deleted"
                 redirect(action:list)
             }
             catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "SystemSection ${params.id} could not be deleted"
+                flash.message = "Section ${params.id} could not be deleted"
                 redirect(action:show,id:params.id)
             }
         }
         else {
-            flash.message = "SystemSection not found with id ${params.id}"
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
@@ -43,38 +43,38 @@
 
     def edit = {
-        def systemSectionInstance = SystemSection.get( params.id )
+        def sectionInstance = Section.get( params.id )
 
-        if(!systemSectionInstance) {
-            flash.message = "SystemSection not found with id ${params.id}"
+        if(!sectionInstance) {
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
         else {
-            return [ systemSectionInstance : systemSectionInstance ]
+            return [ sectionInstance : sectionInstance ]
         }
     }
 
     def update = {
-        def systemSectionInstance = SystemSection.get( params.id )
-        if(systemSectionInstance) {
+        def sectionInstance = Section.get( params.id )
+        if(sectionInstance) {
             if(params.version) {
                 def version = params.version.toLong()
-                if(systemSectionInstance.version > version) {
+                if(sectionInstance.version > version) {
                     
-                    systemSectionInstance.errors.rejectValue("version", "systemSection.optimistic.locking.failure", "Another user has updated this SystemSection while you were editing.")
-                    render(view:'edit',model:[systemSectionInstance:systemSectionInstance])
+                    sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.")
+                    render(view:'edit',model:[sectionInstance:sectionInstance])
                     return
                 }
             }
-            systemSectionInstance.properties = params
-            if(!systemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {
-                flash.message = "SystemSection ${params.id} updated"
-                redirect(action:show,id:systemSectionInstance.id)
+            sectionInstance.properties = params
+            if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
+                flash.message = "Section ${params.id} updated"
+                redirect(action:show,id:sectionInstance.id)
             }
             else {
-                render(view:'edit',model:[systemSectionInstance:systemSectionInstance])
+                render(view:'edit',model:[sectionInstance:sectionInstance])
             }
         }
         else {
-            flash.message = "SystemSection not found with id ${params.id}"
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
@@ -82,17 +82,17 @@
 
     def create = {
-        def systemSectionInstance = new SystemSection()
-        systemSectionInstance.properties = params
-        return ['systemSectionInstance':systemSectionInstance]
+        def sectionInstance = new Section()
+        sectionInstance.properties = params
+        return ['sectionInstance':sectionInstance]
     }
 
     def save = {
-        def systemSectionInstance = new SystemSection(params)
-        if(!systemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {
-            flash.message = "SystemSection ${systemSectionInstance.id} created"
-            redirect(action:show,id:systemSectionInstance.id)
+        def sectionInstance = new Section(params)
+        if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
+            flash.message = "Section ${sectionInstance.id} created"
+            redirect(action:show,id:sectionInstance.id)
         }
         else {
-            render(view:'create',model:[systemSectionInstance:systemSectionInstance])
+            render(view:'create',model:[sectionInstance:sectionInstance])
         }
     }
Index: /trunk/grails-app/controllers/SectionDetailedController.groovy
===================================================================
--- /trunk/grails-app/controllers/SectionDetailedController.groovy	(revision 267)
+++ /trunk/grails-app/controllers/SectionDetailedController.groovy	(revision 268)
@@ -1,5 +1,5 @@
 import org.codehaus.groovy.grails.plugins.springsecurity.Secured
 
-class SystemSectionDetailedController extends BaseController {
+class SectionDetailedController extends BaseController {
     
     def index = { redirect(action:list,params:params) }
@@ -10,32 +10,32 @@
     def list = {
         params.max = Math.min( params.max ? params.max.toInteger() : 10,  100)
-        [ systemSectionInstanceList: SystemSection.list( params ), systemSectionInstanceTotal: SystemSection.count() ]
+        [ sectionInstanceList: Section.list( params ), sectionInstanceTotal: Section.count() ]
     }
 
     def show = {
-        def systemSectionInstance = SystemSection.get( params.id )
+        def sectionInstance = Section.get( params.id )
 
-        if(!systemSectionInstance) {
-            flash.message = "SystemSection not found with id ${params.id}"
+        if(!sectionInstance) {
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
-        else { return [ systemSectionInstance : systemSectionInstance ] }
+        else { return [ sectionInstance : sectionInstance ] }
     }
 
     def delete = {
-        def systemSectionInstance = SystemSection.get( params.id )
-        if(systemSectionInstance) {
+        def sectionInstance = Section.get( params.id )
+        if(sectionInstance) {
             try {
-                systemSectionInstance.delete(flush:true)
-                flash.message = "SystemSection ${params.id} deleted"
+                sectionInstance.delete(flush:true)
+                flash.message = "Section ${params.id} deleted"
                 redirect(action:list)
             }
             catch(org.springframework.dao.DataIntegrityViolationException e) {
-                flash.message = "SystemSection ${params.id} could not be deleted"
+                flash.message = "Section ${params.id} could not be deleted"
                 redirect(action:show,id:params.id)
             }
         }
         else {
-            flash.message = "SystemSection not found with id ${params.id}"
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
@@ -43,38 +43,38 @@
 
     def edit = {
-        def systemSectionInstance = SystemSection.get( params.id )
+        def sectionInstance = Section.get( params.id )
 
-        if(!systemSectionInstance) {
-            flash.message = "SystemSection not found with id ${params.id}"
+        if(!sectionInstance) {
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
         else {
-            return [ systemSectionInstance : systemSectionInstance ]
+            return [ sectionInstance : sectionInstance ]
         }
     }
 
     def update = {
-        def systemSectionInstance = SystemSection.get( params.id )
-        if(systemSectionInstance) {
+        def sectionInstance = Section.get( params.id )
+        if(sectionInstance) {
             if(params.version) {
                 def version = params.version.toLong()
-                if(systemSectionInstance.version > version) {
+                if(sectionInstance.version > version) {
                     
-                    systemSectionInstance.errors.rejectValue("version", "systemSection.optimistic.locking.failure", "Another user has updated this SystemSection while you were editing.")
-                    render(view:'edit',model:[systemSectionInstance:systemSectionInstance])
+                    sectionInstance.errors.rejectValue("version", "section.optimistic.locking.failure", "Another user has updated this Section while you were editing.")
+                    render(view:'edit',model:[sectionInstance:sectionInstance])
                     return
                 }
             }
-            systemSectionInstance.properties = params
-            if(!systemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {
-                flash.message = "SystemSection ${params.id} updated"
-                redirect(action:show,id:systemSectionInstance.id)
+            sectionInstance.properties = params
+            if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
+                flash.message = "Section ${params.id} updated"
+                redirect(action:show,id:sectionInstance.id)
             }
             else {
-                render(view:'edit',model:[systemSectionInstance:systemSectionInstance])
+                render(view:'edit',model:[sectionInstance:sectionInstance])
             }
         }
         else {
-            flash.message = "SystemSection not found with id ${params.id}"
+            flash.message = "Section not found with id ${params.id}"
             redirect(action:list)
         }
@@ -82,17 +82,17 @@
 
     def create = {
-        def systemSectionInstance = new SystemSection()
-        systemSectionInstance.properties = params
-        return ['systemSectionInstance':systemSectionInstance]
+        def sectionInstance = new Section()
+        sectionInstance.properties = params
+        return ['sectionInstance':sectionInstance]
     }
 
     def save = {
-        def systemSectionInstance = new SystemSection(params)
-        if(!systemSectionInstance.hasErrors() && systemSectionInstance.save(flush: true)) {
-            flash.message = "SystemSection ${systemSectionInstance.id} created"
-            redirect(action:show,id:systemSectionInstance.id)
+        def sectionInstance = new Section(params)
+        if(!sectionInstance.hasErrors() && sectionInstance.save(flush: true)) {
+            flash.message = "Section ${sectionInstance.id} created"
+            redirect(action:show,id:sectionInstance.id)
         }
         else {
-            render(view:'create',model:[systemSectionInstance:systemSectionInstance])
+            render(view:'create',model:[sectionInstance:sectionInstance])
         }
     }
Index: /trunk/grails-app/controllers/SectionExtendedAttributeController.groovy
===================================================================
--- /trunk/grails-app/controllers/SectionExtendedAttributeController.groovy	(revision 268)
+++ /trunk/grails-app/controllers/SectionExtendedAttributeController.groovy	(revision 268)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class SectionExtendedAttributeController extends BaseAppAdminController {
+    
+    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)
+        [ sectionExtendedAttributeInstanceList: SectionExtendedAttribute.list( params ), sectionExtendedAttributeInstanceTotal: SectionExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+
+        if(!sectionExtendedAttributeInstance) {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+        if(sectionExtendedAttributeInstance) {
+            try {
+                sectionExtendedAttributeInstance.delete(flush:true)
+                flash.message = "SectionExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "SectionExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+
+        if(!sectionExtendedAttributeInstance) {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ sectionExtendedAttributeInstance : sectionExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def sectionExtendedAttributeInstance = SectionExtendedAttribute.get( params.id )
+        if(sectionExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(sectionExtendedAttributeInstance.version > version) {
+                    
+                    sectionExtendedAttributeInstance.errors.rejectValue("version", "sectionExtendedAttribute.optimistic.locking.failure", "Another user has updated this SectionExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+                    return
+                }
+            }
+            sectionExtendedAttributeInstance.properties = params
+            if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "SectionExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:sectionExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "SectionExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def sectionExtendedAttributeInstance = new SectionExtendedAttribute()
+        sectionExtendedAttributeInstance.properties = params
+        return ['sectionExtendedAttributeInstance':sectionExtendedAttributeInstance]
+    }
+
+    def save = {
+        def sectionExtendedAttributeInstance = new SectionExtendedAttribute(params)
+        if(!sectionExtendedAttributeInstance.hasErrors() && sectionExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "SectionExtendedAttribute ${sectionExtendedAttributeInstance.id} created"
+            redirect(action:show,id:sectionExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[sectionExtendedAttributeInstance:sectionExtendedAttributeInstance])
+        }
+    }
+}
Index: /trunk/grails-app/controllers/SiteExtendedAttributeController.groovy
===================================================================
--- /trunk/grails-app/controllers/SiteExtendedAttributeController.groovy	(revision 268)
+++ /trunk/grails-app/controllers/SiteExtendedAttributeController.groovy	(revision 268)
@@ -0,0 +1,99 @@
+import org.codehaus.groovy.grails.plugins.springsecurity.Secured
+
+class SiteExtendedAttributeController extends BaseAppAdminController {
+    
+    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)
+        [ siteExtendedAttributeInstanceList: SiteExtendedAttribute.list( params ), siteExtendedAttributeInstanceTotal: SiteExtendedAttribute.count() ]
+    }
+
+    def show = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+
+        if(!siteExtendedAttributeInstance) {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else { return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ] }
+    }
+
+    def delete = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+        if(siteExtendedAttributeInstance) {
+            try {
+                siteExtendedAttributeInstance.delete(flush:true)
+                flash.message = "SiteExtendedAttribute ${params.id} deleted"
+                redirect(action:list)
+            }
+            catch(org.springframework.dao.DataIntegrityViolationException e) {
+                flash.message = "SiteExtendedAttribute ${params.id} could not be deleted"
+                redirect(action:show,id:params.id)
+            }
+        }
+        else {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def edit = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+
+        if(!siteExtendedAttributeInstance) {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+        else {
+            return [ siteExtendedAttributeInstance : siteExtendedAttributeInstance ]
+        }
+    }
+
+    def update = {
+        def siteExtendedAttributeInstance = SiteExtendedAttribute.get( params.id )
+        if(siteExtendedAttributeInstance) {
+            if(params.version) {
+                def version = params.version.toLong()
+                if(siteExtendedAttributeInstance.version > version) {
+                    
+                    siteExtendedAttributeInstance.errors.rejectValue("version", "siteExtendedAttribute.optimistic.locking.failure", "Another user has updated this SiteExtendedAttribute while you were editing.")
+                    render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+                    return
+                }
+            }
+            siteExtendedAttributeInstance.properties = params
+            if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
+                flash.message = "SiteExtendedAttribute ${params.id} updated"
+                redirect(action:show,id:siteExtendedAttributeInstance.id)
+            }
+            else {
+                render(view:'edit',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+            }
+        }
+        else {
+            flash.message = "SiteExtendedAttribute not found with id ${params.id}"
+            redirect(action:list)
+        }
+    }
+
+    def create = {
+        def siteExtendedAttributeInstance = new SiteExtendedAttribute()
+        siteExtendedAttributeInstance.properties = params
+        return ['siteExtendedAttributeInstance':siteExtendedAttributeInstance]
+    }
+
+    def save = {
+        def siteExtendedAttributeInstance = new SiteExtendedAttribute(params)
+        if(!siteExtendedAttributeInstance.hasErrors() && siteExtendedAttributeInstance.save(flush: true)) {
+            flash.message = "SiteExtendedAttribute ${siteExtendedAttributeInstance.id} created"
+            redirect(action:show,id:siteExtendedAttributeInstance.id)
+        }
+        else {
+            render(view:'create',model:[siteExtendedAttributeInstance:siteExtendedAttributeInstance])
+        }
+    }
+}
Index: /trunk/grails-app/domain/Asset.groovy
===================================================================
--- /trunk/grails-app/domain/Asset.groovy	(revision 267)
+++ /trunk/grails-app/domain/Asset.groovy	(revision 268)
@@ -1,19 +1,21 @@
 class Asset {
 
-    SystemSection systemSection
-    AssetType assetType
+    Section section
 
     String name
     String description = ""
-    String costCode = ""
     boolean isActive = true
 
-    static hasMany = [maintenanceActions: MaintenanceAction,
+    static hasMany = [assetSubItems: AssetSubItem,
+                                    maintenanceActions: MaintenanceAction,
                                     assetExtendedAttributes: AssetExtendedAttribute]
 
-    static belongsTo = [SystemSection, AssetType]
+    static belongsTo = [Section]
 
     static constraints = {
-        name(unique:true, blank:false)
+        name(maxSize:50, unique:true, blank:false)
+        description(maxSize:100)
+        isActive()
+        section()
     }
 
Index: /trunk/grails-app/domain/AssetExtendedAttribute.groovy
===================================================================
--- /trunk/grails-app/domain/AssetExtendedAttribute.groovy	(revision 267)
+++ /trunk/grails-app/domain/AssetExtendedAttribute.groovy	(revision 268)
@@ -1,6 +1,6 @@
 class AssetExtendedAttribute {
 
+    ExtendedAttributeType extendedAttributeType
     Asset asset
-    AssetExtendedAttributeType assetExtendedAttributeType
 
     String value
@@ -11,10 +11,11 @@
     static belongsTo = [Asset]
 
-//     static constraints = {
-// 
-//     }
+    static constraints = {
+        value(maxSize:100)
+        isActive()
+    }
 
     String toString() {
-        "${assetExtendedAttributeType.name}: ${this.value}"
+        "${extendedAttributeType.name}: ${this.value}"
     }
 }
Index: /trunk/grails-app/domain/AssetSubItem.groovy
===================================================================
--- /trunk/grails-app/domain/AssetSubItem.groovy	(revision 267)
+++ /trunk/grails-app/domain/AssetSubItem.groovy	(revision 268)
@@ -1,18 +1,24 @@
-class AssetType {
+class AssetSubItem {
+
+    Asset asset
+    AssetSubItem parentItem
 
     String name
     String description = ""
-    String costCode = ""
     boolean isActive = true
 
-    static hasMany = [assets: Asset, 
-                                    assemblies: Assembly,
-                                    maintenanceActions: MaintenanceAction]
+    static hasMany = [subItems: AssetSubItem,
+                                maintenanceActions: MaintenanceAction,
+                                assetSubItemExtendedAttributes: AssetSubItemExtendedAttribute]
 
-//     static belongsTo = []
+    static belongsTo = [Asset, AssetSubItem]
 
-//     static constraints = {
-// 
-//     }
+    static constraints = {
+        name(maxSize:50, blank:false)
+        description(maxSize:100)
+        isActive()
+        asset(nullable:true)
+        parentItem(nullable:true)
+    }
 
     String toString() {
Index: /trunk/grails-app/domain/AssetSubItemExtendedAttribute.groovy
===================================================================
--- /trunk/grails-app/domain/AssetSubItemExtendedAttribute.groovy	(revision 268)
+++ /trunk/grails-app/domain/AssetSubItemExtendedAttribute.groovy	(revision 268)
@@ -0,0 +1,22 @@
+class AssetSubItemExtendedAttribute {
+
+    ExtendedAttributeType extendedAttributeType
+    AssetSubItem assetSubItem
+
+    String value
+    boolean isActive = true
+
+//     static hasMany = []
+
+    static belongsTo = [AssetSubItem]
+
+    static constraints = {
+        value(maxSize:100)
+        isActive()
+    }
+
+    String toString() {
+        "${extendedAttributeType.name}: ${this.value}"
+    }
+}
+
Index: /trunk/grails-app/domain/Department.groovy
===================================================================
--- /trunk/grails-app/domain/Department.groovy	(revision 267)
+++ /trunk/grails-app/domain/Department.groovy	(revision 268)
@@ -3,15 +3,15 @@
     String name
     String description = ""
-    String costCode = ""
     boolean isActive = true
 
-    static hasMany = [systemSections: SystemSection, persons: Person]
+    static hasMany = [sections: Section,
+                                departmentExtendedAttributes: DepartmentExtendedAttribute,
+                                persons: Person]
 
 //     static belongsTo = []
 
     static constraints = {
-        name()
-        description()
-        costCode()
+        name(maxSize:50, unique:true, blank:false)
+        description(maxSize:100)
         isActive()
     }
Index: /trunk/grails-app/domain/DepartmentExtendedAttribute.groovy
===================================================================
--- /trunk/grails-app/domain/DepartmentExtendedAttribute.groovy	(revision 268)
+++ /trunk/grails-app/domain/DepartmentExtendedAttribute.groovy	(revision 268)
@@ -0,0 +1,22 @@
+class DepartmentExtendedAttribute {
+
+    ExtendedAttributeType extendedAttributeType
+    Department department
+
+    String value
+    boolean isActive = true
+
+//     static hasMany = []
+
+    static belongsTo = [Department]
+
+    static constraints = {
+        value(maxSize:100)
+        isActive()
+    }
+
+    String toString() {
+        "${extendedAttributeType.name}: ${this.value}"
+    }
+}
+
Index: /trunk/grails-app/domain/ExtendedAttributeType.groovy
===================================================================
--- /trunk/grails-app/domain/ExtendedAttributeType.groovy	(revision 267)
+++ /trunk/grails-app/domain/ExtendedAttributeType.groovy	(revision 268)
@@ -1,3 +1,3 @@
-class AssetExtendedAttributeType {
+class ExtendedAttributeType {
 
     String name
@@ -5,11 +5,13 @@
     boolean isActive = true
 
-    static hasMany = [assetExtendedAttributes: AssetExtendedAttribute]
+//     static hasMany = []
 
 //     static belongsTo = []
 
-//     static constraints = {
-// 
-//     }
+    static constraints = {
+        name(maxSize:50,unique:true,blank:false)
+        description(maxSize:100)
+        isActive()
+    }
 
     String toString() {
Index: /trunk/grails-app/domain/MaintenanceAction.groovy
===================================================================
--- /trunk/grails-app/domain/MaintenanceAction.groovy	(revision 267)
+++ /trunk/grails-app/domain/MaintenanceAction.groovy	(revision 268)
@@ -3,10 +3,7 @@
     TaskProcedure taskProcedure
     MaintenancePolicy maintenancePolicy
-    SystemSection systemSection
+    Section section
     Asset asset
-    AssetType assetType
-    Assembly assembly
-    SubAssembly subAssembly
-    ComponentItem componentItem
+    AssetSubItem assetSubItem
 
     String description
@@ -20,12 +17,12 @@
 
     static constraints = {
+        section(nullable:true)
+        asset(nullable:true)
+        assetSubItem(nullable:true)
         maintenancePolicy(nullable:true)
-        systemSection(nullable:true)
-        asset(nullable:true)
-        assetType(nullable:true)
-        assembly(nullable:true)
-        subAssembly(nullable:true)
-        componentItem(nullable:true)
         procedureStepNumber(nullable:true)
+        description()
+        reasoning()
+        isActive()
     }
 
Index: /trunk/grails-app/domain/MaintenancePolicy.groovy
===================================================================
--- /trunk/grails-app/domain/MaintenancePolicy.groovy	(revision 267)
+++ /trunk/grails-app/domain/MaintenancePolicy.groovy	(revision 268)
@@ -5,10 +5,13 @@
     boolean isActive = true
 
-    static hasMany = [maintenanceActions: MaintenanceAction]
+//     static hasMany = [maintenanceActions: MaintenanceAction]
 
 //     static belongsTo = []
 
-//     static constraints = {
-//     }
+    static constraints = {
+        name(maxSize:50, unique:true, blank:false)
+        description(maxSize:100)
+        isActive()
+    }
 
     String toString() {
Index: /trunk/grails-app/domain/Section.groovy
===================================================================
--- /trunk/grails-app/domain/Section.groovy	(revision 268)
+++ /trunk/grails-app/domain/Section.groovy	(revision 268)
@@ -0,0 +1,26 @@
+class Section {
+
+    Site site
+    Department department
+
+    String name
+    String description = ""
+    boolean isActive = true
+
+    static hasMany = [assets: Asset,
+                                maintenanceActions: MaintenanceAction,
+                                sectionExtendedAttributes: SectionExtendedAttribute]
+
+    static belongsTo = [Site]
+
+    static constraints = {
+        name(maxSize:50, unique:true, blank:false)
+        description(maxSize:100)
+        isActive()
+    }
+
+    String toString() {
+        "${this.name}"
+    }
+}
+
Index: /trunk/grails-app/domain/SectionExtendedAttribute.groovy
===================================================================
--- /trunk/grails-app/domain/SectionExtendedAttribute.groovy	(revision 268)
+++ /trunk/grails-app/domain/SectionExtendedAttribute.groovy	(revision 268)
@@ -0,0 +1,22 @@
+class SectionExtendedAttribute {
+
+    ExtendedAttributeType extendedAttributeType
+    Section section
+
+    String value
+    boolean isActive = true
+
+//     static hasMany = []
+
+    static belongsTo = [Section]
+
+    static constraints = {
+        value(maxSize:100)
+        isActive()
+    }
+
+    String toString() {
+        "${extendedAttributeType.name}: ${this.value}"
+    }
+}
+
Index: /trunk/grails-app/domain/Site.groovy
===================================================================
--- /trunk/grails-app/domain/Site.groovy	(revision 267)
+++ /trunk/grails-app/domain/Site.groovy	(revision 268)
@@ -3,14 +3,16 @@
     String name
     String description = ""
-    String costCode = ""
     Boolean isActive = true
 
-    static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection]
+//     static hasMany = [inventoryStores: InventoryStore, systemSections: SystemSection]
+    static hasMany = [sections: Section,
+                                siteExtendedAttributes: SiteExtendedAttribute]
 
 //     static belongsTo = []
 
     static constraints = {
-        name(maxSize:50,unique:true,blank:false)
+        name(maxSize:50, unique:true, blank:false)
         description(maxSize:100)
+        isActive()
     }
 
Index: /trunk/grails-app/domain/SiteExtendedAttribute.groovy
===================================================================
--- /trunk/grails-app/domain/SiteExtendedAttribute.groovy	(revision 268)
+++ /trunk/grails-app/domain/SiteExtendedAttribute.groovy	(revision 268)
@@ -0,0 +1,22 @@
+class SiteExtendedAttribute {
+
+    ExtendedAttributeType extendedAttributeType
+    Site site
+
+    String value
+    boolean isActive = true
+
+//     static hasMany = []
+
+    static belongsTo = [Site]
+
+    static constraints = {
+        value(maxSize:100)
+        isActive()
+    }
+
+    String toString() {
+        "${extendedAttributeType.name}: ${this.value}"
+    }
+}
+
Index: unk/grails-app/domain/SystemSection.groovy
===================================================================
--- /trunk/grails-app/domain/SystemSection.groovy	(revision 267)
+++ 	(revision )
@@ -1,23 +1,0 @@
-class SystemSection {
-
-    Site site
-    Department department
-
-    String name
-    String description = ""
-    String costCode = ""
-    boolean isActive = true
-
-    static hasMany = [assets: Asset, maintenanceActions: MaintenanceAction]
-
-    static belongsTo = [Site]
-
-//     static constraints = {
-// 
-//     }
-
-    String toString() {
-        "${this.name}"
-    }
-}
-
Index: /trunk/grails-app/services/CreateDataService.groovy
===================================================================
--- /trunk/grails-app/services/CreateDataService.groovy	(revision 267)
+++ /trunk/grails-app/services/CreateDataService.groovy	(revision 268)
@@ -60,4 +60,5 @@
         createBaseSupplierType()
         createBaseManufacturerType()
+        createBaseExtenededAttributeTypes()
 
         // Tasks
@@ -76,5 +77,4 @@
 
         // Assets
-        createBaseAssetExtenededAttributeTypes()
 
         // Record that data has been created.
@@ -128,9 +128,6 @@
         createDemoTaskProcedure()
         createDemoMaintenanceActions()
-        createDemoSystemSections()
-        createDemoAssetTypes()
-        createDemoAssemblies()
-        createDemoSubAssemblies()
-        createDemoComponentItems()
+        createDemoSections()
+        createDemoAssetSubItems()
         createDemoAssets()
         createDemoAssetExtenedAttributes()
@@ -993,164 +990,130 @@
     }
 
-    def createDemoSystemSections() {
-
-        //SystemSection
-        def systemSectionInstance
-
-        //SystemSection #1
-        systemSectionInstance = new SystemSection(name: "Press Section",
+    def createDemoSections() {
+
+        //Section
+        def sectionInstance
+
+        //Section #1
+        sectionInstance = new Section(name: "Press Section",
                                                                                     site: Site.get(1),
                                                                                     department: Department.get(1))
-        saveAndTest(systemSectionInstance)
-
-        //SystemSection #2
-        systemSectionInstance = new SystemSection(name: "RO System",
+        saveAndTest(sectionInstance)
+
+        //Section #2
+        sectionInstance = new Section(name: "RO System",
                                                                                     site: Site.get(2),
                                                                                     department: Department.get(2))
-        saveAndTest(systemSectionInstance)
-
-        //SystemSection #3
-        systemSectionInstance = new SystemSection(name: "Auxilliray Section",
+        saveAndTest(sectionInstance)
+
+        //Section #3
+        sectionInstance = new Section(name: "Auxilliray Section",
                                                                                     site: Site.get(1),
                                                                                     department: Department.get(1))
-        saveAndTest(systemSectionInstance)
-    }
-
-    def createDemoAssetTypes() {
-
-        //AssetType
-        def assetTypeInstance
-
-        //AssetType #1
-        assetTypeInstance = new AssetType(name: "Print Unit")
-        saveAndTest(assetTypeInstance)
-
-        //AssetType #2
-        assetTypeInstance = new AssetType(name: "Reactor Tower")
-        saveAndTest(assetTypeInstance)
-    }
-
-    def createDemoAssemblies() {
-
-        //Assembly
-        def assemblyInstance
-
-        //Assembly #1
-        assemblyInstance = new Assembly(name: "Print Couple",
-                                                                        assetType: AssetType.get(1))
-        saveAndTest(assemblyInstance)
-//        assemblyInstance.addToMaintenanceActions(MaintenanceAction.get(1))
-
-        //Assembly #2
-        assemblyInstance = new Assembly(name: "Agitator",
-                                                                        assetType: AssetType.get(2))
-        saveAndTest(assemblyInstance)
-    }
-
-    def createDemoSubAssemblies() {
-
-        //SubAssembly
-        def subAssemblyInstance
-
-        //SubAssembly #1
-        subAssemblyInstance = new SubAssembly(name: "Cylinder",
-                                                                                    assembly: Assembly.get(1))
-        saveAndTest(subAssemblyInstance)
-
-         //SubAssembly #2
-        subAssemblyInstance = new SubAssembly(name: "Gearmotor",
-                                                                                    assembly: Assembly.get(2))
-        saveAndTest(subAssemblyInstance)
-    }
-
-    def createDemoComponentItems() {
-
-        //ComponentItem
-        def componentItemInstance
-
-        //ComponentItem #1
-        componentItemInstance = new ComponentItem(name: "Bearing",
-                                                                                            subAssembly: SubAssembly.get(1))
-        saveAndTest(componentItemInstance)
-
-         //ComponentItem #2
-        componentItemInstance = new ComponentItem(name: "Drive shaft oil seal",
-                                                                                            subAssembly: SubAssembly.get(2))
-        saveAndTest(componentItemInstance)
+        saveAndTest(sectionInstance)
+    }
+
+    def createDemoAssetSubItems() {
+
+//         //AssetSubItem
+//         def assetSubItemInstance
+// 
+//         //AssetSubItem #1
+//         assetSubItemInstance = new AssetSubItem(name: "Print Unit")
+//         saveAndTest(assetSubItemInstance)
+// 
+//         //AssetSubItem #2
+//         assetSubItemInstance = new AssetSubItem(name: "Reactor Tower")
+//         saveAndTest(assetSubItemInstance)
     }
 
     def createDemoAssets() {
 
-        //Asset
-        def assetInstance
-
-        //Asset #1
-        assetInstance = new Asset(name: "Print Unit 22",
-                                                        assetType: AssetType.get(1),
-                                                        systemSection: SystemSection.get(1))
-        saveAndTest(assetInstance)
-//        assetInstance.addToMaintenanceActions(MaintenanceAction.get(1))
-
-        //Asset #2
-        assetInstance = new Asset(name: "Print Unit 21",
-                                                        assetType: AssetType.get(1),
-                                                        systemSection: SystemSection.get(1))
-        saveAndTest(assetInstance)
-
-        //Asset #3
-        assetInstance = new Asset(name: "Print Unit 23",
-                                                        assetType: AssetType.get(1),
-                                                        systemSection: SystemSection.get(1))
-        saveAndTest(assetInstance)
-
-        //Asset #4
-        assetInstance = new Asset(name: "RO 1",
-                                                        assetType: AssetType.get(2),
-                                                        systemSection: SystemSection.get(2))
-        saveAndTest(assetInstance)
-    }
-
-    def createBaseAssetExtenededAttributeTypes() {
-
-        //AssetExtendedAttributeType
-        def assetExtendedAttributeInstanceType
-
-        //AssetExtendedAttributeType #1
-        assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Model Number")
-        saveAndTest(assetExtendedAttributeInstanceType)
-
-        //AssetExtendedAttributeType #2
-        assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Purchase Cost")
-        saveAndTest(assetExtendedAttributeInstanceType)
-
-        //AssetExtendedAttributeType #3
-        assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Serial Number")
-        saveAndTest(assetExtendedAttributeInstanceType)
-
-        //AssetExtendedAttributeType #4
-        assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Manufactured Date")
-        saveAndTest(assetExtendedAttributeInstanceType)
-
-        //AssetExtendedAttributeType #5
-        assetExtendedAttributeInstanceType = new AssetExtendedAttributeType(name: "Location Description")
-        saveAndTest(assetExtendedAttributeInstanceType)
+//         //Asset
+//         def assetInstance
+// 
+//         //Asset #1
+//         assetInstance = new Asset(name: "Print Unit 22",
+//                                                         section: Section.get(1))
+//         saveAndTest(assetInstance)
+// //        assetInstance.addToMaintenanceActions(MaintenanceAction.get(1))
+// 
+//         //Asset #2
+//         assetInstance = new Asset(name: "Print Unit 21",
+//                                                         assetSubItem: AssetSubItem.get(1),
+//                                                         section: Section.get(1))
+//         saveAndTest(assetInstance)
+// 
+//         //Asset #3
+//         assetInstance = new Asset(name: "Print Unit 23",
+//                                                         assetSubItem: AssetSubItem.get(1),
+//                                                         section: Section.get(1))
+//         saveAndTest(assetInstance)
+// 
+//         //Asset #4
+//         assetInstance = new Asset(name: "RO 1",
+//                                                         assetSubItem: AssetSubItem.get(2),
+//                                                         section: Section.get(2))
+//         saveAndTest(assetInstance)
+    }
+
+    def createBaseExtenededAttributeTypes() {
+
+        //ExtendedAttributeType
+        def extendedAttributeTypeInstance
+
+        //ExtendedAttributeType #1
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Model Number")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #2
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Purchase Cost")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #3
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Serial Number")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #4
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufactured Date")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #5
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Location Description")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #6
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Cost Centre")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #7
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Cost Code")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #8
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Manufacturer's Number")
+        saveAndTest(extendedAttributeTypeInstance)
+
+        //ExtendedAttributeType #9
+        extendedAttributeTypeInstance = new ExtendedAttributeType(name: "Inventory Number")
+        saveAndTest(extendedAttributeTypeInstance)
     }
 
     def createDemoAssetExtenedAttributes() {
 
-        //AssetExtendedAttribute
-        def assetExtendedAttributeInstance
-
-        //AssetExtendedAttribute #1
-        assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2",
-                                                                                                                    asset: Asset.get(1),
-                                                                                                                    assetExtendedAttributeType: AssetExtendedAttributeType.get(1))
-        saveAndTest(assetExtendedAttributeInstance)
-
-        //AssetExtendedAttribute #2
-        assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5",
-                                                                                                                    asset: Asset.get(1),
-                                                                                                                    assetExtendedAttributeType: AssetExtendedAttributeType.get(5))
-        saveAndTest(assetExtendedAttributeInstance)
+//         //AssetExtendedAttribute
+//         def assetExtendedAttributeInstance
+// 
+//         //AssetExtendedAttribute #1
+//         assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "PU Mark 2",
+//                                                                                                                     asset: Asset.get(1),
+//                                                                                                                     assetExtendedAttributeType: ExtendedAttributeType.get(1))
+//         saveAndTest(assetExtendedAttributeInstance)
+// 
+//         //AssetExtendedAttribute #2
+//         assetExtendedAttributeInstance = new AssetExtendedAttribute(value: "On the far side of Tank 5",
+//                                                                                                                     asset: Asset.get(1),
+//                                                                                                                     assetExtendedAttributeType: ExtendedAttributeType.get(5))
+//         saveAndTest(assetExtendedAttributeInstance)
     }
 
Index: /trunk/grails-app/views/asset/create.gsp
===================================================================
--- /trunk/grails-app/views/asset/create.gsp	(revision 267)
+++ /trunk/grails-app/views/asset/create.gsp	(revision 268)
@@ -31,23 +31,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="assetType">Asset Type:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}">
-                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/>
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -58,5 +40,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -73,8 +55,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="systemSection">System Section:</label>
+                                    <label for="section">Section:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
-                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/asset/edit.gsp
===================================================================
--- /trunk/grails-app/views/asset/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/asset/edit.gsp	(revision 268)
@@ -34,5 +34,32 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="section">Section:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select>
                                 </td>
                             </tr> 
@@ -56,35 +83,15 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assetType">Asset Type:</label>
+                                    <label for="assetSubItem">Asset Sub Item:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetType','errors')}">
-                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${assetInstance?.assetType?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetInstance,field:'costCode')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="description">Description:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'assetSubItem','errors')}">
+                                    
+<ul>
+<g:each var="a" in="${assetInstance?.assetSubItem?}">
+    <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="assetSubItem" params="['asset.id':assetInstance?.id]" action="create">Add AssetSubItem</g:link>
+
                                 </td>
                             </tr> 
@@ -106,13 +113,4 @@
                             </tr> 
                         
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="systemSection">System Section:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'systemSection','errors')}">
-                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${assetInstance?.systemSection?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
                         </tbody>
                     </table>
Index: /trunk/grails-app/views/asset/list.gsp
===================================================================
--- /trunk/grails-app/views/asset/list.gsp	(revision 267)
+++ /trunk/grails-app/views/asset/list.gsp	(revision 268)
@@ -25,12 +25,10 @@
                    	        <g:sortableColumn property="name" title="Name" />
                         
-                   	        <th>Asset Type</th>
-                   	    
-                   	        <g:sortableColumn property="costCode" title="Cost Code" />
-                        
                    	        <g:sortableColumn property="description" title="Description" />
                         
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
+                   	        <th>Section</th>
+                   	    
                         </tr>
                     </thead>
@@ -43,11 +41,9 @@
                             <td>${fieldValue(bean:assetInstance, field:'name')}</td>
                         
-                            <td>${fieldValue(bean:assetInstance, field:'assetType')}</td>
-                        
-                            <td>${fieldValue(bean:assetInstance, field:'costCode')}</td>
-                        
                             <td>${fieldValue(bean:assetInstance, field:'description')}</td>
                         
                             <td>${fieldValue(bean:assetInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:assetInstance, field:'section')}</td>
                         
                         </tr>
Index: /trunk/grails-app/views/asset/show.gsp
===================================================================
--- /trunk/grails-app/views/asset/show.gsp	(revision 267)
+++ /trunk/grails-app/views/asset/show.gsp	(revision 268)
@@ -37,4 +37,25 @@
                     
                         <tr class="prop">
+                            <td valign="top" class="name">Description:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Section:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="section" action="show" id="${assetInstance?.section?.id}">${assetInstance?.section?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
                             <td valign="top" class="name">Asset Extended Attributes:</td>
                             
@@ -50,28 +71,13 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Asset Type:</td>
+                            <td valign="top" class="name">Asset Sub Item:</td>
                             
-                            <td valign="top" class="value"><g:link controller="assetType" action="show" id="${assetInstance?.assetType?.id}">${assetInstance?.assetType?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'costCode')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Description:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'description')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Is Active:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:assetInstance, field:'isActive')}</td>
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="a" in="${assetInstance.assetSubItem}">
+                                    <li><g:link controller="assetSubItem" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
                             
                         </tr>
@@ -90,11 +96,4 @@
                         </tr>
                     
-                        <tr class="prop">
-                            <td valign="top" class="name">System Section:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${assetInstance?.systemSection?.id}">${assetInstance?.systemSection?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
                     </tbody>
                 </table>
Index: /trunk/grails-app/views/assetExtendedAttribute/create.gsp
===================================================================
--- /trunk/grails-app/views/assetExtendedAttribute/create.gsp	(revision 267)
+++ /trunk/grails-app/views/assetExtendedAttribute/create.gsp	(revision 268)
@@ -28,17 +28,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="asset">Asset:</label>
+                                    <label for="value">Value:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}">
-                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}">
-                                    <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/>
                                 </td>
                             </tr> 
@@ -55,8 +46,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="value">Value:</label>
+                                    <label for="asset">Asset:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}">
-                                    <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}">
+                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/assetExtendedAttribute/edit.gsp
===================================================================
--- /trunk/grails-app/views/assetExtendedAttribute/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/assetExtendedAttribute/edit.gsp	(revision 268)
@@ -31,17 +31,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="asset">Asset:</label>
+                                    <label for="value">Value:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}">
-                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="assetExtendedAttributeType">Asset Extended Attribute Type:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'assetExtendedAttributeType','errors')}">
-                                    <g:select optionKey="id" from="${AssetExtendedAttributeType.list()}" name="assetExtendedAttributeType.id" value="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/>
                                 </td>
                             </tr> 
@@ -58,8 +49,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="value">Value:</label>
+                                    <label for="asset">Asset:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'value','errors')}">
-                                    <input type="text" id="value" name="value" value="${fieldValue(bean:assetExtendedAttributeInstance,field:'value')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'asset','errors')}">
+                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetExtendedAttributeInstance?.asset?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/assetExtendedAttribute/list.gsp
===================================================================
--- /trunk/grails-app/views/assetExtendedAttribute/list.gsp	(revision 267)
+++ /trunk/grails-app/views/assetExtendedAttribute/list.gsp	(revision 268)
@@ -23,12 +23,12 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
+                   	        <g:sortableColumn property="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
                    	        <th>Asset</th>
                    	    
-                   	        <th>Asset Extended Attribute Type</th>
+                   	        <th>Extended Attribute Type</th>
                    	    
-                   	        <g:sortableColumn property="isActive" title="Is Active" />
-                        
-                   	        <g:sortableColumn property="value" title="Value" />
-                        
                         </tr>
                     </thead>
@@ -39,11 +39,11 @@
                             <td><g:link action="show" id="${assetExtendedAttributeInstance.id}">${fieldValue(bean:assetExtendedAttributeInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td>
-                        
-                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'assetExtendedAttributeType')}</td>
+                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td>
                         
                             <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'isActive')}</td>
                         
-                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td>
+                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'asset')}</td>
+                        
+                            <td>${fieldValue(bean:assetExtendedAttributeInstance, field:'extendedAttributeType')}</td>
                         
                         </tr>
Index: /trunk/grails-app/views/assetExtendedAttribute/show.gsp
===================================================================
--- /trunk/grails-app/views/assetExtendedAttribute/show.gsp	(revision 267)
+++ /trunk/grails-app/views/assetExtendedAttribute/show.gsp	(revision 268)
@@ -30,14 +30,7 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Asset:</td>
+                            <td valign="top" class="name">Value:</td>
                             
-                            <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Asset Extended Attribute Type:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="assetExtendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.assetExtendedAttributeType?.id}">${assetExtendedAttributeInstance?.assetExtendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td>
                             
                         </tr>
@@ -51,7 +44,14 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Value:</td>
+                            <td valign="top" class="name">Asset:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeInstance, field:'value')}</td>
+                            <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetExtendedAttributeInstance?.asset?.id}">${assetExtendedAttributeInstance?.asset?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${assetExtendedAttributeInstance?.extendedAttributeType?.id}">${assetExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
Index: /trunk/grails-app/views/assetSubItem/create.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItem/create.gsp	(revision 267)
+++ /trunk/grails-app/views/assetSubItem/create.gsp	(revision 268)
@@ -5,18 +5,18 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Create AssetType</title>
+        <title>Create AssetSubItem</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetType List</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span>
         </div>
         <div class="body">
-            <h1>Create AssetType</h1>
+            <h1>Create AssetSubItem</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${assetTypeInstance}">
+            <g:hasErrors bean="${assetSubItemInstance}">
             <div class="errors">
-                <g:renderErrors bean="${assetTypeInstance}" as="list" />
+                <g:renderErrors bean="${assetSubItemInstance}" as="list" />
             </div>
             </g:hasErrors>
@@ -28,8 +28,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
+                                    <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -39,6 +39,6 @@
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -48,6 +48,6 @@
                                     <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${assetTypeInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
@@ -55,8 +55,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="name">Name:</label>
+                                    <label for="asset">Asset:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}">
+                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="parentItem">Parent Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/assetSubItem/edit.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItem/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/assetSubItem/edit.gsp	(revision 268)
@@ -5,24 +5,24 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Edit AssetType</title>
+        <title>Edit AssetSubItem</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetType List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New AssetType</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span>
         </div>
         <div class="body">
-            <h1>Edit AssetType</h1>
+            <h1>Edit AssetSubItem</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${assetTypeInstance}">
+            <g:hasErrors bean="${assetSubItemInstance}">
             <div class="errors">
-                <g:renderErrors bean="${assetTypeInstance}" as="list" />
+                <g:renderErrors bean="${assetSubItemInstance}" as="list" />
             </div>
             </g:hasErrors>
             <g:form method="post" >
-                <input type="hidden" name="id" value="${assetTypeInstance?.id}" />
-                <input type="hidden" name="version" value="${assetTypeInstance?.version}" />
+                <input type="hidden" name="id" value="${assetSubItemInstance?.id}" />
+                <input type="hidden" name="version" value="${assetSubItemInstance?.version}" />
                 <div class="dialog">
                     <table>
@@ -31,40 +31,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assemblies">Assemblies:</label>
+                                    <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assemblies','errors')}">
-                                    
-<ul>
-<g:each var="a" in="${assetTypeInstance?.assemblies?}">
-    <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="assembly" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Assembly</g:link>
-
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="assets">Assets:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'assets','errors')}">
-                                    
-<ul>
-<g:each var="a" in="${assetTypeInstance?.assets?}">
-    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="asset" params="['assetType.id':assetTypeInstance?.id]" action="create">Add Asset</g:link>
-
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:assetTypeInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -74,6 +42,6 @@
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetTypeInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -83,6 +51,40 @@
                                     <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${assetTypeInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${assetSubItemInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="asset">Asset:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'asset','errors')}">
+                                    <g:select optionKey="id" from="${Asset.list()}" name="asset.id" value="${assetSubItemInstance?.asset?.id}" noSelection="['null':'']"></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="parentItem">Parent Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'parentItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="parentItem.id" value="${assetSubItemInstance?.parentItem?.id}" noSelection="['null':'']"></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="assetSubItemExtendedAttributes">Asset Sub Item Extended Attributes:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'assetSubItemExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="a" in="${assetSubItemInstance?.assetSubItemExtendedAttributes?}">
+    <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="assetSubItemExtendedAttribute" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItemExtendedAttribute</g:link>
+
                                 </td>
                             </tr> 
@@ -92,12 +94,12 @@
                                     <label for="maintenanceActions">Maintenance Actions:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'maintenanceActions','errors')}">
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'maintenanceActions','errors')}">
                                     
 <ul>
-<g:each var="m" in="${assetTypeInstance?.maintenanceActions?}">
+<g:each var="m" in="${assetSubItemInstance?.maintenanceActions?}">
     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="maintenanceAction" params="['assetType.id':assetTypeInstance?.id]" action="create">Add MaintenanceAction</g:link>
+<g:link controller="maintenanceAction" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add MaintenanceAction</g:link>
 
                                 </td>
@@ -106,8 +108,15 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="name">Name:</label>
+                                    <label for="subItems">Sub Items:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetTypeInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetTypeInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'subItems','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${assetSubItemInstance?.subItems?}">
+    <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="assetSubItem" params="['assetSubItem.id':assetSubItemInstance?.id]" action="create">Add AssetSubItem</g:link>
+
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/assetSubItem/list.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItem/list.gsp	(revision 267)
+++ /trunk/grails-app/views/assetSubItem/list.gsp	(revision 268)
@@ -5,12 +5,12 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>AssetType List</title>
+        <title>AssetSubItem List</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="create" action="create">New AssetType</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span>
         </div>
         <div class="body">
-            <h1>AssetType List</h1>
+            <h1>AssetSubItem List</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -23,5 +23,5 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
-                   	        <g:sortableColumn property="costCode" title="Cost Code" />
+                   	        <g:sortableColumn property="name" title="Name" />
                         
                    	        <g:sortableColumn property="description" title="Description" />
@@ -29,21 +29,25 @@
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
-                   	        <g:sortableColumn property="name" title="Name" />
-                        
+                   	        <th>Asset</th>
+                   	    
+                   	        <th>Parent Item</th>
+                   	    
                         </tr>
                     </thead>
                     <tbody>
-                    <g:each in="${assetTypeInstanceList}" status="i" var="assetTypeInstance">
+                    <g:each in="${assetSubItemInstanceList}" status="i" var="assetSubItemInstance">
                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                         
-                            <td><g:link action="show" id="${assetTypeInstance.id}">${fieldValue(bean:assetTypeInstance, field:'id')}</g:link></td>
+                            <td><g:link action="show" id="${assetSubItemInstance.id}">${fieldValue(bean:assetSubItemInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:assetTypeInstance, field:'costCode')}</td>
+                            <td>${fieldValue(bean:assetSubItemInstance, field:'name')}</td>
                         
-                            <td>${fieldValue(bean:assetTypeInstance, field:'description')}</td>
+                            <td>${fieldValue(bean:assetSubItemInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:assetTypeInstance, field:'isActive')}</td>
+                            <td>${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td>
                         
-                            <td>${fieldValue(bean:assetTypeInstance, field:'name')}</td>
+                            <td>${fieldValue(bean:assetSubItemInstance, field:'asset')}</td>
+                        
+                            <td>${fieldValue(bean:assetSubItemInstance, field:'parentItem')}</td>
                         
                         </tr>
@@ -53,5 +57,5 @@
             </div>
             <div class="paginateButtons">
-                <g:paginate total="${assetTypeInstanceTotal}" />
+                <g:paginate total="${assetSubItemInstanceTotal}" />
             </div>
         </div>
Index: /trunk/grails-app/views/assetSubItem/show.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItem/show.gsp	(revision 267)
+++ /trunk/grails-app/views/assetSubItem/show.gsp	(revision 268)
@@ -5,13 +5,13 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Show AssetType</title>
+        <title>Show AssetSubItem</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetType List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New AssetType</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItem List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItem</g:link></span>
         </div>
         <div class="body">
-            <h1>Show AssetType</h1>
+            <h1>Show AssetSubItem</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -25,38 +25,12 @@
                             <td valign="top" class="name">Id:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'id')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'id')}</td>
                             
                         </tr>
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Assemblies:</td>
+                            <td valign="top" class="name">Name:</td>
                             
-                            <td  valign="top" style="text-align:left;" class="value">
-                                <ul>
-                                <g:each var="a" in="${assetTypeInstance.assemblies}">
-                                    <li><g:link controller="assembly" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-                                </g:each>
-                                </ul>
-                            </td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Assets:</td>
-                            
-                            <td  valign="top" style="text-align:left;" class="value">
-                                <ul>
-                                <g:each var="a" in="${assetTypeInstance.assets}">
-                                    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-                                </g:each>
-                                </ul>
-                            </td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'costCode')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'name')}</td>
                             
                         </tr>
@@ -65,5 +39,5 @@
                             <td valign="top" class="name">Description:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'description')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'description')}</td>
                             
                         </tr>
@@ -72,5 +46,32 @@
                             <td valign="top" class="name">Is Active:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'isActive')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Asset:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="asset" action="show" id="${assetSubItemInstance?.asset?.id}">${assetSubItemInstance?.asset?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Parent Item:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${assetSubItemInstance?.parentItem?.id}">${assetSubItemInstance?.parentItem?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Asset Sub Item Extended Attributes:</td>
+                            
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="a" in="${assetSubItemInstance.assetSubItemExtendedAttributes}">
+                                    <li><g:link controller="assetSubItemExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
                             
                         </tr>
@@ -81,5 +82,5 @@
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="m" in="${assetTypeInstance.maintenanceActions}">
+                                <g:each var="m" in="${assetSubItemInstance.maintenanceActions}">
                                     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
                                 </g:each>
@@ -90,7 +91,13 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Name:</td>
+                            <td valign="top" class="name">Sub Items:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetTypeInstance, field:'name')}</td>
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${assetSubItemInstance.subItems}">
+                                    <li><g:link controller="assetSubItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
                             
                         </tr>
@@ -101,5 +108,5 @@
             <div class="buttons">
                 <g:form>
-                    <input type="hidden" name="id" value="${assetTypeInstance?.id}" />
+                    <input type="hidden" name="id" value="${assetSubItemInstance?.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>
Index: /trunk/grails-app/views/assetSubItemExtendedAttribute/create.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItemExtendedAttribute/create.gsp	(revision 268)
+++ /trunk/grails-app/views/assetSubItemExtendedAttribute/create.gsp	(revision 268)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create AssetSubItemExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItemExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create AssetSubItemExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${assetSubItemExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${assetSubItemExtendedAttributeInstance}" 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="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetSubItemExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${assetSubItemExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="assetSubItem">Asset Sub Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'assetSubItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.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/assetSubItemExtendedAttribute/edit.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItemExtendedAttribute/edit.gsp	(revision 268)
+++ /trunk/grails-app/views/assetSubItemExtendedAttribute/edit.gsp	(revision 268)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit AssetSubItemExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItemExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItemExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit AssetSubItemExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${assetSubItemExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${assetSubItemExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${assetSubItemExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${assetSubItemExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:assetSubItemExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${assetSubItemExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="assetSubItem">Asset Sub Item:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'assetSubItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:assetSubItemExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.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/assetSubItemExtendedAttribute/list.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItemExtendedAttribute/list.gsp	(revision 268)
+++ /trunk/grails-app/views/assetSubItemExtendedAttribute/list.gsp	(revision 268)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>AssetSubItemExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItemExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>AssetSubItemExtendedAttribute 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="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Asset Sub Item</th>
+                   	    
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${assetSubItemExtendedAttributeInstanceList}" status="i" var="assetSubItemExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${assetSubItemExtendedAttributeInstance.id}">${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'assetSubItem')}</td>
+                        
+                            <td>${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${assetSubItemExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/assetSubItemExtendedAttribute/show.gsp
===================================================================
--- /trunk/grails-app/views/assetSubItemExtendedAttribute/show.gsp	(revision 268)
+++ /trunk/grails-app/views/assetSubItemExtendedAttribute/show.gsp	(revision 268)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show AssetSubItemExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">AssetSubItemExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New AssetSubItemExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show AssetSubItemExtendedAttribute</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:assetSubItemExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:assetSubItemExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Asset Sub Item:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${assetSubItemExtendedAttributeInstance?.assetSubItem?.id}">${assetSubItemExtendedAttributeInstance?.assetSubItem?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.id}">${assetSubItemExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${assetSubItemExtendedAttributeInstance?.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/department/create.gsp
===================================================================
--- /trunk/grails-app/views/department/create.gsp	(revision 267)
+++ /trunk/grails-app/views/department/create.gsp	(revision 268)
@@ -31,5 +31,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -40,14 +40,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/department/edit.gsp
===================================================================
--- /trunk/grails-app/views/department/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/department/edit.gsp	(revision 268)
@@ -34,5 +34,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:departmentInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -43,14 +43,5 @@
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:departmentInstance,field:'costCode')}"/>
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:departmentInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -67,14 +58,14 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="persons">Persons:</label>
+                                    <label for="departmentExtendedAttributes">Department Extended Attributes:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'persons','errors')}">
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'departmentExtendedAttributes','errors')}">
                                     
 <ul>
-<g:each var="p" in="${departmentInstance?.persons?}">
-    <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
+<g:each var="d" in="${departmentInstance?.departmentExtendedAttributes?}">
+    <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="person" params="['department.id':departmentInstance?.id]" action="create">Add Person</g:link>
+<g:link controller="departmentExtendedAttribute" params="['department.id':departmentInstance?.id]" action="create">Add DepartmentExtendedAttribute</g:link>
 
                                 </td>
@@ -83,14 +74,14 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="systemSections">System Sections:</label>
+                                    <label for="sections">Sections:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'systemSections','errors')}">
+                                <td valign="top" class="value ${hasErrors(bean:departmentInstance,field:'sections','errors')}">
                                     
 <ul>
-<g:each var="s" in="${departmentInstance?.systemSections?}">
-    <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+<g:each var="s" in="${departmentInstance?.sections?}">
+    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="systemSection" params="['department.id':departmentInstance?.id]" action="create">Add SystemSection</g:link>
+<g:link controller="section" params="['department.id':departmentInstance?.id]" action="create">Add Section</g:link>
 
                                 </td>
Index: /trunk/grails-app/views/department/list.gsp
===================================================================
--- /trunk/grails-app/views/department/list.gsp	(revision 267)
+++ /trunk/grails-app/views/department/list.gsp	(revision 268)
@@ -27,6 +27,4 @@
                    	        <g:sortableColumn property="description" title="Description" />
                         
-                   	        <g:sortableColumn property="costCode" title="Cost Code" />
-                        
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
@@ -43,6 +41,4 @@
                             <td>${fieldValue(bean:departmentInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:departmentInstance, field:'costCode')}</td>
-                        
                             <td>${fieldValue(bean:departmentInstance, field:'isActive')}</td>
                         
Index: /trunk/grails-app/views/department/show.gsp
===================================================================
--- /trunk/grails-app/views/department/show.gsp	(revision 267)
+++ /trunk/grails-app/views/department/show.gsp	(revision 268)
@@ -44,11 +44,4 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:departmentInstance, field:'costCode')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
                             <td valign="top" class="name">Is Active:</td>
                             
@@ -58,10 +51,10 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Persons:</td>
+                            <td valign="top" class="name">Department Extended Attributes:</td>
                             
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="p" in="${departmentInstance.persons}">
-                                    <li><g:link controller="person" action="show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
+                                <g:each var="d" in="${departmentInstance.departmentExtendedAttributes}">
+                                    <li><g:link controller="departmentExtendedAttribute" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
@@ -71,10 +64,10 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">System Sections:</td>
+                            <td valign="top" class="name">Sections:</td>
                             
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="s" in="${departmentInstance.systemSections}">
-                                    <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                <g:each var="s" in="${departmentInstance.sections}">
+                                    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
Index: /trunk/grails-app/views/departmentExtendedAttribute/create.gsp
===================================================================
--- /trunk/grails-app/views/departmentExtendedAttribute/create.gsp	(revision 268)
+++ /trunk/grails-app/views/departmentExtendedAttribute/create.gsp	(revision 268)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create DepartmentExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentExtendedAttributeInstance}" 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="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="department">Department:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.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/departmentExtendedAttribute/edit.gsp
===================================================================
--- /trunk/grails-app/views/departmentExtendedAttribute/edit.gsp	(revision 268)
+++ /trunk/grails-app/views/departmentExtendedAttribute/edit.gsp	(revision 268)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit DepartmentExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${departmentExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${departmentExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${departmentExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${departmentExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:departmentExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${departmentExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="department">Department:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${departmentExtendedAttributeInstance?.department?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:departmentExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${departmentExtendedAttributeInstance?.extendedAttributeType?.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/departmentExtendedAttribute/list.gsp
===================================================================
--- /trunk/grails-app/views/departmentExtendedAttribute/list.gsp	(revision 268)
+++ /trunk/grails-app/views/departmentExtendedAttribute/list.gsp	(revision 268)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>DepartmentExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>DepartmentExtendedAttribute 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="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Department</th>
+                   	    
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${departmentExtendedAttributeInstanceList}" status="i" var="departmentExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${departmentExtendedAttributeInstance.id}">${fieldValue(bean:departmentExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'department')}</td>
+                        
+                            <td>${fieldValue(bean:departmentExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${departmentExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/departmentExtendedAttribute/show.gsp
===================================================================
--- /trunk/grails-app/views/departmentExtendedAttribute/show.gsp	(revision 268)
+++ /trunk/grails-app/views/departmentExtendedAttribute/show.gsp	(revision 268)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show DepartmentExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">DepartmentExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New DepartmentExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show DepartmentExtendedAttribute</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:departmentExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:departmentExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Department:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="department" action="show" id="${departmentExtendedAttributeInstance?.department?.id}">${departmentExtendedAttributeInstance?.department?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${departmentExtendedAttributeInstance?.extendedAttributeType?.id}">${departmentExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${departmentExtendedAttributeInstance?.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/extendedAttributeType/create.gsp
===================================================================
--- /trunk/grails-app/views/extendedAttributeType/create.gsp	(revision 267)
+++ /trunk/grails-app/views/extendedAttributeType/create.gsp	(revision 268)
@@ -5,18 +5,18 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Create AssetExtendedAttributeType</title>
+        <title>Create ExtendedAttributeType</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttributeType List</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
         </div>
         <div class="body">
-            <h1>Create AssetExtendedAttributeType</h1>
+            <h1>Create ExtendedAttributeType</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${assetExtendedAttributeTypeInstance}">
+            <g:hasErrors bean="${extendedAttributeTypeInstance}">
             <div class="errors">
-                <g:renderErrors bean="${assetExtendedAttributeTypeInstance}" as="list" />
+                <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" />
             </div>
             </g:hasErrors>
@@ -28,8 +28,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -39,15 +48,6 @@
                                     <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="name">Name:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/extendedAttributeType/edit.gsp
===================================================================
--- /trunk/grails-app/views/extendedAttributeType/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/extendedAttributeType/edit.gsp	(revision 268)
@@ -5,24 +5,24 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Edit AssetExtendedAttributeType</title>
+        <title>Edit ExtendedAttributeType</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttributeType List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
         </div>
         <div class="body">
-            <h1>Edit AssetExtendedAttributeType</h1>
+            <h1>Edit ExtendedAttributeType</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${assetExtendedAttributeTypeInstance}">
+            <g:hasErrors bean="${extendedAttributeTypeInstance}">
             <div class="errors">
-                <g:renderErrors bean="${assetExtendedAttributeTypeInstance}" as="list" />
+                <g:renderErrors bean="${extendedAttributeTypeInstance}" as="list" />
             </div>
             </g:hasErrors>
             <g:form method="post" >
-                <input type="hidden" name="id" value="${assetExtendedAttributeTypeInstance?.id}" />
-                <input type="hidden" name="version" value="${assetExtendedAttributeTypeInstance?.version}" />
+                <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.id}" />
+                <input type="hidden" name="version" value="${extendedAttributeTypeInstance?.version}" />
                 <div class="dialog">
                     <table>
@@ -31,15 +31,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assetExtendedAttributes">Asset Extended Attributes:</label>
+                                    <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'assetExtendedAttributes','errors')}">
-                                    
-<ul>
-<g:each var="a" in="${assetExtendedAttributeTypeInstance?.assetExtendedAttributes?}">
-    <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="assetExtendedAttribute" params="['assetExtendedAttributeType.id':assetExtendedAttributeTypeInstance?.id]" action="create">Add AssetExtendedAttribute</g:link>
-
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -49,6 +42,6 @@
                                     <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'description')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:extendedAttributeTypeInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -58,15 +51,6 @@
                                     <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${assetExtendedAttributeTypeInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="name">Name:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:assetExtendedAttributeTypeInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:assetExtendedAttributeTypeInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:extendedAttributeTypeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${extendedAttributeTypeInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/extendedAttributeType/list.gsp
===================================================================
--- /trunk/grails-app/views/extendedAttributeType/list.gsp	(revision 267)
+++ /trunk/grails-app/views/extendedAttributeType/list.gsp	(revision 268)
@@ -5,12 +5,12 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>AssetExtendedAttributeType List</title>
+        <title>ExtendedAttributeType List</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
         </div>
         <div class="body">
-            <h1>AssetExtendedAttributeType List</h1>
+            <h1>ExtendedAttributeType List</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -23,23 +23,23 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
                    	        <g:sortableColumn property="description" title="Description" />
                         
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
-                   	        <g:sortableColumn property="name" title="Name" />
-                        
                         </tr>
                     </thead>
                     <tbody>
-                    <g:each in="${assetExtendedAttributeTypeInstanceList}" status="i" var="assetExtendedAttributeTypeInstance">
+                    <g:each in="${extendedAttributeTypeInstanceList}" status="i" var="extendedAttributeTypeInstance">
                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                         
-                            <td><g:link action="show" id="${assetExtendedAttributeTypeInstance.id}">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'id')}</g:link></td>
+                            <td><g:link action="show" id="${extendedAttributeTypeInstance.id}">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'description')}</td>
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td>
                         
-                            <td>${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'isActive')}</td>
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'name')}</td>
+                            <td>${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td>
                         
                         </tr>
@@ -49,5 +49,5 @@
             </div>
             <div class="paginateButtons">
-                <g:paginate total="${assetExtendedAttributeTypeInstanceTotal}" />
+                <g:paginate total="${extendedAttributeTypeInstanceTotal}" />
             </div>
         </div>
Index: /trunk/grails-app/views/extendedAttributeType/show.gsp
===================================================================
--- /trunk/grails-app/views/extendedAttributeType/show.gsp	(revision 267)
+++ /trunk/grails-app/views/extendedAttributeType/show.gsp	(revision 268)
@@ -5,13 +5,13 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Show AssetExtendedAttributeType</title>
+        <title>Show ExtendedAttributeType</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">AssetExtendedAttributeType List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New AssetExtendedAttributeType</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">ExtendedAttributeType List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New ExtendedAttributeType</g:link></span>
         </div>
         <div class="body">
-            <h1>Show AssetExtendedAttributeType</h1>
+            <h1>Show ExtendedAttributeType</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -25,18 +25,12 @@
                             <td valign="top" class="name">Id:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'id')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'id')}</td>
                             
                         </tr>
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Asset Extended Attributes:</td>
+                            <td valign="top" class="name">Name:</td>
                             
-                            <td  valign="top" style="text-align:left;" class="value">
-                                <ul>
-                                <g:each var="a" in="${assetExtendedAttributeTypeInstance.assetExtendedAttributes}">
-                                    <li><g:link controller="assetExtendedAttribute" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-                                </g:each>
-                                </ul>
-                            </td>
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'name')}</td>
                             
                         </tr>
@@ -45,5 +39,5 @@
                             <td valign="top" class="name">Description:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'description')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'description')}</td>
                             
                         </tr>
@@ -52,12 +46,5 @@
                             <td valign="top" class="name">Is Active:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'isActive')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Name:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:assetExtendedAttributeTypeInstance, field:'name')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:extendedAttributeTypeInstance, field:'isActive')}</td>
                             
                         </tr>
@@ -68,5 +55,5 @@
             <div class="buttons">
                 <g:form>
-                    <input type="hidden" name="id" value="${assetExtendedAttributeTypeInstance?.id}" />
+                    <input type="hidden" name="id" value="${extendedAttributeTypeInstance?.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>
Index: /trunk/grails-app/views/maintenanceAction/create.gsp
===================================================================
--- /trunk/grails-app/views/maintenanceAction/create.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenanceAction/create.gsp	(revision 268)
@@ -28,17 +28,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="maintenancePolicy">Maintenance Policy:</label>
+                                    <label for="section">Section:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}">
-                                    <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="systemSection">System Section:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}">
-                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -55,8 +46,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assetType">Asset Type:</label>
+                                    <label for="assetSubItem">Asset Sub Item:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetType','errors')}">
-                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -64,26 +55,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assembly">Assembly:</label>
+                                    <label for="maintenancePolicy">Maintenance Policy:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}">
-                                    <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="subAssembly">Sub Assembly:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}">
-                                    <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="componentItem">Component Item:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}">
-                                    <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}">
+                                    <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -109,8 +82,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
+                                    <label for="reasoning">Reasoning:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}">
+                                    <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>
                                 </td>
                             </tr> 
@@ -118,8 +91,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="reasoning">Reasoning:</label>
+                                    <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}">
-                                    <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/maintenanceAction/edit.gsp
===================================================================
--- /trunk/grails-app/views/maintenanceAction/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenanceAction/edit.gsp	(revision 268)
@@ -31,17 +31,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="maintenancePolicy">Maintenance Policy:</label>
+                                    <label for="section">Section:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}">
-                                    <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="systemSection">System Section:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'systemSection','errors')}">
-                                    <g:select optionKey="id" from="${SystemSection.list()}" name="systemSection.id" value="${maintenanceActionInstance?.systemSection?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${maintenanceActionInstance?.section?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -58,8 +49,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assetType">Asset Type:</label>
+                                    <label for="assetSubItem">Asset Sub Item:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetType','errors')}">
-                                    <g:select optionKey="id" from="${AssetType.list()}" name="assetType.id" value="${maintenanceActionInstance?.assetType?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assetSubItem','errors')}">
+                                    <g:select optionKey="id" from="${AssetSubItem.list()}" name="assetSubItem.id" value="${maintenanceActionInstance?.assetSubItem?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -67,26 +58,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assembly">Assembly:</label>
+                                    <label for="maintenancePolicy">Maintenance Policy:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'assembly','errors')}">
-                                    <g:select optionKey="id" from="${Assembly.list()}" name="assembly.id" value="${maintenanceActionInstance?.assembly?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="subAssembly">Sub Assembly:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'subAssembly','errors')}">
-                                    <g:select optionKey="id" from="${SubAssembly.list()}" name="subAssembly.id" value="${maintenanceActionInstance?.subAssembly?.id}" noSelection="['null':'']"></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="componentItem">Component Item:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'componentItem','errors')}">
-                                    <g:select optionKey="id" from="${ComponentItem.list()}" name="componentItem.id" value="${maintenanceActionInstance?.componentItem?.id}" noSelection="['null':'']"></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'maintenancePolicy','errors')}">
+                                    <g:select optionKey="id" from="${MaintenancePolicy.list()}" name="maintenancePolicy.id" value="${maintenanceActionInstance?.maintenancePolicy?.id}" noSelection="['null':'']"></g:select>
                                 </td>
                             </tr> 
@@ -112,8 +85,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
+                                    <label for="reasoning">Reasoning:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}">
+                                    <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>
                                 </td>
                             </tr> 
@@ -121,8 +94,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="reasoning">Reasoning:</label>
+                                    <label for="isActive">Is Active:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'reasoning','errors')}">
-                                    <input type="text" id="reasoning" name="reasoning" value="${fieldValue(bean:maintenanceActionInstance,field:'reasoning')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:maintenanceActionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${maintenanceActionInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/maintenanceAction/list.gsp
===================================================================
--- /trunk/grails-app/views/maintenanceAction/list.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenanceAction/list.gsp	(revision 268)
@@ -23,14 +23,14 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
-                   	        <th>Maintenance Policy</th>
-                   	    
-                   	        <th>System Section</th>
+                   	        <th>Section</th>
                    	    
                    	        <th>Asset</th>
                    	    
-                   	        <th>Asset Type</th>
+                   	        <th>Asset Sub Item</th>
                    	    
-                   	        <th>Assembly</th>
+                   	        <th>Maintenance Policy</th>
                    	    
+                   	        <g:sortableColumn property="procedureStepNumber" title="Procedure Step Number" />
+                        
                         </tr>
                     </thead>
@@ -41,13 +41,13 @@
                             <td><g:link action="show" id="${maintenanceActionInstance.id}">${fieldValue(bean:maintenanceActionInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td>
-                        
-                            <td>${fieldValue(bean:maintenanceActionInstance, field:'systemSection')}</td>
+                            <td>${fieldValue(bean:maintenanceActionInstance, field:'section')}</td>
                         
                             <td>${fieldValue(bean:maintenanceActionInstance, field:'asset')}</td>
                         
-                            <td>${fieldValue(bean:maintenanceActionInstance, field:'assetType')}</td>
+                            <td>${fieldValue(bean:maintenanceActionInstance, field:'assetSubItem')}</td>
                         
-                            <td>${fieldValue(bean:maintenanceActionInstance, field:'assembly')}</td>
+                            <td>${fieldValue(bean:maintenanceActionInstance, field:'maintenancePolicy')}</td>
+                        
+                            <td>${fieldValue(bean:maintenanceActionInstance, field:'procedureStepNumber')}</td>
                         
                         </tr>
Index: /trunk/grails-app/views/maintenanceAction/show.gsp
===================================================================
--- /trunk/grails-app/views/maintenanceAction/show.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenanceAction/show.gsp	(revision 268)
@@ -30,14 +30,7 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Maintenance Policy:</td>
+                            <td valign="top" class="name">Section:</td>
                             
-                            <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">System Section:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="systemSection" action="show" id="${maintenanceActionInstance?.systemSection?.id}">${maintenanceActionInstance?.systemSection?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="section" action="show" id="${maintenanceActionInstance?.section?.id}">${maintenanceActionInstance?.section?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -51,28 +44,14 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Asset Type:</td>
+                            <td valign="top" class="name">Asset Sub Item:</td>
                             
-                            <td valign="top" class="value"><g:link controller="assetType" action="show" id="${maintenanceActionInstance?.assetType?.id}">${maintenanceActionInstance?.assetType?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="assetSubItem" action="show" id="${maintenanceActionInstance?.assetSubItem?.id}">${maintenanceActionInstance?.assetSubItem?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Assembly:</td>
+                            <td valign="top" class="name">Maintenance Policy:</td>
                             
-                            <td valign="top" class="value"><g:link controller="assembly" action="show" id="${maintenanceActionInstance?.assembly?.id}">${maintenanceActionInstance?.assembly?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Sub Assembly:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="subAssembly" action="show" id="${maintenanceActionInstance?.subAssembly?.id}">${maintenanceActionInstance?.subAssembly?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Component Item:</td>
-                            
-                            <td valign="top" class="value"><g:link controller="componentItem" action="show" id="${maintenanceActionInstance?.componentItem?.id}">${maintenanceActionInstance?.componentItem?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="maintenancePolicy" action="show" id="${maintenanceActionInstance?.maintenancePolicy?.id}">${maintenanceActionInstance?.maintenancePolicy?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -93,14 +72,14 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Is Active:</td>
+                            <td valign="top" class="name">Reasoning:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'reasoning')}</td>
                             
                         </tr>
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Reasoning:</td>
+                            <td valign="top" class="name">Is Active:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'reasoning')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:maintenanceActionInstance, field:'isActive')}</td>
                             
                         </tr>
Index: /trunk/grails-app/views/maintenancePolicy/create.gsp
===================================================================
--- /trunk/grails-app/views/maintenancePolicy/create.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenancePolicy/create.gsp	(revision 268)
@@ -28,8 +28,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
                                     <label for="description">Description:</label>
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -41,13 +50,4 @@
                                 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'isActive','errors')}">
                                     <g:checkBox name="isActive" value="${maintenancePolicyInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="name">Name:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/maintenancePolicy/edit.gsp
===================================================================
--- /trunk/grails-app/views/maintenancePolicy/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenancePolicy/edit.gsp	(revision 268)
@@ -31,8 +31,17 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
+                                    <label for="name">Name:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
                                     <label for="description">Description:</label>
                                 </td>
                                 <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:maintenancePolicyInstance,field:'description')}"/>
                                 </td>
                             </tr> 
@@ -63,13 +72,4 @@
                             </tr> 
                         
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="name">Name:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:maintenancePolicyInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:maintenancePolicyInstance,field:'name')}"/>
-                                </td>
-                            </tr> 
-                        
                         </tbody>
                     </table>
Index: /trunk/grails-app/views/maintenancePolicy/list.gsp
===================================================================
--- /trunk/grails-app/views/maintenancePolicy/list.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenancePolicy/list.gsp	(revision 268)
@@ -23,9 +23,9 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
+                   	        <g:sortableColumn property="name" title="Name" />
+                        
                    	        <g:sortableColumn property="description" title="Description" />
                         
                    	        <g:sortableColumn property="isActive" title="Is Active" />
-                        
-                   	        <g:sortableColumn property="name" title="Name" />
                         
                         </tr>
@@ -37,9 +37,9 @@
                             <td><g:link action="show" id="${maintenancePolicyInstance.id}">${fieldValue(bean:maintenancePolicyInstance, field:'id')}</g:link></td>
                         
+                            <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>
+                        
                             <td>${fieldValue(bean:maintenancePolicyInstance, field:'description')}</td>
                         
                             <td>${fieldValue(bean:maintenancePolicyInstance, field:'isActive')}</td>
-                        
-                            <td>${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>
                         
                         </tr>
Index: /trunk/grails-app/views/maintenancePolicy/show.gsp
===================================================================
--- /trunk/grails-app/views/maintenancePolicy/show.gsp	(revision 267)
+++ /trunk/grails-app/views/maintenancePolicy/show.gsp	(revision 268)
@@ -30,4 +30,11 @@
                     
                         <tr class="prop">
+                            <td valign="top" class="name">Name:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
                             <td valign="top" class="name">Description:</td>
                             
@@ -56,11 +63,4 @@
                         </tr>
                     
-                        <tr class="prop">
-                            <td valign="top" class="name">Name:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:maintenancePolicyInstance, field:'name')}</td>
-                            
-                        </tr>
-                    
                     </tbody>
                 </table>
Index: /trunk/grails-app/views/section/create.gsp
===================================================================
--- /trunk/grails-app/views/section/create.gsp	(revision 267)
+++ /trunk/grails-app/views/section/create.gsp	(revision 268)
@@ -5,18 +5,18 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Create SystemSection</title>
+        <title>Create Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
         </div>
         <div class="body">
-            <h1>Create SystemSection</h1>
+            <h1>Create Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${systemSectionInstance}">
+            <g:hasErrors bean="${sectionInstance}">
             <div class="errors">
-                <g:renderErrors bean="${systemSectionInstance}" as="list" />
+                <g:renderErrors bean="${sectionInstance}" as="list" />
             </div>
             </g:hasErrors>
@@ -28,8 +28,26 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
+                                    <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="description">Description:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox>
                                 </td>
                             </tr> 
@@ -39,33 +57,6 @@
                                     <label for="department">Department:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
-                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="description">Description:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="name">Name:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
                                 </td>
                             </tr> 
@@ -75,6 +66,6 @@
                                     <label for="site">Site:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
-                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/section/edit.gsp
===================================================================
--- /trunk/grails-app/views/section/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/section/edit.gsp	(revision 268)
@@ -5,24 +5,24 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Edit SystemSection</title>
+        <title>Edit Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>Edit SystemSection</h1>
+            <h1>Edit Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
             </g:if>
-            <g:hasErrors bean="${systemSectionInstance}">
+            <g:hasErrors bean="${sectionInstance}">
             <div class="errors">
-                <g:renderErrors bean="${systemSectionInstance}" as="list" />
+                <g:renderErrors bean="${sectionInstance}" as="list" />
             </div>
             </g:hasErrors>
             <g:form method="post" >
-                <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
-                <input type="hidden" name="version" value="${systemSectionInstance?.version}" />
+                <input type="hidden" name="id" value="${sectionInstance?.id}" />
+                <input type="hidden" name="version" value="${sectionInstance?.version}" />
                 <div class="dialog">
                     <table>
@@ -31,15 +31,8 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="assets">Assets:</label>
+                                    <label for="name">Name:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'assets','errors')}">
-                                    
-<ul>
-<g:each var="a" in="${systemSectionInstance?.assets?}">
-    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="asset" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add Asset</g:link>
-
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'name','errors')}">
+                                    <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:sectionInstance,field:'name')}"/>
                                 </td>
                             </tr> 
@@ -47,8 +40,33 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
+                                    <label for="description">Description:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:systemSectionInstance,field:'costCode')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'description','errors')}">
+                                    <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:sectionInstance,field:'description')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="assets">Assets:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'assets','errors')}">
+                                    
+<ul>
+<g:each var="a" in="${sectionInstance?.assets?}">
+    <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="asset" params="['section.id':sectionInstance?.id]" action="create">Add Asset</g:link>
+
                                 </td>
                             </tr> 
@@ -58,24 +76,6 @@
                                     <label for="department">Department:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'department','errors')}">
-                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${systemSectionInstance?.department?.id}" ></g:select>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="description">Description:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'description','errors')}">
-                                    <input type="text" id="description" name="description" value="${fieldValue(bean:systemSectionInstance,field:'description')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="isActive">Is Active:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'isActive','errors')}">
-                                    <g:checkBox name="isActive" value="${systemSectionInstance?.isActive}" ></g:checkBox>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'department','errors')}">
+                                    <g:select optionKey="id" from="${Department.list()}" name="department.id" value="${sectionInstance?.department?.id}" ></g:select>
                                 </td>
                             </tr> 
@@ -85,12 +85,12 @@
                                     <label for="maintenanceActions">Maintenance Actions:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'maintenanceActions','errors')}">
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'maintenanceActions','errors')}">
                                     
 <ul>
-<g:each var="m" in="${systemSectionInstance?.maintenanceActions?}">
+<g:each var="m" in="${sectionInstance?.maintenanceActions?}">
     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="maintenanceAction" params="['systemSection.id':systemSectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
+<g:link controller="maintenanceAction" params="['section.id':sectionInstance?.id]" action="create">Add MaintenanceAction</g:link>
 
                                 </td>
@@ -99,8 +99,15 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="name">Name:</label>
+                                    <label for="sectionExtendedAttributes">Section Extended Attributes:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'name','errors')}">
-                                    <input type="text" id="name" name="name" value="${fieldValue(bean:systemSectionInstance,field:'name')}"/>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'sectionExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${sectionInstance?.sectionExtendedAttributes?}">
+    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="sectionExtendedAttribute" params="['section.id':sectionInstance?.id]" action="create">Add SectionExtendedAttribute</g:link>
+
                                 </td>
                             </tr> 
@@ -110,6 +117,6 @@
                                     <label for="site">Site:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:systemSectionInstance,field:'site','errors')}">
-                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${systemSectionInstance?.site?.id}" ></g:select>
+                                <td valign="top" class="value ${hasErrors(bean:sectionInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${sectionInstance?.site?.id}" ></g:select>
                                 </td>
                             </tr> 
Index: /trunk/grails-app/views/section/list.gsp
===================================================================
--- /trunk/grails-app/views/section/list.gsp	(revision 267)
+++ /trunk/grails-app/views/section/list.gsp	(revision 268)
@@ -5,12 +5,12 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>SystemSection List</title>
+        <title>Section List</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>SystemSection List</h1>
+            <h1>Section List</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -23,31 +23,31 @@
                    	        <g:sortableColumn property="id" title="Id" />
                         
-                   	        <g:sortableColumn property="costCode" title="Cost Code" />
+                   	        <g:sortableColumn property="name" title="Name" />
                         
-                   	        <th>Department</th>
-                   	    
                    	        <g:sortableColumn property="description" title="Description" />
                         
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
-                   	        <g:sortableColumn property="name" title="Name" />
-                        
+                   	        <th>Department</th>
+                   	    
+                   	        <th>Site</th>
+                   	    
                         </tr>
                     </thead>
                     <tbody>
-                    <g:each in="${systemSectionInstanceList}" status="i" var="systemSectionInstance">
+                    <g:each in="${sectionInstanceList}" status="i" var="sectionInstance">
                         <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                         
-                            <td><g:link action="show" id="${systemSectionInstance.id}">${fieldValue(bean:systemSectionInstance, field:'id')}</g:link></td>
+                            <td><g:link action="show" id="${sectionInstance.id}">${fieldValue(bean:sectionInstance, field:'id')}</g:link></td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'name')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'department')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'description')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'isActive')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'department')}</td>
                         
-                            <td>${fieldValue(bean:systemSectionInstance, field:'name')}</td>
+                            <td>${fieldValue(bean:sectionInstance, field:'site')}</td>
                         
                         </tr>
@@ -57,5 +57,5 @@
             </div>
             <div class="paginateButtons">
-                <g:paginate total="${systemSectionInstanceTotal}" />
+                <g:paginate total="${sectionInstanceTotal}" />
             </div>
         </div>
Index: /trunk/grails-app/views/section/show.gsp
===================================================================
--- /trunk/grails-app/views/section/show.gsp	(revision 267)
+++ /trunk/grails-app/views/section/show.gsp	(revision 268)
@@ -5,13 +5,13 @@
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
         <meta name="layout" content="main" />
-        <title>Show SystemSection</title>
+        <title>Show Section</title>
     </head>
     <body>
         <div class="nav">
-            <span class="menuButton"><g:link class="list" action="list">SystemSection List</g:link></span>
-            <span class="menuButton"><g:link class="create" action="create">New SystemSection</g:link></span>
+            <span class="menuButton"><g:link class="list" action="list">Section List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New Section</g:link></span>
         </div>
         <div class="body">
-            <h1>Show SystemSection</h1>
+            <h1>Show Section</h1>
             <g:if test="${flash.message}">
             <div class="message">${flash.message}</div>
@@ -25,5 +25,26 @@
                             <td valign="top" class="name">Id:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'id')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Name:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'name')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Description:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'description')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionInstance, field:'isActive')}</td>
                             
                         </tr>
@@ -34,5 +55,5 @@
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="a" in="${systemSectionInstance.assets}">
+                                <g:each var="a" in="${sectionInstance.assets}">
                                     <li><g:link controller="asset" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>
                                 </g:each>
@@ -43,28 +64,7 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'costCode')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
                             <td valign="top" class="name">Department:</td>
                             
-                            <td valign="top" class="value"><g:link controller="department" action="show" id="${systemSectionInstance?.department?.id}">${systemSectionInstance?.department?.encodeAsHTML()}</g:link></td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Description:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'description')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">Is Active:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'isActive')}</td>
+                            <td valign="top" class="value"><g:link controller="department" action="show" id="${sectionInstance?.department?.id}">${sectionInstance?.department?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -75,5 +75,5 @@
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="m" in="${systemSectionInstance.maintenanceActions}">
+                                <g:each var="m" in="${sectionInstance.maintenanceActions}">
                                     <li><g:link controller="maintenanceAction" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>
                                 </g:each>
@@ -84,7 +84,13 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Name:</td>
+                            <td valign="top" class="name">Section Extended Attributes:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:systemSectionInstance, field:'name')}</td>
+                            <td  valign="top" style="text-align:left;" class="value">
+                                <ul>
+                                <g:each var="s" in="${sectionInstance.sectionExtendedAttributes}">
+                                    <li><g:link controller="sectionExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                </g:each>
+                                </ul>
+                            </td>
                             
                         </tr>
@@ -93,5 +99,5 @@
                             <td valign="top" class="name">Site:</td>
                             
-                            <td valign="top" class="value"><g:link controller="site" action="show" id="${systemSectionInstance?.site?.id}">${systemSectionInstance?.site?.encodeAsHTML()}</g:link></td>
+                            <td valign="top" class="value"><g:link controller="site" action="show" id="${sectionInstance?.site?.id}">${sectionInstance?.site?.encodeAsHTML()}</g:link></td>
                             
                         </tr>
@@ -102,5 +108,5 @@
             <div class="buttons">
                 <g:form>
-                    <input type="hidden" name="id" value="${systemSectionInstance?.id}" />
+                    <input type="hidden" name="id" value="${sectionInstance?.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>
Index: /trunk/grails-app/views/sectionExtendedAttribute/create.gsp
===================================================================
--- /trunk/grails-app/views/sectionExtendedAttribute/create.gsp	(revision 268)
+++ /trunk/grails-app/views/sectionExtendedAttribute/create.gsp	(revision 268)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create SectionExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${sectionExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${sectionExtendedAttributeInstance}" 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="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:sectionExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="section">Section:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${sectionExtendedAttributeInstance?.section?.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/sectionExtendedAttribute/edit.gsp
===================================================================
--- /trunk/grails-app/views/sectionExtendedAttribute/edit.gsp	(revision 268)
+++ /trunk/grails-app/views/sectionExtendedAttribute/edit.gsp	(revision 268)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit SectionExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${sectionExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${sectionExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${sectionExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${sectionExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:sectionExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${sectionExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="section">Section:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:sectionExtendedAttributeInstance,field:'section','errors')}">
+                                    <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${sectionExtendedAttributeInstance?.section?.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/sectionExtendedAttribute/list.gsp
===================================================================
--- /trunk/grails-app/views/sectionExtendedAttribute/list.gsp	(revision 268)
+++ /trunk/grails-app/views/sectionExtendedAttribute/list.gsp	(revision 268)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>SectionExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>SectionExtendedAttribute 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="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                   	        <th>Section</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${sectionExtendedAttributeInstanceList}" status="i" var="sectionExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${sectionExtendedAttributeInstance.id}">${fieldValue(bean:sectionExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                            <td>${fieldValue(bean:sectionExtendedAttributeInstance, field:'section')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${sectionExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/sectionExtendedAttribute/show.gsp
===================================================================
--- /trunk/grails-app/views/sectionExtendedAttribute/show.gsp	(revision 268)
+++ /trunk/grails-app/views/sectionExtendedAttribute/show.gsp	(revision 268)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show SectionExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SectionExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SectionExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show SectionExtendedAttribute</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:sectionExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:sectionExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${sectionExtendedAttributeInstance?.extendedAttributeType?.id}">${sectionExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Section:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="section" action="show" id="${sectionExtendedAttributeInstance?.section?.id}">${sectionExtendedAttributeInstance?.section?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${sectionExtendedAttributeInstance?.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/site/create.gsp
===================================================================
--- /trunk/grails-app/views/site/create.gsp	(revision 267)
+++ /trunk/grails-app/views/site/create.gsp	(revision 268)
@@ -46,13 +46,4 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
                                     <label for="isActive">Is Active:</label>
                                 </td>
Index: /trunk/grails-app/views/site/edit.gsp
===================================================================
--- /trunk/grails-app/views/site/edit.gsp	(revision 267)
+++ /trunk/grails-app/views/site/edit.gsp	(revision 268)
@@ -49,29 +49,4 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="costCode">Cost Code:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'costCode','errors')}">
-                                    <input type="text" id="costCode" name="costCode" value="${fieldValue(bean:siteInstance,field:'costCode')}"/>
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
-                                    <label for="inventoryStores">Inventory Stores:</label>
-                                </td>
-                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'inventoryStores','errors')}">
-                                    
-<ul>
-<g:each var="i" in="${siteInstance?.inventoryStores?}">
-    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
-</g:each>
-</ul>
-<g:link controller="inventoryStore" params="['site.id':siteInstance?.id]" action="create">Add InventoryStore</g:link>
-
-                                </td>
-                            </tr> 
-                        
-                            <tr class="prop">
-                                <td valign="top" class="name">
                                     <label for="isActive">Is Active:</label>
                                 </td>
@@ -83,14 +58,30 @@
                             <tr class="prop">
                                 <td valign="top" class="name">
-                                    <label for="systemSections">System Sections:</label>
+                                    <label for="sections">Sections:</label>
                                 </td>
-                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'systemSections','errors')}">
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'sections','errors')}">
                                     
 <ul>
-<g:each var="s" in="${siteInstance?.systemSections?}">
-    <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+<g:each var="s" in="${siteInstance?.sections?}">
+    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
 </g:each>
 </ul>
-<g:link controller="systemSection" params="['site.id':siteInstance?.id]" action="create">Add SystemSection</g:link>
+<g:link controller="section" params="['site.id':siteInstance?.id]" action="create">Add Section</g:link>
+
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="siteExtendedAttributes">Site Extended Attributes:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteInstance,field:'siteExtendedAttributes','errors')}">
+                                    
+<ul>
+<g:each var="s" in="${siteInstance?.siteExtendedAttributes?}">
+    <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+</g:each>
+</ul>
+<g:link controller="siteExtendedAttribute" params="['site.id':siteInstance?.id]" action="create">Add SiteExtendedAttribute</g:link>
 
                                 </td>
Index: /trunk/grails-app/views/site/list.gsp
===================================================================
--- /trunk/grails-app/views/site/list.gsp	(revision 267)
+++ /trunk/grails-app/views/site/list.gsp	(revision 268)
@@ -27,6 +27,4 @@
                    	        <g:sortableColumn property="description" title="Description" />
                         
-                   	        <g:sortableColumn property="costCode" title="Cost Code" />
-                        
                    	        <g:sortableColumn property="isActive" title="Is Active" />
                         
@@ -43,6 +41,4 @@
                             <td>${fieldValue(bean:siteInstance, field:'description')}</td>
                         
-                            <td>${fieldValue(bean:siteInstance, field:'costCode')}</td>
-                        
                             <td>${fieldValue(bean:siteInstance, field:'isActive')}</td>
                         
Index: /trunk/grails-app/views/site/show.gsp
===================================================================
--- /trunk/grails-app/views/site/show.gsp	(revision 267)
+++ /trunk/grails-app/views/site/show.gsp	(revision 268)
@@ -44,17 +44,17 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Cost Code:</td>
+                            <td valign="top" class="name">Is Active:</td>
                             
-                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'costCode')}</td>
+                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td>
                             
                         </tr>
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Inventory Stores:</td>
+                            <td valign="top" class="name">Sections:</td>
                             
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="i" in="${siteInstance.inventoryStores}">
-                                    <li><g:link controller="inventoryStore" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
+                                <g:each var="s" in="${siteInstance.sections}">
+                                    <li><g:link controller="section" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
@@ -64,17 +64,10 @@
                     
                         <tr class="prop">
-                            <td valign="top" class="name">Is Active:</td>
-                            
-                            <td valign="top" class="value">${fieldValue(bean:siteInstance, field:'isActive')}</td>
-                            
-                        </tr>
-                    
-                        <tr class="prop">
-                            <td valign="top" class="name">System Sections:</td>
+                            <td valign="top" class="name">Site Extended Attributes:</td>
                             
                             <td  valign="top" style="text-align:left;" class="value">
                                 <ul>
-                                <g:each var="s" in="${siteInstance.systemSections}">
-                                    <li><g:link controller="systemSection" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
+                                <g:each var="s" in="${siteInstance.siteExtendedAttributes}">
+                                    <li><g:link controller="siteExtendedAttribute" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
                                 </g:each>
                                 </ul>
Index: /trunk/grails-app/views/siteExtendedAttribute/create.gsp
===================================================================
--- /trunk/grails-app/views/siteExtendedAttribute/create.gsp	(revision 268)
+++ /trunk/grails-app/views/siteExtendedAttribute/create.gsp	(revision 268)
@@ -0,0 +1,73 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Create SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Create SiteExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteExtendedAttributeInstance}" 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="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:siteExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${siteExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="site">Site:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${siteExtendedAttributeInstance?.site?.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/siteExtendedAttribute/edit.gsp
===================================================================
--- /trunk/grails-app/views/siteExtendedAttribute/edit.gsp	(revision 268)
+++ /trunk/grails-app/views/siteExtendedAttribute/edit.gsp	(revision 268)
@@ -0,0 +1,77 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Edit SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Edit SiteExtendedAttribute</h1>
+            <g:if test="${flash.message}">
+            <div class="message">${flash.message}</div>
+            </g:if>
+            <g:hasErrors bean="${siteExtendedAttributeInstance}">
+            <div class="errors">
+                <g:renderErrors bean="${siteExtendedAttributeInstance}" as="list" />
+            </div>
+            </g:hasErrors>
+            <g:form method="post" >
+                <input type="hidden" name="id" value="${siteExtendedAttributeInstance?.id}" />
+                <input type="hidden" name="version" value="${siteExtendedAttributeInstance?.version}" />
+                <div class="dialog">
+                    <table>
+                        <tbody>
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="value">Value:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'value','errors')}">
+                                    <input type="text" maxlength="100" id="value" name="value" value="${fieldValue(bean:siteExtendedAttributeInstance,field:'value')}"/>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="isActive">Is Active:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'isActive','errors')}">
+                                    <g:checkBox name="isActive" value="${siteExtendedAttributeInstance?.isActive}" ></g:checkBox>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="extendedAttributeType">Extended Attribute Type:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'extendedAttributeType','errors')}">
+                                    <g:select optionKey="id" from="${ExtendedAttributeType.list()}" name="extendedAttributeType.id" value="${siteExtendedAttributeInstance?.extendedAttributeType?.id}" ></g:select>
+                                </td>
+                            </tr> 
+                        
+                            <tr class="prop">
+                                <td valign="top" class="name">
+                                    <label for="site">Site:</label>
+                                </td>
+                                <td valign="top" class="value ${hasErrors(bean:siteExtendedAttributeInstance,field:'site','errors')}">
+                                    <g:select optionKey="id" from="${Site.list()}" name="site.id" value="${siteExtendedAttributeInstance?.site?.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/siteExtendedAttribute/list.gsp
===================================================================
--- /trunk/grails-app/views/siteExtendedAttribute/list.gsp	(revision 268)
+++ /trunk/grails-app/views/siteExtendedAttribute/list.gsp	(revision 268)
@@ -0,0 +1,59 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>SiteExtendedAttribute List</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>SiteExtendedAttribute 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="value" title="Value" />
+                        
+                   	        <g:sortableColumn property="isActive" title="Is Active" />
+                        
+                   	        <th>Extended Attribute Type</th>
+                   	    
+                   	        <th>Site</th>
+                   	    
+                        </tr>
+                    </thead>
+                    <tbody>
+                    <g:each in="${siteExtendedAttributeInstanceList}" status="i" var="siteExtendedAttributeInstance">
+                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
+                        
+                            <td><g:link action="show" id="${siteExtendedAttributeInstance.id}">${fieldValue(bean:siteExtendedAttributeInstance, field:'id')}</g:link></td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'value')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'isActive')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'extendedAttributeType')}</td>
+                        
+                            <td>${fieldValue(bean:siteExtendedAttributeInstance, field:'site')}</td>
+                        
+                        </tr>
+                    </g:each>
+                    </tbody>
+                </table>
+            </div>
+            <div class="paginateButtons">
+                <g:paginate total="${siteExtendedAttributeInstanceTotal}" />
+            </div>
+        </div>
+    </body>
+</html>
Index: /trunk/grails-app/views/siteExtendedAttribute/show.gsp
===================================================================
--- /trunk/grails-app/views/siteExtendedAttribute/show.gsp	(revision 268)
+++ /trunk/grails-app/views/siteExtendedAttribute/show.gsp	(revision 268)
@@ -0,0 +1,71 @@
+
+
+<html>
+    <head>
+        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+        <meta name="layout" content="main" />
+        <title>Show SiteExtendedAttribute</title>
+    </head>
+    <body>
+        <div class="nav">
+            <span class="menuButton"><g:link class="list" action="list">SiteExtendedAttribute List</g:link></span>
+            <span class="menuButton"><g:link class="create" action="create">New SiteExtendedAttribute</g:link></span>
+        </div>
+        <div class="body">
+            <h1>Show SiteExtendedAttribute</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:siteExtendedAttributeInstance, field:'id')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Value:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteExtendedAttributeInstance, field:'value')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Is Active:</td>
+                            
+                            <td valign="top" class="value">${fieldValue(bean:siteExtendedAttributeInstance, field:'isActive')}</td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Extended Attribute Type:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="extendedAttributeType" action="show" id="${siteExtendedAttributeInstance?.extendedAttributeType?.id}">${siteExtendedAttributeInstance?.extendedAttributeType?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                        <tr class="prop">
+                            <td valign="top" class="name">Site:</td>
+                            
+                            <td valign="top" class="value"><g:link controller="site" action="show" id="${siteExtendedAttributeInstance?.site?.id}">${siteExtendedAttributeInstance?.site?.encodeAsHTML()}</g:link></td>
+                            
+                        </tr>
+                    
+                    </tbody>
+                </table>
+            </div>
+            <div class="buttons">
+                <g:form>
+                    <input type="hidden" name="id" value="${siteExtendedAttributeInstance?.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>
