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