Commit 477eccd4aec15f39ae4859d1145a22a8ff00b1a7
1 parent
c98368f8
Exists in
master
style button
Showing
3 changed files
with
304 additions
and
41 deletions
Show diff stats
src/app/dashboard/dashboard.component.html
... | ... | @@ -14,20 +14,30 @@ |
14 | 14 | </a> |
15 | 15 | </li> |
16 | 16 | <li class="sbold"> |
17 | - <a href="#tab2" data-toggle="tab" aria-expanded="false">RND <span class="badge"> {{resultNum2}} </span></a> | |
17 | + <a href="#tab2" data-toggle="tab" aria-expanded="false">RND | |
18 | + <span class="badge"> {{resultNum2}} </span> | |
19 | + </a> | |
18 | 20 | </li> |
19 | 21 | <li class="sbold"> |
20 | - <a href="#tab3" data-toggle="tab" aria-expanded="false">SDE+SDN <span class="badge"> {{resultNum3}} </span></a> | |
22 | + <a href="#tab3" data-toggle="tab" aria-expanded="false">SDE+SDN | |
23 | + <span class="badge"> {{resultNum3}} </span> | |
24 | + </a> | |
21 | 25 | </li> |
22 | 26 | <li class="sbold"> |
23 | - <a href="#tab4" data-toggle="tab" aria-expanded="false">AP Down <span class="badge"> {{resultNum4}} </span></a> | |
27 | + <a href="#tab4" data-toggle="tab" aria-expanded="false">AP Down | |
28 | + <span class="badge"> {{resultNum4}} </span> | |
29 | + </a> | |
24 | 30 | </li> |
25 | 31 | <li class="sbold"> |
26 | - <a href="#tab5" data-toggle="tab" aria-expanded="false">BNW+NDS+NED+NES+NET <span class="badge"> {{resultNum5}} </span></a> | |
32 | + <a href="#tab5" data-toggle="tab" aria-expanded="false">BNW+NDS+NED+NES+NET | |
33 | + <span class="badge"> {{resultNum5}} </span> | |
34 | + </a> | |
27 | 35 | </li> |
28 | 36 | <li class="sbold"> |
29 | - <a href="#tab6" data-toggle="tab" aria-expanded="false">CUS <span class="badge"> {{resultNum6}} </span></a> | |
30 | - </li> | |
37 | + <a href="#tab6" data-toggle="tab" aria-expanded="false">CUS | |
38 | + <span class="badge"> {{resultNum6}} </span> | |
39 | + </a> | |
40 | + </li> | |
31 | 41 | </ul> |
32 | 42 | <div class="tab-content"> |
33 | 43 | <div class="panel tab-pane active" id="tab1"> |
... | ... | @@ -42,14 +52,15 @@ |
42 | 52 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
43 | 53 | </div> |
44 | 54 | </div> |
45 | - <br><br> | |
46 | - <button *ngFor="let name of ButtonValue" (click)="getButton1(name.valueN)">{{ name.name }}</button> | |
55 | + <br> | |
56 | + <br> | |
57 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton1(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
47 | 58 | <hr> |
48 | 59 | <br> |
49 | 60 | </div> |
50 | 61 | <div class="panel-body"> |
51 | 62 | <div class="row"> |
52 | - <div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData | filter:FilterSearch: '' | filter:FilterSearchButton: 'name.valueN' " > | |
63 | + <div class="col-lg-4 col-md-3 col-sm-6 col-xs-12" *ngFor="let item of resultData | filter:FilterSearch: '' | filter:FilterSearchButton: 'name.valueN' "> | |
53 | 64 | <a class="dashboard-stat dashboard-stat-v2 red " href="{{item.link}}" target="_blank" [ngStyle]="{'background-color': getColorDay(item.days.toFixed(0))}"> |
54 | 65 | <!-- <div [ngStyle]="{'background-color':item.days === '366.0098' ? 'green' : 'red' }"></<div> --> |
55 | 66 | <!-- <div class="avater">{{(item.days).toFixed(0)}} D</div> --> |
... | ... | @@ -99,6 +110,9 @@ |
99 | 110 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
100 | 111 | </div> |
101 | 112 | </div> |
113 | + <br> | |
114 | + <br> | |
115 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton1Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
102 | 116 | <hr> |
103 | 117 | <br> |
104 | 118 | </div> |
... | ... | @@ -115,7 +129,7 @@ |
115 | 129 | <table> |
116 | 130 | <tr> |
117 | 131 | <div class="details" style="width: calc(100% - 50px);"> |
118 | - <div style="text-align: right; margin-top: -60px; color: black;">{{item.type}}</div> | |
132 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
119 | 133 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
120 | 134 | <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> |
121 | 135 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
... | ... | @@ -151,8 +165,9 @@ |
151 | 165 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
152 | 166 | </div> |
153 | 167 | </div> |
154 | - <br><br> | |
155 | - <button *ngFor="let name of ButtonValue" (click)="getButton2(name.valueN)">{{ name.name }}</button> | |
168 | + <br> | |
169 | + <br> | |
170 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton2(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
156 | 171 | <hr> |
157 | 172 | <br> |
158 | 173 | </div> |
... | ... | @@ -171,7 +186,7 @@ |
171 | 186 | <div class="details" style="width: calc(100% - 50px);"> |
172 | 187 | <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> |
173 | 188 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
174 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
189 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
175 | 190 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
176 | 191 | </div> |
177 | 192 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -207,6 +222,9 @@ |
207 | 222 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
208 | 223 | </div> |
209 | 224 | </div> |
225 | + <br> | |
226 | + <br> | |
227 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton2Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
210 | 228 | <hr> |
211 | 229 | <br> |
212 | 230 | </div> |
... | ... | @@ -223,8 +241,9 @@ |
223 | 241 | <table> |
224 | 242 | <tr> |
225 | 243 | <div class="details" style="width: calc(100% - 50px);"> |
226 | - <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div> | |
227 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
244 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
245 | + <div style="text-align: right; color: black;">{{item.STATUS}}</div> | |
246 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
228 | 247 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
229 | 248 | </div> |
230 | 249 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -257,8 +276,9 @@ |
257 | 276 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
258 | 277 | </div> |
259 | 278 | </div> |
260 | - <br><br> | |
261 | - <button *ngFor="let name of ButtonValue" (click)="getButton3(name.valueN)">{{ name.name }}</button> | |
279 | + <br> | |
280 | + <br> | |
281 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton3(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
262 | 282 | <hr> |
263 | 283 | <br> |
264 | 284 | </div> |
... | ... | @@ -277,7 +297,7 @@ |
277 | 297 | <div class="details" style="width: calc(100% - 50px);"> |
278 | 298 | <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> |
279 | 299 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
280 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
300 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
281 | 301 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
282 | 302 | </div> |
283 | 303 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -313,6 +333,9 @@ |
313 | 333 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
314 | 334 | </div> |
315 | 335 | </div> |
336 | + <br> | |
337 | + <br> | |
338 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton3Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
316 | 339 | <hr> |
317 | 340 | <br> |
318 | 341 | </div> |
... | ... | @@ -329,8 +352,9 @@ |
329 | 352 | <table> |
330 | 353 | <tr> |
331 | 354 | <div class="details" style="width: calc(100% - 50px);"> |
332 | - <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div> | |
333 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
355 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
356 | + <div style="text-align: right; color: black;">{{item.STATUS}}</div> | |
357 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
334 | 358 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
335 | 359 | </div> |
336 | 360 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -363,8 +387,9 @@ |
363 | 387 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
364 | 388 | </div> |
365 | 389 | </div> |
366 | - <br><br> | |
367 | - <button *ngFor="let name of ButtonValue" (click)="getButton4(name.valueN)">{{ name.name }}</button> | |
390 | + <br> | |
391 | + <br> | |
392 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton4(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
368 | 393 | <hr> |
369 | 394 | <br> |
370 | 395 | </div> |
... | ... | @@ -383,7 +408,7 @@ |
383 | 408 | <div class="details" style="width: calc(100% - 50px);"> |
384 | 409 | <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> |
385 | 410 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
386 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
411 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
387 | 412 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
388 | 413 | </div> |
389 | 414 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -419,6 +444,9 @@ |
419 | 444 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
420 | 445 | </div> |
421 | 446 | </div> |
447 | + <br> | |
448 | + <br> | |
449 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton4Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
422 | 450 | <hr> |
423 | 451 | <br> |
424 | 452 | </div> |
... | ... | @@ -435,8 +463,9 @@ |
435 | 463 | <table> |
436 | 464 | <tr> |
437 | 465 | <div class="details" style="width: calc(100% - 50px);"> |
438 | - <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div> | |
439 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
466 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
467 | + <div style="text-align: right; color: black;">{{item.STATUS}}</div> | |
468 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
440 | 469 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
441 | 470 | </div> |
442 | 471 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -469,8 +498,9 @@ |
469 | 498 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
470 | 499 | </div> |
471 | 500 | </div> |
472 | - <br><br> | |
473 | - <button *ngFor="let name of ButtonValue" (click)="getButton5(name.valueN)">{{ name.name }}</button> | |
501 | + <br> | |
502 | + <br> | |
503 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton5(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
474 | 504 | <hr> |
475 | 505 | <br> |
476 | 506 | </div> |
... | ... | @@ -489,7 +519,7 @@ |
489 | 519 | <div class="details" style="width: calc(100% - 50px);"> |
490 | 520 | <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> |
491 | 521 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
492 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
522 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
493 | 523 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
494 | 524 | </div> |
495 | 525 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -525,6 +555,9 @@ |
525 | 555 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
526 | 556 | </div> |
527 | 557 | </div> |
558 | + <br> | |
559 | + <br> | |
560 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton5Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
528 | 561 | <hr> |
529 | 562 | <br> |
530 | 563 | </div> |
... | ... | @@ -541,8 +574,9 @@ |
541 | 574 | <table> |
542 | 575 | <tr> |
543 | 576 | <div class="details" style="width: calc(100% - 50px);"> |
544 | - <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div> | |
545 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
577 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
578 | + <div style="text-align: right; color: black;">{{item.STATUS}}</div> | |
579 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
546 | 580 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
547 | 581 | </div> |
548 | 582 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -575,8 +609,9 @@ |
575 | 609 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
576 | 610 | </div> |
577 | 611 | </div> |
578 | - <br><br> | |
579 | - <button *ngFor="let name of ButtonValue" (click)="getButton6(name.valueN)">{{ name.name }}</button> | |
612 | + <br> | |
613 | + <br> | |
614 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton6(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
580 | 615 | <hr> |
581 | 616 | <br> |
582 | 617 | </div> |
... | ... | @@ -595,7 +630,7 @@ |
595 | 630 | <div class="details" style="width: calc(100% - 50px);"> |
596 | 631 | <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> |
597 | 632 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
598 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
633 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
599 | 634 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
600 | 635 | </div> |
601 | 636 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -631,6 +666,9 @@ |
631 | 666 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
632 | 667 | </div> |
633 | 668 | </div> |
669 | + <br> | |
670 | + <br> | |
671 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton6Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
634 | 672 | <hr> |
635 | 673 | <br> |
636 | 674 | </div> |
... | ... | @@ -647,8 +685,9 @@ |
647 | 685 | <table> |
648 | 686 | <tr> |
649 | 687 | <div class="details" style="width: calc(100% - 50px);"> |
650 | - <div style="text-align: right; margin-top: -50px; color: black;">{{item.STATUS}}</div> | |
651 | - <div class="number" style=" color: black; display: block; text-align: right;"> | |
688 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
689 | + <div style="text-align: right; color: black;">{{item.STATUS}}</div> | |
690 | + <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> | |
652 | 691 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> |
653 | 692 | </div> |
654 | 693 | <div class="desc" style=" color: black;">{{item.team}}</div> |
... | ... | @@ -675,7 +714,7 @@ |
675 | 714 | <h1 class="icon-bubble font-green-sharp"> |
676 | 715 | <span class="caption-subject font-green-sharp sbold font"> Active</span> |
677 | 716 | </h1> |
678 | - | |
717 | + | |
679 | 718 | <div class="input-group" style="float: right; margin-top: 11px;"> |
680 | 719 | <div class="input-icon right"> |
681 | 720 | <i class="icon-magnifier"> |
... | ... | @@ -683,10 +722,11 @@ |
683 | 722 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearch"> |
684 | 723 | </div> |
685 | 724 | </div> |
686 | - <br><br> | |
687 | - <button *ngFor="let name of ButtonValue" (click)="getButton7(name.valueN)">{{ name.name }}</button> | |
725 | + <br> | |
726 | + <br> | |
727 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton7(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
688 | 728 | <hr> |
689 | - | |
729 | + | |
690 | 730 | <br> |
691 | 731 | </div> |
692 | 732 | <div class="panel-body"> |
... | ... | @@ -741,6 +781,9 @@ |
741 | 781 | <input type="text" placeholder="Search.." class="form-control sbold font" [(ngModel)]="FilterSearchOnHold"> |
742 | 782 | </div> |
743 | 783 | </div> |
784 | + <br> | |
785 | + <br> | |
786 | + <button class="btn btn-default " *ngFor="let name of ButtonValue" (click)="getButton7Onhold(name.valueN)" style="margin-left: 5px; margin-top: 2px;">{{ name.name }}</button> | |
744 | 787 | <!-- <br><br> |
745 | 788 | <button *ngFor="let name of ButtonValue" (click)="getButton(name.valueN)">{{ name.name }}</button> --> |
746 | 789 | <hr> |
... | ... | @@ -759,7 +802,7 @@ |
759 | 802 | <table> |
760 | 803 | <tr> |
761 | 804 | <div class="details" style="width: calc(100% - 50px);"> |
762 | - <div style="text-align: right; margin-top: -60px; color: black;">{{item.type}}</div> | |
805 | + <div style="text-align: right; margin-top: -60px; color: black;">{{item.type | textshort}}</div> | |
763 | 806 | <div style="text-align: right; color: black;">{{item.STATUS}}</div> |
764 | 807 | <div class="number" style=" color: black; display: block; text-align: right; margin-top: -7px;"> |
765 | 808 | <span data-counter="counterup" data-value="">{{item.custgroupName}}</span> | ... | ... |
src/app/dashboard/dashboard.component.scss
src/app/dashboard/dashboard.component.ts
... | ... | @@ -71,12 +71,19 @@ export class DashboardComponent implements OnInit { |
71 | 71 | resultDataOnHold7: any; |
72 | 72 | |
73 | 73 | Show1: any = []; |
74 | + Show1Onhold: any = []; | |
74 | 75 | Show2: any = []; |
76 | + Show2Onhold: any = []; | |
75 | 77 | Show3: any = []; |
78 | + Show3Onhold: any = []; | |
76 | 79 | Show4: any = []; |
80 | + Show4Onhold: any = []; | |
77 | 81 | Show5: any = []; |
82 | + Show5Onhold: any = []; | |
78 | 83 | Show6: any = []; |
84 | + Show6Onhold: any = []; | |
79 | 85 | Show7: any = []; |
86 | + Show7Onhold: any = []; | |
80 | 87 | |
81 | 88 | ButtonValue = [ |
82 | 89 | { |
... | ... | @@ -213,7 +220,7 @@ export class DashboardComponent implements OnInit { |
213 | 220 | }, |
214 | 221 | ]; |
215 | 222 | |
216 | - | |
223 | + | |
217 | 224 | async ngOnInit() { |
218 | 225 | //----------------------------1------------------------ |
219 | 226 | // Active |
... | ... | @@ -264,6 +271,7 @@ export class DashboardComponent implements OnInit { |
264 | 271 | for (const i in this.resultDataOnHold) { |
265 | 272 | this.resultDataOnHold[i].link = this._common.decodeURI(this.resultDataOnHold[i].link); |
266 | 273 | this.resultDataOnHold[i].birth_date = this._common.convertDate(this.resultDataOnHold[i].birth_date); |
274 | + this.Show1Onhold.push(this.resultDataOnHold[i]); | |
267 | 275 | } |
268 | 276 | } else { |
269 | 277 | this.resultDataOnHold = []; |
... | ... | @@ -326,6 +334,7 @@ export class DashboardComponent implements OnInit { |
326 | 334 | for (const i in this.resultDataOnHold2) { |
327 | 335 | this.resultDataOnHold2[i].link = this._common.decodeURI(this.resultDataOnHold2[i].link); |
328 | 336 | this.resultDataOnHold2[i].birth_date = this._common.convertDate(this.resultDataOnHold2[i].birth_date); |
337 | + this.Show2Onhold.push(this.resultDataOnHold2[i]); | |
329 | 338 | } |
330 | 339 | } else { |
331 | 340 | this.resultDataOnHold2 = []; |
... | ... | @@ -387,6 +396,7 @@ export class DashboardComponent implements OnInit { |
387 | 396 | for (const i in this.resultDataOnHold3) { |
388 | 397 | this.resultDataOnHold3[i].link = this._common.decodeURI(this.resultDataOnHold3[i].link); |
389 | 398 | this.resultDataOnHold3[i].birth_date = this._common.convertDate(this.resultDataOnHold3[i].birth_date); |
399 | + this.Show3Onhold.push(this.resultDataOnHold3[i]); | |
390 | 400 | } |
391 | 401 | } else { |
392 | 402 | this.resultDataOnHold3 = []; |
... | ... | @@ -446,6 +456,7 @@ export class DashboardComponent implements OnInit { |
446 | 456 | for (const i in this.resultDataOnHold4) { |
447 | 457 | this.resultDataOnHold4[i].link = this._common.decodeURI(this.resultDataOnHold4[i].link); |
448 | 458 | this.resultDataOnHold4[i].birth_date = this._common.convertDate(this.resultDataOnHold4[i].birth_date); |
459 | + this.Show4Onhold.push(this.resultDataOnHold4[i]); | |
449 | 460 | } |
450 | 461 | } else { |
451 | 462 | this.resultDataOnHold4 = []; |
... | ... | @@ -505,6 +516,7 @@ export class DashboardComponent implements OnInit { |
505 | 516 | for (const i in this.resultDataOnHold5) { |
506 | 517 | this.resultDataOnHold5[i].link = this._common.decodeURI(this.resultDataOnHold5[i].link); |
507 | 518 | this.resultDataOnHold5[i].birth_date = this._common.convertDate(this.resultDataOnHold5[i].birth_date); |
519 | + this.Show5Onhold.push(this.resultDataOnHold5[i]); | |
508 | 520 | } |
509 | 521 | } else { |
510 | 522 | this.resultDataOnHold5 = []; |
... | ... | @@ -563,6 +575,7 @@ export class DashboardComponent implements OnInit { |
563 | 575 | for (const i in this.resultDataOnHold6) { |
564 | 576 | this.resultDataOnHold6[i].link = this._common.decodeURI(this.resultDataOnHold6[i].link); |
565 | 577 | this.resultDataOnHold6[i].birth_date = this._common.convertDate(this.resultDataOnHold6[i].birth_date); |
578 | + this.Show6Onhold.push(this.resultDataOnHold6[i]); | |
566 | 579 | } |
567 | 580 | } else { |
568 | 581 | this.resultDataOnHold6 = []; |
... | ... | @@ -626,6 +639,7 @@ export class DashboardComponent implements OnInit { |
626 | 639 | for (const i in this.resultDataOnHold7) { |
627 | 640 | this.resultDataOnHold7[i].link = this._common.decodeURI(this.resultDataOnHold7[i].link); |
628 | 641 | this.resultDataOnHold7[i].birth_date = this._common.convertDate(this.resultDataOnHold7[i].birth_date); |
642 | + this.Show7Onhold.push(this.resultDataOnHold7[i]); | |
629 | 643 | } |
630 | 644 | } else { |
631 | 645 | this.resultDataOnHold7 = []; |
... | ... | @@ -666,6 +680,34 @@ export class DashboardComponent implements OnInit { |
666 | 680 | |
667 | 681 | this.resultData = resultArray; |
668 | 682 | } |
683 | +/* buttondataOnhold1 */ | |
684 | + getButton1Onhold(valueN){ | |
685 | + console.log(valueN); | |
686 | + | |
687 | + if (this.Show1Onhold.length === 0) { | |
688 | + return this.Show1Onhold; | |
689 | + } | |
690 | + | |
691 | + const resultArray = []; | |
692 | + for (const item of this.Show1Onhold) { | |
693 | + console.log('item: ', item); | |
694 | + | |
695 | + var st = ''; | |
696 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
697 | + if(item['type']){ | |
698 | + st = item['type'].toLowerCase(); | |
699 | + } | |
700 | + | |
701 | + var string2 = valueN.toLowerCase(); | |
702 | + if (st.indexOf(string2) > -1) { | |
703 | + console.log(st); | |
704 | + resultArray.push(item); | |
705 | + } | |
706 | + | |
707 | + } | |
708 | + | |
709 | + this.resultDataOnHold = resultArray; | |
710 | + } | |
669 | 711 | |
670 | 712 | getButton2(valueN){ |
671 | 713 | console.log(valueN); |
... | ... | @@ -695,6 +737,35 @@ export class DashboardComponent implements OnInit { |
695 | 737 | this.resultData2 = resultArray; |
696 | 738 | } |
697 | 739 | |
740 | + /* buttondataOnhold2 */ | |
741 | + getButton2Onhold(valueN){ | |
742 | + console.log(valueN); | |
743 | + | |
744 | + if (this.Show2Onhold.length === 0) { | |
745 | + return this.Show2Onhold; | |
746 | + } | |
747 | + | |
748 | + const resultArray = []; | |
749 | + for (const item of this.Show2Onhold) { | |
750 | + console.log('item: ', item); | |
751 | + | |
752 | + var st = ''; | |
753 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
754 | + if(item['type']){ | |
755 | + st = item['type'].toLowerCase(); | |
756 | + } | |
757 | + | |
758 | + var string2 = valueN.toLowerCase(); | |
759 | + if (st.indexOf(string2) > -1) { | |
760 | + console.log(st); | |
761 | + resultArray.push(item); | |
762 | + } | |
763 | + | |
764 | + } | |
765 | + | |
766 | + this.resultDataOnHold2 = resultArray; | |
767 | + } | |
768 | + | |
698 | 769 | getButton3(valueN){ |
699 | 770 | console.log(valueN); |
700 | 771 | |
... | ... | @@ -723,6 +794,35 @@ export class DashboardComponent implements OnInit { |
723 | 794 | this.resultData3 = resultArray; |
724 | 795 | } |
725 | 796 | |
797 | + /* buttondataOnhold3 */ | |
798 | + getButton3Onhold(valueN){ | |
799 | + console.log(valueN); | |
800 | + | |
801 | + if (this.Show3Onhold.length === 0) { | |
802 | + return this.Show3Onhold; | |
803 | + } | |
804 | + | |
805 | + const resultArray = []; | |
806 | + for (const item of this.Show3Onhold) { | |
807 | + console.log('item: ', item); | |
808 | + | |
809 | + var st = ''; | |
810 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
811 | + if(item['type']){ | |
812 | + st = item['type'].toLowerCase(); | |
813 | + } | |
814 | + | |
815 | + var string2 = valueN.toLowerCase(); | |
816 | + if (st.indexOf(string2) > -1) { | |
817 | + console.log(st); | |
818 | + resultArray.push(item); | |
819 | + } | |
820 | + | |
821 | + } | |
822 | + | |
823 | + this.resultDataOnHold3 = resultArray; | |
824 | + } | |
825 | + | |
726 | 826 | getButton4(valueN){ |
727 | 827 | console.log(valueN); |
728 | 828 | |
... | ... | @@ -751,6 +851,35 @@ export class DashboardComponent implements OnInit { |
751 | 851 | this.resultData4 = resultArray; |
752 | 852 | } |
753 | 853 | |
854 | + /* buttondataOnhold4 */ | |
855 | + getButton4Onhold(valueN){ | |
856 | + console.log(valueN); | |
857 | + | |
858 | + if (this.Show4Onhold.length === 0) { | |
859 | + return this.Show4Onhold; | |
860 | + } | |
861 | + | |
862 | + const resultArray = []; | |
863 | + for (const item of this.Show4Onhold) { | |
864 | + console.log('item: ', item); | |
865 | + | |
866 | + var st = ''; | |
867 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
868 | + if(item['type']){ | |
869 | + st = item['type'].toLowerCase(); | |
870 | + } | |
871 | + | |
872 | + var string2 = valueN.toLowerCase(); | |
873 | + if (st.indexOf(string2) > -1) { | |
874 | + console.log(st); | |
875 | + resultArray.push(item); | |
876 | + } | |
877 | + | |
878 | + } | |
879 | + | |
880 | + this.resultDataOnHold4 = resultArray; | |
881 | + } | |
882 | + | |
754 | 883 | getButton5(valueN){ |
755 | 884 | console.log(valueN); |
756 | 885 | |
... | ... | @@ -779,6 +908,35 @@ export class DashboardComponent implements OnInit { |
779 | 908 | this.resultData5 = resultArray; |
780 | 909 | } |
781 | 910 | |
911 | + /* buttondataOnhold1 */ | |
912 | + getButton5Onhold(valueN){ | |
913 | + console.log(valueN); | |
914 | + | |
915 | + if (this.Show5Onhold.length === 0) { | |
916 | + return this.Show5Onhold; | |
917 | + } | |
918 | + | |
919 | + const resultArray = []; | |
920 | + for (const item of this.Show5Onhold) { | |
921 | + console.log('item: ', item); | |
922 | + | |
923 | + var st = ''; | |
924 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
925 | + if(item['type']){ | |
926 | + st = item['type'].toLowerCase(); | |
927 | + } | |
928 | + | |
929 | + var string2 = valueN.toLowerCase(); | |
930 | + if (st.indexOf(string2) > -1) { | |
931 | + console.log(st); | |
932 | + resultArray.push(item); | |
933 | + } | |
934 | + | |
935 | + } | |
936 | + | |
937 | + this.resultDataOnHold5 = resultArray; | |
938 | + } | |
939 | + | |
782 | 940 | getButton6(valueN){ |
783 | 941 | console.log(valueN); |
784 | 942 | |
... | ... | @@ -807,6 +965,35 @@ export class DashboardComponent implements OnInit { |
807 | 965 | this.resultData6 = resultArray; |
808 | 966 | } |
809 | 967 | |
968 | + /* buttondataOnhold6 */ | |
969 | + getButton6Onhold(valueN){ | |
970 | + console.log(valueN); | |
971 | + | |
972 | + if (this.Show6Onhold.length === 0) { | |
973 | + return this.Show6Onhold; | |
974 | + } | |
975 | + | |
976 | + const resultArray = []; | |
977 | + for (const item of this.Show6Onhold) { | |
978 | + console.log('item: ', item); | |
979 | + | |
980 | + var st = ''; | |
981 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
982 | + if(item['type']){ | |
983 | + st = item['type'].toLowerCase(); | |
984 | + } | |
985 | + | |
986 | + var string2 = valueN.toLowerCase(); | |
987 | + if (st.indexOf(string2) > -1) { | |
988 | + console.log(st); | |
989 | + resultArray.push(item); | |
990 | + } | |
991 | + | |
992 | + } | |
993 | + | |
994 | + this.resultDataOnHold6 = resultArray; | |
995 | + } | |
996 | + | |
810 | 997 | getButton7(valueN){ |
811 | 998 | console.log(valueN); |
812 | 999 | |
... | ... | @@ -835,6 +1022,35 @@ export class DashboardComponent implements OnInit { |
835 | 1022 | this.resultData7 = resultArray; |
836 | 1023 | } |
837 | 1024 | |
1025 | + /* buttondataOnhold7 */ | |
1026 | + getButton7Onhold(valueN){ | |
1027 | + console.log(valueN); | |
1028 | + | |
1029 | + if (this.Show7Onhold.length === 0) { | |
1030 | + return this.Show7Onhold; | |
1031 | + } | |
1032 | + | |
1033 | + const resultArray = []; | |
1034 | + for (const item of this.Show7Onhold) { | |
1035 | + console.log('item: ', item); | |
1036 | + | |
1037 | + var st = ''; | |
1038 | + // st = item['team'].toLowerCase() + item['COMMENT'].toLowerCase() + item['custgroupName'].toLowerCase() + item['STATUS'].toLowerCase() ; | |
1039 | + if(item['type']){ | |
1040 | + st = item['type'].toLowerCase(); | |
1041 | + } | |
1042 | + | |
1043 | + var string2 = valueN.toLowerCase(); | |
1044 | + if (st.indexOf(string2) > -1) { | |
1045 | + console.log(st); | |
1046 | + resultArray.push(item); | |
1047 | + } | |
1048 | + | |
1049 | + } | |
1050 | + | |
1051 | + this.resultDataOnHold7 = resultArray; | |
1052 | + } | |
1053 | + | |
838 | 1054 | /////////////Get data come to use////////////////////// |
839 | 1055 | |
840 | 1056 | ... | ... |