|
|
@@ -12,6 +12,7 @@ import { AbstractControl, FormBuilder, FormControl, FormGroup, ValidationErrors,
|
|
|
import { GradosEducativosService } from '../../services/grados-educativos.service';
|
|
|
import Swal from 'sweetalert2';
|
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
+import { ExportExcellService } from '../../services/export-excell.service';
|
|
|
|
|
|
@Component({
|
|
|
selector: 'app-niveles-educativos',
|
|
|
@@ -35,7 +36,8 @@ export class CatalogoUsuariosComponent {
|
|
|
private _enviarInfo: EnviarInfoService,
|
|
|
private userService: UsersService,
|
|
|
public dialog: MatDialog,
|
|
|
- public http: HttpClient
|
|
|
+ public http: HttpClient,
|
|
|
+ private exportExcell : ExportExcellService,
|
|
|
) {
|
|
|
this._MatIconRegister.addSvgIcon('excel', this._DomSanitizer.bypassSecurityTrustResourceUrl('assets/icons/excel.svg'));
|
|
|
|
|
|
@@ -181,6 +183,10 @@ exportAll(tabla: string) {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
+ exportarTodo() {
|
|
|
+ this.exportExcell.exportAll('niveles');
|
|
|
+ }
|
|
|
+
|
|
|
private nombreArchivo(tabla: string): string {
|
|
|
switch (tabla) {
|
|
|
case 'niveles': return 'Niveles_Educativos';
|