summaryrefslogtreecommitdiffstats
path: root/ecomp-sdk/epsdk-app-overlay/src/main/webapp/ngapp/src/app/report-run/run/run-report/run-dashboard-report/run-dashboard-report.component.html
blob: 5384e89b3f77e2f1059f65571c0b484b20d34205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<span *ngIf="showSpinner" class="ecomp-spinner"></span>

<div *ngIf="!showChart">  
    <div class="app-data-table">
        <div class="app-data-table-fixed-height">
            <div class="example-container">
<!--                <mat-paginator [pageSizeOptions]="[5, 10, 20]" showFirstLastButtons></mat-paginator>-->
                <table [dataSource]="dataSource" mat-table matSort>
                    <div *ngFor="let keys of displayedColumns; let i = index">
                        <ng-container matColumnDef="{{keys}}">
                            <th *matHeaderCellDef mat-header-cell
                                mat-sort-header>{{displayedColumnsArr[i].split(",")[0]}}</th>
                            <td *matCellDef="let row" mat-cell [ngStyle]="setStyle(row[keys])">
                                <div *ngIf="row[keys].split('|')[0] == 'linkToReport'"
                                     [ngStyle]="setStyle(row[keys].split('|')[4])">
                                    <a (click)="linkToReport(row[keys].split('|')[1], row[keys].split('|')[2])"
                                       [routerLink]="">{{row[keys].split('|')[3]}}</a>
                                </div>
                                <div *ngIf="row[keys].split('|')[0] == 'linkToMail'"
                                     [ngStyle]="setStyle(row[keys].split('|')[3])">
                                    <a (click)="linkToMail(row[keys].split('|')[1])"
                                       [routerLink]="">{{row[keys].split('|')[2]}}</a>
                                </div>
                                <div *ngIf="row[keys].split('|')[0] !== 'linkToReport' && row[keys].split('|')[0] !== 'linkToMail'">
                                    {{row[keys].split('|')[0]}}</div>
                            </td>
                            <td *matFooterCellDef align="center"
                                mat-footer-cell>{{getDisplayTotal(keys)}}</td>
                        </ng-container>
                    </div>

                    <tr *matHeaderRowDef="displayedColumns; sticky: true;"
                        mat-header-row></tr>
                    <tr *matRowDef="let row; columns: displayedColumns;" mat-row></tr>
                    <tr *matFooterRowDef="displayedColumns; sticky: true;" mat-footer-row></tr>
                </table>
            </div>
        </div>
    </div>
</div>
<div *ngIf="showChart" align="center">
    <iframe #iframe height="550px" style="border: none" width="100%"></iframe>
</div>