Project

General

Profile

1
<p-table [value]="documentsBatch" [lazy]="true" (onLazyLoad)="loadDocuments($event)" [paginator]="true" [rows]="5"
2
  styleClass="p-datatable-gridlines" [rowHover]="true" [totalRecords]="totalRecords" [loading]="loading"
3
  [autoLayout]="true" [lazyLoadOnInit]="false">
4
  <ng-template pTemplate="header">
5
    <tr>
6
      <th>Received Date</th>
7
      <th>File Code</th>
8
      <th>File Name</th>
9
      <th>File Type</th>
10
      <th>iPower Client Code</th>
11
      <th>Personal Data</th>
12
      <th>Status</th>
13
      <th class="four-buttons">Actions</th>
14
    </tr>
15
  </ng-template>
16
  <ng-template let-document pTemplate="body">
17
    <tr>
18
      <td>{{document?.receivedFile?.rtaReceivedDate | date: "dd/MM/yyyy HH:mm"}}</td>
19
      <td>{{document?.receivedFile?.dmsDocumentNumber}}</td>
20
      <td>{{document?.receivedFile?.dmsFileName}}</td>
21
      <td>{{document?.receivedFile?.dmsFileType}}</td>
22
      <td>{{document?.receivedFile?.dmsClientCode}}</td>
23
      <td>{{document?.receivedFile?.dmsPersonalData}}</td>
24
      <td>{{document?.documentCurrentStatusId?.name}}</td>
25
      <td>
26
        <p-button (onClick)="showOrDownloadFile(document?.receivedFile)" icon="pi pi-file-o"
27
          styleClass="p-button-secondary p-button-rounded p-button-outlined"
28
          pTooltip="{{'PREVIEW-DOCUMENT' | translate}}">
29
        </p-button>
30
        <p-button (onClick)="forwardDialog(document)" icon="pi pi-directions"
31
          styleClass="p-button-secondary p-button-rounded p-button-outlined p-ml-2"
32
          pTooltip="{{'SEND-TO-ABBY' | translate}}">
33
        </p-button>
34
        <p-button (onClick)="editClassDialog(document, 'Classification of Document')" icon="pi pi-tag"
35
          styleClass="p-button-secondary p-button-rounded p-button-outlined p-ml-2" [disabled]="!canPreviewByUA()"
36
          pTooltip="{{'EDIT-CATEGORY' | translate}}">
37
        </p-button>
38
        <p-button (onClick)="ignoreDialog(document)"
39
          styleClass="p-button-secondary p-button-rounded p-button-outlined p-ml-2" [disabled]="!canPreviewByUA()"
40
          [icon]="changeIcon(document)" pTooltip="{{'EDIT-IGNORE-STATUS' | translate}}">
41
        </p-button>
42
      </td>
43
    </tr>
44
  </ng-template>
45
</p-table>
(1-1/4)