69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { FormsModule } from '@angular/forms';
|
|
import { TableModule } from 'primeng/table';
|
|
import { InputTextModule } from 'primeng/inputtext';
|
|
import { TooltipModule } from 'primeng/tooltip';
|
|
import { DialogService, DynamicDialogRef } from 'primeng/dynamicdialog';
|
|
import { VisorPdfComponent } from '../../components/visor-pdf/visor-pdf.component';
|
|
|
|
@Component({
|
|
selector: 'app-resumen',
|
|
imports: [FormsModule, TableModule, InputTextModule, TooltipModule],
|
|
templateUrl: './resumen.component.html',
|
|
styleUrl: './resumen.component.scss',
|
|
providers: [DialogService]
|
|
})
|
|
export class ResumenComponent {
|
|
|
|
constructor(public dialogService: DialogService) { }
|
|
|
|
ref: DynamicDialogRef
|
|
products: any[] = [
|
|
{
|
|
empresa: 'Empresa A',
|
|
codigoCronograma: '123',
|
|
codigoCronogramaAjuste: '456',
|
|
tipoCarga: 'Inicial',
|
|
},
|
|
{
|
|
empresa: 'Empresa A',
|
|
codigoCronograma: '123',
|
|
codigoCronogramaAjuste: '456',
|
|
tipoCarga: 'Inicial',
|
|
},
|
|
{
|
|
empresa: 'Empresa A',
|
|
codigoCronograma: '123',
|
|
codigoCronogramaAjuste: '456',
|
|
tipoCarga: 'Inicial',
|
|
},
|
|
{
|
|
empresa: 'Empresa A',
|
|
codigoCronograma: '123',
|
|
codigoCronogramaAjuste: '456',
|
|
tipoCarga: 'Inicial',
|
|
},
|
|
];
|
|
|
|
firma(product: any): void {
|
|
console.log('Firma digital del producto:', product);
|
|
this.ref = this.dialogService.open(VisorPdfComponent, {
|
|
header: 'Visor PDF',
|
|
width: '80vw',
|
|
height: '80vh',
|
|
modal: true,
|
|
closable: true,
|
|
maximizable: true,
|
|
data:{
|
|
product: product
|
|
},
|
|
breakpoints: {
|
|
'960px': '75vw',
|
|
'640px': '90vw'
|
|
},
|
|
});
|
|
|
|
}
|
|
|
|
}
|