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