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