Changeset 175
- Timestamp:
- Oct 29, 2009, 8:30:58 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 4 added
- 5 deleted
- 32 edited
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemController.groovy
r116 r175 27 27 if(inventoryItemInstance) { 28 28 try { 29 inventoryItemInstance.delete( )29 inventoryItemInstance.delete(flush:true) 30 30 flash.message = "InventoryItem ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "InventoryItem not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r156 r175 48 48 if(inventoryItemInstance) { 49 49 try { 50 inventoryItemInstance.delete( )50 inventoryItemInstance.delete(flush:true) 51 51 flash.message = "InventoryItem ${params.id} deleted" 52 52 redirect(action:search) … … 103 103 else { 104 104 flash.message = "InventoryItem not found with id ${params.id}" 105 redirect(action: edit,id:params.id)105 redirect(action:search) 106 106 } 107 107 } -
trunk/grails-app/controllers/InventoryLocationController.groovy
r162 r175 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class StoreLocationController extends BaseAppAdminController {3 class InventoryLocationController extends BaseAppAdminController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ storeLocationInstanceList: StoreLocation.list( params ), storeLocationInstanceTotal: StoreLocation.count() ]12 [ inventoryLocationInstanceList: InventoryLocation.list( params ), inventoryLocationInstanceTotal: InventoryLocation.count() ] 13 13 } 14 14 15 15 def show = { 16 def storeLocationInstance = StoreLocation.get( params.id )16 def inventoryLocationInstance = InventoryLocation.get( params.id ) 17 17 18 if(! storeLocationInstance) {19 flash.message = " StoreLocation not found with id ${params.id}"18 if(!inventoryLocationInstance) { 19 flash.message = "InventoryLocation not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ storeLocationInstance : storeLocationInstance ] }22 else { return [ inventoryLocationInstance : inventoryLocationInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def storeLocationInstance = StoreLocation.get( params.id )27 if( storeLocationInstance) {26 def inventoryLocationInstance = InventoryLocation.get( params.id ) 27 if(inventoryLocationInstance) { 28 28 try { 29 storeLocationInstance.delete()30 flash.message = " StoreLocation ${params.id} deleted"29 inventoryLocationInstance.delete(flush:true) 30 flash.message = "InventoryLocation ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = " StoreLocation ${params.id} could not be deleted"34 flash.message = "InventoryLocation ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = " StoreLocation not found with id ${params.id}"39 flash.message = "InventoryLocation not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def storeLocationInstance = StoreLocation.get( params.id )45 def inventoryLocationInstance = InventoryLocation.get( params.id ) 46 46 47 if(! storeLocationInstance) {48 flash.message = " StoreLocation not found with id ${params.id}"47 if(!inventoryLocationInstance) { 48 flash.message = "InventoryLocation not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ storeLocationInstance : storeLocationInstance ]52 return [ inventoryLocationInstance : inventoryLocationInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def storeLocationInstance = StoreLocation.get( params.id )58 if( storeLocationInstance) {57 def inventoryLocationInstance = InventoryLocation.get( params.id ) 58 if(inventoryLocationInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if( storeLocationInstance.version > version) {61 if(inventoryLocationInstance.version > version) { 62 62 63 storeLocationInstance.errors.rejectValue("version", "storeLocation.optimistic.locking.failure", "Another user has updated this StoreLocation while you were editing.")64 render(view:'edit',model:[ storeLocationInstance:storeLocationInstance])63 inventoryLocationInstance.errors.rejectValue("version", "inventoryLocation.optimistic.locking.failure", "Another user has updated this InventoryLocation while you were editing.") 64 render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance]) 65 65 return 66 66 } 67 67 } 68 storeLocationInstance.properties = params69 if(! storeLocationInstance.hasErrors() && storeLocationInstance.save()) {70 flash.message = " StoreLocation ${params.id} updated"71 redirect(action:show,id: storeLocationInstance.id)68 inventoryLocationInstance.properties = params 69 if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) { 70 flash.message = "InventoryLocation ${params.id} updated" 71 redirect(action:show,id:inventoryLocationInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[ storeLocationInstance:storeLocationInstance])74 render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = " StoreLocation not found with id ${params.id}"79 redirect(action: edit,id:params.id)78 flash.message = "InventoryLocation not found with id ${params.id}" 79 redirect(action:list) 80 80 } 81 81 } 82 82 83 83 def create = { 84 def storeLocationInstance = new StoreLocation()85 storeLocationInstance.properties = params86 return [' storeLocationInstance':storeLocationInstance]84 def inventoryLocationInstance = new InventoryLocation() 85 inventoryLocationInstance.properties = params 86 return ['inventoryLocationInstance':inventoryLocationInstance] 87 87 } 88 88 89 89 def save = { 90 def storeLocationInstance = new StoreLocation(params)91 if(! storeLocationInstance.hasErrors() && storeLocationInstance.save()) {92 flash.message = " StoreLocation ${storeLocationInstance.id} created"93 redirect(action:show,id: storeLocationInstance.id)90 def inventoryLocationInstance = new InventoryLocation(params) 91 if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) { 92 flash.message = "InventoryLocation ${inventoryLocationInstance.id} created" 93 redirect(action:show,id:inventoryLocationInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[ storeLocationInstance:storeLocationInstance])96 render(view:'create',model:[inventoryLocationInstance:inventoryLocationInstance]) 97 97 } 98 98 } -
trunk/grails-app/controllers/InventoryLocationDetailedController.groovy
r162 r175 1 1 import org.codehaus.groovy.grails.plugins.springsecurity.Secured 2 2 3 class StoreLocationDetailedController extends BaseController {3 class InventoryLocationDetailedController extends BaseController { 4 4 5 5 def index = { redirect(action:list,params:params) } … … 10 10 def list = { 11 11 params.max = Math.min( params.max ? params.max.toInteger() : 10, 100) 12 [ storeLocationInstanceList: StoreLocation.list( params ), storeLocationInstanceTotal: StoreLocation.count() ]12 [ inventoryLocationInstanceList: InventoryLocation.list( params ), inventoryLocationInstanceTotal: InventoryLocation.count() ] 13 13 } 14 14 15 15 def show = { 16 def storeLocationInstance = StoreLocation.get( params.id )16 def inventoryLocationInstance = InventoryLocation.get( params.id ) 17 17 18 if(! storeLocationInstance) {19 flash.message = " StoreLocation not found with id ${params.id}"18 if(!inventoryLocationInstance) { 19 flash.message = "InventoryLocation not found with id ${params.id}" 20 20 redirect(action:list) 21 21 } 22 else { return [ storeLocationInstance : storeLocationInstance ] }22 else { return [ inventoryLocationInstance : inventoryLocationInstance ] } 23 23 } 24 24 25 25 def delete = { 26 def storeLocationInstance = StoreLocation.get( params.id )27 if( storeLocationInstance) {26 def inventoryLocationInstance = InventoryLocation.get( params.id ) 27 if(inventoryLocationInstance) { 28 28 try { 29 storeLocationInstance.delete()30 flash.message = " StoreLocation ${params.id} deleted"29 inventoryLocationInstance.delete(flush:true) 30 flash.message = "InventoryLocation ${params.id} deleted" 31 31 redirect(action:list) 32 32 } 33 33 catch(org.springframework.dao.DataIntegrityViolationException e) { 34 flash.message = " StoreLocation ${params.id} could not be deleted"34 flash.message = "InventoryLocation ${params.id} could not be deleted" 35 35 redirect(action:show,id:params.id) 36 36 } 37 37 } 38 38 else { 39 flash.message = " StoreLocation not found with id ${params.id}"39 flash.message = "InventoryLocation not found with id ${params.id}" 40 40 redirect(action:list) 41 41 } … … 43 43 44 44 def edit = { 45 def storeLocationInstance = StoreLocation.get( params.id )45 def inventoryLocationInstance = InventoryLocation.get( params.id ) 46 46 47 if(! storeLocationInstance) {48 flash.message = " StoreLocation not found with id ${params.id}"47 if(!inventoryLocationInstance) { 48 flash.message = "InventoryLocation not found with id ${params.id}" 49 49 redirect(action:list) 50 50 } 51 51 else { 52 return [ storeLocationInstance : storeLocationInstance ]52 return [ inventoryLocationInstance : inventoryLocationInstance ] 53 53 } 54 54 } 55 55 56 56 def update = { 57 def storeLocationInstance = StoreLocation.get( params.id )58 if( storeLocationInstance) {57 def inventoryLocationInstance = InventoryLocation.get( params.id ) 58 if(inventoryLocationInstance) { 59 59 if(params.version) { 60 60 def version = params.version.toLong() 61 if( storeLocationInstance.version > version) {61 if(inventoryLocationInstance.version > version) { 62 62 63 storeLocationInstance.errors.rejectValue("version", "storeLocation.optimistic.locking.failure", "Another user has updated this StoreLocation while you were editing.")64 render(view:'edit',model:[ storeLocationInstance:storeLocationInstance])63 inventoryLocationInstance.errors.rejectValue("version", "inventoryLocation.optimistic.locking.failure", "Another user has updated this InventoryLocation while you were editing.") 64 render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance]) 65 65 return 66 66 } 67 67 } 68 storeLocationInstance.properties = params69 if(! storeLocationInstance.hasErrors() && storeLocationInstance.save()) {70 flash.message = " StoreLocation ${params.id} updated"71 redirect(action:show,id: storeLocationInstance.id)68 inventoryLocationInstance.properties = params 69 if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) { 70 flash.message = "InventoryLocation ${params.id} updated" 71 redirect(action:show,id:inventoryLocationInstance.id) 72 72 } 73 73 else { 74 render(view:'edit',model:[ storeLocationInstance:storeLocationInstance])74 render(view:'edit',model:[inventoryLocationInstance:inventoryLocationInstance]) 75 75 } 76 76 } 77 77 else { 78 flash.message = " StoreLocation not found with id ${params.id}"79 redirect(action: edit,id:params.id)78 flash.message = "InventoryLocation not found with id ${params.id}" 79 redirect(action:list) 80 80 } 81 81 } 82 82 83 83 def create = { 84 def storeLocationInstance = new StoreLocation()85 storeLocationInstance.properties = params86 return [' storeLocationInstance':storeLocationInstance]84 def inventoryLocationInstance = new InventoryLocation() 85 inventoryLocationInstance.properties = params 86 return ['inventoryLocationInstance':inventoryLocationInstance] 87 87 } 88 88 89 89 def save = { 90 def storeLocationInstance = new StoreLocation(params)91 if(! storeLocationInstance.hasErrors() && storeLocationInstance.save()) {92 flash.message = " StoreLocation ${storeLocationInstance.id} created"93 redirect(action:show,id: storeLocationInstance.id)90 def inventoryLocationInstance = new InventoryLocation(params) 91 if(!inventoryLocationInstance.hasErrors() && inventoryLocationInstance.save()) { 92 flash.message = "InventoryLocation ${inventoryLocationInstance.id} created" 93 redirect(action:show,id:inventoryLocationInstance.id) 94 94 } 95 95 else { 96 render(view:'create',model:[ storeLocationInstance:storeLocationInstance])96 render(view:'create',model:[inventoryLocationInstance:inventoryLocationInstance]) 97 97 } 98 98 } -
trunk/grails-app/controllers/InventoryMovementController.groovy
r116 r175 27 27 if(inventoryMovementInstance) { 28 28 try { 29 inventoryMovementInstance.delete( )29 inventoryMovementInstance.delete(flush:true) 30 30 flash.message = "InventoryMovement ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "InventoryMovement not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/grails-app/controllers/InventoryStoreController.groovy
r116 r175 27 27 if(inventoryStoreInstance) { 28 28 try { 29 inventoryStoreInstance.delete( )29 inventoryStoreInstance.delete(flush:true) 30 30 flash.message = "InventoryStore ${params.id} deleted" 31 31 redirect(action:list) … … 77 77 else { 78 78 flash.message = "InventoryStore not found with id ${params.id}" 79 redirect(action: edit,id:params.id)79 redirect(action:list) 80 80 } 81 81 } -
trunk/grails-app/controllers/TaskDetailedController.groovy
r169 r175 182 182 183 183 def subTaskInstanceList = Task.findAllByParentTask(taskInstance, params) 184 def subTaskInstanceTotal = Task.countByParentTask(taskInstance) 184 def subTaskInstanceTotal = Task.countByParentTask(taskInstance) 185 185 def showTaskTab = new String("true") 186 187 def inventoryMovementList = InventoryMovement.findAllByTask(taskInstance, [max:100, sort:"id", order:"desc", offset:0]) 186 188 187 189 def taskProcedureInstance = TaskProcedure.get(taskInstance.taskProcedure?.id) … … 190 192 taskProcedureExits = false 191 193 } 192 // else { 193 params.order = "asc" 194 params.sort = "procedureStepNumber" 195 def maintenanceActionList = MaintenanceAction.findAllByTaskProcedure(taskProcedureInstance, params) 196 // } 197 194 195 params.order = "asc" 196 params.sort = "procedureStepNumber" 197 def maintenanceActionList = MaintenanceAction.findAllByTaskProcedure(taskProcedureInstance, params) 198 198 199 def taskRecurringScheduleInstance = TaskRecurringSchedule.get(taskInstance.taskRecurringSchedule?.id) 199 200 def taskRecurringScheduleExits= new Boolean("true") 200 201 if(!taskRecurringScheduleInstance) { 201 202 taskRecurringScheduleExits = false 202 203 } … … 213 214 maintenanceActionList: maintenanceActionList, 214 215 taskRecurringScheduleInstance: taskRecurringScheduleInstance, 215 taskRecurringScheduleExits: taskRecurringScheduleExits] 216 taskRecurringScheduleExits: taskRecurringScheduleExits, 217 inventoryMovementList: inventoryMovementList] 216 218 } 217 219 } -
trunk/grails-app/domain/InventoryItem.groovy
r146 r175 3 3 InventoryType inventoryType 4 4 UnitOfMeasure unitOfMeasure 5 InventoryLocation inventoryLocation 6 Period averageDeliveryPeriod 5 7 String name 6 8 String description = "" 7 9 String manufacturersPartNumber 8 10 String suppliersPartNumber 11 Integer unitsInStock = 0 9 12 Integer reorderPoint 10 13 Integer recommendedReorderPoint … … 16 19 static hasMany = [alternateItems: InventoryItem, 17 20 spareFor: Asset, 18 storedItems: StoredItem,19 21 inventoryMovements: InventoryMovement, 20 22 manufacturers: Manufacturer, … … 24 26 25 27 static constraints = { 26 name(unique:true, blank:false, maxSize: 75)28 name(unique:true, blank:false, maxSize:50) 27 29 description() 30 unitsInStock(min:0) 31 unitOfMeasure() 28 32 reorderPoint() 29 33 enableReorder() 34 recommendedReorderPoint(nullable:true) 30 35 isActive() 31 36 isObsolete() 32 37 inventoryGroup() 33 38 inventoryType() 34 unitOfMeasure()35 39 manufacturersPartNumber(blank:true, nullable:true) 36 40 suppliersPartNumber(blank:true, nullable:true) 37 recommendedReorderPoint(nullable:true)38 41 averageDeliveryTime(nullable:true) 42 averageDeliveryPeriod(nullable:true) 39 43 } 40 44 -
trunk/grails-app/domain/InventoryLocation.groovy
r162 r175 1 class StoreLocation {1 class InventoryLocation { 2 2 3 3 InventoryStore inventoryStore 4 String bin4 String name 5 5 Boolean isActive = true 6 6 7 static hasMany = [ storedItems: StoredItem]7 static hasMany = [inventoryItems: InventoryItem] 8 8 9 static belongsTo = [InventoryStore]9 // static belongsTo = [InventoryStore] 10 10 11 11 static constraints = { 12 bin(maxSize:50)12 name(maxSize:50) 13 13 } 14 14 15 15 String toString() { 16 "${this. bin}"16 "${this.name}" 17 17 } 18 18 } -
trunk/grails-app/domain/InventoryMovement.groovy
r146 r175 1 import java.text.SimpleDateFormat 2 1 3 class InventoryMovement { 2 4 InventoryItem inventoryItem 3 5 InventoryMovementType inventoryMovementType 4 6 Task task 5 Stringquantity7 Integer quantity 6 8 Date date = new Date() 7 9 8 static belongsTo = [InventoryItem]10 // static belongsTo = [inventoryItem] 9 11 10 12 static constraints = { 11 13 inventoryItem() 12 quantity( )14 quantity(min:1) 13 15 inventoryMovementType() 14 16 task(nullable:true) … … 16 18 } 17 19 18 String toString() {"${this.quantity}"} 20 String toString() { 21 def date = new SimpleDateFormat("EEE, dd-MMM-yyyy").format(this.date) 22 "${this.quantity} ${inventoryMovementType.name} on ${date}" 23 } 19 24 } -
trunk/grails-app/domain/InventoryStore.groovy
r116 r175 6 6 Boolean isActive = true 7 7 8 static hasMany = [ storeLocations: StoreLocation]8 static hasMany = [inventoryLocations: InventoryLocation] 9 9 10 10 static belongsTo = [Site] -
trunk/grails-app/i18n/messages.properties
r168 r175 112 112 fp.property.text.isScheduled=Scheduled 113 113 fp.property.text.isApproved=Approved 114 fp.property.text.isObsolete=Obsolete 114 115 fp.property.text.taskGroup.name=Group 115 116 fp.property.text.taskPriority.name=Priority … … 120 121 fp.property.text.leadPerson.firstName=Lead Person (First Name) 121 122 fp.property.text.taskType.name=Type 123 fp.property.text.inventoryLocation.name=Location 124 fp.property.text.spareFor.name=Spare For 125 fp.property.text.supplier.name=Supplier 126 fp.property.text.manufacturer.name=Manufacturer 122 127 -
trunk/grails-app/services/CreateDataService.groovy
r164 r175 37 37 createBaseUnitsOfMeasure() 38 38 createBasePeriods() 39 createBaseSupplierType() 40 createBaseManufacturerType() 39 41 // Tasks 40 42 createBaseTaskStatus() … … 45 47 // Inventory 46 48 createBaseInventoryTypes() 49 createBaseInventoryMovementTypes() 47 50 createBaseMaintenancePolicies() 48 51 // Assets … … 60 63 createDemoSites() 61 64 createDemoDepartments() 65 createDemoSuppliers() 66 createDemoManufacturers() 62 67 // Tasks 63 68 createDemoTaskGroups() /// @todo: Perhaps this should be BaseData? … … 68 73 // Inventory 69 74 createDemoInventoryStores() /// @todo: Perhaps a 'createQuickStartData' method? 70 createDemo StoreLocations()75 createDemoInventoryLocations() 71 76 createDemoInventoryGroups() /// @todo: Perhaps a 'createQuickStartData' method? 72 77 createDemoInventoryItems() 73 createDemoStoredItems()74 78 // Assets 75 79 createDemoLifePlan() … … 310 314 } 311 315 316 def createBaseSupplierType() { 317 318 // SupplierType 319 def supplierTypeInstance 320 321 // SupplierType #1 322 supplierTypeInstance = new SupplierType(name: "OEM", 323 description: "Original equipment supplier") 324 saveAndTest(supplierTypeInstance) 325 326 // SupplierType #2 327 supplierTypeInstance = new SupplierType(name: "Local", 328 description: "Local supplier") 329 saveAndTest(supplierTypeInstance) 330 } 331 332 def createBaseManufacturerType() { 333 334 // ManufacturerType 335 def manufacturerTypeInstance 336 337 // ManufacturerType #1 338 manufacturerTypeInstance = new ManufacturerType(name: "OEM", 339 description: "Original equipment manufacturer") 340 saveAndTest(manufacturerTypeInstance) 341 342 // ManufacturerType #2 343 manufacturerTypeInstance = new ManufacturerType(name: "Alternate", 344 description: "Not original equipment manufacturer") 345 saveAndTest(manufacturerTypeInstance) 346 347 } 348 349 def createDemoSuppliers() { 350 351 // Supplier 352 def supplierInstance 353 354 // Supplier #1 355 supplierInstance = new Supplier(name: "OEM Distributors", 356 supplierType: SupplierType.get(1)) 357 saveAndTest(supplierInstance) 358 359 // Supplier #2 360 supplierInstance = new Supplier(name: "Mex Holdings", 361 supplierType: SupplierType.get(2)) 362 saveAndTest(supplierInstance) 363 } 364 365 def createDemoManufacturers() { 366 367 // Manufacturer 368 def manufacturerInstance 369 370 // Manufacturer #1 371 manufacturerInstance = new Manufacturer(name: "OEM Manufacturer", 372 manufacturerType: ManufacturerType.get(1)) 373 saveAndTest(manufacturerInstance) 374 375 // Manufacturer #2 376 manufacturerInstance = new Manufacturer(name: "Laser Cutting Services Pty", 377 manufacturerType: ManufacturerType.get(2)) 378 saveAndTest(manufacturerInstance) 379 } 380 312 381 /********************* 313 382 START OF TASK … … 587 656 } 588 657 589 def createDemo StoreLocations() {590 591 // StoreLocation592 def storeLocation593 594 storeLocation = new StoreLocation(inventoryStore: InventoryStore.get(1), bin: "A1-2")595 saveAndTest( storeLocation)596 597 storeLocation = new StoreLocation(inventoryStore: InventoryStore.get(1), bin: "C55")598 saveAndTest( storeLocation)658 def createDemoInventoryLocations() { 659 660 // InventoryLocation 661 def inventoryLocation 662 663 inventoryLocation = new InventoryLocation(inventoryStore: InventoryStore.get(1), name: "A1-2") 664 saveAndTest(inventoryLocation) 665 666 inventoryLocation = new InventoryLocation(inventoryStore: InventoryStore.get(1), name: "C55") 667 saveAndTest(inventoryLocation) 599 668 } 600 669 … … 631 700 inventoryTypeInstance = new InventoryType(name: "Repairable") 632 701 saveAndTest(inventoryTypeInstance) 702 } 703 704 def createBaseInventoryMovementTypes() { 705 706 // InventoryMovementType 707 def inventoryMovementTypeInstance 708 709 // InventoryMovementType #1 710 inventoryMovementTypeInstance = new InventoryMovementType(name: "Used") 711 saveAndTest(inventoryMovementTypeInstance) 712 713 // InventoryMovementType #2 714 inventoryMovementTypeInstance = new InventoryMovementType(name: "Repaired") 715 saveAndTest(inventoryMovementTypeInstance) 716 717 // InventoryMovementType #3 718 inventoryMovementTypeInstance = new InventoryMovementType(name: "Purchased") 719 saveAndTest(inventoryMovementTypeInstance) 633 720 } 634 721 … … 642 729 inventoryType: InventoryType.get(1), 643 730 unitOfMeasure: UnitOfMeasure.get(2), 731 inventoryLocation: InventoryLocation.get(1), 644 732 name: "J-Rope", 645 733 description: "Twine wound J-Rope", 734 unitsInStock: 2, 646 735 reorderPoint: 0) 647 736 saveAndTest(inventoryItemInstance) … … 651 740 inventoryType: InventoryType.get(1), 652 741 unitOfMeasure: UnitOfMeasure.get(2), 742 inventoryLocation: InventoryLocation.get(1), 653 743 name: "L-Rope", 654 744 description: "Twine wound L-Rope", 655 745 alternateItems: InventoryItem.get(1), 746 unitsInStock: 2, 656 747 reorderPoint: 0) 657 748 saveAndTest(inventoryItemInstance) … … 661 752 inventoryType: InventoryType.get(1), 662 753 unitOfMeasure: UnitOfMeasure.get(1), 754 inventoryLocation: InventoryLocation.get(2), 663 755 name: "2305-2RS", 664 756 description: "Bearing 25x62x24mm double row self aligning ball", 757 unitsInStock: 3, 665 758 reorderPoint: 2) 666 759 saveAndTest(inventoryItemInstance) … … 670 763 inventoryType: InventoryType.get(1), 671 764 unitOfMeasure: UnitOfMeasure.get(1), 765 inventoryLocation: InventoryLocation.get(2), 672 766 name: "L1592-K10", 673 767 description: "10kW contactor", 768 unitsInStock: 4, 674 769 reorderPoint: 0) 675 770 saveAndTest(inventoryItemInstance) … … 679 774 inventoryType: InventoryType.get(1), 680 775 unitOfMeasure: UnitOfMeasure.get(1), 776 inventoryLocation: InventoryLocation.get(2), 681 777 name: "6205-ZZ", 682 778 description: "Bearing 25x52x15mm single row ball shielded", 779 unitsInStock: 5, 683 780 reorderPoint: 2) 684 781 saveAndTest(inventoryItemInstance) 685 }686 687 def createDemoStoredItems() {688 689 //StoredItem690 def storedItemInstance691 692 //StoredItem #1693 storedItemInstance = new StoredItem(inventoryItem: InventoryItem.get(1),694 storeLocation: StoreLocation.get(1),695 quantity: 8)696 saveAndTest(storedItemInstance)697 698 //StoredItem #2699 storedItemInstance = new StoredItem(inventoryItem: InventoryItem.get(1),700 storeLocation: StoreLocation.get(2),701 quantity: 4)702 saveAndTest(storedItemInstance)703 704 //StoredItem #3705 storedItemInstance = new StoredItem(inventoryItem: InventoryItem.get(2),706 storeLocation: StoreLocation.get(1),707 quantity: 2)708 saveAndTest(storedItemInstance)709 710 //StoredItem #4711 storedItemInstance = new StoredItem(inventoryItem: InventoryItem.get(3),712 storeLocation: StoreLocation.get(1),713 quantity: 2)714 saveAndTest(storedItemInstance)715 716 //StoredItem #5717 storedItemInstance = new StoredItem(inventoryItem: InventoryItem.get(4),718 storeLocation: StoreLocation.get(1),719 quantity: 30)720 saveAndTest(storedItemInstance)721 782 } 722 783 -
trunk/grails-app/views/inventoryItem/create.gsp
r151 r175 32 32 </td> 33 33 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 34 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 42 42 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 43 43 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 44 </td> 45 </tr> 46 47 <tr class="prop"> 48 <td valign="top" class="name"> 49 <label for="unitsInStock">Units In Stock:</label> 50 </td> 51 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 52 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 53 </td> 54 </tr> 55 56 <tr class="prop"> 57 <td valign="top" class="name"> 58 <label for="unitOfMeasure">Unit Of Measure:</label> 59 </td> 60 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 61 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 44 62 </td> 45 63 </tr> … … 60 78 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'enableReorder','errors')}"> 61 79 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 86 </td> 87 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 88 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 62 89 </td> 63 90 </tr> … … 101 128 <tr class="prop"> 102 129 <td valign="top" class="name"> 103 <label for="unitOfMeasure">Unit Of Measure:</label>104 </td>105 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}">106 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>107 </td>108 </tr>109 110 <tr class="prop">111 <td valign="top" class="name">112 130 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 113 131 </td> … … 128 146 <tr class="prop"> 129 147 <td valign="top" class="name"> 130 <label for=" recommendedReorderPoint">Recommended Reorder Point:</label>148 <label for="averageDeliveryTime">Average Delivery Time:</label> 131 149 </td> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:' recommendedReorderPoint','errors')}">133 <input type="text" id=" recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />150 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 151 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 134 152 </td> 135 153 </tr> … … 137 155 <tr class="prop"> 138 156 <td valign="top" class="name"> 139 <label for="averageDelivery Time">Average Delivery Time:</label>157 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 140 158 </td> 141 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 142 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 159 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 160 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 161 </td> 162 </tr> 163 164 <tr class="prop"> 165 <td valign="top" class="name"> 166 <label for="inventoryLocation">Inventory Location:</label> 167 </td> 168 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 169 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 143 170 </td> 144 171 </tr> -
trunk/grails-app/views/inventoryItem/edit.gsp
r151 r175 35 35 </td> 36 36 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 37 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 38 38 </td> 39 39 </tr> … … 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="unitsInStock">Units In Stock:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 55 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="unitOfMeasure">Unit Of Measure:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 64 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 65 </td> 66 </tr> 67 68 <tr class="prop"> 69 <td valign="top" class="name"> 52 70 <label for="reorderPoint">Reorder Point:</label> 53 71 </td> … … 68 86 <tr class="prop"> 69 87 <td valign="top" class="name"> 88 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 89 </td> 90 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 91 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 92 </td> 93 </tr> 94 95 <tr class="prop"> 96 <td valign="top" class="name"> 70 97 <label for="isActive">Is Active:</label> 71 98 </td> … … 104 131 <tr class="prop"> 105 132 <td valign="top" class="name"> 106 <label for="unitOfMeasure">Unit Of Measure:</label>107 </td>108 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}">109 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select>110 </td>111 </tr>112 113 <tr class="prop">114 <td valign="top" class="name">115 133 <label for="manufacturersPartNumber">Manufacturers Part Number:</label> 116 134 </td> … … 131 149 <tr class="prop"> 132 150 <td valign="top" class="name"> 133 <label for="recommendedReorderPoint">Recommended Reorder Point:</label>134 </td>135 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}">136 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" />137 </td>138 </tr>139 140 <tr class="prop">141 <td valign="top" class="name">142 151 <label for="averageDeliveryTime">Average Delivery Time:</label> 143 152 </td> 144 153 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 145 154 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 155 </td> 156 </tr> 157 158 <tr class="prop"> 159 <td valign="top" class="name"> 160 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 161 </td> 162 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 163 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 146 164 </td> 147 165 </tr> … … 157 175 value="${inventoryItemInstance?.alternateItems}" /> 158 176 177 </td> 178 </tr> 179 180 <tr class="prop"> 181 <td valign="top" class="name"> 182 <label for="inventoryLocation">Inventory Location:</label> 183 </td> 184 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 185 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 159 186 </td> 160 187 </tr> … … 198 225 size="5" multiple="yes" optionKey="id" 199 226 value="${inventoryItemInstance?.spareFor}" /> 200 201 </td>202 </tr>203 204 <tr class="prop">205 <td valign="top" class="name">206 <label for="storedItems">Stored Items:</label>207 </td>208 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}">209 210 <ul>211 <g:each var="s" in="${inventoryItemInstance?.storedItems?}">212 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>213 </g:each>214 </ul>215 <g:link controller="storedItem" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link>216 227 217 228 </td> -
trunk/grails-app/views/inventoryItem/list.gsp
r151 r175 28 28 <g:sortableColumn property="description" title="Description" /> 29 29 30 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 31 32 <th>Unit Of Measure</th> 33 30 34 <g:sortableColumn property="reorderPoint" title="Reorder Point" /> 31 32 <g:sortableColumn property="enableReorder" title="Enable Reorder" />33 34 <g:sortableColumn property="isActive" title="Is Active" />35 35 36 36 </tr> … … 46 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 47 47 48 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 49 50 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 51 48 52 <td>${fieldValue(bean:inventoryItemInstance, field:'reorderPoint')}</td> 49 50 <td>${fieldValue(bean:inventoryItemInstance, field:'enableReorder')}</td>51 52 <td>${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td>53 53 54 54 </tr> -
trunk/grails-app/views/inventoryItem/show.gsp
r151 r175 45 45 46 46 <tr class="prop"> 47 <td valign="top" class="name">Units In Stock:</td> 48 49 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Unit Of Measure:</td> 55 56 <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td> 57 58 </tr> 59 60 <tr class="prop"> 47 61 <td valign="top" class="name">Reorder Point:</td> 48 62 … … 59 73 60 74 <tr class="prop"> 75 <td valign="top" class="name">Recommended Reorder Point:</td> 76 77 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> 78 79 </tr> 80 81 <tr class="prop"> 61 82 <td valign="top" class="name">Is Active:</td> 62 83 … … 87 108 88 109 <tr class="prop"> 89 <td valign="top" class="name">Unit Of Measure:</td>90 91 <td valign="top" class="value"><g:link controller="unitOfMeasure" action="show" id="${inventoryItemInstance?.unitOfMeasure?.id}">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</g:link></td>92 93 </tr>94 95 <tr class="prop">96 110 <td valign="top" class="name">Manufacturers Part Number:</td> 97 111 … … 108 122 109 123 <tr class="prop"> 110 <td valign="top" class="name">Recommended Reorder Point:</td>111 112 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td>113 114 </tr>115 116 <tr class="prop">117 124 <td valign="top" class="name">Average Delivery Time:</td> 118 125 119 126 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'averageDeliveryTime')}</td> 127 128 </tr> 129 130 <tr class="prop"> 131 <td valign="top" class="name">Average Delivery Period:</td> 132 133 <td valign="top" class="value"><g:link controller="period" action="show" id="${inventoryItemInstance?.averageDeliveryPeriod?.id}">${inventoryItemInstance?.averageDeliveryPeriod?.encodeAsHTML()}</g:link></td> 120 134 121 135 </tr> … … 135 149 136 150 <tr class="prop"> 151 <td valign="top" class="name">Inventory Location:</td> 152 153 <td valign="top" class="value"><g:link controller="inventoryLocation" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td> 154 155 </tr> 156 157 <tr class="prop"> 137 158 <td valign="top" class="name">Inventory Movements:</td> 138 159 … … 167 188 <g:each var="s" in="${inventoryItemInstance.spareFor}"> 168 189 <li><g:link controller="asset" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 169 </g:each>170 </ul>171 </td>172 173 </tr>174 175 <tr class="prop">176 <td valign="top" class="name">Stored Items:</td>177 178 <td valign="top" style="text-align:left;" class="value">179 <ul>180 <g:each var="s" in="${inventoryItemInstance.storedItems}">181 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>182 190 </g:each> 183 191 </ul> -
trunk/grails-app/views/inventoryItemDetailed/create.gsp
r139 r175 31 31 </td> 32 32 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 33 <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>33 <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 34 34 </td> 35 35 </tr> … … 40 40 </td> 41 41 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'description','errors')}"> 42 <input type="text" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/>42 <input type="text" class="description" id="description" name="description" value="${fieldValue(bean:inventoryItemInstance,field:'description')}"/> 43 43 </td> 44 </tr> 44 </tr> 45 46 <tr class="prop"> 47 <td valign="top" class="name"> 48 <label for="unitsInStock">In Stock:</label> 49 </td> 50 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 51 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 52 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 53 </td> 54 </tr> 45 55 46 56 <tr class="prop"> … … 60 70 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 61 71 </td> 62 </tr> 72 </tr> 63 73 64 74 <tr class="prop"> 65 75 <td valign="top" class="name"> 66 <label for="isActive">Is Active:</label> 76 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 77 </td> 78 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 79 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 80 </td> 81 </tr> 82 83 <tr class="prop"> 84 <td valign="top" class="name"> 85 <label for="isActive">Active:</label> 67 86 </td> 68 87 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 73 92 <tr class="prop"> 74 93 <td valign="top" class="name"> 75 <label for="isObsolete"> IsObsolete:</label>94 <label for="isObsolete">Obsolete:</label> 76 95 </td> 77 96 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 96 115 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 97 116 </td> 98 </tr> 99 100 <tr class="prop"> 101 <td valign="top" class="name"> 102 <label for="unitOfMeasure">Unit Of Measure:</label> 103 </td> 104 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 105 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 106 </td> 107 </tr> 117 </tr> 108 118 109 119 <tr class="prop"> … … 118 128 <tr class="prop"> 119 129 <td valign="top" class="name"> 130 <label for="manufacturers">Manufacturers:</label> 131 </td> 132 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 133 <g:select id="manufacturers" name="manufacturers" 134 from="${Manufacturer.list()}" 135 size="5" multiple="yes" optionKey="id" 136 value="${inventoryItemInstance?.manufacturers?.id}" noSelection="['':'--None--']" /> 137 138 </td> 139 </tr> 140 141 <tr class="prop"> 142 <td valign="top" class="name"> 120 143 <label for="suppliersPartNumber">Suppliers Part Number:</label> 121 144 </td> … … 123 146 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 124 147 </td> 125 </tr> 148 </tr> 126 149 127 150 <tr class="prop"> 128 151 <td valign="top" class="name"> 129 <label for=" recommendedReorderPoint">Recommended Reorder Point:</label>152 <label for="suppliers">Suppliers:</label> 130 153 </td> 131 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 132 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 154 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 155 <g:select id="suppliers" name="suppliers" 156 from="${Supplier.list()}" 157 size="5" multiple="yes" optionKey="id" 158 value="${inventoryItemInstance?.suppliers?.id}" noSelection="['':'--None--']"/> 159 133 160 </td> 134 </tr> 161 </tr> 135 162 136 163 <tr class="prop"> … … 140 167 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryTime','errors')}"> 141 168 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 169 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'--None--']"></g:select> 142 170 </td> 143 </tr> 171 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name"> 175 <label for="inventoryLocation">Inventory Location:</label> 176 </td> 177 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 178 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 179 </td> 180 </tr> 144 181 145 182 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/edit.gsp
r139 r175 33 33 </td> 34 34 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'name','errors')}"> 35 <input type="text" maxlength=" 75" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/>35 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryItemInstance,field:'name')}"/> 36 36 </td> 37 37 </tr> … … 48 48 <tr class="prop"> 49 49 <td valign="top" class="name"> 50 <label for="unitsInStock">Units In Stock:</label> 51 </td> 52 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitsInStock','errors')}"> 53 <input type="text" id="unitsInStock" name="unitsInStock" value="${fieldValue(bean:inventoryItemInstance,field:'unitsInStock')}" /> 54 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 55 </td> 56 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name"> 50 60 <label for="reorderPoint">Reorder Point:</label> 51 61 </td> … … 62 72 <g:checkBox name="enableReorder" value="${inventoryItemInstance?.enableReorder}" ></g:checkBox> 63 73 </td> 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name"> 68 <label for="isActive">Is Active:</label> 74 </tr> 75 76 <tr class="prop"> 77 <td valign="top" class="name"> 78 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 79 </td> 80 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 81 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 82 </td> 83 </tr> 84 85 <tr class="prop"> 86 <td valign="top" class="name"> 87 <label for="isActive">Active:</label> 69 88 </td> 70 89 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isActive','errors')}"> … … 75 94 <tr class="prop"> 76 95 <td valign="top" class="name"> 77 <label for="isObsolete"> IsObsolete:</label>96 <label for="isObsolete">Obsolete:</label> 78 97 </td> 79 98 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'isObsolete','errors')}"> … … 98 117 <g:select optionKey="id" from="${InventoryType.list()}" name="inventoryType.id" value="${inventoryItemInstance?.inventoryType?.id}" ></g:select> 99 118 </td> 100 </tr> 101 102 <tr class="prop"> 103 <td valign="top" class="name"> 104 <label for="unitOfMeasure">Unit Of Measure:</label> 105 </td> 106 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'unitOfMeasure','errors')}"> 107 <g:select optionKey="id" from="${UnitOfMeasure.list()}" name="unitOfMeasure.id" value="${inventoryItemInstance?.unitOfMeasure?.id}" ></g:select> 108 </td> 109 </tr> 119 </tr> 110 120 111 121 <tr class="prop"> … … 125 135 <input type="text" id="suppliersPartNumber" name="suppliersPartNumber" value="${fieldValue(bean:inventoryItemInstance,field:'suppliersPartNumber')}"/> 126 136 </td> 127 </tr> 128 129 <tr class="prop"> 130 <td valign="top" class="name"> 131 <label for="recommendedReorderPoint">Recommended Reorder Point:</label> 132 </td> 133 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'recommendedReorderPoint','errors')}"> 134 <input type="text" id="recommendedReorderPoint" name="recommendedReorderPoint" value="${fieldValue(bean:inventoryItemInstance,field:'recommendedReorderPoint')}" /> 135 </td> 136 </tr> 137 </tr> 137 138 138 139 <tr class="prop"> … … 143 144 <input type="text" id="averageDeliveryTime" name="averageDeliveryTime" value="${fieldValue(bean:inventoryItemInstance,field:'averageDeliveryTime')}" /> 144 145 </td> 145 </tr> 146 </tr> 147 148 <tr class="prop"> 149 <td valign="top" class="name"> 150 <label for="averageDeliveryPeriod">Average Delivery Period:</label> 151 </td> 152 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'averageDeliveryPeriod','errors')}"> 153 <g:select optionKey="id" from="${Period.list()}" name="averageDeliveryPeriod.id" value="${inventoryItemInstance?.averageDeliveryPeriod?.id}" noSelection="['null':'']"></g:select> 154 </td> 155 </tr> 146 156 147 157 <tr class="prop"> … … 179 189 </td> 180 190 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'manufacturers','errors')}"> 181 <g:select name="manufacturers"182 from="${Manufacturer.list()}"183 size="5" multiple="yes" optionKey="id"184 value="${inventoryItemInstance?.manufacturers}" />191 <g:select id="manufacturers" name="manufacturers" 192 from="${Manufacturer.list()}" 193 size="5" multiple="yes" optionKey="id" 194 value="${inventoryItemInstance?.manufacturers.id}" /> 185 195 186 196 </td> … … 198 208 199 209 </td> 200 </tr> 201 202 <tr class="prop"> 203 <td valign="top" class="name"> 204 <label for="storedItems">Stored Items:</label> 205 </td> 206 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'storedItems','errors')}"> 207 208 <ul> 209 <g:each var="s" in="${inventoryItemInstance?.storedItems?}"> 210 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 211 </g:each> 212 </ul> 213 <g:link controller="storedItemDetailed" params="['inventoryItem.id':inventoryItemInstance?.id]" action="create">Add StoredItem</g:link> 214 215 </td> 216 </tr> 210 </tr> 211 212 <tr class="prop"> 213 <td valign="top" class="name"> 214 <label for="inventoryLocation">Inventory Location:</label> 215 </td> 216 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'inventoryLocation','errors')}"> 217 <g:select optionKey="id" from="${InventoryLocation.list()}" name="inventoryLocation.id" value="${inventoryItemInstance?.inventoryLocation?.id}" ></g:select> 218 </td> 219 </tr> 217 220 218 221 <tr class="prop"> … … 221 224 </td> 222 225 <td valign="top" class="value ${hasErrors(bean:inventoryItemInstance,field:'suppliers','errors')}"> 223 <g:select name="suppliers"224 from="${Supplier.list()}"225 size="5" multiple="yes" optionKey="id"226 value="${inventoryItemInstance?.suppliers}"/>227 228 </td> 229 </tr> 226 <g:select id="suppliers" name="suppliers" 227 from="${Supplier.list()}" 228 size="5" multiple="yes" optionKey="id" 229 value="${inventoryItemInstance?.suppliers.id}" noSelection="['':'--None--']"/> 230 231 </td> 232 </tr> 230 233 231 234 </tbody> -
trunk/grails-app/views/inventoryItemDetailed/list.gsp
r151 r175 27 27 <g:sortableColumn property="description" title="Description" /> 28 28 29 <g:sortableColumn property="enableReorder" title="Enable Reorder" /> 29 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 30 31 <th>Unit Of Measure</th> 30 32 31 <g:sortableColumn property="isActive" title="Is Active" />32 33 33 34 <th></th> … … 45 46 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 46 47 47 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>48 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 49 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>50 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 50 51 51 52 <td> -
trunk/grails-app/views/inventoryItemDetailed/search.gsp
r156 r175 40 40 <g:sortableColumn property="description" title="Description" params="${filterParams}" /> 41 41 42 <g:sortableColumn property="enableReorder" title="Enable Reorder" params="${filterParams}" />43 44 <g:sortableColumn property="isActive" title="Is Active" params="${filterParams}" />42 <g:sortableColumn property="unitsInStock" title="Units In Stock" /> 43 44 <th>Unit Of Measure</th> 45 45 46 46 <th></th> … … 58 58 <td>${fieldValue(bean:inventoryItemInstance, field:'description')}</td> 59 59 60 <td>${fieldValue(bean:inventoryItemInstance, field:' enableReorder')}</td>60 <td>${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 61 61 62 <td>${fieldValue(bean:inventoryItemInstance, field:' isActive')}</td>62 <td>${fieldValue(bean:inventoryItemInstance, field:'unitOfMeasure')}</td> 63 63 64 64 <td> … … 81 81 action="search" 82 82 class="overlayPane" 83 excludeProperties="" /> 83 excludeProperties="" 84 associatedProperties="inventoryLocation.name, 85 spareFor.name, 86 manufacturers.name, 87 suppliers.name" 88 filterPropertyValues="${['inventoryLocation.name':[values:InventoryLocation.list()], 89 'spareFor.name':[values:Asset.list()], 90 'manufacturers.name':[values:Manufacturer.list()], 91 'suppliers.name':[values:Supplier.list()], 92 ]}"/> 84 93 </div> <!-- end body div --> 85 94 </body> -
trunk/grails-app/views/inventoryItemDetailed/show.gsp
r139 r175 41 41 42 42 </tr> 43 44 <tr class="prop"> 45 <td valign="top" class="name">Units In Stock:</td> 46 47 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'unitsInStock')}</td> 48 49 </tr> 50 51 <tr class="prop"> 52 <td valign="top" class="name">Unit Of Measure:</td> 53 54 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td> 55 56 </tr> 57 43 58 44 59 <tr class="prop"> … … 55 70 56 71 </tr> 57 58 <tr class="prop"> 59 <td valign="top" class="name">Is Active:</td> 72 73 <tr class="prop"> 74 <td valign="top" class="name">Recommended Reorder Point:</td> 75 76 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'recommendedReorderPoint')}</td> 77 78 </tr> 79 80 <tr class="prop"> 81 <td valign="top" class="name">Active:</td> 60 82 61 83 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isActive')}</td> … … 64 86 65 87 <tr class="prop"> 66 <td valign="top" class="name"> IsObsolete:</td>88 <td valign="top" class="name">Obsolete:</td> 67 89 68 90 <td valign="top" class="value">${fieldValue(bean:inventoryItemInstance, field:'isObsolete')}</td> … … 76 98 77 99 </tr> 100 78 101 79 102 <tr class="prop"> … … 85 108 86 109 <tr class="prop"> 87 <td valign="top" class="name">Unit Of Measure:</td>88 89 <td valign="top" class="value">${inventoryItemInstance?.unitOfMeasure?.encodeAsHTML()}</td>90 91 </tr>92 93 <tr class="prop">94 110 <td valign="top" class="name">Manufacturers Part Number:</td> 95 111 … … 125 141 <ul> 126 142 <g:each var="a" in="${inventoryItemInstance.alternateItems}"> 127 <li><g:link controller="inventoryItem " action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>143 <li><g:link controller="inventoryItemDetailed" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 128 144 </g:each> 129 145 </ul> … … 138 154 <ul> 139 155 <g:each var="i" in="${inventoryItemInstance.inventoryMovements}"> 140 <li><g:link controller="inventoryMovement " action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>156 <li><g:link controller="inventoryMovementDetailed" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 141 157 </g:each> 142 158 </ul> … … 151 167 <ul> 152 168 <g:each var="m" in="${inventoryItemInstance.manufacturers}"> 153 <li><g:link controller="manufacturer " action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li>169 <li><g:link controller="manufacturerDetailed" action="show" id="${m.id}">${m?.encodeAsHTML()}</g:link></li> 154 170 </g:each> 155 171 </ul> … … 170 186 171 187 </tr> 172 173 <tr class="prop"> 174 <td valign="top" class="name">Stored Items:</td> 175 176 <td valign="top" style="text-align:left;" class="value"> 177 <ul> 178 <g:each var="s" in="${inventoryItemInstance.storedItems}"> 179 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 180 </g:each> 181 </ul> 182 </td> 188 189 <tr class="prop"> 190 <td valign="top" class="name">Inventory Location:</td> 191 192 <td valign="top" class="value"><g:link controller="inventoryLocationDetailed" action="show" id="${inventoryItemInstance?.inventoryLocation?.id}">${inventoryItemInstance?.inventoryLocation?.encodeAsHTML()}</g:link></td> 183 193 184 194 </tr> … … 190 200 <ul> 191 201 <g:each var="s" in="${inventoryItemInstance.suppliers}"> 192 <li><g:link controller="supplier " action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>202 <li><g:link controller="supplierDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 193 203 </g:each> 194 204 </ul> -
trunk/grails-app/views/inventoryLocation/create.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create StoreLocation</title>7 <title>Create InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create StoreLocation</h1>15 <h1>Create InventoryLocation</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ storeLocationInstance}">19 <g:hasErrors bean="${inventoryLocationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ storeLocationInstance}" as="list" />21 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" bin">Bin:</label>31 <label for="name">Name:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'bin','errors')}">34 <input type="text" maxlength="50" id=" bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>33 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="inventoryStore">Inventory Store:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="isActive">Is Active:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'isActive','errors')}">52 <g:checkBox name="isActive" value="${ storeLocationInstance?.isActive}" ></g:checkBox>51 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 52 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 53 53 </td> 54 54 </tr> -
trunk/grails-app/views/inventoryLocation/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItem" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr> -
trunk/grails-app/views/inventoryLocation/list.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> StoreLocation List</title>7 <title>InventoryLocation List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> StoreLocation List</h1>15 <h1>InventoryLocation List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" bin" title="Bin" />26 <g:sortableColumn property="name" title="Name" /> 27 27 28 28 <th>Inventory Store</th> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ storeLocationInstanceList}" status="i" var="storeLocationInstance">35 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: storeLocationInstance, field:'bin')}</td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 41 41 42 <td>${fieldValue(bean: storeLocationInstance, field:'inventoryStore')}</td>42 <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td> 43 43 44 <td>${fieldValue(bean: storeLocationInstance, field:'isActive')}</td>44 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ storeLocationInstanceTotal}" />52 <g:paginate total="${inventoryLocationInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/grails-app/views/inventoryLocation/show.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show StoreLocation</title>7 <title>Show InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show StoreLocation</h1>16 <h1>Show InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: storeLocationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Bin:</td>33 <td valign="top" class="name">Name:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td> 35 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Inventory Items:</td> 41 42 <td valign="top" style="text-align:left;" class="value"> 43 <ul> 44 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 45 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 46 </g:each> 47 </ul> 48 </td> 36 49 37 50 </tr> … … 40 53 <td valign="top" class="name">Inventory Store:</td> 41 54 42 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${ storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>55 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 43 56 44 57 </tr> … … 47 60 <td valign="top" class="name">Is Active:</td> 48 61 49 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Stored Items:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="s" in="${storeLocationInstance.storedItems}"> 59 <li><g:link controller="storedItem" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 62 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />71 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/inventoryLocationDetailed/create.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create StoreLocation</title>7 <title>Create InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create StoreLocation</h1>15 <h1>Create InventoryLocation</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ storeLocationInstance}">19 <g:hasErrors bean="${inventoryLocationInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ storeLocationInstance}" as="list" />21 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" bin">Bin:</label>31 <label for="name">Name:</label> 32 32 </td> 33 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'bin','errors')}">34 <input type="text" maxlength="50" id=" bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/>33 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 34 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 35 35 </td> 36 36 </tr> … … 40 40 <label for="inventoryStore">Inventory Store:</label> 41 41 </td> 42 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>42 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 43 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 44 44 </td> 45 45 </tr> … … 49 49 <label for="isActive">Is Active:</label> 50 50 </td> 51 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'isActive','errors')}">52 <g:checkBox name="isActive" value="${ storeLocationInstance?.isActive}" ></g:checkBox>51 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 52 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 53 53 </td> 54 54 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/edit.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit StoreLocation</title>7 <title>Edit InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit StoreLocation</h1>16 <h1>Edit InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ storeLocationInstance}">20 <g:hasErrors bean="${inventoryLocationInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ storeLocationInstance}" as="list" />22 <g:renderErrors bean="${inventoryLocationInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <g:form method="post" > 26 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />27 <input type="hidden" name="version" value="${ storeLocationInstance?.version}" />26 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 27 <input type="hidden" name="version" value="${inventoryLocationInstance?.version}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" bin">Bin:</label>34 <label for="name">Name:</label> 35 35 </td> 36 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'bin','errors')}"> 37 <input type="text" maxlength="50" id="bin" name="bin" value="${fieldValue(bean:storeLocationInstance,field:'bin')}"/> 36 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'name','errors')}"> 37 <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:inventoryLocationInstance,field:'name')}"/> 38 </td> 39 </tr> 40 41 <tr class="prop"> 42 <td valign="top" class="name"> 43 <label for="inventoryItems">Inventory Items:</label> 44 </td> 45 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryItems','errors')}"> 46 47 <ul> 48 <g:each var="i" in="${inventoryLocationInstance?.inventoryItems?}"> 49 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 50 </g:each> 51 </ul> 52 <g:link controller="inventoryItem" params="['inventoryLocation.id':inventoryLocationInstance?.id]" action="create">Add InventoryItem</g:link> 53 38 54 </td> 39 55 </tr> … … 43 59 <label for="inventoryStore">Inventory Store:</label> 44 60 </td> 45 <td valign="top" class="value ${hasErrors(bean: storeLocationInstance,field:'inventoryStore','errors')}">46 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${ storeLocationInstance?.inventoryStore?.id}" ></g:select>61 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'inventoryStore','errors')}"> 62 <g:select optionKey="id" from="${InventoryStore.list()}" name="inventoryStore.id" value="${inventoryLocationInstance?.inventoryStore?.id}" ></g:select> 47 63 </td> 48 64 </tr> … … 52 68 <label for="isActive">Is Active:</label> 53 69 </td> 54 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'isActive','errors')}"> 55 <g:checkBox name="isActive" value="${storeLocationInstance?.isActive}" ></g:checkBox> 56 </td> 57 </tr> 58 59 <tr class="prop"> 60 <td valign="top" class="name"> 61 <label for="storedItems">Stored Items:</label> 62 </td> 63 <td valign="top" class="value ${hasErrors(bean:storeLocationInstance,field:'storedItems','errors')}"> 64 65 <ul> 66 <g:each var="s" in="${storeLocationInstance?.storedItems?}"> 67 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 68 </g:each> 69 </ul> 70 <g:link controller="storedItemDetailed" params="['storeLocation.id':storeLocationInstance?.id]" action="create">Add StoredItem</g:link> 71 70 <td valign="top" class="value ${hasErrors(bean:inventoryLocationInstance,field:'isActive','errors')}"> 71 <g:checkBox name="isActive" value="${inventoryLocationInstance?.isActive}" ></g:checkBox> 72 72 </td> 73 73 </tr> -
trunk/grails-app/views/inventoryLocationDetailed/list.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> StoreLocation List</title>7 <title>InventoryLocation List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1> StoreLocation List</h1>15 <h1>InventoryLocation List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" bin" title="Bin" />26 <g:sortableColumn property="name" title="Name" /> 27 27 28 28 <th>Inventory Store</th> … … 33 33 </thead> 34 34 <tbody> 35 <g:each in="${ storeLocationInstanceList}" status="i" var="storeLocationInstance">35 <g:each in="${inventoryLocationInstanceList}" status="i" var="inventoryLocationInstance"> 36 36 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 37 37 38 <td><g:link action="show" id="${ storeLocationInstance.id}">${fieldValue(bean:storeLocationInstance, field:'id')}</g:link></td>38 <td><g:link action="show" id="${inventoryLocationInstance.id}">${fieldValue(bean:inventoryLocationInstance, field:'id')}</g:link></td> 39 39 40 <td>${fieldValue(bean: storeLocationInstance, field:'bin')}</td>40 <td>${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 41 41 42 <td>${fieldValue(bean: storeLocationInstance, field:'inventoryStore')}</td>42 <td>${fieldValue(bean:inventoryLocationInstance, field:'inventoryStore')}</td> 43 43 44 <td>${fieldValue(bean: storeLocationInstance, field:'isActive')}</td>44 <td>${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 45 45 46 46 </tr> … … 50 50 </div> 51 51 <div class="paginateButtons"> 52 <g:paginate total="${ storeLocationInstanceTotal}" />52 <g:paginate total="${inventoryLocationInstanceTotal}" /> 53 53 </div> 54 54 </div> -
trunk/grails-app/views/inventoryLocationDetailed/show.gsp
r151 r175 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show StoreLocation</title>7 <title>Show InventoryLocation</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> StoreLocation List</g:link></span>13 <span class="menuButton"><g:link class="create" action="create">New StoreLocation</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">InventoryLocation List</g:link></span> 13 <span class="menuButton"><g:link class="create" action="create">New InventoryLocation</g:link></span> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show StoreLocation</h1>16 <h1>Show InventoryLocation</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 28 <td valign="top" class="value">${fieldValue(bean: storeLocationInstance, field:'id')}</td>28 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'id')}</td> 29 29 30 30 </tr> 31 31 32 32 <tr class="prop"> 33 <td valign="top" class="name"> Bin:</td>33 <td valign="top" class="name">Name:</td> 34 34 35 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'bin')}</td> 35 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'name')}</td> 36 37 </tr> 38 39 <tr class="prop"> 40 <td valign="top" class="name">Inventory Items:</td> 41 42 <td valign="top" style="text-align:left;" class="value"> 43 <ul> 44 <g:each var="i" in="${inventoryLocationInstance.inventoryItems}"> 45 <li><g:link controller="inventoryItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 46 </g:each> 47 </ul> 48 </td> 36 49 37 50 </tr> … … 40 53 <td valign="top" class="name">Inventory Store:</td> 41 54 42 <td valign="top" class="value"><g:link controller="inventoryStore Detailed" action="show" id="${storeLocationInstance?.inventoryStore?.id}">${storeLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td>55 <td valign="top" class="value"><g:link controller="inventoryStore" action="show" id="${inventoryLocationInstance?.inventoryStore?.id}">${inventoryLocationInstance?.inventoryStore?.encodeAsHTML()}</g:link></td> 43 56 44 57 </tr> … … 47 60 <td valign="top" class="name">Is Active:</td> 48 61 49 <td valign="top" class="value">${fieldValue(bean:storeLocationInstance, field:'isActive')}</td> 50 51 </tr> 52 53 <tr class="prop"> 54 <td valign="top" class="name">Stored Items:</td> 55 56 <td valign="top" style="text-align:left;" class="value"> 57 <ul> 58 <g:each var="s" in="${storeLocationInstance.storedItems}"> 59 <li><g:link controller="storedItemDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> 60 </g:each> 61 </ul> 62 </td> 62 <td valign="top" class="value">${fieldValue(bean:inventoryLocationInstance, field:'isActive')}</td> 63 63 64 64 </tr> … … 69 69 <div class="buttons"> 70 70 <g:form> 71 <input type="hidden" name="id" value="${ storeLocationInstance?.id}" />71 <input type="hidden" name="id" value="${inventoryLocationInstance?.id}" /> 72 72 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 73 73 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> -
trunk/grails-app/views/inventoryMovement/create.gsp
r151 r175 41 41 </td> 42 42 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> 43 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" />43 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> 44 44 </td> 45 45 </tr> … … 68 68 </td> 69 69 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> 70 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" ></g:datePicker>70 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> 71 71 </td> 72 72 </tr> -
trunk/grails-app/views/inventoryMovement/edit.gsp
r151 r175 44 44 </td> 45 45 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"> 46 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" />46 <input type="text" id="quantity" name="quantity" value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}" /> 47 47 </td> 48 48 </tr> … … 71 71 </td> 72 72 <td valign="top" class="value ${hasErrors(bean:inventoryMovementInstance,field:'date','errors')}"> 73 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" ></g:datePicker>73 <g:datePicker name="date" value="${inventoryMovementInstance?.date}" precision="minute" ></g:datePicker> 74 74 </td> 75 75 </tr> -
trunk/grails-app/views/inventoryStore/edit.gsp
r151 r175 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for="inventoryLocations">Inventory Locations:</label> 53 </td> 54 <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'inventoryLocations','errors')}"> 55 56 <ul> 57 <g:each var="i" in="${inventoryStoreInstance?.inventoryLocations?}"> 58 <li><g:link controller="inventoryLocation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 59 </g:each> 60 </ul> 61 <g:link controller="inventoryLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add InventoryLocation</g:link> 62 63 </td> 64 </tr> 65 66 <tr class="prop"> 67 <td valign="top" class="name"> 52 68 <label for="isActive">Is Active:</label> 53 69 </td> … … 66 82 </tr> 67 83 68 <tr class="prop">69 <td valign="top" class="name">70 <label for="storeLocations">Store Locations:</label>71 </td>72 <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'storeLocations','errors')}">73 74 <ul>75 <g:each var="s" in="${inventoryStoreInstance?.storeLocations?}">76 <li><g:link controller="storeLocation" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>77 </g:each>78 </ul>79 <g:link controller="storeLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add StoreLocation</g:link>80 81 </td>82 </tr>83 84 84 </tbody> 85 85 </table> -
trunk/grails-app/views/inventoryStore/show.gsp
r151 r175 45 45 46 46 <tr class="prop"> 47 <td valign="top" class="name">Inventory Locations:</td> 48 49 <td valign="top" style="text-align:left;" class="value"> 50 <ul> 51 <g:each var="i" in="${inventoryStoreInstance.inventoryLocations}"> 52 <li><g:link controller="inventoryLocation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li> 53 </g:each> 54 </ul> 55 </td> 56 57 </tr> 58 59 <tr class="prop"> 47 60 <td valign="top" class="name">Is Active:</td> 48 61 … … 55 68 56 69 <td valign="top" class="value"><g:link controller="site" action="show" id="${inventoryStoreInstance?.site?.id}">${inventoryStoreInstance?.site?.encodeAsHTML()}</g:link></td> 57 58 </tr>59 60 <tr class="prop">61 <td valign="top" class="name">Store Locations:</td>62 63 <td valign="top" style="text-align:left;" class="value">64 <ul>65 <g:each var="s" in="${inventoryStoreInstance.storeLocations}">66 <li><g:link controller="storeLocation" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>67 </g:each>68 </ul>69 </td>70 70 71 71 </tr> -
trunk/grails-app/views/taskDetailed/show.gsp
r168 r175 194 194 <th>Entered By</th> 195 195 <th></th> 196 197 <!-- <g:sortableColumn property="comment" title="Comment" />198 199 <g:sortableColumn property="dateDone" title="Date Done" />200 201 <g:sortableColumn property="enteredBy" title="Entered By" />-->202 196 </tr> 203 197 </thead> … … 288 282 <div class="buttons"> 289 283 <span class="button"> 290 <g:actionSubmit value="New" action="create" 284 <g:actionSubmit value="New" action="create" class="add"/> 291 285 </span> 292 286 <span class="button"> 293 <g:actionSubmit value="Search" action="search" 287 <g:actionSubmit value="Search" action="search" class="search"/> 294 288 </span> 295 289 </div> … … 506 500 <!-- Start Inventory tab --> 507 501 <richui:tabContent> 508 Used Inventory 502 503 <g:if test="${inventoryMovementList.isEmpty()}"> 504 <br /> 505 No Inventory Used. 506 <br /> 507 <br /> 508 </g:if> 509 <g:else> 510 <div class="list"> 511 <table> 512 <thead> 513 <tr> 514 <th>Inventory Item</th> 515 <th>Quantity</th> 516 <th>Movement Type</th> 517 <th>Date</th> 518 <th></th> 519 </tr> 520 </thead> 521 <tbody> 522 <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> 523 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'/> 524 525 <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')}</td> 526 <td>${fieldValue(bean:inventoryMovementInstance, field:'quantity')}</td> 527 <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}</td> 528 <td><g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/></td> 529 <td> 530 <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> 531 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 532 </g:link> 533 </td> 534 535 </tr> 536 </g:each> 537 </tbody> 538 </table> 539 </div> 540 </g:else> 541 542 <g:form controller="inventoryMovementDetailed" > 543 <input type="hidden" name="task.id" value="${taskInstance?.id}" /> 544 <div class="buttons"> 545 <g:if test="${!inventoryMovementList.isEmpty()}"> 546 Results: ${inventoryMovementList.size()} 547 <br /> 548 </g:if> 549 <span class="button"> 550 <g:actionSubmit value="Add" action="create" class="add"/> 551 </span> 552 </div> 553 </g:form> 554 509 555 </richui:tabContent> 510 556 <!-- End Inventory tab -->
Note: See TracChangeset
for help on using the changeset viewer.