- Timestamp:
- Dec 23, 2009, 3:05:12 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 5 deleted
- 7 edited
- 5 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Task.groovy
r240 r241 21 21 static hasMany = [entries: Entry, 22 22 taskModifications: TaskModification, 23 assigned Groups: AssignedGroup,23 assignedPersons: AssignedPerson, 24 24 subTasks: Task, 25 25 associatedAssets: Asset, -
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, -
trunk/grails-app/views/task/edit.gsp
r240 r241 139 139 <tr class="prop"> 140 140 <td valign="top" class="name"> 141 <label for="assigned Groups">Assigned Groups:</label>142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Groups','errors')}">144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assigned Groups?}">147 <li><g:link controller="assigned Group" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>148 </g:each> 149 </ul> 150 <g:link controller="assigned Group" params="['task.id':taskInstance?.id]" action="create">Add AssignedGroup</g:link>141 <label for="assignedPersons">Assigned Persons:</label> 142 </td> 143 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> 144 145 <ul> 146 <g:each var="a" in="${taskInstance?.assignedPersons?}"> 147 <li><g:link controller="assignedPerson" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 148 </g:each> 149 </ul> 150 <g:link controller="assignedPerson" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> 151 151 152 152 </td> -
trunk/grails-app/views/task/show.gsp
r240 r241 114 114 115 115 <tr class="prop"> 116 <td valign="top" class="name">Assigned Groups:</td>117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assigned Groups}">121 <li><g:link controller="assigned Group" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>116 <td valign="top" class="name">Assigned Persons:</td> 117 118 <td valign="top" style="text-align:left;" class="value"> 119 <ul> 120 <g:each var="a" in="${taskInstance.assignedPersons}"> 121 <li><g:link controller="assignedPerson" action="show" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 122 122 </g:each> 123 123 </ul> -
trunk/grails-app/views/taskDetailed/edit.gsp
r240 r241 151 151 <tr class="prop"> 152 152 <td valign="top" class="name"> 153 <label for="assigned Groups">Assigned Groups:</label>153 <label for="assignedPersons">Assigned Persons:</label> 154 154 </td> 155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assigned Groups','errors')}">155 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'assignedPersons','errors')}"> 156 156 157 157 <ul> 158 <g:each var="a" in="${taskInstance?.assigned Groups?}">159 <li><g:link controller="assigned GroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>158 <g:each var="a" in="${taskInstance?.assignedPersons?}"> 159 <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 160 160 </g:each> 161 161 </ul> -
trunk/grails-app/views/taskDetailed/show.gsp
r240 r241 183 183 184 184 <tr class="prop"> 185 <td valign="top" class="name">Assigned Groups:</td>185 <td valign="top" class="name">Assigned Persons:</td> 186 186 187 187 <td valign="top" style="text-align:left;" class="value"> 188 188 <ul> 189 <g:each var="a" in="${taskInstance.assigned Groups}">190 <li><g:link controller="assigned GroupDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li>189 <g:each var="a" in="${taskInstance.assignedPersons}"> 190 <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> 191 191 </g:each> 192 192 </ul> 193 <g:link controller="assigned GroupDetailed" params="['task.id':taskInstance?.id]" action="create">Add Assigned Group</g:link>193 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> 194 194 </td> 195 195
Note: See TracChangeset
for help on using the changeset viewer.