[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> |
---|
[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 | |
---|
[191] | 233 | <br /> |
---|
[153] | 234 | |
---|
[191] | 235 | <g:if test="${entryFaultList.isEmpty()}"> |
---|
| 236 | <h1>No Faults</h1> |
---|
| 237 | <br /> |
---|
| 238 | </g:if> |
---|
| 239 | <g:else> |
---|
| 240 | <div class="list"> |
---|
| 241 | <h1>Faults</h1> |
---|
| 242 | <table> |
---|
| 243 | <thead> |
---|
| 244 | <tr> |
---|
| 245 | <th>Comment</th> |
---|
| 246 | <th>Date Done</th> |
---|
| 247 | <th>Duration</th> |
---|
| 248 | <th>Entered By</th> |
---|
| 249 | <th></th> |
---|
[131] | 250 | </tr> |
---|
[191] | 251 | </thead> |
---|
| 252 | <tbody> |
---|
| 253 | <g:each in="${entryFaultList}" status="i" var="entry"> |
---|
| 254 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
[153] | 255 | |
---|
[191] | 256 | <td style="width:65%">${entry.comment}</td> |
---|
| 257 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 258 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 259 | <td>${entry.enteredBy}</td> |
---|
[153] | 260 | |
---|
[191] | 261 | <td> |
---|
| 262 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 263 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 264 | </g:link> |
---|
| 265 | </td> |
---|
[153] | 266 | |
---|
[191] | 267 | </tr> |
---|
| 268 | </g:each> |
---|
| 269 | </tbody> |
---|
| 270 | </table> |
---|
| 271 | </div> |
---|
| 272 | </g:else> |
---|
[153] | 273 | |
---|
[191] | 274 | <div class="buttons"> |
---|
| 275 | <g:form controller="entryDetailed"> |
---|
| 276 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 277 | <g:hiddenField name="entryType.id" value="1" /> |
---|
| 278 | <span class="button"> |
---|
| 279 | <g:actionSubmit value="Add Fault" action="create" class="add"/> |
---|
| 280 | </span> |
---|
| 281 | </g:form> |
---|
[131] | 282 | </div> |
---|
[153] | 283 | |
---|
[131] | 284 | <br /> |
---|
[153] | 285 | |
---|
[191] | 286 | <g:if test="${entryWorkDoneList.isEmpty()}"> |
---|
| 287 | <h1>No Work Done</h1> |
---|
| 288 | <br /> |
---|
| 289 | </g:if> |
---|
| 290 | <g:else> |
---|
| 291 | <div class="list"> |
---|
| 292 | <h1>Work Done</h1> |
---|
| 293 | <table> |
---|
| 294 | <thead> |
---|
| 295 | <tr> |
---|
| 296 | <th>Comment</th> |
---|
| 297 | <th>Date Done</th> |
---|
| 298 | <th>Duration</th> |
---|
| 299 | <th>Entered By</th> |
---|
| 300 | <th></th> |
---|
| 301 | </tr> |
---|
| 302 | </thead> |
---|
| 303 | <tbody> |
---|
| 304 | <g:each in="${entryWorkDoneList}" status="i" var="entry"> |
---|
| 305 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
| 306 | |
---|
| 307 | <td width="65%">${entry.comment}</td> |
---|
| 308 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 309 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 310 | <td>${entry.enteredBy}</td> |
---|
| 311 | |
---|
| 312 | <td> |
---|
| 313 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 314 | <img src="${resource(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 315 | </g:link> |
---|
| 316 | </td> |
---|
| 317 | |
---|
| 318 | </tr> |
---|
| 319 | </g:each> |
---|
| 320 | </tbody> |
---|
| 321 | </table> |
---|
| 322 | </div> |
---|
| 323 | </g:else> |
---|
| 324 | |
---|
[131] | 325 | <div class="buttons"> |
---|
| 326 | <g:form controller="entryDetailed"> |
---|
[191] | 327 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 328 | <g:hiddenField name="entryType.id" value="2" /> |
---|
[131] | 329 | <span class="button"> |
---|
[191] | 330 | <g:actionSubmit value="Add Work Done" action="create" class="add"/> |
---|
[131] | 331 | </span> |
---|
| 332 | </g:form> |
---|
| 333 | </div> |
---|
| 334 | </richui:tabContent> |
---|
| 335 | <!-- End Task tab --> |
---|
[126] | 336 | |
---|
[137] | 337 | |
---|
[131] | 338 | <!-- Start Task Procedure tab--> |
---|
| 339 | <richui:tabContent> |
---|
[133] | 340 | <g:if test="${!taskProcedureExits}"> |
---|
[153] | 341 | <br /> |
---|
| 342 | No Procedure linked. |
---|
| 343 | <br /> |
---|
| 344 | <br /> |
---|
[134] | 345 | <g:form controller="taskProcedureDetailed" > |
---|
[133] | 346 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 347 | |
---|
| 348 | <div class="buttons"> |
---|
| 349 | <span class="button"> |
---|
[175] | 350 | <g:actionSubmit value="New" action="create" class="add"/> |
---|
[133] | 351 | </span> |
---|
| 352 | <span class="button"> |
---|
[175] | 353 | <g:actionSubmit value="Search" action="search" class="search"/> |
---|
[133] | 354 | </span> |
---|
| 355 | </div> |
---|
[134] | 356 | |
---|
[133] | 357 | </g:form> |
---|
[126] | 358 | |
---|
[133] | 359 | </g:if> |
---|
| 360 | <g:else> |
---|
[153] | 361 | <div class="dialog"> |
---|
[133] | 362 | <table> |
---|
| 363 | <tbody> |
---|
[153] | 364 | |
---|
[133] | 365 | <tr class="prop"> |
---|
| 366 | <td valign="top" class="name">Procedure Id:</td> |
---|
[153] | 367 | |
---|
[133] | 368 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
[153] | 369 | |
---|
[133] | 370 | </tr> |
---|
[153] | 371 | |
---|
[133] | 372 | <tr class="prop"> |
---|
| 373 | <td valign="top" class="name">Name:</td> |
---|
[153] | 374 | |
---|
[133] | 375 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
---|
[153] | 376 | |
---|
[133] | 377 | </tr> |
---|
[153] | 378 | |
---|
[133] | 379 | <tr class="prop"> |
---|
| 380 | <td valign="top" class="name">Description:</td> |
---|
[153] | 381 | |
---|
[133] | 382 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
---|
[153] | 383 | |
---|
[133] | 384 | </tr> |
---|
[153] | 385 | |
---|
[133] | 386 | <tr class="prop"> |
---|
| 387 | <td valign="top" class="name">Is Active:</td> |
---|
[153] | 388 | |
---|
[133] | 389 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
---|
[153] | 390 | |
---|
[133] | 391 | </tr> |
---|
[153] | 392 | |
---|
[133] | 393 | </tbody> |
---|
| 394 | </table> |
---|
| 395 | </div> |
---|
| 396 | <div class="buttons"> |
---|
| 397 | <g:form controller="taskProcedureDetailed"> |
---|
| 398 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
| 399 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[153] | 400 | </g:form> |
---|
[133] | 401 | </div> |
---|
[126] | 402 | |
---|
[153] | 403 | <div class="list"> |
---|
| 404 | <table> |
---|
| 405 | <thead> |
---|
| 406 | <tr> |
---|
| 407 | <th>Step</th> |
---|
| 408 | <th>Description</th> |
---|
| 409 | </tr> |
---|
| 410 | </thead> |
---|
| 411 | <tbody> |
---|
| 412 | <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> |
---|
| 413 | <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> |
---|
| 414 | |
---|
| 415 | <td valign="top" class="name"> |
---|
| 416 | ${maintenanceAction?.procedureStepNumber} |
---|
| 417 | </td> |
---|
| 418 | |
---|
| 419 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 420 | ${maintenanceAction?.description} |
---|
| 421 | </td> |
---|
| 422 | |
---|
| 423 | </tr> |
---|
| 424 | </g:each> |
---|
| 425 | |
---|
| 426 | </tbody> |
---|
| 427 | </table> |
---|
| 428 | </div> |
---|
| 429 | |
---|
[133] | 430 | </g:else> |
---|
| 431 | |
---|
[131] | 432 | </richui:tabContent> |
---|
| 433 | <!-- End Task Procedure tab--> |
---|
[126] | 434 | |
---|
[131] | 435 | <!-- Start Task Recurrence tab --> |
---|
| 436 | <richui:tabContent> |
---|
[134] | 437 | |
---|
| 438 | <g:if test="${!taskRecurringScheduleExits}"> |
---|
[153] | 439 | <br /> |
---|
| 440 | No Recurring Schedule. |
---|
| 441 | <br /> |
---|
| 442 | <br /> |
---|
[134] | 443 | <g:form controller="taskRecurringScheduleDetailed" > |
---|
| 444 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 445 | |
---|
| 446 | <div class="buttons"> |
---|
| 447 | <span class="button"> |
---|
| 448 | <g:actionSubmit value="Create" action="create" class="add"/> |
---|
| 449 | </span> |
---|
| 450 | </div> |
---|
| 451 | |
---|
| 452 | </g:form> |
---|
| 453 | |
---|
| 454 | </g:if> |
---|
| 455 | <g:else> |
---|
[153] | 456 | |
---|
| 457 | <div class="dialog"> |
---|
| 458 | <table> |
---|
| 459 | <tbody> |
---|
| 460 | <tr class="prop"> |
---|
| 461 | <td valign="top" class="name">Recurring Schedule:</td> |
---|
| 462 | |
---|
| 463 | <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> |
---|
[137] | 464 | </tr> |
---|
[153] | 465 | |
---|
[137] | 466 | <tr class="prop"> |
---|
[199] | 467 | <td valign="top" class="name">Next Generation Date:</td> |
---|
[153] | 468 | |
---|
| 469 | <td valign="top" class="value"> |
---|
[199] | 470 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[153] | 471 | </td> |
---|
| 472 | </tr> |
---|
| 473 | |
---|
| 474 | <tr class="prop"> |
---|
[137] | 475 | <td valign="top" class="name">Generate Ahead:</td> |
---|
[153] | 476 | |
---|
[137] | 477 | <td valign="top" class="value"> |
---|
[199] | 478 | ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()} |
---|
[137] | 479 | </td> |
---|
| 480 | </tr> |
---|
[153] | 481 | |
---|
| 482 | <tr class="prop"> |
---|
[199] | 483 | <td valign="top" class="name">Next Target Start Date:</td> |
---|
[153] | 484 | |
---|
| 485 | <td valign="top" class="value"> |
---|
| 486 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> |
---|
| 487 | </td> |
---|
| 488 | </tr> |
---|
| 489 | |
---|
| 490 | <tr class="prop"> |
---|
[199] | 491 | <td valign="top" class="name">Task Duration:</td> |
---|
[153] | 492 | |
---|
[137] | 493 | <td valign="top" class="value"> |
---|
[199] | 494 | ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} |
---|
[137] | 495 | </td> |
---|
| 496 | </tr> |
---|
[153] | 497 | |
---|
[137] | 498 | <tr class="prop"> |
---|
[199] | 499 | <td valign="top" class="name">Next Target Completion Date:</td> |
---|
[153] | 500 | |
---|
[137] | 501 | <td valign="top" class="value"> |
---|
[199] | 502 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
---|
[137] | 503 | </td> |
---|
| 504 | </tr> |
---|
[153] | 505 | |
---|
| 506 | <tr class="prop"> |
---|
[199] | 507 | <td valign="top" class="name">Enabled:</td> |
---|
[153] | 508 | |
---|
[199] | 509 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> |
---|
[153] | 510 | </tr> |
---|
| 511 | |
---|
| 512 | </tbody> |
---|
| 513 | </table> |
---|
| 514 | </div> |
---|
[134] | 515 | <div class="buttons"> |
---|
| 516 | <g:form controller="taskRecurringScheduleDetailed"> |
---|
[135] | 517 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
---|
[134] | 518 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
[199] | 519 | <span class="button"><g:actionSubmit class="go" value="Show" /></span> |
---|
[153] | 520 | </g:form> |
---|
[134] | 521 | </div> |
---|
[153] | 522 | |
---|
| 523 | </g:else> |
---|
[131] | 524 | </richui:tabContent> |
---|
| 525 | <!-- End Task Recurrence tab --> |
---|
[126] | 526 | |
---|
[131] | 527 | <!-- Start Inventory tab --> |
---|
| 528 | <richui:tabContent> |
---|
[175] | 529 | |
---|
| 530 | <g:if test="${inventoryMovementList.isEmpty()}"> |
---|
| 531 | <br /> |
---|
| 532 | No Inventory Used. |
---|
| 533 | <br /> |
---|
| 534 | <br /> |
---|
| 535 | </g:if> |
---|
| 536 | <g:else> |
---|
| 537 | <div class="list"> |
---|
| 538 | <table> |
---|
| 539 | <thead> |
---|
| 540 | <tr> |
---|
| 541 | <th>Inventory Item</th> |
---|
| 542 | <th>Quantity</th> |
---|
| 543 | <th>Movement Type</th> |
---|
| 544 | <th>Date</th> |
---|
| 545 | <th></th> |
---|
| 546 | </tr> |
---|
| 547 | </thead> |
---|
| 548 | <tbody> |
---|
| 549 | <g:each in="${inventoryMovementList}" status="i" var="inventoryMovementInstance"> |
---|
| 550 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/inventoryMovementDetailed/show/${inventoryMovementInstance.id}"'/> |
---|
| 551 | |
---|
| 552 | <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryItem')}</td> |
---|
| 553 | <td>${fieldValue(bean:inventoryMovementInstance, field:'quantity')}</td> |
---|
| 554 | <td>${fieldValue(bean:inventoryMovementInstance, field:'inventoryMovementType')}</td> |
---|
| 555 | <td><g:formatDate date="${inventoryMovementInstance.date}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 556 | <td> |
---|
| 557 | <g:link controller="inventoryMovementDetailed" action="show" id="${inventoryMovementInstance.id}"> |
---|
| 558 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 559 | </g:link> |
---|
| 560 | </td> |
---|
| 561 | |
---|
| 562 | </tr> |
---|
| 563 | </g:each> |
---|
| 564 | </tbody> |
---|
| 565 | </table> |
---|
| 566 | </div> |
---|
| 567 | </g:else> |
---|
| 568 | |
---|
| 569 | <g:form controller="inventoryMovementDetailed" > |
---|
| 570 | <input type="hidden" name="task.id" value="${taskInstance?.id}" /> |
---|
| 571 | <div class="buttons"> |
---|
| 572 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
---|
| 573 | Results: ${inventoryMovementList.size()} |
---|
| 574 | <br /> |
---|
| 575 | </g:if> |
---|
| 576 | <span class="button"> |
---|
| 577 | <g:actionSubmit value="Add" action="create" class="add"/> |
---|
| 578 | </span> |
---|
| 579 | </div> |
---|
| 580 | </g:form> |
---|
| 581 | |
---|
[131] | 582 | </richui:tabContent> |
---|
| 583 | <!-- End Inventory tab --> |
---|
[126] | 584 | |
---|
[153] | 585 | <!-- Start Sub Task tab --> |
---|
[131] | 586 | <richui:tabContent> |
---|
[153] | 587 | <g:if test="${subTaskInstanceTotal >= 1}"> |
---|
| 588 | <div class="list"> |
---|
| 589 | <table> |
---|
| 590 | <thead> |
---|
| 591 | <tr> |
---|
[134] | 592 | |
---|
[153] | 593 | <th>Id</th> |
---|
| 594 | |
---|
| 595 | <th>Target Start Date</th> |
---|
| 596 | |
---|
| 597 | <th>Description</th> |
---|
| 598 | |
---|
| 599 | <th>Lead Person</th> |
---|
| 600 | |
---|
| 601 | <th>Task Priority</th> |
---|
| 602 | |
---|
| 603 | <th>Task Status</th> |
---|
| 604 | |
---|
| 605 | <th></th> |
---|
| 606 | |
---|
| 607 | </tr> |
---|
| 608 | </thead> |
---|
| 609 | <tbody> |
---|
| 610 | <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> |
---|
| 611 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> |
---|
| 612 | |
---|
| 613 | <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> |
---|
| 614 | |
---|
| 615 | <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
---|
| 616 | |
---|
| 617 | <td>${subTaskInstance.description}</td> |
---|
| 618 | |
---|
| 619 | |
---|
| 620 | <td>${subTaskInstance.leadPerson}</td> |
---|
| 621 | |
---|
| 622 | <td>${subTaskInstance.taskPriority}</td> |
---|
| 623 | |
---|
| 624 | <td>${subTaskInstance.taskStatus}</td> |
---|
| 625 | |
---|
| 626 | <td> |
---|
| 627 | <g:link action="show" id="${subTaskInstance.id}"> |
---|
| 628 | <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> |
---|
| 629 | </g:link> |
---|
| 630 | </td> |
---|
| 631 | |
---|
| 632 | </tr> |
---|
| 633 | </g:each> |
---|
| 634 | </tbody> |
---|
| 635 | </table> |
---|
| 636 | </div> |
---|
| 637 | |
---|
| 638 | <div class="buttons"> |
---|
| 639 | <g:form> |
---|
[196] | 640 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
[153] | 641 | <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> |
---|
| 642 | Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} |
---|
| 643 | <br /> |
---|
| 644 | </g:if> |
---|
| 645 | <g:else> |
---|
| 646 | Total ${subTaskInstanceTotal} |
---|
| 647 | <br /> |
---|
| 648 | </g:else> |
---|
[196] | 649 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
---|
| 650 | <span class="button"><g:actionSubmit action="createSubTask" class="add" value="Add" /></span> |
---|
[153] | 651 | </g:form> |
---|
| 652 | </div> |
---|
| 653 | |
---|
| 654 | </g:if> |
---|
| 655 | <g:else> |
---|
| 656 | <br /> |
---|
| 657 | No Sub Tasks. |
---|
[196] | 658 | <br /> |
---|
| 659 | <br /> |
---|
| 660 | |
---|
| 661 | <div class="buttons"> |
---|
| 662 | <g:form> |
---|
| 663 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
---|
| 664 | <span class="button"><g:actionSubmit action="createSubTask" class="add" value="Add" /></span> |
---|
| 665 | </g:form> |
---|
| 666 | </div> |
---|
[153] | 667 | </g:else> |
---|
| 668 | |
---|
[131] | 669 | </richui:tabContent> |
---|
| 670 | <!-- End Sub Task tab --> |
---|
[126] | 671 | |
---|
[131] | 672 | </richui:tabContents> |
---|
| 673 | </richui:tabView> |
---|
[153] | 674 | |
---|
[84] | 675 | </div> |
---|
| 676 | </body> |
---|
| 677 | </html> |
---|