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