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