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