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