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