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