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