|
|
@@ -0,0 +1,202 @@
|
|
|
+<main class="main-container animated fadeIn" (window:resize)="onResize()">
|
|
|
+ <!-- REGRESAR A LA PANTALLA ANTERIOR -->
|
|
|
+ <header id="navigation" class="btn-navigate mb-8">
|
|
|
+ <div class="prev-page prevent-select indigo_primary_background mat-elevation-z8" matRipple
|
|
|
+ [routerLink]="['/sam/acquisition']">
|
|
|
+ <mat-icon style="color: white">arrow_back</mat-icon>
|
|
|
+ <div class="page-name ml-4">Menú de Adquisiciones</div>
|
|
|
+ </div>
|
|
|
+ </header>
|
|
|
+
|
|
|
+ <mat-card class="override-card override-elevation-z8">
|
|
|
+ <div #viewer class="webviewer" *ngIf="!visualice">
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <section class="override-section" *ngIf="visualice">
|
|
|
+ <nav class="override-nav">
|
|
|
+ <mat-card-title class="mat-card-title centre">Administración de Documentos</mat-card-title>
|
|
|
+ <mat-drawer-container class="example-container">
|
|
|
+ <mat-drawer mode="side" opened class="mat-options">
|
|
|
+ <div>
|
|
|
+ <nav
|
|
|
+ style="height: 56px; justify-content: space-between; padding: 0 10px; margin-bottom: 20px;">
|
|
|
+ <div class="options-divider">
|
|
|
+ <ul *ngIf="!ulOptSmall">
|
|
|
+ <li class="container" *ngFor="let row of options;let i = index"
|
|
|
+ [ngClass]="{'active': clickedIndex == i}"
|
|
|
+ (click)="clickedIndex == i? clickedIndex = null : clickedIndex = i">
|
|
|
+ <mat-icon class="maticon-drawer">{{row.icon}}</mat-icon> {{row.items}}
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul *ngIf="ulOptSmall">
|
|
|
+ <li class="container" *ngFor="let row of options;let i = index"
|
|
|
+ [ngClass]="{'active': clickedIndex == i}"
|
|
|
+ (click)="clickedIndex == i? clickedIndex = null : clickedIndex = i"
|
|
|
+ matTooltip="Registrar Nueva Línea">
|
|
|
+ <mat-icon class="maticon-drawer">{{row.icon}}</mat-icon>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </nav>
|
|
|
+ </div>
|
|
|
+ </mat-drawer>
|
|
|
+ <mat-drawer-content>
|
|
|
+ <div class="override-actions">
|
|
|
+ <div class="mt-10">
|
|
|
+ <mat-form-field appearance="outline" class="w-300p mr-8">
|
|
|
+ <mat-label>Buscador</mat-label>
|
|
|
+ <input matInput [(ngModel)]="txtBuscador" (keyup)="applyFilter($event,'INP')"
|
|
|
+ placeholder="Ingrese la palabra a buscar" />
|
|
|
+ <mat-icon *ngIf="txtBuscador.length === 0" matSuffix>search</mat-icon>
|
|
|
+ <mat-icon *ngIf="txtBuscador.length > 0" class="clickable"
|
|
|
+ matTooltip="Eliminar filtro" (click)="applyFilter('', 'EST')"
|
|
|
+ matSuffix>close</mat-icon>
|
|
|
+ </mat-form-field>
|
|
|
+ </div>
|
|
|
+ <div class="override-buttons">
|
|
|
+ <button mat-raised-button color="primary" matTooltip="Registrar Línea de Solicitud"
|
|
|
+ [routerLink]="['/sam/shopping']" [disabled]="isLoadingForm" *ngIf="!btnSmall"
|
|
|
+ class="override-no-shadow mr-10">
|
|
|
+ <mat-icon>add</mat-icon> Nuevo
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab color="primary" class="override-no-shadow mr-8"
|
|
|
+ [disabled]="isLoadingForm" *ngIf="btnSmall" matTooltip="Registrar Nueva Línea">
|
|
|
+ <mat-icon>add</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab color="info" matTooltip="Actualizar Datos"
|
|
|
+ class="override-no-shadow mr-10">
|
|
|
+ <mat-icon>refresh</mat-icon>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <div>
|
|
|
+ <div class="is-loading animated fadeIn fast" *ngIf="isLoading">
|
|
|
+ <mat-spinner align="center"></mat-spinner>
|
|
|
+ <h3>Cargando datos ...</h3>
|
|
|
+ </div>
|
|
|
+ <mat-progress-bar mode="indeterminate" *ngIf="isLoadingForm"></mat-progress-bar>
|
|
|
+ </div>
|
|
|
+ <div class="override-table">
|
|
|
+ <table mat-table [dataSource]="dataSource" matSort class="animated fadeIn"
|
|
|
+ [style.display]="isLoading ? 'none' : 'revert'"> <ng-container matColumnDef="ID">
|
|
|
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>ID</th>
|
|
|
+ <td mat-cell *matCellDef="let row">{{ row.ID }} </td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <ng-container matColumnDef="NOMBRE">
|
|
|
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Nombre</th>
|
|
|
+ <td mat-cell *matCellDef="let row">{{ row.NOMBRE }}</td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <ng-container matColumnDef="PROPIETARIO">
|
|
|
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Propietario</th>
|
|
|
+ <td mat-cell *matCellDef="let row">{{ row.PROPIETARIO }}</td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <ng-container matColumnDef="FERG">
|
|
|
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Fecha de Registro</th>
|
|
|
+ <td mat-cell *matCellDef="let row">{{ row.FERG }}</td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <ng-container matColumnDef="TAMANIO">
|
|
|
+ <th mat-header-cell *matHeaderCellDef mat-sort-header>Tamaño</th>
|
|
|
+ <td mat-cell *matCellDef="let row">{{ row.TAMANIO }}</td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <!-- <ng-container matColumnDef="ACCIONES">
|
|
|
+ <th mat-header-cell *matHeaderCellDef>Acciones</th>
|
|
|
+ <td mat-cell *matCellDef="let row">
|
|
|
+ <button mat-mini-fab color="primary" #tooltip="matTooltip"
|
|
|
+ matTooltip="Abrir Documento" class="btn-noshadow">
|
|
|
+ <mat-icon>open_in_new</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab color="primary" #tooltip="matTooltip"
|
|
|
+ matTooltip="Descargar Documento" class="btn-noshadow">
|
|
|
+ <mat-icon>download</mat-icon>
|
|
|
+ </button><button mat-mini-fab color="primary" #tooltip="matTooltip"
|
|
|
+ matTooltip="Editar Documento" class="btn-noshadow">
|
|
|
+ <mat-icon>edit</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab #tooltip="matTooltip"
|
|
|
+ matTooltip="{{ row.ESTATUS == 'Activo' ? 'Bloquear acceso' : 'Permitir acceso'}}"
|
|
|
+ [disabled]="row.ESTATUS == 'Eliminado'" class="btn-noshadow ml-4"
|
|
|
+ [ngClass]="{ amber_primary_background: row.ESTATUS != 'Eliminado' }">
|
|
|
+ <mat-icon
|
|
|
+ *ngIf="row.ESTATUS == 'Activo' || row.ESTATUS == 'Eliminado'">block</mat-icon>
|
|
|
+ <mat-icon *ngIf="row.ESTATUS == 'Inactivo'">check_circle</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab #tooltip="matTooltip" matTooltip="Reasignar contraseña"
|
|
|
+ class="btn-noshadow ml-4" [disabled]="row.ESTATUS == 'Eliminado'"
|
|
|
+ [ngClass]="{ blue_dark_background: row.ESTATUS != 'Eliminado' }">
|
|
|
+ <mat-icon>lock</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab #tooltip="matTooltip" matTooltip="Eliminar usuario"
|
|
|
+ class="btn-noshadow ml-4" [disabled]="row.ESTATUS == 'Eliminado'"
|
|
|
+ [ngClass]="{ red_primary_background: row.ESTATUS != 'Eliminado' }">
|
|
|
+ <mat-icon>delete</mat-icon>
|
|
|
+ </button>
|
|
|
+ </td>
|
|
|
+ </ng-container> -->
|
|
|
+
|
|
|
+ <ng-container matColumnDef="ACCIONES">
|
|
|
+ <th mat-header-cell *matHeaderCellDef>Acciones</th>
|
|
|
+ <td mat-cell *matCellDef="let element">
|
|
|
+ <!-- BOTONES DE ACCIONES NORMALES -->
|
|
|
+ <div *ngIf="!btnSmall">
|
|
|
+ <button mat-mini-fab color="primary" class="override-no-shadow mr-4"
|
|
|
+ matTooltip="Editar">
|
|
|
+ <mat-icon>edit</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab color="info" class="override-no-shadow mr-4"
|
|
|
+ matTooltip="Descargar">
|
|
|
+ <mat-icon>download</mat-icon>
|
|
|
+ </button>
|
|
|
+ <button mat-mini-fab color="warn" class="override-no-shadow mr-4"
|
|
|
+ matTooltip="Abrir" (click)="openViewer()">
|
|
|
+ <mat-icon>open_in_new</mat-icon>
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+ <!-- BOTONES DE ACCIONES CON PANTALLA REDUCIDA -->
|
|
|
+ <div *ngIf="btnSmall">
|
|
|
+ <button mat-mini-fab color="primary" [matMenuTriggerFor]="menu"
|
|
|
+ #menuTrigger matTooltip="Click para desplegar las opciones"
|
|
|
+ class="override-no-shadow">
|
|
|
+ <mat-icon>settings</mat-icon>
|
|
|
+ </button>
|
|
|
+ <mat-menu #menu="matMenu">
|
|
|
+ <button mat-menu-item>
|
|
|
+ <mat-icon>edit</mat-icon> Editar
|
|
|
+ </button>
|
|
|
+ <button mat-menu-item>
|
|
|
+ <mat-icon>download</mat-icon> Descargar
|
|
|
+ </button>
|
|
|
+ <button mat-menu-item>
|
|
|
+ <mat-icon>open_in_new</mat-icon> Abrrir
|
|
|
+ </button>
|
|
|
+ </mat-menu>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </ng-container>
|
|
|
+
|
|
|
+ <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
|
+ <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|
|
|
+
|
|
|
+ <tr class="mat-row" *matNoDataRow>
|
|
|
+ <td class="p-80 centre" colspan="12"><object data="assets/img/empty_data.svg"
|
|
|
+ width="300"></object>
|
|
|
+ <h2>Sin datos</h2>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </mat-drawer-content>
|
|
|
+ </mat-drawer-container>
|
|
|
+ </nav>
|
|
|
+ </section>
|
|
|
+ <mat-paginator [pageSizeOptions]="[10, 25, 50, 100]"
|
|
|
+ aria-label="Selecciona la página de usuarios"></mat-paginator>
|
|
|
+ </mat-card>
|
|
|
+</main>
|