- Timestamp:
- Nov 25, 2010, 12:08:12 PM (14 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 6 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Config.groovy
r646 r722 270 270 ] 271 271 ], 272 [order:60, controller:'manufacturerDetailed', title:'manufacturer', action:'list',273 subItems: [274 [order:10, controller:'manufacturerDetailed', title:'Manufacturer List', action:'list', isVisible: { true }],275 [order:20, controller:'manufacturerDetailed', title:'Create', action:'create', isVisible: { true }],276 [order:90, controller:'manufacturerDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }],277 [order:91, controller:'manufacturerDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }]278 ]279 ],280 272 [order:70, controller:'inventoryStoreDetailed', title:'inventoryStore', action:'list', 281 273 subItems: [ … … 300 292 [order:90, controller:'inventoryGroupDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }], 301 293 [order:91, controller:'inventoryGroupDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }] 302 ]303 ],304 [order:100, controller:'manufacturerTypeDetailed', title:'manufacturerType', action:'list',305 subItems: [306 [order:10, controller:'manufacturerTypeDetailed', title:'Manufacturer Type List', action:'list', isVisible: { true }],307 [order:20, controller:'manufacturerTypeDetailed', title:'Create', action:'create', isVisible: { true }],308 [order:90, controller:'manufacturerTypeDetailed', title:'Show', action:'show', isVisible: { params.action == 'show' }],309 [order:91, controller:'manufacturerTypeDetailed', title:'Edit', action:'edit', isVisible: { params.action == 'edit' }]310 294 ] 311 295 ], -
trunk/grails-app/domain/Address.groovy
r397 r722 3 3 AddressType addressType 4 4 5 Manufacturer manufacturer6 5 Supplier supplier 7 6 Person person … … 17 16 // hasMany = [] 18 17 19 static belongsTo = [ Manufacturer,Supplier, Person, Site]18 static belongsTo = [Supplier, Person, Site] 20 19 21 20 static constraints = { … … 26 25 postCode(blank:false,maxSize:50) 27 26 country(blank:false,maxSize:50) 28 manufacturer(nullable:true)29 27 supplier(nullable:true) 30 28 person(nullable:true) -
trunk/grails-app/domain/Contact.groovy
r402 r722 3 3 ContactType contactType 4 4 5 Manufacturer manufacturer6 5 Supplier supplier 7 6 Person person … … 12 11 // hasMany = [] 13 12 14 static belongsTo = [ Manufacturer,Supplier, Person, Site]13 static belongsTo = [Supplier, Person, Site] 15 14 16 15 static constraints = { 17 16 value(maxSize:50) 18 17 19 manufacturer(nullable:true)20 18 supplier(nullable:true) 21 19 person(nullable:true) -
trunk/grails-app/i18n/messages.properties
r718 r722 3 3 # 4 4 5 address.owner.not.found=An owner (Person, Site , Manufactureror Supplier) must be supplied to create an address.6 contact.owner.not.found=An owner (Person, Site , Manufactureror Supplier) must be supplied to create contact details.5 address.owner.not.found=An owner (Person, Site or Supplier) must be supplied to create an address. 6 contact.owner.not.found=An owner (Person, Site or Supplier) must be supplied to create contact details. 7 7 8 8 asset.tree.import.success=Asset tree imported. … … 407 407 fp.property.text.spareFor.name=Spare For 408 408 fp.property.text.supplier.name=Supplier 409 fp.property.text.manufacturer.name=Manufacturer410 409 fp.property.text.estimatedUnitPriceAmount=Estimated Unit Price 411 410 -
trunk/grails-app/services/AddressService.groovy
r401 r722 57 57 private checkForOwner(params) { 58 58 59 if(params.manufacturer?.id)60 return Manufacturer.exists(params.manufacturer.id)61 59 if(params.supplier?.id) 62 60 return Supplier.exists(params.supplier.id) -
trunk/grails-app/services/ContactService.groovy
r402 r722 74 74 def ownerInstance 75 75 76 if(params.manufacturer?.id)77 return ownerInstance = Manufacturer.get(params.manufacturer.id)78 76 if(params.supplier?.id) 79 77 return ownerInstance = Supplier.get(params.supplier.id) … … 89 87 def ownerInstance 90 88 91 if(object.manufacturer)92 return ownerInstance = object.manufacturer93 89 if(object.supplier) 94 90 return ownerInstance = object.supplier -
trunk/grails-app/services/CreateBulkDataService.groovy
r622 r722 54 54 // createBulkTestDepartments() 55 55 // createBulkTestSuppliers() 56 // createBulkTestManufacturers()57 56 58 57 // Assets -
trunk/grails-app/services/CreateDataService.groovy
r720 r722 66 66 createBasePeriods() 67 67 createBaseSupplierTypes() 68 createBaseManufacturerTypes()69 68 createBaseAddressTypes() 70 69 createBaseContactTypes() … … 118 117 createDemoDepartments() 119 118 createDemoSuppliers() 120 createDemoManufacturers()121 119 createDemoProductionReference() 122 120 createDemoPurchasingGroups() /// @todo: Perhaps a 'createQuickStartData' method? … … 526 524 } 527 525 528 def createBaseManufacturerTypes() {529 530 // ManufacturerType531 def manufacturerTypeInstance532 533 // ManufacturerType #1534 manufacturerTypeInstance = new ManufacturerType(name: "Unknown",535 description: "Unknown manufacturer type")536 saveAndTest(manufacturerTypeInstance)537 538 // ManufacturerType #2539 manufacturerTypeInstance = new ManufacturerType(name: "OEM",540 description: "Original equipment manufacturer")541 saveAndTest(manufacturerTypeInstance)542 543 // ManufacturerType #3544 manufacturerTypeInstance = new ManufacturerType(name: "Alternate",545 description: "Not original equipment manufacturer")546 saveAndTest(manufacturerTypeInstance)547 548 }549 550 526 def createBaseAddressTypes() { 551 527 … … 670 646 supplierType: SupplierType.get(3)) 671 647 saveAndTest(supplierInstance) 672 }673 674 def createDemoManufacturers() {675 676 // Manufacturer677 def manufacturerInstance678 679 // Manufacturer #1680 manufacturerInstance = new Manufacturer(name: "OEM Manufacturer",681 manufacturerType: ManufacturerType.get(2))682 saveAndTest(manufacturerInstance)683 684 // Manufacturer #2685 manufacturerInstance = new Manufacturer(name: "Laser Cutting Services Pty",686 manufacturerType: ManufacturerType.get(3))687 saveAndTest(manufacturerInstance)688 648 } 689 649 -
trunk/grails-app/views/addressDetailed/create.gsp
r404 r722 22 22 <table> 23 23 <tbody> 24 25 <g:if test="${addressInstance.manufacturer}">26 <g:hiddenField name="manufacturer.id" value="${addressInstance.manufacturer.id}"/>27 <tr class="prop">28 <td valign="top" class="name">29 <label for="manufacturer">Manufacturer:</label>30 </td>31 <td valign="top" class="value">32 <g:link controller="manufacturerDetailed" action="show" id="${addressInstance.manufacturer.id}">33 ${addressInstance.manufacturer.encodeAsHTML()}34 </g:link>35 </td>36 </tr>37 </g:if>38 24 39 25 <g:if test="${addressInstance.supplier}"> -
trunk/grails-app/views/addressDetailed/edit.gsp
r397 r722 24 24 <table> 25 25 <tbody> 26 27 <g:if test="${addressInstance.manufacturer}">28 <tr class="prop">29 <td valign="top" class="name">30 <label for="manufacturer">Manufacturer:</label>31 </td>32 <td valign="top" class="value">33 <g:link controller="manufacturerDetailed" action="show" id="${addressInstance.manufacturer.id}">34 ${addressInstance.manufacturer.encodeAsHTML()}35 </g:link>36 </td>37 </tr>38 </g:if>39 26 40 27 <g:if test="${addressInstance.supplier}"> -
trunk/grails-app/views/addressDetailed/show.gsp
r397 r722 24 24 25 25 </tr> 26 27 <g:if test="${addressInstance.manufacturer}">28 <tr class="prop">29 <td valign="top" class="name">Manufacturer:</td>30 31 <td valign="top" class="value"><g:link controller="manufacturerDetailed" action="show" id="${addressInstance.manufacturer.id}">${addressInstance.manufacturer.encodeAsHTML()}</g:link></td>32 33 </tr>34 </g:if>35 26 36 27 <g:if test="${addressInstance.supplier}"> -
trunk/grails-app/views/appCore/manager.gsp
r666 r722 38 38 <br /> 39 39 <a href="${createLink(controller:'maintenancePolicyDetailed', action:'list')}">Maintenance Policies</a> 40 <br />41 <a href="${createLink(controller:'manufacturerDetailed', action:'list')}">Manufacturers</a>42 40 <br /> 43 41 <a href="${createLink(controller:'purchasingGroupDetailed', action:'list')}">Purchasing Groups</a> -
trunk/grails-app/views/contactDetailed/create.gsp
r402 r722 22 22 <table> 23 23 <tbody> 24 25 <g:if test="${contactInstance.manufacturer}">26 <g:hiddenField name="manufacturer.id" value="${contactInstance.manufacturer.id}"/>27 <tr class="prop">28 <td valign="top" class="name">29 <label for="manufacturer">Manufacturer:</label>30 </td>31 <td valign="top" class="value">32 <g:link controller="manufacturerDetailed" action="show" id="${contactInstance.manufacturer.id}">33 ${contactInstance.manufacturer.encodeAsHTML()}34 </g:link>35 </td>36 </tr>37 </g:if>38 24 39 25 <g:if test="${contactInstance.supplier}"> -
trunk/grails-app/views/contactDetailed/edit.gsp
r402 r722 24 24 <table> 25 25 <tbody> 26 27 <g:if test="${contactInstance.manufacturer}">28 <g:hiddenField name="manufacturer.id" value="${contactInstance.manufacturer.id}"/>29 <tr class="prop">30 <td valign="top" class="name">31 <label for="manufacturer">Manufacturer:</label>32 </td>33 <td valign="top" class="value">34 <g:link controller="manufacturerDetailed" action="show" id="${contactInstance.manufacturer.id}">35 ${contactInstance.manufacturer.encodeAsHTML()}36 </g:link>37 </td>38 </tr>39 </g:if>40 26 41 27 <g:if test="${contactInstance.supplier}"> -
trunk/grails-app/views/contactDetailed/show.gsp
r402 r722 21 21 <td valign="top" class="value">${fieldValue(bean:contactInstance, field:'id')}</td> 22 22 </tr> 23 24 <g:if test="${contactInstance.manufacturer}">25 <tr class="prop">26 <td valign="top" class="name">Manufacturer:</td>27 28 <td valign="top" class="value"><g:link controller="manufacturerDetailed" action="show" id="${contactInstance.manufacturer.id}">${contactInstance.manufacturer.encodeAsHTML()}</g:link></td>29 30 </tr>31 </g:if>32 23 33 24 <g:if test="${contactInstance.supplier}">
Note: See TracChangeset
for help on using the changeset viewer.