2019-05-21 15:42:28 +02:00
|
|
|
import { Component, OnInit, Inject } from '@angular/core';
|
2019-09-23 10:17:03 +02:00
|
|
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
2019-05-21 15:42:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
@Component({
|
2019-06-04 16:04:04 +02:00
|
|
|
selector: 'app-export-method-dialog',
|
|
|
|
templateUrl: './export-method-dialog.component.html',
|
|
|
|
styleUrls: ['./export-method-dialog.component.scss']
|
2019-05-21 15:42:28 +02:00
|
|
|
})
|
|
|
|
export class ExportMethodDialogComponent implements OnInit {
|
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
constructor(
|
|
|
|
public dialogRef: MatDialogRef<ExportMethodDialogComponent>,
|
|
|
|
@Inject(MAT_DIALOG_DATA) public data: any
|
|
|
|
) { }
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
ngOnInit() {
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
close() {
|
|
|
|
this.dialogRef.close(false);
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
downloadXML() {
|
|
|
|
this.dialogRef.close("xml");
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
downloadDocument() {
|
|
|
|
this.dialogRef.close("doc");
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
downloadPdf() {
|
|
|
|
this.dialogRef.close("pdf");
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
|
2019-06-04 16:04:04 +02:00
|
|
|
downloadJson() {
|
|
|
|
this.dialogRef.close("json");
|
|
|
|
}
|
2019-07-04 13:04:43 +02:00
|
|
|
|
|
|
|
isFinalized() {
|
|
|
|
return this.data.isFinalized;
|
|
|
|
}
|
2019-05-21 15:42:28 +02:00
|
|
|
}
|