withdrawals.component.html 4.23 KB
<mat-expansion-panel>
  <mat-expansion-panel-header [expandedHeight]="expandedHeight" [collapsedHeight]="collapsedHeight">
    <mat-panel-title>Withdrawals Filters</mat-panel-title>
  </mat-expansion-panel-header>
  <ng-template matExpansionPanelContent>
  </ng-template>
  <mat-form-field>
    <input matInput [matDatepicker]="startDate" placeholder="Start Date" [disabled]="inputDisabled">
    <mat-datepicker-toggle matSuffix [for]="startDate"></mat-datepicker-toggle>
    <mat-datepicker #startDate [touchUi]="touch" [disabled]="datepickerDisabled"></mat-datepicker>
  </mat-form-field>
  <mat-form-field>
    <input matInput [matDatepicker]="endDate" placeholder="End Date" [disabled]="inputDisabled">
    <mat-datepicker-toggle matSuffix [for]="endDate"></mat-datepicker-toggle>
    <mat-datepicker #endDate [touchUi]="touch" [disabled]="datepickerDisabled"></mat-datepicker>
  </mat-form-field>

  <mat-form-field>
    <input matInput placeholder="Username">
  </mat-form-field>

  <mat-form-field>
    <input matInput placeholder="Withdrawal ID">
  </mat-form-field>

  <mat-form-field>
    <input matInput placeholder="Account Number">
  </mat-form-field>

  <mat-form-field>
    <mat-select placeholder="Status">
      <mat-option>--</mat-option>
      <mat-option value="0">Pending</mat-option>
      <mat-option value="1">Success</mat-option>
      <mat-option value="2">Failed</mat-option>
    </mat-select>
  </mat-form-field>

  <button mat-raised-button color="primary">Search</button>
  <button mat-button>Clean</button>
</mat-expansion-panel>
<div class="mat-box-shadow">
  <ngx-datatable class="material bg-white" [columnMode]="'force'" [headerHeight]="50" [footerHeight]="50"
    [rowHeight]="50" [limit]="10" [rows]="withdrawDataSOurce" [columns]="columns">

    <ngx-datatable-column name="TxnId">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.withdrawId }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Status">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.status }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Username">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.userName }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Amount">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.amount }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="AccountNo">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.accountNo }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Bank">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.bankName }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="CreateTime">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.createTime }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="ExecuteTime">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.executeTime }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="RemoteIp">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.remoteIp }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Remark">
      <ng-template let-row="row" ngx-datatable-cell-template>
        {{ row?.remark }}
      </ng-template>
    </ngx-datatable-column>

    <ngx-datatable-column name="Action">
      <ng-template let-row="row" let-value="value" ngx-datatable-cell-template>
        <button id="execute" matTooltip="Execute" class="mibutton24" mat-icon-button mat-button-sm
          (click)="btn_name = 'execute'; openDialog()" [attr.aria-label]="edit" color="primary">
          <mat-icon class="mi16">check_circle</mat-icon>
        </button>
        <button id="cancel" matTooltip="Cancel" class="mibutton24" mat-icon-button mat-button-sm
          (click)="btn_name = 'cancel'; openDialog()" [attr.aria-label]="delete" color="warn">
          <mat-icon class="mi16">cancel</mat-icon>
        </button>
      </ng-template>
    </ngx-datatable-column>

  </ngx-datatable>
</div>