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