Changeset 722 for trunk/grails-app/services/CreateDataService.groovy
- Timestamp:
- Nov 25, 2010, 12:08:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.