Changeset 241 for trunk/grails-app/services
- Timestamp:
- Dec 23, 2009, 3:05:12 PM (15 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/CreateDataService.groovy
r240 r241 110 110 createDemoTasks() 111 111 createDemoEntries() 112 createDemoAssigned Groups()112 createDemoAssignedPersons() 113 113 createDemoTaskRecurringSchedules() 114 114 … … 655 655 } 656 656 657 def createDemoAssigned Groups() {658 659 //Assigned Group660 def assigned GroupInstance661 662 //Assigned Group#1663 assigned GroupInstance = new AssignedGroup(personGroup: PersonGroup.get(4),657 def createDemoAssignedPersons() { 658 659 //AssignedPerson 660 def assignedPersonInstance 661 662 //AssignedPerson #1 663 assignedPersonInstance = new AssignedPerson(person: Person.get(4), 664 664 task: Task.get(1), 665 665 estimatedHour: 1, 666 666 estimatedMinute: 20) 667 saveAndTest(assigned GroupInstance)668 669 //Assigned Group#2670 assigned GroupInstance = new AssignedGroup(personGroup: PersonGroup.get(5),667 saveAndTest(assignedPersonInstance) 668 669 //AssignedPerson #2 670 assignedPersonInstance = new AssignedPerson(person: Person.get(5), 671 671 task: Task.get(1), 672 672 estimatedHour: 3, 673 673 estimatedMinute: 30) 674 saveAndTest(assigned GroupInstance)674 saveAndTest(assignedPersonInstance) 675 675 } 676 676 -
trunk/grails-app/services/TaskService.groovy
r240 r241 97 97 if(params.taskProcedure) p.taskProcedure = params.taskProcedure 98 98 99 //Set the assigned Groups100 // taskInstance.assigned Groups.each() {99 //Set the assignedPersons 100 // taskInstance.assignedPersons.each() { 101 101 // 102 // def assigned Group = new AssignedGroup(person: it.person,102 // def assignedPerson = new AssignedPerson(person: it.person, 103 103 // task: subTaskInstance, 104 104 // estimatedHour: it.estimatedHour,
Note: See TracChangeset
for help on using the changeset viewer.