Project

General

Profile

1
import {Component, Input, OnInit} from '@angular/core';
2
import {AlteryxUnhandledData} from '../../../../shared/models/alteryx-unhandled-data.interface';
3
import {DialogService} from 'primeng/dynamicdialog';
4
import {PreviewUnhandledDataPopupComponent} from './preview-unhandled-data-popup/preview-unhandled-data-popup.component';
5
import {ReclassifyUnhandledDataDialogComponent} from './reclassify-unhandled-data-dialog/reclassify-unhandled-data-dialog.component';
6

    
7
@Component({
8
  selector: 'app-process-unhandled-data',
9
  templateUrl: './process-unhandled-data.component.html',
10
  styleUrls: ['./process-unhandled-data.component.scss']
11
})
12
export class ProcessUnhandledDataComponent implements OnInit {
13
  @Input()
14
  unhandledDataList: AlteryxUnhandledData[];
15

    
16
  constructor(private dialogService: DialogService) {
17
  }
18

    
19
  ngOnInit(): void {
20
  }
21

    
22
  preview(unhandledData: AlteryxUnhandledData) {
23
    this.dialogService.open(PreviewUnhandledDataPopupComponent, {data: unhandledData.record.invoiceMasterData});
24
  }
25

    
26
  reclassification(unhandledData: AlteryxUnhandledData) {
27
    this.dialogService.open(ReclassifyUnhandledDataDialogComponent, {data: unhandledData});
28

    
29
  }
30
}
(4-4/4)