| <div class="panel panel-default"> |
| <div class="panel-heading"> |
| <h4 class="panel-title"> |
| <a *ngIf="isCollapsible" data-toggle="collapse" href="#collapse4">Suchergebnisse</a> |
| <div *ngIf="!isCollapsible">Suchergebnisse</div> |
| </h4> |
| </div> |
| <div id="collapse4" class="panel-collapse collapse in"> |
| <div class="panel-body"> |
| <table class="table table-striped table-bordered" *ngIf="!showSpinner"> |
| <thead> |
| <tr> |
| <th *ngIf="withCheckboxes" class="notification-check-col"> |
| <input type="checkbox" [(ngModel)]="selectAll" (change)="changeAllSelection()"> |
| </th> |
| <th class="search-result-tab-first-col"> |
| <app-sorting [initColumnName]="'beginDate'" (click)="sort('beginDate')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column">Beginnt am</app-sorting> |
| </th> |
| <th class="search-result-tab-version-col">Version</th> |
| <th class="notification-tab-branch"> |
| <app-sorting [initColumnName]="'fkRefBranch'" (click)="sort('fkRefBranch')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column"></app-sorting> |
| </th> |
| <th class="notification-tab-grid-territory"> |
| <app-sorting [initColumnName]="'fkRefGridTerritory'" (click)="sort('fkRefGridTerritory')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column"> </app-sorting> |
| </th> |
| <th class="notification-tab-description"> |
| <app-sorting [initColumnName]="'notificationText'" (click)="sort('notificationText')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column">Kurztext </app-sorting> |
| </th> |
| <th class="notification-tab-status"> |
| <app-sorting [initColumnName]="'fkRefNotificationStatus'" (click)="sort('fkRefNotificationStatus')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column">Status</app-sorting> |
| </th> |
| <th class="notification-tab-moduser"> |
| <app-sorting [initColumnName]="'responsibilityControlPoint'" (click)="sort('responsibilityControlPoint')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column">Letzter Bearbeiter</app-sorting> |
| </th> |
| <th class="notification-tab-responsibility-forwarding"> |
| <app-sorting [initColumnName]="'responsibilityForwarding'" (click)="sort('responsibilityForwarding')" [isDesc]="sortingState?.isDesc" [defaultState]="sortingState?.defaultState" [columnName]="sortingState?.column">Zuständigkeit / weitergeleitet an</app-sorting> |
| </th> |
| <th class="notification-tab-edit-buttons"></th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr *ngFor="let notification of notifications"> |
| <td colspan="9" style="padding:0px;" border=3> |
| <table style="width:100%"> |
| <tbody> |
| <tr [ngClass]="{'sameIncident' : isSameIncidentId(notification)}"> |
| <td *ngIf="withCheckboxes" class="notification-check-col" [ngClass]="{'sameIncident-td' : !sameIncidentId}"> |
| <input type="checkbox" [(ngModel)]="notification.selected" (change)="selectionChanged()"> |
| </td> |
| <td class="search-result-tab-first-col" [ngClass]="{'sameIncident-td' : !sameIncidentId}">{{ notification.beginDate | formattedTimestamp: 'DD.MM.YYYY HH:mm' }} |
| </td> |
| <td class="search-result-tab-version-col" [ngClass]="{'sameIncident-td' : !sameIncidentId}">{{notification.version}}</td> |
| <td class="notification-tab-branch" [ngClass]="{'sameIncident-td' : !sameIncidentId, |
| 'gas' : isBranchGas(notification.fkRefBranch), 'power' : isBranchPower(notification.fkRefBranch), |
| 'water' : isBranchWater(notification.fkRefBranch), 'heating' : isBranchHeating(notification.fkRefBranch)}"> |
| <span> |
| {{ sessionContext.getBrancheById(notification.fkRefBranch)?.name }} |
| </span> |
| </td> |
| <td class="notification-tab-grid-territory" [ngClass]="{'sameIncident-td' : !sameIncidentId}"> |
| <span> |
| {{ sessionContext.getGridTerritoryById(notification.fkRefGridTerritory)?.name }} |
| </span> |
| </td> |
| <td class="notification-tab-description" [ngClass]="{'sameIncident-td' : !sameIncidentId}" data-toggle="tooltip" [attr.data-original-title]="notification.notificationText" |
| style="overflow:hidden;text-overflow: ellipsis;"> |
| <span> |
| {{ notification.notificationText }} |
| </span> |
| </td> |
| <td class="notification-tab-status" [ngClass]="{'finished' : isStatusClassFinished(notification.fkRefNotificationStatus), 'sameIncident-td' : !sameIncidentId}"> |
| <span> |
| {{ sessionContext.getStatusById(notification.fkRefNotificationStatus)?.name }} |
| </span> |
| </td> |
| <td class="notification-tab-moduser" [ngClass]="{'sameIncident-td' : !sameIncidentId}"> |
| <span> |
| {{ notification.responsibilityControlPoint }} |
| </span> |
| </td> |
| <td class="notification-tab-responsibility-forwarding" [ngClass]="{'sameIncident-td' : !sameIncidentId}"> |
| <span> |
| {{ notification.responsibilityForwarding }} |
| </span> |
| </td> |
| <td class="notification-tab-edit-buttons" [ngClass]="{'sameIncident-td' : !sameIncidentId}" > |
| <button type="button" class="btn btn-default btn-sm" (click)="lookUpNotification(notification)"> |
| <span class="glyphicon glyphicon-eye-open"></span> |
| </button> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| <loading-spinner *ngIf="showSpinner"></loading-spinner> |
| </div> |
| </div> |
| </div> |