Changeset 763 for branches/features/taskProcedureRework/grails-app/services/CreateDataService.groovy
- Timestamp:
- Jan 28, 2011, 10:42:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/taskProcedureRework/grails-app/services/CreateDataService.groovy
r762 r763 140 140 createDemoAssignedPersons() 141 141 createDemoTaskProcedure() 142 //createDemoMaintenanceActions()142 createDemoMaintenanceActions() 143 143 createDemoTaskRecurringSchedules() 144 144 … … 1114 1114 //MaintenanceAction 1115 1115 def maintenanceActionInstance 1116 def taskProcedure = TaskProcedure.get(1) 1116 1117 1117 1118 //MaintenanceAction #1 … … 1119 1120 procedureStepNumber: 10, 1120 1121 maintenancePolicy: MaintenancePolicy.get(1), 1121 taskProcedure: TaskProcedure.get(1))1122 saveAndTest(maintenanceActionInstance)1122 taskProcedure: taskProcedure) 1123 taskProcedure.addToMaintenanceActions(maintenanceActionInstance) 1123 1124 1124 1125 //MaintenanceAction #2 … … 1126 1127 procedureStepNumber: 20, 1127 1128 maintenancePolicy: MaintenancePolicy.get(1), 1128 taskProcedure: TaskProcedure.get(1))1129 saveAndTest(maintenanceActionInstance)1129 taskProcedure: taskProcedure) 1130 taskProcedure.addToMaintenanceActions(maintenanceActionInstance) 1130 1131 1131 1132 //MaintenanceAction #3 … … 1133 1134 procedureStepNumber: 30, 1134 1135 maintenancePolicy: MaintenancePolicy.get(1), 1135 taskProcedure: TaskProcedure.get(1)) 1136 saveAndTest(maintenanceActionInstance) 1136 taskProcedure: taskProcedure) 1137 taskProcedure.addToMaintenanceActions(maintenanceActionInstance) 1138 1139 saveAndTest(taskProcedure) 1137 1140 } 1138 1141 … … 1478 1481 section: Section.get(1)) 1479 1482 saveAndTest(assetInstance1) 1480 // assetInstance.addToMaintenanceActions(MaintenanceAction.get(1))1481 1483 1482 1484 //Asset #2
Note: See TracChangeset
for help on using the changeset viewer.