[84] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
| 4 | <meta name="layout" content="main" /> |
---|
[196] | 5 | <title>Show Task #${taskInstance.id}</title> |
---|
[139] | 6 | <nav:resources override="true"/> |
---|
[126] | 7 | <resource:tabView skin="tabviewCustom" /> |
---|
[84] | 8 | </head> |
---|
| 9 | <body> |
---|
| 10 | <div class="nav"> |
---|
[139] | 11 | <nav:renderSubItems group="nav"/> |
---|
[84] | 12 | </div> |
---|
| 13 | <div class="body"> |
---|
[418] | 14 | <g:render template="/shared/messages" /> |
---|
[181] | 15 | <g:if test="${taskInstance.trash}" > |
---|
| 16 | <div class="errors"> |
---|
[418] | 17 | <ul><li>This task is in the trash bin, but can be restored if required.<li><ul> |
---|
[181] | 18 | </div> |
---|
| 19 | </g:if> |
---|
[180] | 20 | <g:hasErrors bean="${taskInstance}"> |
---|
[133] | 21 | <div class="errors"> |
---|
[180] | 22 | <g:renderErrors bean="${taskInstance}" as="list" /> |
---|
[133] | 23 | </div> |
---|
| 24 | </g:hasErrors> |
---|
[126] | 25 | |
---|
[418] | 26 | <div class="tabHeader"> |
---|
[500] | 27 | <h1> |
---|
[418] | 28 | Task #${taskInstance.id} |
---|
| 29 | <g:if test="${taskInstance.attentionFlag}" > |
---|
[728] | 30 | <img src="${resource(dir:'images/skin',file:'flag_red.png')}" alt="Attention Flag" title="Attention Flag" /> |
---|
[418] | 31 | </g:if> |
---|
| 32 | <g:if test="${taskInstance.taskStatus.id == 3}" > |
---|
[728] | 33 | <img src="${resource(dir:'images/skin',file:'tick.png')}" alt="Complete" title="Complete" /> |
---|
[418] | 34 | </g:if> |
---|
[728] | 35 | <g:if test="${taskInstance.safetyRequirement}" > |
---|
| 36 | <img src="${resource(dir:'images/skin',file:'lightning.png')}" alt="Safety Requirement" title="Safety Requirement" /> |
---|
| 37 | </g:if> |
---|
| 38 | <g:if test="${taskInstance.regulatoryRequirement}" > |
---|
| 39 | <img src="${resource(dir:'images/skin',file:'script_lightning.png')}" alt="Regulatory Requirement" title="Regulatory Requirement" /> |
---|
| 40 | </g:if> |
---|
| 41 | <g:if test="${taskInstance.mandatoryRequirement}" > |
---|
| 42 | <img src="${resource(dir:'images/skin',file:'script.png')}" alt="Mandatory Requirement" title="Mandatory Requirement" /> |
---|
| 43 | </g:if> |
---|
[418] | 44 | </h1> |
---|
| 45 | ${fieldValue(bean:taskInstance, field:'description')} |
---|
| 46 | </div> |
---|
| 47 | |
---|
| 48 | <br/> |
---|
| 49 | |
---|
[131] | 50 | <richui:tabView id="tabView"> |
---|
[126] | 51 | |
---|
| 52 | <richui:tabLabels> |
---|
[418] | 53 | <richui:tabLabel selected="${showTab.task}" title="Details" /> |
---|
[574] | 54 | <g:if test="${taskProcedureExits}"> |
---|
| 55 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure (!)" /> |
---|
| 56 | </g:if> |
---|
| 57 | <g:else> |
---|
| 58 | <richui:tabLabel selected="${showTab.procedure}" title="Procedure" /> |
---|
| 59 | </g:else> |
---|
| 60 | <g:if test="${taskRecurringScheduleExits}"> |
---|
| 61 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence (!)" /> |
---|
| 62 | </g:if> |
---|
| 63 | <g:else> |
---|
| 64 | <richui:tabLabel selected="${showTab.recurrence}" title="Recurrence" /> |
---|
| 65 | </g:else> |
---|
| 66 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
| 67 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (${inventoryMovementList.size()})" /> |
---|
| 68 | </g:if> |
---|
| 69 | <g:else> |
---|
| 70 | <richui:tabLabel selected="${showTab.inventory}" title="Inventory (0)" /> |
---|
| 71 | </g:else> |
---|
| 72 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
| 73 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (${subTaskInstanceTotal})" /> |
---|
| 74 | </g:if> |
---|
| 75 | <g:else> |
---|
| 76 | <richui:tabLabel selected="${showTab.subTasks}" title="Sub Tasks (0)" /> |
---|
| 77 | </g:else> |
---|
[126] | 78 | </richui:tabLabels> |
---|
[131] | 79 | |
---|
[126] | 80 | <richui:tabContents> |
---|
[131] | 81 | |
---|
| 82 | <!-- Start Task tab --> |
---|
[126] | 83 | <richui:tabContent> |
---|
[153] | 84 | |
---|
[131] | 85 | <div class="dialog"> |
---|
| 86 | <table> |
---|
| 87 | <tbody> |
---|
[153] | 88 | |
---|
[244] | 89 | <g:if test="${taskInstance.parentTask}"> |
---|
| 90 | <tr class="prop"> |
---|
| 91 | <td valign="top" class="name">Parent Task:</td> |
---|
| 92 | |
---|
[431] | 93 | <td valign="top" class="value"> |
---|
| 94 | <g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}"> |
---|
| 95 | ${taskInstance.parentTask.encodeAsHTML()} |
---|
| 96 | </g:link> |
---|
| 97 | </td> |
---|
[244] | 98 | |
---|
| 99 | </tr> |
---|
| 100 | </g:if> |
---|
| 101 | |
---|
[131] | 102 | <tr class="prop"> |
---|
| 103 | <td valign="top" class="name">Comment:</td> |
---|
[153] | 104 | |
---|
[131] | 105 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
[153] | 106 | |
---|
[131] | 107 | </tr> |
---|
[153] | 108 | |
---|
[131] | 109 | <tr class="prop"> |
---|
[180] | 110 | <td valign="top" class="name">Target Start:</td> |
---|
[153] | 111 | |
---|
[431] | 112 | <td valign="top" class="value"> |
---|
| 113 | <g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 114 | </td> |
---|
[153] | 115 | |
---|
[131] | 116 | </tr> |
---|
[153] | 117 | |
---|
[131] | 118 | <tr class="prop"> |
---|
[180] | 119 | <td valign="top" class="name">Target Completion:</td> |
---|
[153] | 120 | |
---|
[431] | 121 | <td valign="top" class="value"> |
---|
| 122 | <g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 123 | </td> |
---|
[153] | 124 | |
---|
[131] | 125 | </tr> |
---|
[153] | 126 | |
---|
[131] | 127 | <tr class="prop"> |
---|
[180] | 128 | <td valign="top" class="name"> |
---|
[323] | 129 | |
---|
| 130 | <jsUtil:toggleControl toggleId="modifications" |
---|
| 131 | imageId="modificationsImg" |
---|
| 132 | closedImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" |
---|
| 133 | openImgUrl="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" |
---|
| 134 | effect="fade" |
---|
| 135 | text="Modifications" |
---|
| 136 | /> |
---|
[180] | 137 | </td> |
---|
| 138 | |
---|
| 139 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 140 | <div id="modifications" style="display:none;"> |
---|
| 141 | <ul> |
---|
| 142 | <g:each var="a" in="${taskModificationList}"> |
---|
| 143 | <li>${a?.encodeAsHTML()}</li> |
---|
| 144 | </g:each> |
---|
| 145 | </ul> |
---|
| 146 | </div> |
---|
| 147 | </td> |
---|
| 148 | </tr> |
---|
| 149 | |
---|
| 150 | <tr class="prop"> |
---|
[168] | 151 | <td valign="top" class="name">Primary Asset:</td> |
---|
| 152 | |
---|
| 153 | <td valign="top" class="value"><g:link controller="assetDetailed" action="show" id="${taskInstance?.primaryAsset?.id}">${taskInstance?.primaryAsset?.encodeAsHTML()}</g:link></td> |
---|
| 154 | |
---|
| 155 | </tr> |
---|
| 156 | |
---|
| 157 | <tr class="prop"> |
---|
| 158 | <td valign="top" class="name">Associated Assets:</td> |
---|
| 159 | |
---|
| 160 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 161 | <ul> |
---|
| 162 | <g:each var="a" in="${taskInstance.associatedAssets}"> |
---|
| 163 | <li>${a?.encodeAsHTML()}</li> |
---|
| 164 | </g:each> |
---|
| 165 | </ul> |
---|
| 166 | </td> |
---|
| 167 | |
---|
| 168 | </tr> |
---|
| 169 | |
---|
| 170 | <tr class="prop"> |
---|
[180] | 171 | <td valign="top" class="name">Priority:</td> |
---|
[153] | 172 | |
---|
[131] | 173 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
[153] | 174 | |
---|
[131] | 175 | </tr> |
---|
[153] | 176 | |
---|
[131] | 177 | <tr class="prop"> |
---|
[180] | 178 | <td valign="top" class="name">Status:</td> |
---|
[153] | 179 | |
---|
[131] | 180 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
[153] | 181 | |
---|
[131] | 182 | </tr> |
---|
[153] | 183 | |
---|
[131] | 184 | <tr class="prop"> |
---|
[252] | 185 | <td valign="top" class="name">Budget Status:</td> |
---|
| 186 | |
---|
| 187 | <td valign="top" class="value">${taskInstance?.taskBudgetStatus?.encodeAsHTML()}</td> |
---|
| 188 | |
---|
| 189 | </tr> |
---|
| 190 | |
---|
| 191 | <tr class="prop"> |
---|
[180] | 192 | <td valign="top" class="name">Approved:</td> |
---|
[153] | 193 | |
---|
[181] | 194 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'approved')}</td> |
---|
[153] | 195 | |
---|
[131] | 196 | </tr> |
---|
[153] | 197 | |
---|
[131] | 198 | <tr class="prop"> |
---|
[592] | 199 | <td valign="top" class="name">Positive Fault:</td> |
---|
| 200 | |
---|
| 201 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'positiveFault')}</td> |
---|
| 202 | |
---|
| 203 | </tr> |
---|
| 204 | |
---|
| 205 | <tr class="prop"> |
---|
[244] | 206 | <td valign="top" class="name">Group:</td> |
---|
[153] | 207 | |
---|
[244] | 208 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
[153] | 209 | |
---|
[131] | 210 | </tr> |
---|
[153] | 211 | |
---|
[131] | 212 | <tr class="prop"> |
---|
[244] | 213 | <td valign="top" class="name">Type:</td> |
---|
[153] | 214 | |
---|
[244] | 215 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
[153] | 216 | |
---|
[131] | 217 | </tr> |
---|
[153] | 218 | |
---|
[131] | 219 | <tr class="prop"> |
---|
[244] | 220 | <td valign="top" class="name">Lead Person:</td> |
---|
[153] | 221 | |
---|
[244] | 222 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
[153] | 223 | |
---|
[131] | 224 | </tr> |
---|
[153] | 225 | |
---|
[131] | 226 | <tr class="prop"> |
---|
[242] | 227 | <td valign="top" class="name">Assigned Groups:</td> |
---|
| 228 | |
---|
| 229 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 230 | <ul> |
---|
[253] | 231 | <g:each var="a" in="${assignedGroupList}"> |
---|
[247] | 232 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
[242] | 233 | </g:each> |
---|
| 234 | </ul> |
---|
[410] | 235 | <g:link controller="assignedGroupDetailed" action="create" params="['task.id':taskInstance.id]">+Add Group</g:link> |
---|
[242] | 236 | </td> |
---|
| 237 | |
---|
| 238 | </tr> |
---|
| 239 | |
---|
| 240 | |
---|
| 241 | <tr class="prop"> |
---|
[241] | 242 | <td valign="top" class="name">Assigned Persons:</td> |
---|
[153] | 243 | |
---|
[131] | 244 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 245 | <ul> |
---|
[253] | 246 | <g:each var="a" in="${assignedPersonList}"> |
---|
[249] | 247 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
---|
[131] | 248 | </g:each> |
---|
| 249 | </ul> |
---|
[410] | 250 | <g:link controller="assignedPersonDetailed" action="create" params="['task.id':taskInstance?.id]">+Add Person</g:link> |
---|
[131] | 251 | </td> |
---|
[153] | 252 | |
---|
[131] | 253 | </tr> |
---|
[153] | 254 | |
---|
[131] | 255 | </tbody> |
---|
| 256 | </table> |
---|
| 257 | </div> |
---|
[153] | 258 | |
---|
[131] | 259 | <div class="buttons"> |
---|
| 260 | <g:form> |
---|
| 261 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
[181] | 262 | |
---|
| 263 | <g:if test="${taskInstance.trash}" > |
---|
| 264 | <span class="button"><g:actionSubmit class="restore" onclick="return confirm('Are you sure?');" value="Restore" /></span> |
---|
| 265 | </g:if> |
---|
| 266 | <g:else> |
---|
| 267 | |
---|
| 268 | <g:if test="${taskInstance.taskStatus.id != 3}" > |
---|
| 269 | |
---|
[418] | 270 | <g:if test="${taskInstance.attentionFlag}" > |
---|
| 271 | <span class="button"><g:actionSubmit class="flag" value="Clear" action="clearAttentionFlag"/></span> |
---|
| 272 | </g:if> |
---|
| 273 | <g:else> |
---|
| 274 | <span class="button"><g:actionSubmit class="flag" value="Unresolved" action="setAttentionFlag"/></span> |
---|
[431] | 275 | <g:helpBalloon class="helpballoon" code="task.status.unresolved" /> |
---|
[418] | 276 | </g:else> |
---|
| 277 | |
---|
| 278 | <span class="button"><g:actionSubmit class="complete" value="Resolved" action="complete"/></span> |
---|
[431] | 279 | <g:helpBalloon class="helpballoon" code="task.status.resolved" /> |
---|
[418] | 280 | |
---|
[181] | 281 | <g:if test="${taskInstance.approved}" > |
---|
| 282 | <span class="button"><g:actionSubmit class="renegeApproval" value="Renege Approval" action="renegeApproval" /></span> |
---|
| 283 | </g:if> |
---|
| 284 | <g:else> |
---|
| 285 | <span class="button"><g:actionSubmit class="approve" value="Approve" /></span> |
---|
| 286 | </g:else> |
---|
| 287 | |
---|
| 288 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 289 | <span class="button"><g:actionSubmit class="trash" onclick="return confirm('Are you sure?');" value="Trash" /></span> |
---|
| 290 | |
---|
| 291 | </g:if> |
---|
| 292 | <g:else> |
---|
| 293 | <span class="button"><g:actionSubmit class="reopen" value="Reopen" /></span> |
---|
| 294 | </g:else> |
---|
| 295 | |
---|
| 296 | </g:else> |
---|
[131] | 297 | </g:form> |
---|
| 298 | </div> |
---|
[153] | 299 | |
---|
[191] | 300 | <br /> |
---|
[153] | 301 | |
---|
[191] | 302 | <g:if test="${entryFaultList.isEmpty()}"> |
---|
| 303 | <h1>No Faults</h1> |
---|
| 304 | <br /> |
---|
| 305 | </g:if> |
---|
| 306 | <g:else> |
---|
| 307 | <div class="list"> |
---|
| 308 | <h1>Faults</h1> |
---|
| 309 | <table> |
---|
| 310 | <thead> |
---|
| 311 | <tr> |
---|
| 312 | <th>Comment</th> |
---|
[431] | 313 | <th>Date</th> |
---|
| 314 | <th>Production</th> |
---|
[418] | 315 | <th>Down Time</th> |
---|
[191] | 316 | <th>Entered By</th> |
---|
| 317 | <th></th> |
---|
[131] | 318 | </tr> |
---|
[191] | 319 | </thead> |
---|
| 320 | <tbody> |
---|
| 321 | <g:each in="${entryFaultList}" status="i" var="entry"> |
---|
[498] | 322 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[153] | 323 | |
---|
[498] | 324 | <td style="width:65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 325 | ${entry.comment.encodeAsHTML()} |
---|
| 326 | </td> |
---|
| 327 | |
---|
| 328 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 329 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
---|
| 330 | </td> |
---|
| 331 | |
---|
| 332 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
[431] | 333 | <g:if test="${entry.productionReference}"> |
---|
| 334 | ${entry.productionReference.encodeAsHTML()} |
---|
| 335 | </g:if> |
---|
| 336 | <g:else> |
---|
| 337 | <g:message code="default.none.text" /> |
---|
| 338 | </g:else> |
---|
| 339 | </td> |
---|
[153] | 340 | |
---|
[498] | 341 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 342 | ${entry.durationHour}:${entry.durationMinute} |
---|
| 343 | </td> |
---|
| 344 | |
---|
| 345 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 346 | ${entry.enteredBy.encodeAsHTML()} |
---|
| 347 | </td> |
---|
| 348 | |
---|
| 349 | <td class="notClickable"> |
---|
[191] | 350 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 351 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 352 | </g:link> |
---|
| 353 | </td> |
---|
[153] | 354 | |
---|
[191] | 355 | </tr> |
---|
| 356 | </g:each> |
---|
| 357 | </tbody> |
---|
| 358 | </table> |
---|
| 359 | </div> |
---|
| 360 | </g:else> |
---|
[153] | 361 | |
---|
[191] | 362 | <div class="buttons"> |
---|
| 363 | <g:form controller="entryDetailed"> |
---|
| 364 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 365 | <g:hiddenField name="entryType.id" value="1" /> |
---|
| 366 | <span class="button"> |
---|
| 367 | <g:actionSubmit value="Add Fault" action="create" class="add"/> |
---|
| 368 | </span> |
---|
| 369 | </g:form> |
---|
[131] | 370 | </div> |
---|
[153] | 371 | |
---|
[131] | 372 | <br /> |
---|
[153] | 373 | |
---|
[418] | 374 | <g:if test="${entryCauseList.isEmpty()}"> |
---|
| 375 | <h1>No Causes</h1> |
---|
| 376 | <br /> |
---|
| 377 | </g:if> |
---|
| 378 | <g:else> |
---|
| 379 | <div class="list"> |
---|
| 380 | <h1>Causes</h1> |
---|
| 381 | <table> |
---|
| 382 | <thead> |
---|
| 383 | <tr> |
---|
| 384 | <th>Comment</th> |
---|
| 385 | <th>Date Done</th> |
---|
| 386 | <th>Entered By</th> |
---|
| 387 | <th></th> |
---|
| 388 | </tr> |
---|
| 389 | </thead> |
---|
| 390 | <tbody> |
---|
| 391 | <g:each in="${entryCauseList}" status="i" var="entry"> |
---|
[498] | 392 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[418] | 393 | |
---|
[498] | 394 | <td style="width:65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 395 | ${entry.comment.encodeAsHTML()} |
---|
| 396 | </td> |
---|
[418] | 397 | |
---|
[498] | 398 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 399 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
---|
| 400 | </td> |
---|
| 401 | |
---|
| 402 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 403 | ${entry.enteredBy.encodeAsHTML()} |
---|
| 404 | </td> |
---|
| 405 | |
---|
| 406 | <td class="notClickable"> |
---|
[418] | 407 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 408 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 409 | </g:link> |
---|
| 410 | </td> |
---|
| 411 | |
---|
| 412 | </tr> |
---|
| 413 | </g:each> |
---|
| 414 | </tbody> |
---|
| 415 | </table> |
---|
| 416 | </div> |
---|
| 417 | </g:else> |
---|
| 418 | |
---|
| 419 | <div class="buttons"> |
---|
| 420 | <g:form controller="entryDetailed"> |
---|
| 421 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 422 | <g:hiddenField name="entryType.id" value="2" /> |
---|
| 423 | <span class="button"> |
---|
| 424 | <g:actionSubmit value="Add Cause" action="create" class="add"/> |
---|
| 425 | </span> |
---|
| 426 | </g:form> |
---|
| 427 | </div> |
---|
| 428 | |
---|
| 429 | <br /> |
---|
| 430 | |
---|
[191] | 431 | <g:if test="${entryWorkDoneList.isEmpty()}"> |
---|
| 432 | <h1>No Work Done</h1> |
---|
| 433 | <br /> |
---|
| 434 | </g:if> |
---|
| 435 | <g:else> |
---|
| 436 | <div class="list"> |
---|
| 437 | <h1>Work Done</h1> |
---|
| 438 | <table> |
---|
| 439 | <thead> |
---|
| 440 | <tr> |
---|
| 441 | <th>Comment</th> |
---|
| 442 | <th>Date Done</th> |
---|
| 443 | <th>Duration</th> |
---|
| 444 | <th>Entered By</th> |
---|
| 445 | <th></th> |
---|
| 446 | </tr> |
---|
| 447 | </thead> |
---|
| 448 | <tbody> |
---|
| 449 | <g:each in="${entryWorkDoneList}" status="i" var="entry"> |
---|
[498] | 450 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[191] | 451 | |
---|
[498] | 452 | <td width="65%" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 453 | ${entry.comment.encodeAsHTML()} |
---|
| 454 | </td> |
---|
| 455 | |
---|
| 456 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 457 | <g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/> |
---|
| 458 | </td> |
---|
| 459 | |
---|
| 460 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 461 | ${entry.durationHour}:${entry.durationMinute} |
---|
| 462 | </td> |
---|
| 463 | |
---|
| 464 | <td onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'> |
---|
| 465 | ${entry.enteredBy.encodeAsHTML()} |
---|
| 466 | </td> |
---|
[191] | 467 | |
---|
[498] | 468 | <td class="notClickable"> |
---|
[191] | 469 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 470 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 471 | </g:link> |
---|
| 472 | </td> |
---|
| 473 | |
---|
| 474 | </tr> |
---|
| 475 | </g:each> |
---|
| 476 | </tbody> |
---|
| 477 | </table> |
---|
| 478 | </div> |
---|
| 479 | </g:else> |
---|
| 480 | |
---|
[131] | 481 | <div class="buttons"> |
---|
| 482 | <g:form controller="entryDetailed"> |
---|
[191] | 483 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
[418] | 484 | <g:hiddenField name="entryType.id" value="3" /> |
---|
[131] | 485 | <span class="button"> |
---|
[191] | 486 | <g:actionSubmit value="Add Work Done" action="create" class="add"/> |
---|
[131] | 487 | </span> |
---|
| 488 | </g:form> |
---|
| 489 | </div> |
---|
| 490 | </richui:tabContent> |
---|
| 491 | <!-- End Task tab --> |
---|
[126] | 492 | |
---|
[137] | 493 | |
---|
[131] | 494 | <!-- Start Task Procedure tab--> |
---|
| 495 | <richui:tabContent> |
---|
[133] | 496 | <g:if test="${!taskProcedureExits}"> |
---|
[153] | 497 | <br /> |
---|
| 498 | No Procedure linked. |
---|
| 499 | <br /> |
---|
| 500 | <br /> |
---|
[134] | 501 | <g:form controller="taskProcedureDetailed" > |
---|
[203] | 502 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
[133] | 503 | |
---|
| 504 | <div class="buttons"> |
---|
| 505 | <span class="button"> |
---|
[175] | 506 | <g:actionSubmit value="New" action="create" class="add"/> |
---|
[133] | 507 | </span> |
---|
| 508 | <span class="button"> |
---|
[175] | 509 | <g:actionSubmit value="Search" action="search" class="search"/> |
---|
[133] | 510 | </span> |
---|
| 511 | </div> |
---|
[134] | 512 | |
---|
[133] | 513 | </g:form> |
---|
[126] | 514 | |
---|
[133] | 515 | </g:if> |
---|
| 516 | <g:else> |
---|
[153] | 517 | <div class="dialog"> |
---|
[133] | 518 | <table> |
---|
| 519 | <tbody> |
---|
[153] | 520 | |
---|
[133] | 521 | <tr class="prop"> |
---|
| 522 | <td valign="top" class="name">Procedure Id:</td> |
---|
[153] | 523 | |
---|
[133] | 524 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
[153] | 525 | |
---|
[133] | 526 | </tr> |
---|
[153] | 527 | |
---|
[133] | 528 | <tr class="prop"> |
---|
| 529 | <td valign="top" class="name">Name:</td> |
---|
[153] | 530 | |
---|
[133] | 531 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
---|
[153] | 532 | |
---|
[133] | 533 | </tr> |
---|
[153] | 534 | |
---|
[133] | 535 | <tr class="prop"> |
---|
| 536 | <td valign="top" class="name">Description:</td> |
---|
[153] | 537 | |
---|
[133] | 538 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
---|
[153] | 539 | |
---|
[133] | 540 | </tr> |
---|
[153] | 541 | |
---|
[133] | 542 | <tr class="prop"> |
---|
| 543 | <td valign="top" class="name">Is Active:</td> |
---|
[153] | 544 | |
---|
[133] | 545 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
---|
[153] | 546 | |
---|
[133] | 547 | </tr> |
---|
[153] | 548 | |
---|
[133] | 549 | </tbody> |
---|
| 550 | </table> |
---|
| 551 | </div> |
---|
| 552 | <div class="buttons"> |
---|
| 553 | <g:form controller="taskProcedureDetailed"> |
---|
| 554 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
| 555 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[153] | 556 | </g:form> |
---|
[133] | 557 | </div> |
---|
[126] | 558 | |
---|
[153] | 559 | <div class="list"> |
---|
| 560 | <table> |
---|
| 561 | <thead> |
---|
| 562 | <tr> |
---|
| 563 | <th>Step</th> |
---|
| 564 | <th>Description</th> |
---|
[474] | 565 | <th>Reasoning</th> |
---|
| 566 | <th>Asset</th> |
---|
| 567 | <th>Sub Item</th> |
---|
[153] | 568 | </tr> |
---|
| 569 | </thead> |
---|
| 570 | <tbody> |
---|
| 571 | <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> |
---|
| 572 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 573 | |
---|
| 574 | <td valign="top" class="name"> |
---|
[498] | 575 | ${fieldValue(bean:maintenanceAction, field:'procedureStepNumber')} |
---|
[153] | 576 | </td> |
---|
| 577 | |
---|
| 578 | <td valign="top" style="text-align:left;" class="value"> |
---|
[498] | 579 | ${fieldValue(bean:maintenanceAction, field:'description')} |
---|
[153] | 580 | </td> |
---|
| 581 | |
---|
[474] | 582 | <td valign="top" style="text-align:left;" class="value"> |
---|
[498] | 583 | ${fieldValue(bean:maintenanceAction, field:'reasoning')} |
---|
[474] | 584 | </td> |
---|
| 585 | |
---|
| 586 | <td valign="top" style="text-align:left;" class="value"> |
---|
[498] | 587 | ${fieldValue(bean:maintenanceAction, field:'asset')} |
---|
[474] | 588 | </td> |
---|
| 589 | |
---|
| 590 | <td valign="top" style="text-align:left;" class="value"> |
---|
[498] | 591 | ${fieldValue(bean:maintenanceAction, field:'assetSubItem')} |
---|
[474] | 592 | </td> |
---|
| 593 | |
---|
[153] | 594 | </tr> |
---|
| 595 | </g:each> |
---|
| 596 | |
---|
| 597 | </tbody> |
---|
| 598 | </table> |
---|
| 599 | </div> |
---|
| 600 | |
---|
[133] | 601 | </g:else> |
---|
| 602 | |
---|
[131] | 603 | </richui:tabContent> |
---|
| 604 | <!-- End Task Procedure tab--> |
---|
[126] | 605 | |
---|
[131] | 606 | <!-- Start Task Recurrence tab --> |
---|
| 607 | <richui:tabContent> |
---|
[134] | 608 | |
---|
| 609 | <g:if test="${!taskRecurringScheduleExits}"> |
---|
[153] | 610 | <br /> |
---|
| 611 | No Recurring Schedule. |
---|
| 612 | <br /> |
---|
| 613 | <br /> |
---|
[134] | 614 | <g:form controller="taskRecurringScheduleDetailed" > |
---|
[203] | 615 | <g:hiddenField name="task.id" value="${taskInstance.id}" /> |
---|
[134] | 616 | |
---|
| 617 | <div class="buttons"> |
---|
| 618 | <span class="button"> |
---|
[247] | 619 | <g:actionSubmit value="Add" action="create" class="add"/> |
---|
[134] | 620 | </span> |
---|
| 621 | </div> |
---|
| 622 | |
---|
| 623 | </g:form> |
---|
| 624 | |
---|
| 625 | </g:if> |
---|
| 626 | <g:else> |
---|
[153] | 627 | |
---|
| 628 | <div class="dialog"> |
---|
| 629 | <table> |
---|
| 630 | <tbody> |
---|
| 631 | <tr class="prop"> |
---|
| 632 | <td valign="top" class="name">Recurring Schedule:</td> |
---|
| 633 | |
---|
| 634 | <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> |
---|
[137] | 635 | </tr> |
---|
[153] | 636 | |
---|
[137] | 637 | <tr class="prop"> |
---|
[445] | 638 | <td valign="top" class="name">Enabled:</td> |
---|
| 639 | |
---|
| 640 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> |
---|
| 641 | </tr> |
---|
| 642 | |
---|
| 643 | <tr class="prop"> |
---|
[199] | 644 | <td valign="top" class="name">Next Generation Date:</td> |
---|
[153] | 645 | |
---|
| 646 | <td valign="top" class="value"> |
---|
[199] | 647 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[153] | 648 | </td> |
---|
| 649 | </tr> |
---|
| 650 | |
---|
| 651 | <tr class="prop"> |
---|
[137] | 652 | <td valign="top" class="name">Generate Ahead:</td> |
---|
[153] | 653 | |
---|
[137] | 654 | <td valign="top" class="value"> |
---|
[199] | 655 | ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()} |
---|
[137] | 656 | </td> |
---|
| 657 | </tr> |
---|
[153] | 658 | |
---|
| 659 | <tr class="prop"> |
---|
[199] | 660 | <td valign="top" class="name">Next Target Start Date:</td> |
---|
[153] | 661 | |
---|
| 662 | <td valign="top" class="value"> |
---|
| 663 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 664 | </td> |
---|
| 665 | </tr> |
---|
| 666 | |
---|
| 667 | <tr class="prop"> |
---|
[199] | 668 | <td valign="top" class="name">Task Duration:</td> |
---|
[153] | 669 | |
---|
[137] | 670 | <td valign="top" class="value"> |
---|
[199] | 671 | ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} |
---|
[137] | 672 | </td> |
---|
| 673 | </tr> |
---|
[153] | 674 | |
---|
[137] | 675 | <tr class="prop"> |
---|
[199] | 676 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
[153] | 677 | |
---|
[137] | 678 | <td valign="top" class="value"> |
---|
[199] | 679 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 680 | </td> |
---|
| 681 | </tr> |
---|
[153] | 682 | |
---|
| 683 | </tbody> |
---|
| 684 | </table> |
---|
| 685 | </div> |
---|
[134] | 686 | <div class="buttons"> |
---|
| 687 | <g:form controller="taskRecurringScheduleDetailed"> |
---|
[135] | 688 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
[134] | 689 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[199] | 690 | <span class="button"><g:actionSubmit class="go" value="Show" /></span> |
---|
[153] | 691 | </g:form> |
---|
[134] | 692 | </div> |
---|
[153] | 693 | |
---|
| 694 | </g:else> |
---|
[131] | 695 | </richui:tabContent> |
---|
| 696 | <!-- End Task Recurrence tab --> |
---|
[126] | 697 | |
---|
[131] | 698 | <!-- Start Inventory tab --> |
---|
| 699 | <richui:tabContent> |
---|
[175] | 700 | |
---|
| 701 | <g:if test="${inventoryMovementList.isEmpty()}"> |
---|
| 702 | <br /> |
---|
[225] | 703 | No Inventory Movements. |
---|
[175] | 704 | <br /> |
---|
| 705 | <br /> |
---|
| 706 | </g:if> |
---|
| 707 | <g:else> |
---|
| 708 | <div class="list"> |
---|
| 709 | <table> |
---|
| 710 | <thead> |
---|
| 711 | <tr> |
---|
| 712 | <th>Inventory Item</th> |
---|
| 713 | <th>Quantity</th> |
---|
| 714 | <th>Movement Type</th> |
---|
| 715 | <th>Date</th> |
---|
| 716 | <th></th> |
---|
| 717 | </tr> |
---|
| 718 | </thead> |
---|
| 719 | <tbody> |
---|
| 720 | <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> |
---|
[498] | 721 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[175] | 722 | |
---|
[498] | 723 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 724 | ${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')} |
---|
| 725 | </td> |
---|
| 726 | |
---|
| 727 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 728 | ${fieldValue(bean:inventoryMovementInstance, field:'quantity')} |
---|
| 729 | </td> |
---|
| 730 | |
---|
| 731 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 732 | ${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')} |
---|
| 733 | </td> |
---|
| 734 | |
---|
| 735 | <td onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'> |
---|
| 736 | <g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/> |
---|
| 737 | </td> |
---|
| 738 | |
---|
| 739 | <td class="notClickable"> |
---|
[175] | 740 | <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> |
---|
| 741 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 742 | </g:link> |
---|
| 743 | </td> |
---|
| 744 | |
---|
| 745 | </tr> |
---|
| 746 | </g:each> |
---|
| 747 | </tbody> |
---|
| 748 | </table> |
---|
| 749 | </div> |
---|
| 750 | </g:else> |
---|
| 751 | |
---|
[225] | 752 | <g:form controller="inventoryItemDetailed" > |
---|
| 753 | <g:hiddenField name="task.id" value="${taskInstance?.id}" /> |
---|
[175] | 754 | <div class="buttons"> |
---|
| 755 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
| 756 | Results: ${inventoryMovementList.size()} |
---|
| 757 | <br /> |
---|
| 758 | </g:if> |
---|
| 759 | <span class="button"> |
---|
[225] | 760 | <g:actionSubmit action="findInventoryItemForMovement" class="add" value="Add"/> |
---|
[175] | 761 | </span> |
---|
| 762 | </div> |
---|
| 763 | </g:form> |
---|
| 764 | |
---|
[131] | 765 | </richui:tabContent> |
---|
| 766 | <!-- End Inventory tab --> |
---|
[126] | 767 | |
---|
[153] | 768 | <!-- Start Sub Task tab --> |
---|
[131] | 769 | <richui:tabContent> |
---|
[574] | 770 | <g:if test="${subTaskInstanceTotal > 0}"> |
---|
[153] | 771 | <div class="list"> |
---|
| 772 | <table> |
---|
| 773 | <thead> |
---|
| 774 | <tr> |
---|
[134] | 775 | |
---|
[153] | 776 | <th>Id</th> |
---|
| 777 | |
---|
| 778 | <th>Target Start Date</th> |
---|
| 779 | |
---|
| 780 | <th>Description</th> |
---|
| 781 | |
---|
| 782 | <th>Lead Person</th> |
---|
| 783 | |
---|
| 784 | <th>Task Priority</th> |
---|
| 785 | |
---|
| 786 | <th>Task Status</th> |
---|
| 787 | |
---|
| 788 | <th></th> |
---|
| 789 | |
---|
| 790 | </tr> |
---|
| 791 | </thead> |
---|
| 792 | <tbody> |
---|
| 793 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
[498] | 794 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}"/> |
---|
[153] | 795 | |
---|
[498] | 796 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 797 | ${fieldValue(bean:subTaskInstance, field:'id')} |
---|
| 798 | </td> |
---|
[153] | 799 | |
---|
[498] | 800 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 801 | <g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 802 | </td> |
---|
[153] | 803 | |
---|
[498] | 804 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 805 | ${fieldValue(bean:subTaskInstance, field:'description')} |
---|
| 806 | </td> |
---|
[153] | 807 | |
---|
| 808 | |
---|
[498] | 809 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 810 | ${fieldValue(bean:subTaskInstance, field:'leadPerson')} |
---|
| 811 | </td> |
---|
[153] | 812 | |
---|
[498] | 813 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 814 | ${fieldValue(bean:subTaskInstance, field:'taskPriority')} |
---|
| 815 | </td> |
---|
[153] | 816 | |
---|
[498] | 817 | <td onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'> |
---|
| 818 | ${fieldValue(bean:subTaskInstance, field:'taskStatus')} |
---|
| 819 | </td> |
---|
[153] | 820 | |
---|
[498] | 821 | <td class="notClickable"> |
---|
[153] | 822 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
| 823 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 824 | </g:link> |
---|
| 825 | </td> |
---|
| 826 | |
---|
| 827 | </tr> |
---|
| 828 | </g:each> |
---|
| 829 | </tbody> |
---|
| 830 | </table> |
---|
| 831 | </div> |
---|
| 832 | |
---|
| 833 | <div class="buttons"> |
---|
| 834 | <g:form> |
---|
[196] | 835 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
[153] | 836 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
| 837 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
| 838 | <br /> |
---|
| 839 | </g:if> |
---|
| 840 | <g:else> |
---|
| 841 | Total ${subTaskInstanceTotal} |
---|
| 842 | <br /> |
---|
| 843 | </g:else> |
---|
[196] | 844 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
---|
[257] | 845 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
[153] | 846 | </g:form> |
---|
| 847 | </div> |
---|
| 848 | |
---|
| 849 | </g:if> |
---|
| 850 | <g:else> |
---|
| 851 | <br /> |
---|
| 852 | No Sub Tasks. |
---|
[196] | 853 | <br /> |
---|
| 854 | <br /> |
---|
| 855 | |
---|
| 856 | <div class="buttons"> |
---|
| 857 | <g:form> |
---|
| 858 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
[257] | 859 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
---|
[196] | 860 | </g:form> |
---|
| 861 | </div> |
---|
[153] | 862 | </g:else> |
---|
| 863 | |
---|
[131] | 864 | </richui:tabContent> |
---|
| 865 | <!-- End Sub Task tab --> |
---|
[126] | 866 | |
---|
[131] | 867 | </richui:tabContents> |
---|
| 868 | </richui:tabView> |
---|
[153] | 869 | |
---|
[418] | 870 | </div> <!--body--> |
---|
[84] | 871 | </body> |
---|
| 872 | </html> |
---|