Changeset 420 for trunk/grails-app
- Timestamp:
- Mar 1, 2010, 3:03:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r418 r420 470 470 471 471 // SupplierType #1 472 supplierTypeInstance = new SupplierType(name: "Unknown", 473 description: "Unknown supplier type") 474 saveAndTest(supplierTypeInstance) 475 476 // SupplierType #2 472 477 supplierTypeInstance = new SupplierType(name: "OEM", 473 478 description: "Original equipment supplier") 474 479 saveAndTest(supplierTypeInstance) 475 480 476 // SupplierType # 2481 // SupplierType #3 477 482 supplierTypeInstance = new SupplierType(name: "Local", 478 483 description: "Local supplier") … … 486 491 487 492 // ManufacturerType #1 493 manufacturerTypeInstance = new ManufacturerType(name: "Unknown", 494 description: "Unknown manufacturer type") 495 saveAndTest(manufacturerTypeInstance) 496 497 // ManufacturerType #2 488 498 manufacturerTypeInstance = new ManufacturerType(name: "OEM", 489 499 description: "Original equipment manufacturer") 490 500 saveAndTest(manufacturerTypeInstance) 491 501 492 // ManufacturerType # 2502 // ManufacturerType #3 493 503 manufacturerTypeInstance = new ManufacturerType(name: "Alternate", 494 504 description: "Not original equipment manufacturer") … … 586 596 // Supplier #1 587 597 supplierInstance = new Supplier(name: "OEM Distributors", 588 supplierType: SupplierType.get( 1))598 supplierType: SupplierType.get(2)) 589 599 saveAndTest(supplierInstance) 590 600 591 601 // Supplier #2 592 602 supplierInstance = new Supplier(name: "Mex Holdings", 593 supplierType: SupplierType.get( 2))603 supplierType: SupplierType.get(3)) 594 604 saveAndTest(supplierInstance) 595 605 } … … 602 612 // Manufacturer #1 603 613 manufacturerInstance = new Manufacturer(name: "OEM Manufacturer", 604 manufacturerType: ManufacturerType.get( 1))614 manufacturerType: ManufacturerType.get(2)) 605 615 saveAndTest(manufacturerInstance) 606 616 607 617 // Manufacturer #2 608 618 manufacturerInstance = new Manufacturer(name: "Laser Cutting Services Pty", 609 manufacturerType: ManufacturerType.get( 2))619 manufacturerType: ManufacturerType.get(3)) 610 620 saveAndTest(manufacturerInstance) 611 621 }
Note: See TracChangeset
for help on using the changeset viewer.