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