|
| 1 | +<div class="container bulk-btn"> |
| 2 | + <div> |
| 3 | + <mat-form-field appearance="fill"> |
| 4 | + <mat-label>Choose an Option</mat-label> |
| 5 | + <mat-select [formControl]="template" multiple> |
| 6 | + <mat-option |
| 7 | + *ngFor="let templateItem of templates" |
| 8 | + [value]="templateItem" |
| 9 | + >{{ templateItem }}</mat-option |
| 10 | + > |
| 11 | + </mat-select> |
| 12 | + </mat-form-field> |
| 13 | + <button mat-raised-button color="primary">Download CSV Template</button> |
| 14 | + </div> |
| 15 | + <div class="form-group"> |
| 16 | + <input |
| 17 | + type="file" |
| 18 | + class="file-input" |
| 19 | + (change)="onFileSelected($event)" |
| 20 | + #fileUpload |
| 21 | + /> |
| 22 | + |
| 23 | + <div class="file-upload"> |
| 24 | + {{ fileName || "No file uploaded yet." }} |
| 25 | + |
| 26 | + <button |
| 27 | + mat-mini-fab |
| 28 | + color="primary" |
| 29 | + class="upload-btn" |
| 30 | + (click)="fileUpload.click()" |
| 31 | + > |
| 32 | + <mat-icon>attach_file</mat-icon> |
| 33 | + </button> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | +</div> |
| 37 | +<div class="container"> |
| 38 | + <table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> |
| 39 | + <ng-container matColumnDef="position"> |
| 40 | + <th mat-header-cell *matHeaderCellDef>No.</th> |
| 41 | + <td mat-cell *matCellDef="let element">{{ element.position }}</td> |
| 42 | + </ng-container> |
| 43 | + |
| 44 | + <ng-container matColumnDef="transactionId"> |
| 45 | + <th mat-header-cell *matHeaderCellDef>Transaction Id</th> |
| 46 | + <td mat-cell *matCellDef="let element">{{ element.transactionId }}</td> |
| 47 | + </ng-container> |
| 48 | + |
| 49 | + <ng-container matColumnDef="startedAt"> |
| 50 | + <th mat-header-cell *matHeaderCellDef>Started At</th> |
| 51 | + <td mat-cell *matCellDef="let element">{{ element.startedAt }}</td> |
| 52 | + </ng-container> |
| 53 | + |
| 54 | + <ng-container matColumnDef="completedAt"> |
| 55 | + <th mat-header-cell *matHeaderCellDef>Completed At</th> |
| 56 | + <td mat-cell *matCellDef="let element">{{ element.completedAt }}</td> |
| 57 | + </ng-container> |
| 58 | + <ng-container matColumnDef="status"> |
| 59 | + <th mat-header-cell *matHeaderCellDef>Status</th> |
| 60 | + <td mat-cell *matCellDef="let element">{{ element.status }}</td> |
| 61 | + </ng-container> |
| 62 | + |
| 63 | + <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> |
| 64 | + <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr> |
| 65 | + </table> |
| 66 | + |
| 67 | + <form |
| 68 | + class="batch-summary-wrap" |
| 69 | + #batchSummaryForm="ngForm" |
| 70 | + (ngSubmit)="getBatchSummary(batchSummaryForm.value)" |
| 71 | + > |
| 72 | + <mat-form-field class="example-full-width" appearance="fill"> |
| 73 | + <mat-label>Enter Batch ID</mat-label> |
| 74 | + <input |
| 75 | + matInput |
| 76 | + class="form-control col-sm-4 batch-summary-id" |
| 77 | + ngModel |
| 78 | + name="batchid" |
| 79 | + id="batch-id" |
| 80 | + /> |
| 81 | + </mat-form-field> |
| 82 | + |
| 83 | + <button |
| 84 | + mat-raised-button |
| 85 | + color="primary" |
| 86 | + type="submit" |
| 87 | + [disabled]="!batchSummaryForm.valid" |
| 88 | + > |
| 89 | + View Batch Details |
| 90 | + </button> |
| 91 | + </form> |
| 92 | + <p>Batch summary</p> |
| 93 | + |
| 94 | + <div *ngFor="let batches of BatchSummaryData"> |
| 95 | + <li>Batch Id : {{ batches.batch_id }}</li> |
| 96 | + <li>Request Id : {{ batches.request_id }}</li> |
| 97 | + <li>Total : {{ batches.total }}</li> |
| 98 | + <li>Amount Total : {{ batches.totalAmount }}</li> |
| 99 | + <li>Status : {{ batches.status }}</li> |
| 100 | + <li>Successful : {{ batches.successful }}</li> |
| 101 | + <li>Failed : {{ batches.failed }}</li> |
| 102 | + <li>Ongoing : {{ batches.ongoing }}</li> |
| 103 | + </div> |
| 104 | +</div> |
0 commit comments