1
|
<div id="content">
|
2
|
<div class="p-grid" id="tableContainer">
|
3
|
<div class="p-col-12">
|
4
|
<p-table [lazy]="true"
|
5
|
[value]="documents"
|
6
|
styleClass="p-datatable-gridlines"
|
7
|
[rowHover]="true"
|
8
|
[autoLayout]="true">
|
9
|
<ng-template pTemplate="header">
|
10
|
<tr>
|
11
|
<th>Received Date</th>
|
12
|
<th>Doc Name</th>
|
13
|
<th>Doc Type</th>
|
14
|
<th>Doc Code</th>
|
15
|
<th>iPower Client Code</th>
|
16
|
<th class="one-button">Preview Document</th>
|
17
|
</tr>
|
18
|
</ng-template>
|
19
|
<ng-template let-document pTemplate="body">
|
20
|
<tr>
|
21
|
<td>{{document?.rtaReceivedDate|date: "dd/MM/yyyy HH:mm"}}</td>
|
22
|
<td>{{document?.dmsFileName}}</td>
|
23
|
<td>{{document?.dmsFileType}}</td>
|
24
|
<td>{{document?.dmsDocumentNumber}}</td>
|
25
|
<td>{{document?.dmsClientCode}}</td>
|
26
|
<td>
|
27
|
<p-button (onClick)="showOrDownloadFile(document)"
|
28
|
icon="pi pi-file-o"
|
29
|
styleClass="p-button-secondary p-button-rounded p-button-outlined"
|
30
|
pTooltip="{{'PREVIEW-DOCUMENT' | translate}}">
|
31
|
</p-button>
|
32
|
</td>
|
33
|
</tr>
|
34
|
</ng-template>
|
35
|
</p-table>
|
36
|
</div>
|
37
|
</div>
|
38
|
|
39
|
<div class="p-grid p-align-center"
|
40
|
id="classificationContainer">
|
41
|
<div class="p-col-6"
|
42
|
style="text-align: right;">
|
43
|
<label for="classification">Select Classification:</label>
|
44
|
</div>
|
45
|
<div class="p-col-6">
|
46
|
<p-dropdown placeholder="Select"
|
47
|
[(ngModel)]="selectedClassification"
|
48
|
[options]="classificationOptions"
|
49
|
id="classification"
|
50
|
(onChange)="onClassificationSelect($event)"
|
51
|
optionLabel="classificationName"
|
52
|
optionValue="classificationName">
|
53
|
</p-dropdown>
|
54
|
</div>
|
55
|
</div>
|
56
|
<div class="p-grid p-align-center"
|
57
|
id="subClassificationContainer">
|
58
|
<div class="p-col-6"
|
59
|
style="text-align: right;">
|
60
|
<label for="subclassification">Select Sub-Classification:</label>
|
61
|
</div>
|
62
|
<div class="p-col-6"
|
63
|
*ngIf="subclassificationOptionsDepSelection && subclassificationOptionsDepSelection.length > 0">
|
64
|
<p-dropdown placeholder="Select"
|
65
|
[(ngModel)]="selectedSubClassification"
|
66
|
[options]="subclassificationOptionsDepSelection"
|
67
|
id="subclassification"
|
68
|
optionLabel="subclassificationName"
|
69
|
optionValue="subclassificationName">
|
70
|
</p-dropdown>
|
71
|
</div>
|
72
|
</div>
|
73
|
<div class="p-grid p-justify-center">
|
74
|
<div class="p-col-12"
|
75
|
style="text-align: center;">
|
76
|
<button class="p-button-warning"
|
77
|
id="cancelBtn"
|
78
|
label="Cancel"
|
79
|
pButton
|
80
|
type="button"
|
81
|
(click)="closeDialog()"></button>
|
82
|
<button label="Classify"
|
83
|
pButton
|
84
|
class="p-button-primary"
|
85
|
type="button"
|
86
|
(click)="onClassify()">
|
87
|
</button>
|
88
|
</div>
|
89
|
</div>
|
90
|
</div>
|
91
|
|
92
|
|
93
|
|