[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> |
---|
[126] | 6 | <resource:tabView skin="tabviewCustom" /> |
---|
[84] | 7 | </head> |
---|
| 8 | <body> |
---|
| 9 | <div class="nav"> |
---|
| 10 | <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> |
---|
[85] | 11 | <span class="menuButton"><g:link class="list" action="list">Task List</g:link></span> |
---|
| 12 | <span class="menuButton"><g:link class="create" action="create">New Task</g:link></span> |
---|
[84] | 13 | </div> |
---|
| 14 | <div class="body"> |
---|
| 15 | <g:if test="${flash.message}"> |
---|
| 16 | <div class="message">${flash.message}</div> |
---|
| 17 | </g:if> |
---|
[133] | 18 | <g:hasErrors bean="${taskProcedureInstance}"> |
---|
| 19 | <div class="errors"> |
---|
| 20 | <g:renderErrors bean="${taskProcedureInstance}" as="list" /> |
---|
| 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> |
---|
[131] | 38 | |
---|
| 39 | <div class="dialog"> |
---|
| 40 | <table> |
---|
| 41 | <tbody> |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | <tr class="prop"> |
---|
| 45 | <td valign="top" class="name">Id:</td> |
---|
| 46 | |
---|
| 47 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> |
---|
| 48 | |
---|
| 49 | </tr> |
---|
| 50 | |
---|
| 51 | <tr class="prop"> |
---|
| 52 | <td valign="top" class="name">Description:</td> |
---|
| 53 | |
---|
| 54 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> |
---|
| 55 | |
---|
| 56 | </tr> |
---|
| 57 | |
---|
| 58 | <tr class="prop"> |
---|
| 59 | <td valign="top" class="name">Comment:</td> |
---|
| 60 | |
---|
| 61 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> |
---|
| 62 | |
---|
| 63 | </tr> |
---|
| 64 | |
---|
| 65 | <tr class="prop"> |
---|
| 66 | <td valign="top" class="name">Target Start Date:</td> |
---|
| 67 | |
---|
| 68 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd MMM yyyy"/></td> |
---|
| 69 | |
---|
| 70 | </tr> |
---|
| 71 | |
---|
| 72 | <tr class="prop"> |
---|
| 73 | <td valign="top" class="name">Target Completion Date:</td> |
---|
| 74 | |
---|
| 75 | <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd MMM yyyy"/></td> |
---|
| 76 | |
---|
| 77 | </tr> |
---|
| 78 | |
---|
| 79 | <tr class="prop"> |
---|
| 80 | <td valign="top" class="name">Lead Person:</td> |
---|
| 81 | |
---|
| 82 | <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> |
---|
| 83 | |
---|
| 84 | </tr> |
---|
| 85 | |
---|
| 86 | <tr class="prop"> |
---|
| 87 | <td valign="top" class="name">Task Priority:</td> |
---|
| 88 | |
---|
| 89 | <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> |
---|
| 90 | |
---|
| 91 | </tr> |
---|
| 92 | |
---|
| 93 | <tr class="prop"> |
---|
| 94 | <td valign="top" class="name">Task Status:</td> |
---|
| 95 | |
---|
| 96 | <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> |
---|
| 97 | |
---|
| 98 | </tr> |
---|
| 99 | |
---|
| 100 | <tr class="prop"> |
---|
| 101 | <td valign="top" class="name">Is Active:</td> |
---|
| 102 | |
---|
| 103 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> |
---|
| 104 | |
---|
| 105 | </tr> |
---|
| 106 | |
---|
| 107 | <tr class="prop"> |
---|
| 108 | <td valign="top" class="name">Is Approved:</td> |
---|
| 109 | |
---|
| 110 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> |
---|
| 111 | |
---|
| 112 | </tr> |
---|
| 113 | |
---|
| 114 | <tr class="prop"> |
---|
| 115 | <td valign="top" class="name">Is Scheduled:</td> |
---|
| 116 | |
---|
| 117 | <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> |
---|
| 118 | |
---|
| 119 | </tr> |
---|
| 120 | |
---|
| 121 | <tr class="prop"> |
---|
| 122 | <td valign="top" class="name">Parent Task:</td> |
---|
| 123 | |
---|
| 124 | <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> |
---|
| 125 | |
---|
| 126 | </tr> |
---|
| 127 | |
---|
| 128 | <tr class="prop"> |
---|
| 129 | <td valign="top" class="name">Task Group:</td> |
---|
| 130 | |
---|
| 131 | <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> |
---|
| 132 | |
---|
| 133 | </tr> |
---|
| 134 | |
---|
| 135 | <tr class="prop"> |
---|
| 136 | <td valign="top" class="name">Task Type:</td> |
---|
| 137 | |
---|
| 138 | <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> |
---|
| 139 | |
---|
| 140 | </tr> |
---|
| 141 | |
---|
| 142 | <tr class="prop"> |
---|
| 143 | <td valign="top" class="name">Assigned Persons:</td> |
---|
| 144 | |
---|
| 145 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 146 | <ul> |
---|
| 147 | <g:each var="a" in="${taskInstance.assignedPersons}"> |
---|
| 148 | <li><g:link controller="assignedPersonDetailed" action="edit" id="${a.id}">${a?.encodeAsHTML()}</g:link></li> |
---|
| 149 | </g:each> |
---|
| 150 | </ul> |
---|
| 151 | </td> |
---|
| 152 | |
---|
| 153 | </tr> |
---|
| 154 | |
---|
| 155 | </tbody> |
---|
| 156 | </table> |
---|
| 157 | </div> |
---|
| 158 | |
---|
| 159 | |
---|
| 160 | <div class="buttons"> |
---|
| 161 | <g:form> |
---|
| 162 | <input type="hidden" name="id" value="${taskInstance?.id}" /> |
---|
| 163 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 164 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
| 165 | </g:form> |
---|
| 166 | </div> |
---|
| 167 | |
---|
| 168 | <div class="list"> |
---|
| 169 | <h1>Faults</h1> |
---|
| 170 | <table> |
---|
| 171 | <thead> |
---|
| 172 | <tr> |
---|
| 173 | <th>Comment</th> |
---|
| 174 | <th>Date Done</th> |
---|
| 175 | <th>Duration</th> |
---|
| 176 | <th>Entered By</th> |
---|
| 177 | <th></th> |
---|
| 178 | |
---|
| 179 | <!-- <g:sortableColumn property="comment" title="Comment" /> |
---|
| 180 | |
---|
| 181 | <g:sortableColumn property="dateDone" title="Date Done" /> |
---|
| 182 | |
---|
| 183 | <g:sortableColumn property="enteredBy" title="Entered By" />--> |
---|
| 184 | </tr> |
---|
| 185 | </thead> |
---|
| 186 | <tbody> |
---|
| 187 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 188 | <g:if test="${entry.entryType == EntryType.findByName('Fault')}"> |
---|
| 189 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
| 190 | |
---|
| 191 | <td style="width:65%">${entry.comment}</td> |
---|
| 192 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
| 193 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 194 | <td>${entry.enteredBy}</td> |
---|
| 195 | |
---|
| 196 | <td> |
---|
| 197 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 198 | <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 199 | </g:link> |
---|
| 200 | </td> |
---|
| 201 | |
---|
| 202 | </tr> |
---|
| 203 | </g:if> |
---|
[96] | 204 | </g:each> |
---|
[131] | 205 | </tbody> |
---|
| 206 | </table> |
---|
| 207 | </div> |
---|
| 208 | |
---|
| 209 | <div class="list"> |
---|
| 210 | <h1>Work Done</h1> |
---|
| 211 | <table> |
---|
| 212 | <thead> |
---|
| 213 | <tr> |
---|
| 214 | <th>Comment</th> |
---|
| 215 | <th>Date Done</th> |
---|
| 216 | <th>Duration</th> |
---|
| 217 | <th>Entered By</th> |
---|
| 218 | <th></th> |
---|
| 219 | |
---|
| 220 | <!-- <g:sortableColumn property="commentW" title="Comment" /> |
---|
| 221 | |
---|
| 222 | <g:sortableColumn property="dateDoneW" title="Date Done" /> |
---|
| 223 | |
---|
| 224 | <g:sortableColumn property="enteredByW" title="Entered By" />--> |
---|
| 225 | </tr> |
---|
| 226 | </thead> |
---|
| 227 | <tbody> |
---|
| 228 | <g:each in="${taskInstance?.entries}" status="i" var="entry"> |
---|
| 229 | <g:if test="${entry.entryType == EntryType.findByName('WorkDone')}"> |
---|
| 230 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> |
---|
| 231 | |
---|
| 232 | <td width="65%">${entry.comment}</td> |
---|
| 233 | <td><g:formatDate date="${entry.dateDone}" format="EEE, dd MMM yyyy"/></td> |
---|
| 234 | <td>${entry.durationHour}:${entry.durationMinute}</td> |
---|
| 235 | <td>${entry.enteredBy}</td> |
---|
| 236 | |
---|
| 237 | <td> |
---|
| 238 | <g:link controller="entryDetailed" action="edit" id="${entry.id}"> |
---|
| 239 | <img src="${createLinkTo(dir:'images/skin',file:'database_edit.png')}" alt="Edit" /> |
---|
| 240 | </g:link> |
---|
| 241 | </td> |
---|
| 242 | |
---|
| 243 | </tr> |
---|
| 244 | </g:if> |
---|
[126] | 245 | </g:each> |
---|
[131] | 246 | </tbody> |
---|
| 247 | </table> |
---|
| 248 | </div> |
---|
| 249 | |
---|
| 250 | <br /> |
---|
| 251 | |
---|
| 252 | <div class="buttons"> |
---|
| 253 | <g:form controller="entryDetailed"> |
---|
| 254 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 255 | <span class="button"> |
---|
| 256 | <g:actionSubmit value="Add Entry" action="create" class="add"/> |
---|
| 257 | </span> |
---|
| 258 | </g:form> |
---|
| 259 | </div> |
---|
| 260 | </richui:tabContent> |
---|
| 261 | <!-- End Task tab --> |
---|
[126] | 262 | |
---|
[131] | 263 | <!-- Start Task Procedure tab--> |
---|
| 264 | <richui:tabContent> |
---|
[133] | 265 | <g:if test="${!taskProcedureExits}"> |
---|
[126] | 266 | |
---|
[133] | 267 | <g:form controller="taskDetailed" > |
---|
| 268 | <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> |
---|
| 269 | |
---|
| 270 | <div class="dialog"> |
---|
| 271 | <table> |
---|
| 272 | <tbody> |
---|
[131] | 273 | |
---|
[133] | 274 | <tr class="prop"> |
---|
| 275 | <td valign="top" class="name"> |
---|
| 276 | <label for="name">Name:</label> |
---|
| 277 | </td> |
---|
| 278 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'name','errors')}"> |
---|
| 279 | <input type="text" maxlength="75" id="name" name="name" value="${fieldValue(bean:taskProcedureInstance,field:'name')}"/> |
---|
| 280 | </td> |
---|
| 281 | </tr> |
---|
| 282 | |
---|
| 283 | <tr class="prop"> |
---|
| 284 | <td valign="top" class="name"> |
---|
| 285 | <label for="description">Description:</label> |
---|
| 286 | </td> |
---|
| 287 | <td valign="top" class="value ${hasErrors(bean:taskProcedureInstance,field:'description','errors')}"> |
---|
| 288 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:taskProcedureInstance,field:'description')}"/> |
---|
| 289 | </td> |
---|
| 290 | </tr> |
---|
| 291 | </tbody> |
---|
| 292 | </table> |
---|
| 293 | </div> |
---|
| 294 | <div class="buttons"> |
---|
| 295 | <span class="button"> |
---|
| 296 | <g:actionSubmit value="New" action="generateProcedure" class="save"/> |
---|
| 297 | </span> |
---|
| 298 | <span class="button"> |
---|
| 299 | <g:actionSubmit value="Find" action="findProcedure" class="save"/> |
---|
| 300 | </span> |
---|
| 301 | </div> |
---|
| 302 | <!-- <div class="buttons"> |
---|
| 303 | <span class="button"><input class="save" type="submit" value="Create Procedure" /></span> |
---|
| 304 | <span class="button"><input class="save" type="submit" value="Find Procedure" /></span> |
---|
| 305 | </div>--> |
---|
| 306 | </g:form> |
---|
[126] | 307 | |
---|
[133] | 308 | </g:if> |
---|
| 309 | <g:else> |
---|
| 310 | <div class="dialog"> |
---|
| 311 | <table> |
---|
| 312 | <tbody> |
---|
| 313 | |
---|
| 314 | |
---|
| 315 | <tr class="prop"> |
---|
| 316 | <td valign="top" class="name">Procedure Id:</td> |
---|
| 317 | |
---|
| 318 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> |
---|
| 319 | |
---|
| 320 | </tr> |
---|
| 321 | |
---|
| 322 | <tr class="prop"> |
---|
| 323 | <td valign="top" class="name">Name:</td> |
---|
| 324 | |
---|
| 325 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> |
---|
| 326 | |
---|
| 327 | </tr> |
---|
| 328 | |
---|
| 329 | <tr class="prop"> |
---|
| 330 | <td valign="top" class="name">Description:</td> |
---|
| 331 | |
---|
| 332 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> |
---|
| 333 | |
---|
| 334 | </tr> |
---|
| 335 | |
---|
| 336 | <tr class="prop"> |
---|
| 337 | <td valign="top" class="name">Is Active:</td> |
---|
| 338 | |
---|
| 339 | <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> |
---|
| 340 | |
---|
| 341 | </tr> |
---|
| 342 | |
---|
| 343 | </tbody> |
---|
| 344 | </table> |
---|
| 345 | </div> |
---|
| 346 | <div class="buttons"> |
---|
| 347 | <g:form controller="taskProcedureDetailed"> |
---|
| 348 | <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> |
---|
| 349 | <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> |
---|
| 350 | <!-- <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> --> |
---|
| 351 | </g:form> |
---|
| 352 | </div> |
---|
| 353 | |
---|
| 354 | <div class="list"> |
---|
| 355 | <table> |
---|
| 356 | <thead> |
---|
| 357 | <tr> |
---|
| 358 | <th>Step</th> |
---|
| 359 | <th>Description</th> |
---|
| 360 | <th></th> |
---|
| 361 | </tr> |
---|
| 362 | </thead> |
---|
| 363 | <tbody> |
---|
| 364 | <g:each in="${taskProcedureInstance?.maintenanceActions}" status="i" var="maintenanceAction"> |
---|
| 365 | <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/maintenanceActionDetailed/edit/${maintenanceAction.id}"'/> |
---|
| 366 | |
---|
| 367 | <td valign="top" class="name"> |
---|
| 368 | ${maintenanceAction?.procedureStepNumber} |
---|
| 369 | </td> |
---|
| 370 | |
---|
| 371 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 372 | ${maintenanceAction?.description} |
---|
| 373 | </td> |
---|
| 374 | |
---|
| 375 | </tr> |
---|
| 376 | </g:each> |
---|
| 377 | |
---|
| 378 | </tbody> |
---|
| 379 | </table> |
---|
| 380 | </div> |
---|
[126] | 381 | |
---|
[133] | 382 | </g:else> |
---|
| 383 | |
---|
[131] | 384 | </richui:tabContent> |
---|
| 385 | <!-- End Task Procedure tab--> |
---|
[126] | 386 | |
---|
[131] | 387 | <!-- Start Task Recurrence tab --> |
---|
| 388 | <richui:tabContent> |
---|
| 389 | <div class="dialog"> |
---|
| 390 | <table> |
---|
| 391 | <tbody> |
---|
| 392 | <tr class="prop"> |
---|
| 393 | <td valign="top" class="name">Recurring Schedule:</td> |
---|
| 394 | |
---|
| 395 | <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.encodeAsHTML()}</td> |
---|
| 396 | |
---|
| 397 | </tr> |
---|
| 398 | |
---|
| 399 | <tr class="prop"> |
---|
| 400 | <td valign="top" class="name">Start Date:</td> |
---|
| 401 | |
---|
| 402 | <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.startDate}</td> |
---|
| 403 | |
---|
| 404 | </tr> |
---|
| 405 | |
---|
| 406 | <tr class="prop"> |
---|
| 407 | <td valign="top" class="name">Next Due Date:</td> |
---|
| 408 | |
---|
| 409 | <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.nextDueDate}</td> |
---|
| 410 | |
---|
| 411 | </tr> |
---|
| 412 | |
---|
| 413 | <tr class="prop"> |
---|
| 414 | <td valign="top" class="name">Last Generated Date:</td> |
---|
| 415 | |
---|
| 416 | <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.lastGeneratedDate}</td> |
---|
| 417 | |
---|
| 418 | </tr> |
---|
| 419 | |
---|
| 420 | <tr class="prop"> |
---|
| 421 | <td valign="top" class="name">Last Generated Sub Task:</td> |
---|
| 422 | |
---|
| 423 | <td valign="top" class="value">${taskInstance.taskRecurringSchedule?.lastGeneratedSubTask}</td> |
---|
| 424 | |
---|
| 425 | </tr> |
---|
| 426 | </tbody> |
---|
| 427 | </table> |
---|
| 428 | </div> |
---|
| 429 | </richui:tabContent> |
---|
| 430 | <!-- End Task Recurrence tab --> |
---|
[126] | 431 | |
---|
[131] | 432 | <!-- Start Inventory tab --> |
---|
| 433 | <richui:tabContent> |
---|
| 434 | Used Inventory |
---|
| 435 | </richui:tabContent> |
---|
| 436 | <!-- End Inventory tab --> |
---|
[126] | 437 | |
---|
[131] | 438 | <!-- Start Sub Task tab --> |
---|
| 439 | <richui:tabContent> |
---|
| 440 | <div class="dialog"> |
---|
| 441 | <table> |
---|
| 442 | <tbody> |
---|
| 443 | <tr class="prop"> |
---|
| 444 | <td valign="top" class="name">Sub Tasks:</td> |
---|
| 445 | |
---|
| 446 | <td valign="top" style="text-align:left;" class="value"> |
---|
| 447 | <ul> |
---|
| 448 | <g:each var="s" in="${taskInstance.subTasks}"> |
---|
| 449 | <li><g:link controller="taskDetailed" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li> |
---|
| 450 | </g:each> |
---|
| 451 | </ul> |
---|
| 452 | </td> |
---|
| 453 | |
---|
| 454 | </tr> |
---|
| 455 | </tbody> |
---|
| 456 | </table> |
---|
| 457 | </div> |
---|
| 458 | </richui:tabContent> |
---|
| 459 | <!-- End Sub Task tab --> |
---|
[126] | 460 | |
---|
[131] | 461 | </richui:tabContents> |
---|
| 462 | </richui:tabView> |
---|
| 463 | |
---|
[84] | 464 | </div> |
---|
| 465 | </body> |
---|
| 466 | </html> |
---|