- Timestamp:
- Dec 28, 2009, 5:00:59 AM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Task.groovy
r242 r252 4 4 TaskStatus taskStatus 5 5 TaskPriority taskPriority 6 TaskBudgetStatus taskBudgetStatus 6 7 TaskType taskType 7 8 Task parentTask … … 38 39 leadPerson() 39 40 taskPriority() 41 taskBudgetStatus() 40 42 taskStatus() 41 43 parentTask(nullable:true) -
trunk/grails-app/services/CreateDataService.groovy
r251 r252 64 64 createBaseTaskStatus() 65 65 createBaseTaskPriorities() 66 createBaseTaskBudgetStatus() 66 67 createBaseTaskTypes() 67 68 createBaseTaskModificationTypes() … … 499 500 } 500 501 502 def createBaseTaskBudgetStatus() { 503 504 //TaskBudgetStatus 505 def taskBudgetStatusInstance 506 507 taskBudgetStatusInstance = new TaskBudgetStatus(name:"Unplanned") // #1 508 saveAndTest(taskBudgetStatusInstance) 509 510 taskBudgetStatusInstance = new TaskBudgetStatus(name:"Planned") // #2 511 saveAndTest(taskBudgetStatusInstance) 512 } 513 501 514 def createBaseTaskTypes() { 502 515 -
trunk/grails-app/services/TaskSearchService.groovy
r219 r252 87 87 sort: params.sort, 88 88 order: params.order) { 89 ne("taskType", TaskType.findByName("Unscheduled Breakin"))89 eq("taskBudgetStatus", TaskBudgetStatus.get(2)) 90 90 ge("targetStartDate", dateUtilService.oneWeekAgo) 91 lt("targetStartDate", dateUtilService. getTomorrow())91 lt("targetStartDate", dateUtilService.tomorrow) 92 92 eq("trash", false) 93 93 } … … 105 105 sort: params.sort, 106 106 order: params.order) { 107 eq("task Type", TaskType.findByName("Unscheduled Breakin"))107 eq("taskBudgetStatus", TaskBudgetStatus.get(1)) 108 108 ge("targetStartDate", dateUtilService.oneWeekAgo) 109 109 lt("targetStartDate", dateUtilService.getTomorrow()) -
trunk/grails-app/services/TaskService.groovy
r251 r252 38 38 // Default status to "not started" if not supplied. 39 39 params.taskStatus = params.taskStatus ?: TaskStatus.get(1) 40 41 // Set budgetStatus. 42 if(params.taskType?.id?.toLong() == 1) // Unscheduled Breakin. 43 params.taskBudgetStatus = params.taskBudgetStatus ?: TaskBudgetStatus.get(1) // Unplanned. 44 else 45 params.taskBudgetStatus = params.taskBudgetStatus ?: TaskBudgetStatus.get(2) // Planned. 46 40 47 def taskInstance = new Task(params) 41 48 result.taskInstance = taskInstance -
trunk/grails-app/views/task/create.gsp
r181 r252 77 77 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskPriority','errors')}"> 78 78 <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> 79 </td> 80 </tr> 81 82 <tr class="prop"> 83 <td valign="top" class="name"> 84 <label for="taskBudgetStatus">Task Budget Status:</label> 85 </td> 86 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskBudgetStatus','errors')}"> 87 <g:select optionKey="id" from="${TaskBudgetStatus.list()}" name="taskBudgetStatus.id" value="${taskInstance?.taskBudgetStatus?.id}" ></g:select> 79 88 </td> 80 89 </tr> -
trunk/grails-app/views/task/edit.gsp
r242 r252 85 85 <tr class="prop"> 86 86 <td valign="top" class="name"> 87 <label for="taskBudgetStatus">Task Budget Status:</label> 88 </td> 89 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskBudgetStatus','errors')}"> 90 <g:select optionKey="id" from="${TaskBudgetStatus.list()}" name="taskBudgetStatus.id" value="${taskInstance?.taskBudgetStatus?.id}" ></g:select> 91 </td> 92 </tr> 93 94 <tr class="prop"> 95 <td valign="top" class="name"> 87 96 <label for="taskStatus">Task Status:</label> 88 97 </td> -
trunk/grails-app/views/task/show.gsp
r242 r252 72 72 73 73 <tr class="prop"> 74 <td valign="top" class="name">Task Budget Status:</td> 75 76 <td valign="top" class="value"><g:link controller="taskBudgetStatus" action="show" id="${taskInstance?.taskBudgetStatus?.id}">${taskInstance?.taskBudgetStatus?.encodeAsHTML()}</g:link></td> 77 78 </tr> 79 80 <tr class="prop"> 74 81 <td valign="top" class="name">Task Status:</td> 75 82 -
trunk/grails-app/views/taskDetailed/edit.gsp
r247 r252 129 129 <g:select optionKey="id" from="${TaskPriority.list()}" name="taskPriority.id" value="${taskInstance?.taskPriority?.id}" ></g:select> 130 130 </td> 131 </tr> 132 133 <tr class="prop"> 134 <td valign="top" class="name"> 135 <label for="taskBudgetStatus">Budget Status:</label> 136 </td> 137 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'taskBudgetStatus','errors')}"> 138 <g:select optionKey="id" from="${TaskBudgetStatus.list()}" name="taskBudgetStatus.id" value="${taskInstance?.taskBudgetStatus?.id}" ></g:select> 139 </td> 131 140 </tr> 132 141 -
trunk/grails-app/views/taskDetailed/show.gsp
r249 r252 149 149 150 150 <tr class="prop"> 151 <td valign="top" class="name">Budget Status:</td> 152 153 <td valign="top" class="value">${taskInstance?.taskBudgetStatus?.encodeAsHTML()}</td> 154 155 </tr> 156 157 <tr class="prop"> 151 158 <td valign="top" class="name">Approved:</td> 152 159
Note: See TracChangeset
for help on using the changeset viewer.