Changeset 750 for trunk/grails-app
- Timestamp:
- Jan 22, 2011, 11:57:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r749 r750 857 857 858 858 taskResult = taskService.save(p) 859 taskService.approve(taskResult.taskInstance) 859 860 860 861 //Task #2 … … 871 872 872 873 taskResult = taskService.save(p) 874 taskService.approve(taskResult.taskInstance) 873 875 874 876 //Task #3 … … 885 887 886 888 taskResult = taskService.save(p) 889 taskService.approve(taskResult.taskInstance) 887 890 888 891 //Task #4 … … 899 902 900 903 taskResult = taskService.save(p) 904 taskService.approve(taskResult.taskInstance) 901 905 902 906 //Task #5 … … 912 916 913 917 taskResult = taskService.save(p) 918 taskService.approve(taskResult.taskInstance) 914 919 915 920 //Task #6 916 921 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 917 922 taskPriority:TaskPriority.get(4), 918 taskType:TaskType.get( 4),923 taskType:TaskType.get(6), 919 924 leadPerson:Person.get(4), 920 925 primaryAsset:Asset.get(2), … … 926 931 taskResult = taskService.save(p) 927 932 taskService.approve(taskResult.taskInstance) 933 934 //Task #7 935 p = [taskGroup:TaskGroup.findByName("Engineering Activites"), 936 taskPriority:TaskPriority.get(4), 937 taskType:TaskType.get(6), 938 leadPerson:Person.get(4), 939 primaryAsset:Asset.get(2), 940 description:"100hr Service.", 941 comment:"Based on OEM service.", 942 targetStartDate: dateUtilService.today, 943 targetCompletionDate: dateUtilService.today + 1] 944 945 taskResult = taskService.save(p) 946 taskService.approve(taskResult.taskInstance) 928 947 } 929 948 … … 979 998 980 999 //Entry #4 981 p = [task: Task.list()[ 5],1000 p = [task: Task.list()[4], 982 1001 entryType: EntryType.get(3), 983 comment: " Recurring work done as per procedure.",1002 comment: "Work done as per procedure.", 984 1003 durationMinute: 55] 985 1004 … … 1021 1040 //AssignedPerson #2 1022 1041 p = [person: Person.get(4), // Demo User. 1023 task: Task.list()[0], 1042 task: Task.list()[5], 1043 estimatedHour: 1, 1044 estimatedMinute: 20] 1045 result = assignedPersonService.save(p) 1046 1047 //AssignedPerson #3 1048 p = [person: Person.get(3), // Demo Manager. 1049 task: Task.list()[6], 1024 1050 estimatedHour: 3, 1025 1051 estimatedMinute: 30] 1026 1052 result = assignedPersonService.save(p) 1053 1054 //AssignedPerson #4 1055 p = [person: Person.get(4), // Demo User. 1056 task: Task.list()[6], 1057 estimatedHour: 3, 1058 estimatedMinute: 30] 1059 result = assignedPersonService.save(p) 1027 1060 } 1028 1061 … … 1069 1102 saveAndTest(taskProcedureInstance) 1070 1103 taskProcedureInstance.addToTasks(Task.list()[0]) 1104 1105 taskProcedureInstance = new TaskProcedure(name: "100hr Service") 1106 saveAndTest(taskProcedureInstance) 1107 taskProcedureInstance.addToTasks(Task.list()[6]) 1071 1108 } 1072 1109 … … 1116 1153 //TaskRecurringSchedule #2 1117 1154 taskRecurringScheduleInstance = new TaskRecurringSchedule(task: Task.list()[5], 1155 recurEvery: 1, 1156 recurPeriod: Period.get(1), 1157 nextTargetStartDate: dateUtilService.today, 1158 generateAhead: 1, 1159 taskDuration: 1, 1160 taskDurationPeriod: Period.get(1), 1161 enabled: true) 1162 saveAndTest(taskRecurringScheduleInstance) 1163 1164 //TaskRecurringSchedule #3 1165 taskRecurringScheduleInstance = new TaskRecurringSchedule(task: Task.list()[6], 1118 1166 recurEvery: 1, 1119 1167 recurPeriod: Period.get(1),
Note: See TracChangeset
for help on using the changeset viewer.