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