Changeset 418 for trunk/grails-app/services/CreateDataService.groovy
- Timestamp:
- Feb 28, 2010, 7:13:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r402 r418 685 685 def taskTypeInstance 686 686 687 taskTypeInstance = new TaskType(name:" Unscheduled Breakin") // #1687 taskTypeInstance = new TaskType(name:"Immediate Callout") // #1 688 688 saveAndTest(taskTypeInstance) 689 689 690 taskTypeInstance = new TaskType(name:" Preventative Maintenance") // #2690 taskTypeInstance = new TaskType(name:"Unscheduled Breakin") // #2 691 691 saveAndTest(taskTypeInstance) 692 692 693 taskTypeInstance = new TaskType(name:" Project") // #3693 taskTypeInstance = new TaskType(name:"Scheduled") // #3 694 694 saveAndTest(taskTypeInstance) 695 695 696 taskTypeInstance = new TaskType(name:" Turnaround") // #4696 taskTypeInstance = new TaskType(name:"Preventative Maintenance") // #4 697 697 saveAndTest(taskTypeInstance) 698 698 699 taskTypeInstance = new TaskType(name:"Production Run") // #5 699 taskTypeInstance = new TaskType(name:"Predictive Maintenance") // #5 700 saveAndTest(taskTypeInstance) 701 702 taskTypeInstance = new TaskType(name:"Project") // #6 700 703 saveAndTest(taskTypeInstance) 701 704 } … … 716 719 taskModificationTypeInstance = new TaskModificationType(name:"Modified (Assigned Groups)").save() // #10 717 720 taskModificationTypeInstance = new TaskModificationType(name:"Modified (Assigned Persons)").save() // #11 721 taskModificationTypeInstance = new TaskModificationType(name:"Modified (Flagged for attention)").save() // #12 722 taskModificationTypeInstance = new TaskModificationType(name:"Modified (Attention flag cleared)").save() // #13 718 723 } 719 724 … … 728 733 taskType:TaskType.get(1), 729 734 leadPerson:Person.get(2), 730 description:" Check specific level sensor",735 description:"Level sensor not working", 731 736 comment:"Has been noted as problematic, try recalibrating.", 732 737 targetStartDate: dateUtilService.today] … … 737 742 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 738 743 taskPriority:TaskPriority.get(2), 739 taskType:TaskType.get( 1),744 taskType:TaskType.get(3), 740 745 leadPerson:Person.get(5), 741 746 description:"Some follow-up work", … … 749 754 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 750 755 taskPriority:TaskPriority.get(2), 751 taskType:TaskType.get( 1),756 taskType:TaskType.get(3), 752 757 leadPerson:Person.get(5), 753 description:"A Sub Task can be created from the Sub Task'stab.",758 description:"A Sub Task can be created from the 'Sub Task' tab.", 754 759 comment:"Some help required", 755 760 targetStartDate: dateUtilService.yesterday, … … 761 766 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 762 767 taskPriority:TaskPriority.get(2), 763 taskType:TaskType.get( 1),768 taskType:TaskType.get(2), 764 769 leadPerson:Person.get(4), 765 description:" Replace sensor at nextopportunity.",766 comment:"Nothing else has worked. ",770 description:"Please replace sensor at next available opportunity.", 771 comment:"Nothing else has worked. So we now require the part to be replaced.", 767 772 targetStartDate: dateUtilService.oneWeekFromNow, 768 773 parentTask: Task.get(1)] … … 773 778 p = [taskGroup:TaskGroup.findByName("Production Activites"), 774 779 taskPriority:TaskPriority.get(2), 775 taskType:TaskType.get( 5),780 taskType:TaskType.get(3), 776 781 leadPerson:Person.get(6), 777 description:"Production Report",778 comment:"Production reportfor specific production run or shift",782 description:"Production Task", 783 comment:"Production task for specific production run or shift", 779 784 targetStartDate: dateUtilService.today - 6] 780 785 … … 783 788 //Task #6 784 789 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 785 taskPriority:TaskPriority.get( 1),786 taskType:TaskType.get( 2),790 taskPriority:TaskPriority.get(4), 791 taskType:TaskType.get(3), 787 792 leadPerson:Person.get(4), 788 description:"This is a recurring task",793 description:"This is a recurring preventative maintenance task.", 789 794 comment:"If there is a parent task specified then this is a generated sub task, if there is a recurring schedule specified then this is a parent task.", 790 795 targetStartDate: dateUtilService.today] … … 801 806 saveAndTest(entryTypeInstance) 802 807 803 entryTypeInstance = new EntryType(name:" Work Done") // #2808 entryTypeInstance = new EntryType(name:"Cause") // #2 804 809 saveAndTest(entryTypeInstance) 805 810 806 entryTypeInstance = new EntryType(name:" Production Note") // #3811 entryTypeInstance = new EntryType(name:"Work Done") // #3 807 812 saveAndTest(entryTypeInstance) 808 813 809 entryTypeInstance = new EntryType(name:"Work Request") // #4 814 entryTypeInstance = new EntryType(name:"Production Note") // #4 815 saveAndTest(entryTypeInstance) 816 817 entryTypeInstance = new EntryType(name:"Work Request") // #5 810 818 saveAndTest(entryTypeInstance) 811 819 } … … 826 834 //Entry #2 827 835 p = [task: Task.get(1), 828 entryType: EntryType.get( 2),836 entryType: EntryType.get(3), 829 837 comment: "Cleaned sensor, see how it goes.", 830 838 durationMinute: 30] … … 834 842 //Entry #3 835 843 p = [task: Task.get(1), 836 entryType: EntryType.get( 2),844 entryType: EntryType.get(3), 837 845 comment: "Checked up on it later and sensor is dropping out intermittently, created sub task to replace sensor.", 838 846 durationMinute: 20] … … 933 941 saveAndTest(inventoryLocation) 934 942 935 inventoryLocation = new InventoryLocation(inventoryStore: InventoryStore.get( 1), name: "C55")943 inventoryLocation = new InventoryLocation(inventoryStore: InventoryStore.get(2), name: "C55") 936 944 saveAndTest(inventoryLocation) 937 945 }
Note: See TracChangeset
for help on using the changeset viewer.