Changeset 153
- Timestamp:
- Oct 14, 2009, 4:25:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/taskDetailed/show.gsp
r151 r153 35 35 <!-- Start Task tab --> 36 36 <richui:tabContent> 37 37 38 38 <div class="dialog"> 39 39 <table> 40 40 <tbody> 41 42 41 43 42 <tr class="prop"> 44 43 <td valign="top" class="name">Id:</td> 45 44 46 45 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'id')}</td> 47 48 </tr> 49 46 47 </tr> 48 50 49 <tr class="prop"> 51 50 <td valign="top" class="name">Description:</td> 52 51 53 52 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'description')}</td> 54 55 </tr> 56 53 54 </tr> 55 57 56 <tr class="prop"> 58 57 <td valign="top" class="name">Comment:</td> 59 58 60 59 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'comment')}</td> 61 62 </tr> 63 60 61 </tr> 62 64 63 <tr class="prop"> 65 64 <td valign="top" class="name">Target Start Date:</td> 66 65 67 66 <td valign="top" class="value"><g:formatDate date="${taskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> 68 69 </tr> 70 67 68 </tr> 69 71 70 <tr class="prop"> 72 71 <td valign="top" class="name">Target Completion Date:</td> 73 72 74 73 <td valign="top" class="value"><g:formatDate date="${taskInstance.targetCompletionDate}" format="EEE, dd-MMM-yyyy"/></td> 75 76 </tr> 77 74 75 </tr> 76 78 77 <tr class="prop"> 79 78 <td valign="top" class="name">Lead Person:</td> 80 79 81 80 <td valign="top" class="value">${taskInstance?.leadPerson?.encodeAsHTML()}</td> 82 83 </tr> 84 81 82 </tr> 83 85 84 <tr class="prop"> 86 85 <td valign="top" class="name">Task Priority:</td> 87 86 88 87 <td valign="top" class="value">${taskInstance?.taskPriority?.encodeAsHTML()}</td> 89 90 </tr> 91 88 89 </tr> 90 92 91 <tr class="prop"> 93 92 <td valign="top" class="name">Task Status:</td> 94 93 95 94 <td valign="top" class="value">${taskInstance?.taskStatus?.encodeAsHTML()}</td> 96 97 </tr> 98 95 96 </tr> 97 99 98 <tr class="prop"> 100 99 <td valign="top" class="name">Is Active:</td> 101 100 102 101 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isActive')}</td> 103 104 </tr> 105 102 103 </tr> 104 106 105 <tr class="prop"> 107 106 <td valign="top" class="name">Is Approved:</td> 108 107 109 108 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isApproved')}</td> 110 111 </tr> 112 109 110 </tr> 111 113 112 <tr class="prop"> 114 113 <td valign="top" class="name">Is Scheduled:</td> 115 114 116 115 <td valign="top" class="value">${fieldValue(bean:taskInstance, field:'isScheduled')}</td> 117 118 </tr> 119 116 117 </tr> 118 120 119 <tr class="prop"> 121 120 <td valign="top" class="name">Parent Task:</td> 122 121 123 122 <td valign="top" class="value"><g:link controller="taskDetailed" action="show" id="${taskInstance?.parentTask?.id}">${taskInstance?.parentTask?.encodeAsHTML()}</g:link></td> 124 125 </tr> 126 123 124 </tr> 125 127 126 <tr class="prop"> 128 127 <td valign="top" class="name">Task Group:</td> 129 128 130 129 <td valign="top" class="value">${taskInstance?.taskGroup?.encodeAsHTML()}</td> 131 132 </tr> 133 130 131 </tr> 132 134 133 <tr class="prop"> 135 134 <td valign="top" class="name">Task Type:</td> 136 135 137 136 <td valign="top" class="value">${taskInstance?.taskType?.encodeAsHTML()}</td> 138 139 </tr> 140 137 138 </tr> 139 141 140 <tr class="prop"> 142 141 <td valign="top" class="name">Assigned Persons:</td> 143 142 144 143 <td valign="top" style="text-align:left;" class="value"> 145 144 <ul> … … 150 149 <g:link controller="assignedPersonDetailed" params="['task.id':taskInstance?.id]" action="create">Add AssignedPerson</g:link> 151 150 </td> 152 153 </tr> 154 151 152 </tr> 153 155 154 </tbody> 156 155 </table> 157 156 </div> 158 157 159 158 <div class="buttons"> 160 159 <g:form> … … 164 163 </g:form> 165 164 </div> 166 165 167 166 <div class="list"> 168 167 <h1>Faults</h1> … … 175 174 <th>Entered By</th> 176 175 <th></th> 177 176 178 177 <!-- <g:sortableColumn property="comment" title="Comment" /> 179 178 180 179 <g:sortableColumn property="dateDone" title="Date Done" /> 181 180 182 181 <g:sortableColumn property="enteredBy" title="Entered By" />--> 183 182 </tr> … … 186 185 <g:each in="${entryFaultList}" status="i" var="entry"> 187 186 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 188 187 189 188 <td style="width:65%">${entry.comment}</td> 190 189 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> 191 190 <td>${entry.durationHour}:${entry.durationMinute}</td> 192 191 <td>${entry.enteredBy}</td> 193 192 194 193 <td> 195 194 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 197 196 </g:link> 198 197 </td> 199 198 200 199 </tr> 201 200 </g:each> … … 203 202 </table> 204 203 </div> 205 204 206 205 <div class="list"> 207 206 <h1>Work Done</h1> … … 214 213 <th>Entered By</th> 215 214 <th></th> 216 215 217 216 <!-- <g:sortableColumn property="commentW" title="Comment" /> 218 217 219 218 <g:sortableColumn property="dateDoneW" title="Date Done" /> 220 219 221 220 <g:sortableColumn property="enteredByW" title="Entered By" />--> 222 221 </tr> … … 225 224 <g:each in="${entryWorkDoneList}" status="i" var="entry"> 226 225 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/entryDetailed/edit/${entry.id}"'/> 227 226 228 227 <td width="65%">${entry.comment}</td> 229 228 <td><g:formatDate date="${entry.dateDone}" format="EEE, dd-MMM-yyyy"/></td> 230 229 <td>${entry.durationHour}:${entry.durationMinute}</td> 231 230 <td>${entry.enteredBy}</td> 232 231 233 232 <td> 234 233 <g:link controller="entryDetailed" action="edit" id="${entry.id}"> … … 236 235 </g:link> 237 236 </td> 238 237 239 238 </tr> 240 239 </g:each> … … 242 241 </table> 243 242 </div> 244 243 245 244 <br /> 246 245 247 246 <div class="buttons"> 248 247 <g:form controller="entryDetailed"> … … 257 256 258 257 259 260 258 <!-- Start Task Procedure tab--> 261 259 <richui:tabContent> 262 260 <g:if test="${!taskProcedureExits}"> 263 264 265 266 261 <br /> 262 No Procedure linked. 263 <br /> 264 <br /> 267 265 <g:form controller="taskProcedureDetailed" > 268 266 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> … … 281 279 </g:if> 282 280 <g:else> 283 281 <div class="dialog"> 284 282 <table> 285 283 <tbody> 286 287 284 288 285 <tr class="prop"> 289 286 <td valign="top" class="name">Procedure Id:</td> 290 287 291 288 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'id')}</td> 292 293 </tr> 294 289 290 </tr> 291 295 292 <tr class="prop"> 296 293 <td valign="top" class="name">Name:</td> 297 294 298 295 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'name')}</td> 299 300 </tr> 301 296 297 </tr> 298 302 299 <tr class="prop"> 303 300 <td valign="top" class="name">Description:</td> 304 301 305 302 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'description')}</td> 306 307 </tr> 308 303 304 </tr> 305 309 306 <tr class="prop"> 310 307 <td valign="top" class="name">Is Active:</td> 311 308 312 309 <td valign="top" class="value">${fieldValue(bean:taskProcedureInstance, field:'isActive')}</td> 313 314 </tr> 315 310 311 </tr> 312 316 313 </tbody> 317 314 </table> … … 321 318 <input type="hidden" name="id" value="${taskProcedureInstance?.id}" /> 322 319 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 323 324 </div> 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 320 </g:form> 321 </div> 322 323 <div class="list"> 324 <table> 325 <thead> 326 <tr> 327 <th>Step</th> 328 <th>Description</th> 329 </tr> 330 </thead> 331 <tbody> 332 <g:each in="${maintenanceActionList}" status="i" var="maintenanceAction"> 333 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 334 335 <td valign="top" class="name"> 336 ${maintenanceAction?.procedureStepNumber} 337 </td> 338 339 <td valign="top" style="text-align:left;" class="value"> 340 ${maintenanceAction?.description} 341 </td> 342 343 </tr> 344 </g:each> 345 346 </tbody> 347 </table> 348 </div> 352 349 353 350 </g:else> … … 360 357 361 358 <g:if test="${!taskRecurringScheduleExits}"> 362 363 364 365 359 <br /> 360 No Recurring Schedule. 361 <br /> 362 <br /> 366 363 <g:form controller="taskRecurringScheduleDetailed" > 367 364 <input type="hidden" name="taskInstance.id" value="${taskInstance?.id}" /> … … 377 374 </g:if> 378 375 <g:else> 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 </tr> 398 376 377 <div class="dialog"> 378 <table> 379 <tbody> 380 <tr class="prop"> 381 <td valign="top" class="name">Recurring Schedule:</td> 382 383 <td valign="top" class="value">${taskRecurringScheduleInstance.encodeAsHTML()}</td> 384 385 </tr> 386 387 <tr class="prop"> 388 <td valign="top" class="name">Start Date:</td> 389 390 <td valign="top" class="value"> 391 <g:formatDate date="${taskRecurringScheduleInstance.startDate}" format="EEE, dd-MMM-yyyy"/> 392 </td> 393 394 </tr> 395 399 396 <tr class="prop"> 400 397 <td valign="top" class="name">Task Duration:</td> 401 398 402 399 <td valign="top" class="value"> 403 400 ${taskRecurringScheduleInstance?.taskDuration} ${taskRecurringScheduleInstance?.taskDurationPeriod} 404 401 </td> 405 402 </tr> 406 403 407 404 <tr class="prop"> 408 405 <td valign="top" class="name">Generate Ahead:</td> 409 406 410 407 <td valign="top" class="value"> 411 408 ${taskRecurringScheduleInstance?.generateAhead} ${taskRecurringScheduleInstance?.generateAheadPeriod} 412 409 </td> 413 414 </tr> 415 416 417 418 419 420 421 422 423 424 410 411 </tr> 412 413 </tr> 414 415 <tr class="prop"> 416 <td valign="top" class="name">Is Enabled:</td> 417 418 <td valign="top" class="value">${fieldValue(bean:taskRecurringScheduleInstance, field:'isEnabled')}</td> 419 420 </tr> 421 425 422 </tbody> 426 423 </table> 427 424 428 425 <table> 429 426 <tbody> 430 431 432 433 434 435 436 437 438 439 427 428 <tr class="prop"> 429 <td valign="top" class="name">Next Target Start Date:</td> 430 431 <td valign="top" class="value"> 432 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetStartDate}" format="EEE, dd-MMM-yyyy"/> 433 </td> 434 435 </tr> 436 440 437 <tr class="prop"> 441 438 <td valign="top" class="name">Next Target Completion Date:</td> 442 439 443 440 <td valign="top" class="value"> 444 441 <g:formatDate date="${taskRecurringScheduleInstance.nextTargetCompletionDate}" format="EEE, dd-MMM-yyyy"/> 445 442 </td> 446 447 </tr> 448 443 444 </tr> 445 449 446 <tr class="prop"> 450 447 <td valign="top" class="name">Next Generation Date:</td> 451 448 452 449 <td valign="top" class="value"> 453 450 <g:formatDate date="${taskRecurringScheduleInstance.nextGenerationDate}" format="EEE, dd-MMM-yyyy"/> 454 451 </td> 455 452 </tr> 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 453 454 <tr class="prop"> 455 <td valign="top" class="name">Last Generated Date:</td> 456 457 <td valign="top" class="value"> 458 <g:formatDate date="${taskRecurringScheduleInstance.lastGeneratedDate}" format="EEE, dd-MMM-yyyy"/> 459 </td> 460 461 </tr> 462 463 <tr class="prop"> 464 <td valign="top" class="name">Last Generated Sub Task:</td> 465 466 <td valign="top" class="value"> 467 <g:link controller="taskDetailed" action="show" id="${taskRecurringScheduleInstance?.lastGeneratedSubTask?.id}"> 468 ${taskRecurringScheduleInstance?.lastGeneratedSubTask?.encodeAsHTML()} 469 </g:link> 470 </td> 471 </tr> 472 </tbody> 473 </table> 474 </div> 478 475 <div class="buttons"> 479 476 <g:form controller="taskRecurringScheduleDetailed"> 480 477 <input type="hidden" name="id" value="${taskRecurringScheduleInstance?.id}" /> 481 478 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 482 483 </div> 484 485 479 </g:form> 480 </div> 481 482 </g:else> 486 483 </richui:tabContent> 487 484 <!-- End Task Recurrence tab --> … … 493 490 <!-- End Inventory tab --> 494 491 495 <!-- Start Sub Task tab --> 492 <!-- Start Sub Task tab --> 496 493 <richui:tabContent> 497 <g:if test="${subTaskInstanceTotal >= 1}"> 498 <div class="list"> 499 <table> 500 <thead> 501 <tr> 502 503 <th>Id</th> 504 505 <th>Target Start Date</th> 506 507 <th>Description</th> 508 509 <th>Lead Person</th> 510 511 <th>Task Priority</th> 512 513 <th>Task Status</th> 514 515 <th></th> 516 517 </tr> 518 </thead> 519 <tbody> 520 <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> 521 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> 522 523 <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> 524 525 <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> 526 527 <td>${subTaskInstance.description}</td> 528 529 530 <td>${subTaskInstance.leadPerson}</td> 531 532 <td>${subTaskInstance.taskPriority}</td> 533 534 <td>${subTaskInstance.taskStatus}</td> 535 536 <td> 537 <g:link action="show" id="${subTaskInstance.id}"> 538 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 539 </g:link> 540 </td> 541 542 543 </tr> 544 </g:each> 545 </tbody> 546 </table> 547 </div> 548 549 550 <div class="buttons"> 551 <g:form> 552 <input type="hidden" name="id" value="${taskInstance?.id}" /> 553 <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> 554 Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} 555 <br /> 556 </g:if> 557 <g:else> 558 Total ${subTaskInstanceTotal} 559 <br /> 560 </g:else> 561 <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="Sortable List" /></span> 562 </g:form> 563 </div> 564 565 </g:if> 566 <g:else> 567 <br /> 568 No Sub Tasks. 569 </g:else> 494 <g:if test="${subTaskInstanceTotal >= 1}"> 495 <div class="list"> 496 <table> 497 <thead> 498 <tr> 499 500 <th>Id</th> 501 502 <th>Target Start Date</th> 503 504 <th>Description</th> 505 506 <th>Lead Person</th> 507 508 <th>Task Priority</th> 509 510 <th>Task Status</th> 511 512 <th></th> 513 514 </tr> 515 </thead> 516 <tbody> 517 <g:each in="${subTaskInstanceList}" status="i" var="subTaskInstance"> 518 <tr class="${(i % 2) == 0 ? 'clickableOdd' : 'clickableEven'}" onclick='window.location = "${request.getContextPath()}/taskDetailed/show/${subTaskInstance.id}"'/> 519 520 <td>${fieldValue(bean:subTaskInstance, field:'id')}</td> 521 522 <td><g:formatDate date="${subTaskInstance.targetStartDate}" format="EEE, dd-MMM-yyyy"/></td> 523 524 <td>${subTaskInstance.description}</td> 525 526 527 <td>${subTaskInstance.leadPerson}</td> 528 529 <td>${subTaskInstance.taskPriority}</td> 530 531 <td>${subTaskInstance.taskStatus}</td> 532 533 <td> 534 <g:link action="show" id="${subTaskInstance.id}"> 535 <img src="${resource(dir:'images/skin',file:'database_go.png')}" alt="Show" /> 536 </g:link> 537 </td> 538 539 </tr> 540 </g:each> 541 </tbody> 542 </table> 543 </div> 544 545 <div class="buttons"> 546 <g:form> 547 <input type="hidden" name="id" value="${taskInstance?.id}" /> 548 <g:if test="${subTaskInstanceTotal > subTaskInstanceMax}"> 549 Showing ${subTaskInstanceMax} of ${subTaskInstanceTotal} 550 <br /> 551 </g:if> 552 <g:else> 553 Total ${subTaskInstanceTotal} 554 <br /> 555 </g:else> 556 <span class="button"><g:actionSubmit action="listSubTasks" class="table" value="Sortable List" /></span> 557 </g:form> 558 </div> 559 560 </g:if> 561 <g:else> 562 <br /> 563 No Sub Tasks. 564 </g:else> 570 565 571 566 </richui:tabContent> … … 574 569 </richui:tabContents> 575 570 </richui:tabView> 576 571 577 572 </div> 578 573 </body>
Note: See TracChangeset
for help on using the changeset viewer.