- Timestamp:
- Jun 10, 2010, 12:10:27 PM (15 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/Task.groovy
r567 r592 22 22 boolean trash = false 23 23 boolean attentionFlag = false 24 boolean safetyRequirement = false 25 boolean mandatoryRegulatory = false 26 boolean positiveFault = false 24 27 25 28 static hasMany = [entries: Entry, -
trunk/grails-app/i18n/messages.properties
r584 r592 103 103 person.not.found=Person record not found, it may have been deleted. 104 104 105 # Task Properties. 105 106 task.assignedGroups=Assigned Groups 106 107 task.assignedGroups.help=The person groups assigned to work on this task during planning along with estimated time. … … 121 122 task.leadPerson=Lead Person 122 123 task.leadPerson.help=The primay contact person. 124 task.safetyRequirement=Safety Requirment 125 task.safetyRequirement.help=Completion of this task is a safety requirement. \ 126 This task must be completed and is not allowed to be missed. 127 task.mandatoryRegulatory=Mandatory/Regulatory 128 task.mandatoryRegulatory.help=Completion of this task is a mandatory or regulatory requirement. \ 129 This task must be completed and is not allowed to be missed. 130 task.positiveFault=Positive Fault 131 task.positiveFault.help=Set false if unsure. Used to calculate preventative efficiency or P.E. 132 133 # Task Actions 123 134 task.status.resolved=Resolved. 124 135 task.status.resolved.help=Indicate that root cause is known and has been completely resolved. -
trunk/grails-app/services/TaskService.groovy
r567 r592 171 171 * The taskProcedure is only assigned to the sub task if supplied in params. 172 172 * The assignedPersons and assignedGroups are only added to the sub task if supplied in params. 173 * The positiveFault property is never set on the subTask. 173 174 * Collections in params must be supplied as new ArrayList's. 174 175 * This method is not intended to be a copyTask method. … … 182 183 def result = [:] 183 184 184 //Make our new Task a subTask and set the required proper ites.185 //Make our new Task a subTask and set the required properties. 185 186 def p = [:] 186 187 p.parentTask = parentTask … … 189 190 p.targetStartDate = params.targetStartDate ?: dateUtilService.today 190 191 p.targetCompletionDate = params.targetCompletionDate ?: dateUtilService.today 192 193 p.safetyRequirement = params.safetyRequirement ?: parentTask.safetyRequirement 194 p.mandatoryRegulatory = params.mandatoryRegulatory ?: parentTask.mandatoryRegulatory 191 195 192 196 p.taskGroup = params.taskGroup ?: parentTask.taskGroup -
trunk/grails-app/views/taskDetailed/create.gsp
r590 r592 146 146 </tr> 147 147 148 <tr class="prop"> 149 <td valign="top" class="name"> 150 <label for="isActive">Safety Requirement:</label> 151 </td> 152 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> 153 <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> 154 <g:helpBalloon code="task.safetyRequirement" /> 155 </td> 156 </tr> 157 158 <tr class="prop"> 159 <td valign="top" class="name"> 160 <label for="isActive">Mandatory/Regulatory:</label> 161 </td> 162 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRegulatory','errors')}"> 163 <g:checkBox name="mandatoryRegulatory" value="${taskInstance?.mandatoryRegulatory}" ></g:checkBox> 164 <g:helpBalloon code="task.mandatoryRegulatory" /> 165 </td> 166 </tr> 167 168 <tr class="prop"> 169 <td valign="top" class="name"> 170 <label for="isActive">Positive Fault:</label> 171 </td> 172 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'positiveFault','errors')}"> 173 <g:checkBox name="positiveFault" value="${taskInstance?.positiveFault}" ></g:checkBox> 174 <g:helpBalloon code="task.positiveFault" /> 175 </td> 176 </tr> 177 148 178 </tbody> 149 179 </table> -
trunk/grails-app/views/taskDetailed/createUnscheduled.gsp
r590 r592 129 129 </tr> 130 130 131 <tr class="prop"> 132 <td valign="top" class="name"> 133 <label for="isActive">Safety Requirement:</label> 134 </td> 135 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> 136 <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> 137 <g:helpBalloon code="task.safetyRequirement" /> 138 </td> 139 </tr> 140 141 <tr class="prop"> 142 <td valign="top" class="name"> 143 <label for="isActive">Mandatory/Regulatory:</label> 144 </td> 145 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRegulatory','errors')}"> 146 <g:checkBox name="mandatoryRegulatory" value="${taskInstance?.mandatoryRegulatory}" ></g:checkBox> 147 <g:helpBalloon code="task.mandatoryRegulatory" /> 148 </td> 149 </tr> 150 131 151 </tbody> 132 152 </table> -
trunk/grails-app/views/taskDetailed/edit.gsp
r591 r592 176 176 </td> 177 177 </tr> 178 179 <tr class="prop"> 180 <td valign="top" class="name"> 181 <label for="isActive">Safety Requirement:</label> 182 </td> 183 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'safetyRequirement','errors')}"> 184 <g:checkBox name="safetyRequirement" value="${taskInstance?.safetyRequirement}" ></g:checkBox> 185 <g:helpBalloon code="task.safetyRequirement" /> 186 </td> 187 </tr> 188 189 <tr class="prop"> 190 <td valign="top" class="name"> 191 <label for="isActive">Mandatory/Regulatory:</label> 192 </td> 193 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'mandatoryRegulatory','errors')}"> 194 <g:checkBox name="mandatoryRegulatory" value="${taskInstance?.mandatoryRegulatory}" ></g:checkBox> 195 <g:helpBalloon code="task.mandatoryRegulatory" /> 196 </td> 197 </tr> 198 199 <tr class="prop"> 200 <td valign="top" class="name"> 201 <label for="isActive">Positive Fault:</label> 202 </td> 203 <td valign="top" class="value ${hasErrors(bean:taskInstance,field:'positiveFault','errors')}"> 204 <g:checkBox name="positiveFault" value="${taskInstance?.positiveFault}" ></g:checkBox> 205 <g:helpBalloon code="task.positiveFault" /> 206 </td> 207 </tr> 178 208 179 209 <g:if test="${taskInstance.assignedGroups}"> -
trunk/grails-app/views/taskDetailed/show.gsp
r574 r592 188 188 189 189 <tr class="prop"> 190 <td valign="top" class="name">Safety Requirement:</td> 191 192 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'safetyRequirement')}</td> 193 194 </tr> 195 196 <tr class="prop"> 197 <td valign="top" class="name">Mandatory/Regulatory:</td> 198 199 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'mandatoryRegulatory')}</td> 200 201 </tr> 202 203 <tr class="prop"> 204 <td valign="top" class="name">Positive Fault:</td> 205 206 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'positiveFault')}</td> 207 208 </tr> 209 210 <tr class="prop"> 190 211 <td valign="top" class="name">Group:</td> 191 212
Note: See TracChangeset
for help on using the changeset viewer.