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