37 lines
719 B
TypeScript
37 lines
719 B
TypeScript
|
import { Component, OnInit, Inject } from '@angular/core';
|
||
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
||
|
|
||
|
|
||
|
@Component({
|
||
|
selector: 'app-export-method-dialog',
|
||
|
templateUrl: './export-method-dialog.component.html',
|
||
|
styleUrls: ['./export-method-dialog.component.scss']
|
||
|
})
|
||
|
export class ExportMethodDialogComponent implements OnInit {
|
||
|
|
||
|
constructor(
|
||
|
public dialogRef: MatDialogRef<ExportMethodDialogComponent>,
|
||
|
@Inject(MAT_DIALOG_DATA) public data: any
|
||
|
) { }
|
||
|
|
||
|
ngOnInit() {
|
||
|
}
|
||
|
|
||
|
close() {
|
||
|
this.dialogRef.close(false);
|
||
|
}
|
||
|
|
||
|
downloadXML() {
|
||
|
this.dialogRef.close("xml");
|
||
|
}
|
||
|
|
||
|
downloadDocument() {
|
||
|
this.dialogRef.close("doc");
|
||
|
}
|
||
|
|
||
|
downloadPdf() {
|
||
|
this.dialogRef.close("pdf");
|
||
|
}
|
||
|
|
||
|
}
|