| 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 #${taskInstance.id}</title> |
|---|
| 6 | <g:javascript src="overlayPane.js" /> |
|---|
| 7 | <nav:resources override="true"/> |
|---|
| 8 | <resource:tabView skin="tabviewCustom" /> |
|---|
| 9 | </head> |
|---|
| 10 | <body> |
|---|
| 11 | <div class="nav"> |
|---|
| 12 | <nav:renderSubItems group="nav"/> |
|---|
| 13 | </div> |
|---|
| 14 | <div class="body"> |
|---|
| 15 | <g:if test="${flash.message}"> |
|---|
| 16 | <div class="message">${flash.message}</div> |
|---|
| 17 | </g:if> |
|---|
| 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> |
|---|
| 23 | <g:hasErrors bean="${taskInstance}"> |
|---|
| 24 | <div class="errors"> |
|---|
| 25 | <g:renderErrors bean="${taskInstance}" as="list" /> |
|---|
| 26 | </div> |
|---|
| 27 | </g:hasErrors> |
|---|
| 28 | |
|---|
| 29 | <richui:tabView id="tabView"> |
|---|
| 30 | |
|---|
| 31 | <richui:tabLabels> |
|---|
| 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" /> |
|---|
| 37 | </richui:tabLabels> |
|---|
| 38 | |
|---|
| 39 | <richui:tabContents> |
|---|
| 40 | |
|---|
| 41 | <!-- Start Task tab --> |
|---|
| 42 | <richui:tabContent> |
|---|
| 43 | |
|---|
| 44 | <div class="dialog"> |
|---|
| 45 | <table> |
|---|
| 46 | <tbody> |
|---|
| 47 | |
|---|
| 48 | <g:if test="${taskInstance.parentTask}"> |
|---|
| 49 | <tr class="prop"> |
|---|
| 50 | <td valign="top" class="name">Parent Task:</td> |
|---|
| 51 | |
|---|
| 52 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance.parentTask.id}">${taskInstance.parentTask.encodeAsHTML()}</g:link></td> |
|---|
| 53 | |
|---|
| 54 | </tr> |
|---|
| 55 | </g:if> |
|---|
| 56 | |
|---|
| 57 | <tr class="prop"> |
|---|
| 58 | <td valign="top" class="name">Description:</td> |
|---|
| 59 | |
|---|
| 60 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
|---|
| 61 | |
|---|
| 62 | </tr> |
|---|
| 63 | |
|---|
| 64 | <tr class="prop"> |
|---|
| 65 | <td valign="top" class="name">Comment:</td> |
|---|
| 66 | |
|---|
| 67 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
|---|
| 68 | |
|---|
| 69 | </tr> |
|---|
| 70 | |
|---|
| 71 | <tr class="prop"> |
|---|
| 72 | <td valign="top" class="name">Target Start:</td> |
|---|
| 73 | |
|---|
| 74 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> |
|---|
| 75 | |
|---|
| 76 | </tr> |
|---|
| 77 | |
|---|
| 78 | <tr class="prop"> |
|---|
| 79 | <td valign="top" class="name">Target Completion:</td> |
|---|
| 80 | |
|---|
| 81 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/></td> |
|---|
| 82 | |
|---|
| 83 | </tr> |
|---|
| 84 | |
|---|
| 85 | <tr class="prop"> |
|---|
| 86 | <td valign="top" class="name"> |
|---|
| 87 | <div id="modControlClosed"> |
|---|
| 88 | <a href='' onclick="showElement('modifications'); |
|---|
| 89 | Element.hide('modControlClosed'); |
|---|
| 90 | Element.show('modControlOpened'); |
|---|
| 91 | return false"> |
|---|
| 92 | Modifications <img src="${resource(dir:'images/skin',file:'bullet_toggle_plus.png')}" alt="Show" /> |
|---|
| 93 | </a> |
|---|
| 94 | </div> |
|---|
| 95 | <div id="modControlOpened" style="display:none;"> |
|---|
| 96 | <a href='' onclick="hideElement('modifications'); |
|---|
| 97 | Element.hide('modControlOpened'); |
|---|
| 98 | Element.show('modControlClosed'); |
|---|
| 99 | return false"> |
|---|
| 100 | Modifications <img src="${resource(dir:'images/skin',file:'bullet_toggle_minus.png')}" alt="Hide" /> |
|---|
| 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"> |
|---|
| 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"> |
|---|
| 137 | <td valign="top" class="name">Priority:</td> |
|---|
| 138 | |
|---|
| 139 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
|---|
| 140 | |
|---|
| 141 | </tr> |
|---|
| 142 | |
|---|
| 143 | <tr class="prop"> |
|---|
| 144 | <td valign="top" class="name">Status:</td> |
|---|
| 145 | |
|---|
| 146 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
|---|
| 147 | |
|---|
| 148 | </tr> |
|---|
| 149 | |
|---|
| 150 | <tr class="prop"> |
|---|
| 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"> |
|---|
| 158 | <td valign="top" class="name">Approved:</td> |
|---|
| 159 | |
|---|
| 160 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'approved')}</td> |
|---|
| 161 | |
|---|
| 162 | </tr> |
|---|
| 163 | |
|---|
| 164 | <tr class="prop"> |
|---|
| 165 | <td valign="top" class="name">Scheduled:</td> |
|---|
| 166 | |
|---|
| 167 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'scheduled')}</td> |
|---|
| 168 | |
|---|
| 169 | </tr> |
|---|
| 170 | |
|---|
| 171 | <tr class="prop"> |
|---|
| 172 | <td valign="top" class="name">Group:</td> |
|---|
| 173 | |
|---|
| 174 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
|---|
| 175 | |
|---|
| 176 | </tr> |
|---|
| 177 | |
|---|
| 178 | <tr class="prop"> |
|---|
| 179 | <td valign="top" class="name">Type:</td> |
|---|
| 180 | |
|---|
| 181 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
|---|
| 182 | |
|---|
| 183 | </tr> |
|---|
| 184 | |
|---|
| 185 | <tr class="prop"> |
|---|
| 186 | <td valign="top" class="name">Lead Person:</td> |
|---|
| 187 | |
|---|
| 188 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
|---|
| 189 | |
|---|
| 190 | </tr> |
|---|
| 191 | |
|---|
| 192 | <tr class="prop"> |
|---|
| 193 | <td valign="top" class="name">Assigned Groups:</td> |
|---|
| 194 | |
|---|
| 195 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 196 | <ul> |
|---|
| 197 | <g:each var="a" in="${assignedGroupList}"> |
|---|
| 198 | <li><g:link controller="assignedGroupDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
|---|
| 199 | </g:each> |
|---|
| 200 | </ul> |
|---|
| 201 | <g:link controller="assignedGroupDetailed" action="create" params="['task.id':taskInstance.id]">Add Assigned Group</g:link> |
|---|
| 202 | </td> |
|---|
| 203 | |
|---|
| 204 | </tr> |
|---|
| 205 | |
|---|
| 206 | |
|---|
| 207 | <tr class="prop"> |
|---|
| 208 | <td valign="top" class="name">Assigned Persons:</td> |
|---|
| 209 | |
|---|
| 210 | <td valign="top" style="text-align:left;" class="value"> |
|---|
| 211 | <ul> |
|---|
| 212 | <g:each var="a" in="${assignedPersonList}"> |
|---|
| 213 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}" params="['task.id':taskInstance.id]">${a?.encodeAsHTML()}</g:link></li> |
|---|
| 214 | </g:each> |
|---|
| 215 | </ul> |
|---|
| 216 | <g:link controller="assignedPersonDetailed" action="create" params="['task.id':taskInstance?.id]">Add Assigned Person</g:link> |
|---|
| 217 | </td> |
|---|
| 218 | |
|---|
| 219 | </tr> |
|---|
| 220 | |
|---|
| 221 | </tbody> |
|---|
| 222 | </table> |
|---|
| 223 | </div> |
|---|
| 224 | |
|---|
| 225 | <div class="buttons"> |
|---|
| 226 | <g:form> |
|---|
| 227 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
|---|
| 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> |
|---|
| 253 | </g:form> |
|---|
| 254 | </div> |
|---|
| 255 | |
|---|
| 256 | <br /> |
|---|
| 257 | |
|---|
| 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> |
|---|
| 273 | </tr> |
|---|
| 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}"'/> |
|---|
| 278 | |
|---|
| 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> |
|---|
| 283 | |
|---|
| 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> |
|---|
| 289 | |
|---|
| 290 | </tr> |
|---|
| 291 | </g:each> |
|---|
| 292 | </tbody> |
|---|
| 293 | </table> |
|---|
| 294 | </div> |
|---|
| 295 | </g:else> |
|---|
| 296 | |
|---|
| 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> |
|---|
| 305 | </div> |
|---|
| 306 | |
|---|
| 307 | <br /> |
|---|
| 308 | |
|---|
| 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 | |
|---|
| 348 | <div class="buttons"> |
|---|
| 349 | <g:form controller="entryDetailed"> |
|---|
| 350 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
|---|
| 351 | <g:hiddenField name="entryType.id" value="2" /> |
|---|
| 352 | <span class="button"> |
|---|
| 353 | <g:actionSubmit value="Add Work Done" action="create" class="add"/> |
|---|
| 354 | </span> |
|---|
| 355 | </g:form> |
|---|
| 356 | </div> |
|---|
| 357 | </richui:tabContent> |
|---|
| 358 | <!-- End Task tab --> |
|---|
| 359 | |
|---|
| 360 | |
|---|
| 361 | <!-- Start Task Procedure tab--> |
|---|
| 362 | <richui:tabContent> |
|---|
| 363 | <g:if test="${!taskProcedureExits}"> |
|---|
| 364 | <br /> |
|---|
| 365 | No Procedure linked. |
|---|
| 366 | <br /> |
|---|
| 367 | <br /> |
|---|
| 368 | <g:form controller="taskProcedureDetailed" > |
|---|
| 369 | <g:hiddenField name="taskInstance.id" value="${taskInstance?.id}" /> |
|---|
| 370 | |
|---|
| 371 | <div class="buttons"> |
|---|
| 372 | <span class="button"> |
|---|
| 373 | <g:actionSubmit value="New" action="create" class="add"/> |
|---|
| 374 | </span> |
|---|
| 375 | <span class="button"> |
|---|
| 376 | <g:actionSubmit value="Search" action="search" class="search"/> |
|---|
| 377 | </span> |
|---|
| 378 | </div> |
|---|
| 379 | |
|---|
| 380 | </g:form> |
|---|
| 381 | |
|---|
| 382 | </g:if> |
|---|
| 383 | <g:else> |
|---|
| 384 | <div class="dialog"> |
|---|
| 385 | <table> |
|---|
| 386 | <tbody> |
|---|
| 387 | |
|---|
| 388 | <tr class="prop"> |
|---|
| 389 | <td valign="top" class="name">Procedure Id:</td> |
|---|
| 390 | |
|---|
| 391 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
|---|
| 392 | |
|---|
| 393 | </tr> |
|---|
| 394 | |
|---|
| 395 | <tr class="prop"> |
|---|
| 396 | <td valign="top" class="name">Name:</td> |
|---|
| 397 | |
|---|
| 398 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
|---|
| 399 | |
|---|
| 400 | </tr> |
|---|
| 401 | |
|---|
| 402 | <tr class="prop"> |
|---|
| 403 | <td valign="top" class="name">Description:</td> |
|---|
| 404 | |
|---|
| 405 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
|---|
| 406 | |
|---|
| 407 | </tr> |
|---|
| 408 | |
|---|
| 409 | <tr class="prop"> |
|---|
| 410 | <td valign="top" class="name">Is Active:</td> |
|---|
| 411 | |
|---|
| 412 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
|---|
| 413 | |
|---|
| 414 | </tr> |
|---|
| 415 | |
|---|
| 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> |
|---|
| 423 | </g:form> |
|---|
| 424 | </div> |
|---|
| 425 | |
|---|
| 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 | |
|---|
| 453 | </g:else> |
|---|
| 454 | |
|---|
| 455 | </richui:tabContent> |
|---|
| 456 | <!-- End Task Procedure tab--> |
|---|
| 457 | |
|---|
| 458 | <!-- Start Task Recurrence tab --> |
|---|
| 459 | <richui:tabContent> |
|---|
| 460 | |
|---|
| 461 | <g:if test="${!taskRecurringScheduleExits}"> |
|---|
| 462 | <br /> |
|---|
| 463 | No Recurring Schedule. |
|---|
| 464 | <br /> |
|---|
| 465 | <br /> |
|---|
| 466 | <g:form controller="taskRecurringScheduleDetailed" > |
|---|
| 467 | <g:hiddenField name="task.id" value="${taskInstance.id}" /> |
|---|
| 468 | |
|---|
| 469 | <div class="buttons"> |
|---|
| 470 | <span class="button"> |
|---|
| 471 | <g:actionSubmit value="Add" action="create" class="add"/> |
|---|
| 472 | </span> |
|---|
| 473 | </div> |
|---|
| 474 | |
|---|
| 475 | </g:form> |
|---|
| 476 | |
|---|
| 477 | </g:if> |
|---|
| 478 | <g:else> |
|---|
| 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> |
|---|
| 487 | </tr> |
|---|
| 488 | |
|---|
| 489 | <tr class="prop"> |
|---|
| 490 | <td valign="top" class="name">Next Generation Date:</td> |
|---|
| 491 | |
|---|
| 492 | <td valign="top" class="value"> |
|---|
| 493 | <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 494 | </td> |
|---|
| 495 | </tr> |
|---|
| 496 | |
|---|
| 497 | <tr class="prop"> |
|---|
| 498 | <td valign="top" class="name">Generate Ahead:</td> |
|---|
| 499 | |
|---|
| 500 | <td valign="top" class="value"> |
|---|
| 501 | ${taskRecurringScheduleInstance?.generateAhead} ${Period.get(1).encodeAsHTML()} |
|---|
| 502 | </td> |
|---|
| 503 | </tr> |
|---|
| 504 | |
|---|
| 505 | <tr class="prop"> |
|---|
| 506 | <td valign="top" class="name">Next Target Start Date:</td> |
|---|
| 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"> |
|---|
| 514 | <td valign="top" class="name">Task Duration:</td> |
|---|
| 515 | |
|---|
| 516 | <td valign="top" class="value"> |
|---|
| 517 | ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} |
|---|
| 518 | </td> |
|---|
| 519 | </tr> |
|---|
| 520 | |
|---|
| 521 | <tr class="prop"> |
|---|
| 522 | <td valign="top" class="name">Next Target Completion Date:</td> |
|---|
| 523 | |
|---|
| 524 | <td valign="top" class="value"> |
|---|
| 525 | <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> |
|---|
| 526 | </td> |
|---|
| 527 | </tr> |
|---|
| 528 | |
|---|
| 529 | <tr class="prop"> |
|---|
| 530 | <td valign="top" class="name">Enabled:</td> |
|---|
| 531 | |
|---|
| 532 | <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'enabled')}</td> |
|---|
| 533 | </tr> |
|---|
| 534 | |
|---|
| 535 | </tbody> |
|---|
| 536 | </table> |
|---|
| 537 | </div> |
|---|
| 538 | <div class="buttons"> |
|---|
| 539 | <g:form controller="taskRecurringScheduleDetailed"> |
|---|
| 540 | <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> |
|---|
| 541 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
|---|
| 542 | <span class="button"><g:actionSubmit class="go" value="Show" /></span> |
|---|
| 543 | </g:form> |
|---|
| 544 | </div> |
|---|
| 545 | |
|---|
| 546 | </g:else> |
|---|
| 547 | </richui:tabContent> |
|---|
| 548 | <!-- End Task Recurrence tab --> |
|---|
| 549 | |
|---|
| 550 | <!-- Start Inventory tab --> |
|---|
| 551 | <richui:tabContent> |
|---|
| 552 | |
|---|
| 553 | <g:if test="${inventoryMovementList.isEmpty()}"> |
|---|
| 554 | <br /> |
|---|
| 555 | No Inventory Movements. |
|---|
| 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 | |
|---|
| 592 | <g:form controller="inventoryItemDetailed" > |
|---|
| 593 | <g:hiddenField name="task.id" value="${taskInstance?.id}" /> |
|---|
| 594 | <div class="buttons"> |
|---|
| 595 | <g:if test="${!inventoryMovementList.isEmpty()}"> |
|---|
| 596 | Results: ${inventoryMovementList.size()} |
|---|
| 597 | <br /> |
|---|
| 598 | </g:if> |
|---|
| 599 | <span class="button"> |
|---|
| 600 | <g:actionSubmit action="findInventoryItemForMovement" class="add" value="Add"/> |
|---|
| 601 | </span> |
|---|
| 602 | </div> |
|---|
| 603 | </g:form> |
|---|
| 604 | |
|---|
| 605 | </richui:tabContent> |
|---|
| 606 | <!-- End Inventory tab --> |
|---|
| 607 | |
|---|
| 608 | <!-- Start Sub Task tab --> |
|---|
| 609 | <richui:tabContent> |
|---|
| 610 | <g:if test="${subTaskInstanceTotal >= 1}"> |
|---|
| 611 | <div class="list"> |
|---|
| 612 | <table> |
|---|
| 613 | <thead> |
|---|
| 614 | <tr> |
|---|
| 615 | |
|---|
| 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> |
|---|
| 663 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
|---|
| 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> |
|---|
| 672 | <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="List" /></span> |
|---|
| 673 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
|---|
| 674 | </g:form> |
|---|
| 675 | </div> |
|---|
| 676 | |
|---|
| 677 | </g:if> |
|---|
| 678 | <g:else> |
|---|
| 679 | <br /> |
|---|
| 680 | No Sub Tasks. |
|---|
| 681 | <br /> |
|---|
| 682 | <br /> |
|---|
| 683 | |
|---|
| 684 | <div class="buttons"> |
|---|
| 685 | <g:form> |
|---|
| 686 | <g:hiddenField name="id" value="${taskInstance?.id}" /> |
|---|
| 687 | <span class="button"><g:actionSubmit action="createSubTask" class="save" value="Create" onclick="return confirm('${g.message(code: 'sub.task.create.confirm')}');" /></span> |
|---|
| 688 | </g:form> |
|---|
| 689 | </div> |
|---|
| 690 | </g:else> |
|---|
| 691 | |
|---|
| 692 | </richui:tabContent> |
|---|
| 693 | <!-- End Sub Task tab --> |
|---|
| 694 | |
|---|
| 695 | </richui:tabContents> |
|---|
| 696 | </richui:tabView> |
|---|
| 697 | |
|---|
| 698 | </div> |
|---|
| 699 | </body> |
|---|
| 700 | </html> |
|---|