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