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