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