general-library-union 3.2.5 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.mjs +12 -3
- package/fesm2022/general-library-union.mjs +11 -2
- package/fesm2022/general-library-union.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.d.ts +4 -1
|
@@ -9518,9 +9518,12 @@ class ImportarFuenteConComponent {
|
|
|
9518
9518
|
llaveProcesoCargueFuenteBD;
|
|
9519
9519
|
campos = [];
|
|
9520
9520
|
cols;
|
|
9521
|
+
cols2;
|
|
9521
9522
|
exportColumns;
|
|
9523
|
+
exportColumns2;
|
|
9522
9524
|
estadoRegresar = null;
|
|
9523
9525
|
columnasExportExcel = ['codigo', 'unicaLinea', 'mensajeErrores'];
|
|
9526
|
+
columnasExportExcel2 = ['numero', 'linea', 'mensaje'];
|
|
9524
9527
|
paginator = {
|
|
9525
9528
|
rows: 10,
|
|
9526
9529
|
totalRecords: 0,
|
|
@@ -9591,6 +9594,12 @@ class ImportarFuenteConComponent {
|
|
|
9591
9594
|
{ field: 'mensajeErrores', header: this.translateService.instant('advertencia') },
|
|
9592
9595
|
];
|
|
9593
9596
|
this.exportColumns = this.cols.map(col => ({ title: col.header, dataKey: col.field }));
|
|
9597
|
+
this.cols2 = [
|
|
9598
|
+
{ field: 'numero', header: this.translateService.instant('numerolinea'), customExportHeader: 'Prueba' },
|
|
9599
|
+
{ field: 'linea', header: this.translateService.instant('linea') },
|
|
9600
|
+
{ field: 'mensaje', header: this.translateService.instant('mensaje') },
|
|
9601
|
+
];
|
|
9602
|
+
this.exportColumns2 = this.cols2.map(col => ({ title: col.header, dataKey: col.field }));
|
|
9594
9603
|
}
|
|
9595
9604
|
traerFuente() {
|
|
9596
9605
|
if (!this.parametrosNavegacionService.getParametros()) {
|
|
@@ -9985,11 +9994,11 @@ class ImportarFuenteConComponent {
|
|
|
9985
9994
|
return this.fuenteDTO != null && this.fuenteDTO.separador != null && this.fuenteDTO.separador != this.fuentePipe.SIN_SEPARADOR;
|
|
9986
9995
|
}
|
|
9987
9996
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: ImportarFuenteConComponent, deps: [{ token: GeneralService }, { token: DataExporter }, { token: AuthService }, { token: FuentePipe }, { token: CargueLineaService }, { token: ToastService }, { token: i7.ConfirmationService }, { token: MenuService$1 }, { token: GeneralPipe }, { token: UtilsService }, { token: ParametrosNavegacionService }, { token: i7$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9988
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: ImportarFuenteConComponent, isStandalone: true, selector: "app-importar-fuente-con", outputs: { regresarFuente: "regresarFuente" }, providers: [DataExporter, MessageService, ConfirmationService], viewQueries: [{ propertyName: "formulario", first: true, predicate: ["formulario"], descendants: true }, { propertyName: "tabla", first: true, predicate: ["tablaDatos"], descendants: true }, { propertyName: "tabla2", first: true, predicate: ["tablaDatos2"], descendants: true }], ngImport: i0, template: "<p-confirmPopup></p-confirmPopup>\n<div *ngIf=\"!mostrar\">\n <div class=\"flex justify-content-between align-items-center mb-3\">\n <app-filtro-general [filtros]=\"filters\" [datatable]=\"tablaGeneral\">\n <ng-template let-form>\n <ng-container [formGroup]=\"form\">\n <span class=\"p-float-label\">\n <input pInputText autofocus type=\"text\" id=\"descripcion\" formControlName=\"descripcion\"\n autocomplete=\"off\" />\n <label for=\"descripcion\">{{'filtro' | translate}}</label>\n </span>\n </ng-container>\n </ng-template>\n </app-filtro-general>\n </div>\n <app-tabla-general #tablaGeneral [columns]=\"columns\" [value]=\"paginadorFuente\" [rows]=\"paginator.rows\"\n [totalRecords]=\"paginator.totalRecords\" (onLoad)=\"cargarlistado($event)\" (onRowSelect)=\"cargar($event)\"\n [loading]=\"loadingPaginadorFuente\"></app-tabla-general>\n</div>\n<div *ngIf=\"mostrar\">\n <div class=\"card mt-3\" *ngIf=\"fuenteDTO != null\">\n <h5 class=\"mt-3\"><i class=\"glyphicons glyphicons-book\"></i>{{'detalle' | translate}}</h5>\n <div class=\"Inputgroup p-fluid p-formgrid grid\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.descripcion\" [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fuente\">{{'fuente' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.tipo | fuentePipe:'listaTipoFuente'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"tipo\">{{'tipo' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.separador | fuentePipe:'listaSeparador'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"separador\">{{'separador' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"procesoDTO != null\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{procesoDTO.fechaProceso | date: ('formatofecha' | translate) }}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fechaproceso\">{{'fechaproceso' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"nombreArchivo != null && this.panel == 'DATOS' \">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"nombreArchivo\" [disabled]=\"true\" pInputText autofocus\n type=\"text\" />\n <label for=\"nombrearchivo\">{{'nombrearchivo' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n\n<div *ngIf=\"panel =='IMPORTAR'\">\n <p-tabView>\n <p-tabPanel header=\"{{'entrada' | translate}}\" *ngIf=\"fuenteDTO != null\">\n <div class=\"field col-12 md:col-12 lg:col-12\" *ngIf=\"fuenteDTO?.motor == 'X'\">\n <div class=\"card mt-2 mb-2\">\n <div class=\"contenedor p-fluid grid mt-1 mb-1\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.estado\" [disabled]=\"true\" pInputText\n autofocus type=\"text\" />\n <label for=\"estado\">{{'estado' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.solicitaDetalle\" [disabled]=\"true\"\n pInputText autofocus type=\"text\" />\n <label for=\"detalle\">{{'detalle' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"card mt-2 mb-2 field col-12 md:col-12 lg:col-12\" *ngIf=\"!isServicioWeb()\">\n\n <p-table [value]=\"camposArchivo\">\n <ng-template pTemplate=\"body\" let-campo>\n <tr>\n <td style=\"width: 20%;\">\n <label>{{campo.descripcion}}</label>\n </td>\n <td style=\"width: 80%\">\n <div class=\"p-fluid p-formgrid grid\">\n <div class=\"col-12 md:col-12\" id=\"btn-cargar-popup\">\n <div class=\"p-inputgroup\">\n <input pInputText [readonly]=\"true\" [value]=\"archivoSeleccionado?.name ? archivoSeleccionado?.name : ''\" disabled />\n <p-fileUpload #fubauto mode=\"basic\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n (onSelect)=\"cargarArchivo($event, fubauto)\" ></p-fileUpload>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <formulario-dinamico #formulario [editable]=\"true\" [campos]=\"campos\" \n [objeto]=\"fuenteDTO\" *ngIf=\"verFormulario && campos.length > 0\"></formulario-dinamico>\n \n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"m-2 p-button-outlined\"\n *ngIf=\"fuenteDTO.motor != 'X' && (isServicioWeb() || nombreArchivo != null)\" icon=\"pi pi-upload\"\n label=\"{{'link_importar' | translate}}\" (click)=\"importar()\">\n </button>\n <button pButton pRipple class=\"m-2 p-button p-button-raised\" *ngIf=\"fuenteDTO.motor =='X'\"\n label=\"{{'link_importarejecutar' | translate}}\" (click)=\"importarEjecutar()\">\n </button>\n </div>\n </div>\n </p-tabPanel>\n <p-tabPanel header=\"{{'historico' | translate}}\" *ngIf=\"paginadorProcesos.length > 0 && fuenteDTO != null\">\n\n </p-tabPanel>\n </p-tabView>\n</div>\n\n<div *ngIf=\"panel =='DATOS'\">\n\n <div class=\"card\" *ngIf=\"panelImportar =='GRUPOS'\">\n \n\n <div class=\"flex justify-content-between align-items-center mb-4 mt-3\">\n <div>\n \n </div>\n\n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , 'tabla', columnasExportExcel)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , exportColumns, 'tabla')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n\n <p-table #tablaDatos responsiveLayout=\"scroll\" [value]=\"datos\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"datos.length\" [exportFilename]=\"'tablaDatos'\"\n [paginator]=\"datos.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" selectionMode=\"single\" [scrollable]=\"true\" [columns]=\"cols\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\" *ngIf=\"!isMotor()\"\n [(selection)]=\"grupo\" (onRowSelect)=\"verGrupo($event)\">\n \n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'grupo' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'advertencia' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td class=\"w-8rem font-medium\">{{bean.codigo}}</td>\n <td>\n {{bean.unicaLinea}}</td>\n <td>\n {{bean.mensajeErrores}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n <div *ngIf=\"panelImportar =='DETALLEGRUPO'\">\n <div *ngIf=\"!isMotor()\">\n <h5>{{'grupo' | translate}}: {{grupo.codigo}}</h5>\n <p-accordion *ngIf=\"!isMotor()\">\n <p-accordionTab [selected]=\"true\">\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'linea' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n \n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorCampos\" responsiveLaoyout=\"scroll\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"numeroLinea\" groupRowsBy=\"numeroLinea\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorCampos.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'campo' | translate}}</th>\n <th>{{'archivo' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\"> {{'linea' | translate}}:\n {{bean.numeroLinea}}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.campoAtributo}}</td>\n <td>{{bean.cadena}}</td>\n <td>{{bean.tipoDato | fuentePipe : 'listaTipoDato'}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n <p-accordionTab *ngIf=\"paginadorParametros?.length > 0\" >\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'servicio' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n\n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorParametros\" responsiveLaoyout=\"scroll\" \n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"llaveunica\" groupRowsBy=\"llaveunica\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorParametros.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'parametro' | translate}}s</th>\n <th>{{'valor' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\">{{bean.llaveunica}}</span>\n <br/>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr>\n <td>{{bean.campoAtributo}}</td>\n <td>\n <label *ngIf=\"bean.tipoDato == 'L' || bean.tipoDato == 'T'\">{{bean.cadena}}</label>\n <label *ngIf=\"bean.tipoDato == 'D' || bean.tipoDato == 'N'\">{{bean.numero}}</label>\n <label *ngIf=\"bean.tipoDato == 'F'\">{{bean.cadena | date : ('formatofecha' | translate) }}</label>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n </p-accordion>\n </div>\n <div *ngIf=\"isMotor()\">\n <div class=\"flex justify-content-between align-items-center mb-4 mt-3\">\n <div>\n \n </div>\n \n <div class=\"flex justify-content-end\">\n <div class=\"ml-2 mb-1 mt-2\" *ngIf=\"lineasConMensaje != 0\" >\n <p-checkbox class=\"ml-1\" [(ngModel)]=\"verInconsistencia\" [binary]=\"true\"> </p-checkbox>\n <label style=\"margin: 3px 8px;\"> {{'soloinconsistencias' | translate}}</label>\n </div>\n\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla2.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcel(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , 'tabla2')\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , exportColumns, 'tabla2')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n <br/>\n <p-table #tablaDatos2 responsiveLayout=\"scroll\" [value]=\"lineasCargadas\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasCargadas.length\"\n [paginator]=\"lineasCargadas.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\" !verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n <p-table responsiveLayout=\"scroll\" [value]=\"lineasInconsistencia\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasInconsistencia.length\"\n [paginator]=\"lineasInconsistencia.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\"verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n \n </div>\n </div>\n \n \n</div>\n</div>\n", styles: ["#btn-cargar-popup .p-fileupload .p-button{background:#fff;box-shadow:none;width:auto;color:var(--color-400);padding:.85rem .1rem;border-radius:0 5px 5px 0;margin-left:-3px;border-right:solid 1px var(--color-100)}\n"], dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "component", type: i17.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i17.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i17.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i12$2.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i14$1.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i7$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i7$3.Checkbox, selector: "p-checkbox", inputs: ["value", "name", "disabled", "binary", "label", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "styleClass", "labelStyleClass", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TabViewModule }, { kind: "component", type: i17$2.TabView, selector: "p-tabView", inputs: ["style", "styleClass", "controlClose", "scrollable", "activeIndex", "selectOnFocus", "nextButtonAriaLabel", "prevButtonAriaLabel", "autoHideButtons", "tabindex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { kind: "component", type: i17$2.TabPanel, selector: "p-tabPanel", inputs: ["closable", "headerStyle", "headerStyleClass", "cache", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "selected", "disabled", "header", "leftIcon", "rightIcon"] }, { kind: "component", type: TablaGeneralComponent, selector: "app-tabla-general", inputs: ["dataKey", "value", "columns", "rows", "totalRecords", "loading", "ocultarFraccionador"], outputs: ["onLoad", "onRowSelect"] }, { kind: "component", type: FiltroGeneralComponent, selector: "app-filtro-general", inputs: ["filtros", "datatable"], outputs: ["metodoRegresar", "metodoRegresarAdicional"] }, { kind: "ngmodule", type: AccordionModule }, { kind: "component", type: i17$1.Accordion, selector: "p-accordion", inputs: ["multiple", "style", "styleClass", "expandIcon", "collapseIcon", "activeIndex", "selectOnFocus", "headerAriaLevel"], outputs: ["onClose", "onOpen", "activeIndexChange"] }, { kind: "component", type: i17$1.AccordionTab, selector: "p-accordionTab", inputs: ["id", "header", "headerStyle", "tabStyle", "contentStyle", "tabStyleClass", "headerStyleClass", "contentStyleClass", "disabled", "cache", "transitionOptions", "iconPos", "selected", "headerAriaLevel"], outputs: ["selectedChange"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i10$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "component", type: FormulariodinamicoComponent, selector: "formulario-dinamico", inputs: ["campos", "editable", "objeto", "isMensaje"] }, { kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i20.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: FuentePipe, name: "fuentePipe" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9997
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.4", type: ImportarFuenteConComponent, isStandalone: true, selector: "app-importar-fuente-con", outputs: { regresarFuente: "regresarFuente" }, providers: [DataExporter, MessageService, ConfirmationService], viewQueries: [{ propertyName: "formulario", first: true, predicate: ["formulario"], descendants: true }, { propertyName: "tabla", first: true, predicate: ["tablaDatos"], descendants: true }, { propertyName: "tabla2", first: true, predicate: ["tablaDatos2"], descendants: true }], ngImport: i0, template: "<p-confirmPopup></p-confirmPopup>\n<div *ngIf=\"!mostrar\">\n <div class=\"flex justify-content-between align-items-center mb-3\">\n <app-filtro-general [filtros]=\"filters\" [datatable]=\"tablaGeneral\">\n <ng-template let-form>\n <ng-container [formGroup]=\"form\">\n <span class=\"p-float-label\">\n <input pInputText autofocus type=\"text\" id=\"descripcion\" formControlName=\"descripcion\"\n autocomplete=\"off\" />\n <label for=\"descripcion\">{{'filtro' | translate}}</label>\n </span>\n </ng-container>\n </ng-template>\n </app-filtro-general>\n </div>\n <app-tabla-general #tablaGeneral [columns]=\"columns\" [value]=\"paginadorFuente\" [rows]=\"paginator.rows\"\n [totalRecords]=\"paginator.totalRecords\" (onLoad)=\"cargarlistado($event)\" (onRowSelect)=\"cargar($event)\"\n [loading]=\"loadingPaginadorFuente\"></app-tabla-general>\n</div>\n<div *ngIf=\"mostrar\">\n <div class=\"card mt-3\" *ngIf=\"fuenteDTO != null\">\n <h5 class=\"mt-3\"><i class=\"glyphicons glyphicons-book\"></i>{{'detalle' | translate}}</h5>\n <div class=\"Inputgroup p-fluid p-formgrid grid\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.descripcion\" [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fuente\">{{'fuente' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.tipo | fuentePipe:'listaTipoFuente'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"tipo\">{{'tipo' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.separador | fuentePipe:'listaSeparador'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"separador\">{{'separador' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"procesoDTO != null\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{procesoDTO.fechaProceso | date: ('formatofecha' | translate) }}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fechaproceso\">{{'fechaproceso' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"nombreArchivo != null && this.panel == 'DATOS' \">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"nombreArchivo\" [disabled]=\"true\" pInputText autofocus\n type=\"text\" />\n <label for=\"nombrearchivo\">{{'nombrearchivo' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n\n<div *ngIf=\"panel =='IMPORTAR'\">\n <p-tabView>\n <p-tabPanel header=\"{{'entrada' | translate}}\" *ngIf=\"fuenteDTO != null\">\n <div class=\"field col-12 md:col-12 lg:col-12\" *ngIf=\"fuenteDTO?.motor == 'X'\">\n <div class=\"card mt-2 mb-2\">\n <div class=\"contenedor p-fluid grid mt-1 mb-1\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.estado\" [disabled]=\"true\" pInputText\n autofocus type=\"text\" />\n <label for=\"estado\">{{'estado' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.solicitaDetalle\" [disabled]=\"true\"\n pInputText autofocus type=\"text\" />\n <label for=\"detalle\">{{'detalle' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"card mt-2 mb-2 field col-12 md:col-12 lg:col-12\" *ngIf=\"!isServicioWeb()\">\n\n <p-table [value]=\"camposArchivo\">\n <ng-template pTemplate=\"body\" let-campo>\n <tr>\n <td style=\"width: 20%;\">\n <label>{{campo.descripcion}}</label>\n </td>\n <td style=\"width: 80%\">\n <div class=\"p-fluid p-formgrid grid\">\n <div class=\"col-12 md:col-12\" id=\"btn-cargar-popup\">\n <div class=\"p-inputgroup\">\n <input pInputText [readonly]=\"true\" [value]=\"archivoSeleccionado?.name ? archivoSeleccionado?.name : ''\" disabled />\n <p-fileUpload #fubauto mode=\"basic\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n (onSelect)=\"cargarArchivo($event, fubauto)\" ></p-fileUpload>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <formulario-dinamico #formulario [editable]=\"true\" [campos]=\"campos\" \n [objeto]=\"fuenteDTO\" *ngIf=\"verFormulario && campos.length > 0\"></formulario-dinamico>\n \n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"m-2 p-button-outlined\"\n *ngIf=\"fuenteDTO.motor != 'X' && (isServicioWeb() || nombreArchivo != null)\" icon=\"pi pi-upload\"\n label=\"{{'link_importar' | translate}}\" (click)=\"importar()\">\n </button>\n <button pButton pRipple class=\"m-2 p-button p-button-raised\" *ngIf=\"fuenteDTO.motor =='X'\"\n label=\"{{'link_importarejecutar' | translate}}\" (click)=\"importarEjecutar()\">\n </button>\n </div>\n </div>\n </p-tabPanel>\n <p-tabPanel header=\"{{'historico' | translate}}\" *ngIf=\"paginadorProcesos.length > 0 && fuenteDTO != null\">\n\n </p-tabPanel>\n </p-tabView>\n</div>\n\n<div *ngIf=\"panel =='DATOS'\">\n\n <div class=\"card\" *ngIf=\"panelImportar =='GRUPOS'\">\n \n\n <div class=\"flex justify-content-between align-items-center\">\n <div>\n \n </div>\n\n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , 'tabla', columnasExportExcel)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , exportColumns, 'tabla')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n\n <p-table #tablaDatos responsiveLayout=\"scroll\" [value]=\"datos\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"datos.length\" [exportFilename]=\"'tablaDatos'\"\n [paginator]=\"datos.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" selectionMode=\"single\" [scrollable]=\"true\" [columns]=\"cols\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\" *ngIf=\"!isMotor()\"\n [(selection)]=\"grupo\" (onRowSelect)=\"verGrupo($event)\">\n \n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'grupo' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'advertencia' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td class=\"w-8rem font-medium\">{{bean.codigo}}</td>\n <td>\n {{bean.unicaLinea}}</td>\n <td>\n {{bean.mensajeErrores}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n <div *ngIf=\"panelImportar =='DETALLEGRUPO'\">\n <div *ngIf=\"!isMotor()\">\n <h5>{{'grupo' | translate}}: {{grupo.codigo}}</h5>\n <p-accordion *ngIf=\"!isMotor()\">\n <p-accordionTab [selected]=\"true\">\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'linea' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n \n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorCampos\" responsiveLaoyout=\"scroll\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"numeroLinea\" groupRowsBy=\"numeroLinea\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorCampos.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'campo' | translate}}</th>\n <th>{{'archivo' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\"> {{'linea' | translate}}:\n {{bean.numeroLinea}}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.campoAtributo}}</td>\n <td>{{bean.cadena}}</td>\n <td>{{bean.tipoDato | fuentePipe : 'listaTipoDato'}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n <p-accordionTab *ngIf=\"paginadorParametros?.length > 0\" >\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'servicio' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n\n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorParametros\" responsiveLaoyout=\"scroll\" \n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"llaveunica\" groupRowsBy=\"llaveunica\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorParametros.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'parametro' | translate}}s</th>\n <th>{{'valor' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\">{{bean.llaveunica}}</span>\n <br/>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr>\n <td>{{bean.campoAtributo}}</td>\n <td>\n <label *ngIf=\"bean.tipoDato == 'L' || bean.tipoDato == 'T'\">{{bean.cadena}}</label>\n <label *ngIf=\"bean.tipoDato == 'D' || bean.tipoDato == 'N'\">{{bean.numero}}</label>\n <label *ngIf=\"bean.tipoDato == 'F'\">{{bean.cadena | date : ('formatofecha' | translate) }}</label>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n </p-accordion>\n </div>\n <div *ngIf=\"isMotor()\">\n <div class=\"flex justify-content-between align-items-center\">\n <div>\n \n </div>\n \n <div class=\"flex justify-content-end\">\n <div class=\"ml-2 mb-1 mt-2\" *ngIf=\"lineasConMensaje != 0\" >\n <p-checkbox class=\"ml-1\" [(ngModel)]=\"verInconsistencia\" [binary]=\"true\"> </p-checkbox>\n <label style=\"margin: 3px 8px;\"> {{'soloinconsistencias' | translate}}</label>\n </div>\n\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla2.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , 'tabla2', columnasExportExcel2)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , exportColumns2, 'tabla2')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n <br/>\n <p-table #tablaDatos2 responsiveLayout=\"scroll\" [value]=\"lineasCargadas\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasCargadas.length\" [exportFilename]=\"'tablaDatos'\" [columns]=\"cols2\"\n [paginator]=\"lineasCargadas.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\" !verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n <p-table responsiveLayout=\"scroll\" [value]=\"lineasInconsistencia\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasInconsistencia.length\"\n [paginator]=\"lineasInconsistencia.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\"verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n \n </div>\n </div>\n \n \n</div>\n</div>\n", styles: ["#btn-cargar-popup .p-fileupload .p-button{background:#fff;box-shadow:none;width:auto;color:var(--color-400);padding:.85rem .1rem;border-radius:0 5px 5px 0;margin-left:-3px;border-right:solid 1px var(--color-100)}\n"], dependencies: [{ kind: "ngmodule", type: TableModule }, { kind: "component", type: i17.Table, selector: "p-table", inputs: ["frozenColumns", "frozenValue", "style", "styleClass", "tableStyle", "tableStyleClass", "paginator", "pageLinks", "rowsPerPageOptions", "alwaysShowPaginator", "paginatorPosition", "paginatorStyleClass", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showJumpToPageInput", "showFirstLastIcon", "showPageLinks", "defaultSortOrder", "sortMode", "resetPageOnSort", "selectionMode", "selectionPageOnly", "contextMenuSelection", "contextMenuSelectionMode", "dataKey", "metaKeySelection", "rowSelectable", "rowTrackBy", "lazy", "lazyLoadOnInit", "compareSelectionBy", "csvSeparator", "exportFilename", "filters", "globalFilterFields", "filterDelay", "filterLocale", "expandedRowKeys", "editingRowKeys", "rowExpandMode", "scrollable", "scrollDirection", "rowGroupMode", "scrollHeight", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "virtualScrollDelay", "frozenWidth", "responsive", "contextMenu", "resizableColumns", "columnResizeMode", "reorderableColumns", "loading", "loadingIcon", "showLoader", "rowHover", "customSort", "showInitialSortBadge", "autoLayout", "exportFunction", "exportHeader", "stateKey", "stateStorage", "editMode", "groupRowsBy", "groupRowsByOrder", "responsiveLayout", "breakpoint", "paginatorLocale", "value", "columns", "first", "rows", "totalRecords", "sortField", "sortOrder", "multiSortMeta", "selection", "selectAll", "virtualRowHeight"], outputs: ["contextMenuSelectionChange", "selectAllChange", "selectionChange", "onRowSelect", "onRowUnselect", "onPage", "onSort", "onFilter", "onLazyLoad", "onRowExpand", "onRowCollapse", "onContextMenuSelect", "onColResize", "onColReorder", "onRowReorder", "onEditInit", "onEditComplete", "onEditCancel", "onHeaderCheckboxToggle", "sortFunction", "firstChange", "rowsChange", "onStateSave", "onStateRestore"] }, { kind: "directive", type: i7.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "directive", type: i17.SelectableRow, selector: "[pSelectableRow]", inputs: ["pSelectableRow", "pSelectableRowIndex", "pSelectableRowDisabled"] }, { kind: "directive", type: i17.RowToggler, selector: "[pRowToggler]", inputs: ["pRowToggler", "pRowTogglerDisabled"] }, { kind: "ngmodule", type: ConfirmPopupModule }, { kind: "component", type: i12$2.ConfirmPopup, selector: "p-confirmPopup", inputs: ["key", "defaultFocus", "showTransitionOptions", "hideTransitionOptions", "autoZIndex", "baseZIndex", "style", "styleClass", "visible"] }, { kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i14$1.InputText, selector: "[pInputText]", inputs: ["variant"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i7$1.TranslatePipe, name: "translate" }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i7$3.Checkbox, selector: "p-checkbox", inputs: ["value", "name", "disabled", "binary", "label", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "styleClass", "labelStyleClass", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TabViewModule }, { kind: "component", type: i17$2.TabView, selector: "p-tabView", inputs: ["style", "styleClass", "controlClose", "scrollable", "activeIndex", "selectOnFocus", "nextButtonAriaLabel", "prevButtonAriaLabel", "autoHideButtons", "tabindex"], outputs: ["onChange", "onClose", "activeIndexChange"] }, { kind: "component", type: i17$2.TabPanel, selector: "p-tabPanel", inputs: ["closable", "headerStyle", "headerStyleClass", "cache", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "selected", "disabled", "header", "leftIcon", "rightIcon"] }, { kind: "component", type: TablaGeneralComponent, selector: "app-tabla-general", inputs: ["dataKey", "value", "columns", "rows", "totalRecords", "loading", "ocultarFraccionador"], outputs: ["onLoad", "onRowSelect"] }, { kind: "component", type: FiltroGeneralComponent, selector: "app-filtro-general", inputs: ["filtros", "datatable"], outputs: ["metodoRegresar", "metodoRegresarAdicional"] }, { kind: "ngmodule", type: AccordionModule }, { kind: "component", type: i17$1.Accordion, selector: "p-accordion", inputs: ["multiple", "style", "styleClass", "expandIcon", "collapseIcon", "activeIndex", "selectOnFocus", "headerAriaLevel"], outputs: ["onClose", "onOpen", "activeIndexChange"] }, { kind: "component", type: i17$1.AccordionTab, selector: "p-accordionTab", inputs: ["id", "header", "headerStyle", "tabStyle", "contentStyle", "tabStyleClass", "headerStyleClass", "contentStyleClass", "disabled", "cache", "transitionOptions", "iconPos", "selected", "headerAriaLevel"], outputs: ["selectedChange"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "ngmodule", type: ButtonModule }, { kind: "directive", type: i10$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading", "severity", "raised", "rounded", "text", "outlined", "size", "plain"] }, { kind: "component", type: FormulariodinamicoComponent, selector: "formulario-dinamico", inputs: ["campos", "editable", "objeto", "isMensaje"] }, { kind: "ngmodule", type: FileUploadModule }, { kind: "component", type: i20.FileUpload, selector: "p-fileUpload", inputs: ["name", "url", "method", "multiple", "accept", "disabled", "auto", "withCredentials", "maxFileSize", "invalidFileSizeMessageSummary", "invalidFileSizeMessageDetail", "invalidFileTypeMessageSummary", "invalidFileTypeMessageDetail", "invalidFileLimitMessageDetail", "invalidFileLimitMessageSummary", "style", "styleClass", "previewWidth", "chooseLabel", "uploadLabel", "cancelLabel", "chooseIcon", "uploadIcon", "cancelIcon", "showUploadButton", "showCancelButton", "mode", "headers", "customUpload", "fileLimit", "uploadStyleClass", "cancelStyleClass", "removeStyleClass", "chooseStyleClass", "files"], outputs: ["onBeforeUpload", "onSend", "onUpload", "onError", "onClear", "onRemove", "onSelect", "onProgress", "uploadHandler", "onImageError", "onRemoveUploadedFile"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: FuentePipe, name: "fuentePipe" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i14.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
9989
9998
|
}
|
|
9990
9999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.4", ngImport: i0, type: ImportarFuenteConComponent, decorators: [{
|
|
9991
10000
|
type: Component,
|
|
9992
|
-
args: [{ selector: 'app-importar-fuente-con', imports: [TableModule, ConfirmPopupModule, InputTextModule, TranslateModule, CheckboxModule, TabViewModule, TablaGeneralComponent, FiltroGeneralComponent, AccordionModule, DatePipe, ButtonModule, CheckboxModule, FormulariodinamicoComponent, FileUploadModule, FormsModule, FuentePipe, FormsModule, ReactiveFormsModule, CommonModule,], standalone: true, providers: [DataExporter, MessageService, ConfirmationService], template: "<p-confirmPopup></p-confirmPopup>\n<div *ngIf=\"!mostrar\">\n <div class=\"flex justify-content-between align-items-center mb-3\">\n <app-filtro-general [filtros]=\"filters\" [datatable]=\"tablaGeneral\">\n <ng-template let-form>\n <ng-container [formGroup]=\"form\">\n <span class=\"p-float-label\">\n <input pInputText autofocus type=\"text\" id=\"descripcion\" formControlName=\"descripcion\"\n autocomplete=\"off\" />\n <label for=\"descripcion\">{{'filtro' | translate}}</label>\n </span>\n </ng-container>\n </ng-template>\n </app-filtro-general>\n </div>\n <app-tabla-general #tablaGeneral [columns]=\"columns\" [value]=\"paginadorFuente\" [rows]=\"paginator.rows\"\n [totalRecords]=\"paginator.totalRecords\" (onLoad)=\"cargarlistado($event)\" (onRowSelect)=\"cargar($event)\"\n [loading]=\"loadingPaginadorFuente\"></app-tabla-general>\n</div>\n<div *ngIf=\"mostrar\">\n <div class=\"card mt-3\" *ngIf=\"fuenteDTO != null\">\n <h5 class=\"mt-3\"><i class=\"glyphicons glyphicons-book\"></i>{{'detalle' | translate}}</h5>\n <div class=\"Inputgroup p-fluid p-formgrid grid\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.descripcion\" [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fuente\">{{'fuente' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.tipo | fuentePipe:'listaTipoFuente'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"tipo\">{{'tipo' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.separador | fuentePipe:'listaSeparador'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"separador\">{{'separador' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"procesoDTO != null\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{procesoDTO.fechaProceso | date: ('formatofecha' | translate) }}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fechaproceso\">{{'fechaproceso' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"nombreArchivo != null && this.panel == 'DATOS' \">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"nombreArchivo\" [disabled]=\"true\" pInputText autofocus\n type=\"text\" />\n <label for=\"nombrearchivo\">{{'nombrearchivo' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n\n<div *ngIf=\"panel =='IMPORTAR'\">\n <p-tabView>\n <p-tabPanel header=\"{{'entrada' | translate}}\" *ngIf=\"fuenteDTO != null\">\n <div class=\"field col-12 md:col-12 lg:col-12\" *ngIf=\"fuenteDTO?.motor == 'X'\">\n <div class=\"card mt-2 mb-2\">\n <div class=\"contenedor p-fluid grid mt-1 mb-1\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.estado\" [disabled]=\"true\" pInputText\n autofocus type=\"text\" />\n <label for=\"estado\">{{'estado' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.solicitaDetalle\" [disabled]=\"true\"\n pInputText autofocus type=\"text\" />\n <label for=\"detalle\">{{'detalle' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"card mt-2 mb-2 field col-12 md:col-12 lg:col-12\" *ngIf=\"!isServicioWeb()\">\n\n <p-table [value]=\"camposArchivo\">\n <ng-template pTemplate=\"body\" let-campo>\n <tr>\n <td style=\"width: 20%;\">\n <label>{{campo.descripcion}}</label>\n </td>\n <td style=\"width: 80%\">\n <div class=\"p-fluid p-formgrid grid\">\n <div class=\"col-12 md:col-12\" id=\"btn-cargar-popup\">\n <div class=\"p-inputgroup\">\n <input pInputText [readonly]=\"true\" [value]=\"archivoSeleccionado?.name ? archivoSeleccionado?.name : ''\" disabled />\n <p-fileUpload #fubauto mode=\"basic\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n (onSelect)=\"cargarArchivo($event, fubauto)\" ></p-fileUpload>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <formulario-dinamico #formulario [editable]=\"true\" [campos]=\"campos\" \n [objeto]=\"fuenteDTO\" *ngIf=\"verFormulario && campos.length > 0\"></formulario-dinamico>\n \n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"m-2 p-button-outlined\"\n *ngIf=\"fuenteDTO.motor != 'X' && (isServicioWeb() || nombreArchivo != null)\" icon=\"pi pi-upload\"\n label=\"{{'link_importar' | translate}}\" (click)=\"importar()\">\n </button>\n <button pButton pRipple class=\"m-2 p-button p-button-raised\" *ngIf=\"fuenteDTO.motor =='X'\"\n label=\"{{'link_importarejecutar' | translate}}\" (click)=\"importarEjecutar()\">\n </button>\n </div>\n </div>\n </p-tabPanel>\n <p-tabPanel header=\"{{'historico' | translate}}\" *ngIf=\"paginadorProcesos.length > 0 && fuenteDTO != null\">\n\n </p-tabPanel>\n </p-tabView>\n</div>\n\n<div *ngIf=\"panel =='DATOS'\">\n\n <div class=\"card\" *ngIf=\"panelImportar =='GRUPOS'\">\n \n\n <div class=\"flex justify-content-between align-items-center mb-4 mt-3\">\n <div>\n \n </div>\n\n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , 'tabla', columnasExportExcel)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , exportColumns, 'tabla')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n\n <p-table #tablaDatos responsiveLayout=\"scroll\" [value]=\"datos\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"datos.length\" [exportFilename]=\"'tablaDatos'\"\n [paginator]=\"datos.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" selectionMode=\"single\" [scrollable]=\"true\" [columns]=\"cols\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\" *ngIf=\"!isMotor()\"\n [(selection)]=\"grupo\" (onRowSelect)=\"verGrupo($event)\">\n \n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'grupo' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'advertencia' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td class=\"w-8rem font-medium\">{{bean.codigo}}</td>\n <td>\n {{bean.unicaLinea}}</td>\n <td>\n {{bean.mensajeErrores}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n <div *ngIf=\"panelImportar =='DETALLEGRUPO'\">\n <div *ngIf=\"!isMotor()\">\n <h5>{{'grupo' | translate}}: {{grupo.codigo}}</h5>\n <p-accordion *ngIf=\"!isMotor()\">\n <p-accordionTab [selected]=\"true\">\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'linea' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n \n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorCampos\" responsiveLaoyout=\"scroll\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"numeroLinea\" groupRowsBy=\"numeroLinea\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorCampos.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'campo' | translate}}</th>\n <th>{{'archivo' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\"> {{'linea' | translate}}:\n {{bean.numeroLinea}}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.campoAtributo}}</td>\n <td>{{bean.cadena}}</td>\n <td>{{bean.tipoDato | fuentePipe : 'listaTipoDato'}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n <p-accordionTab *ngIf=\"paginadorParametros?.length > 0\" >\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'servicio' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n\n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorParametros\" responsiveLaoyout=\"scroll\" \n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"llaveunica\" groupRowsBy=\"llaveunica\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorParametros.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'parametro' | translate}}s</th>\n <th>{{'valor' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\">{{bean.llaveunica}}</span>\n <br/>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr>\n <td>{{bean.campoAtributo}}</td>\n <td>\n <label *ngIf=\"bean.tipoDato == 'L' || bean.tipoDato == 'T'\">{{bean.cadena}}</label>\n <label *ngIf=\"bean.tipoDato == 'D' || bean.tipoDato == 'N'\">{{bean.numero}}</label>\n <label *ngIf=\"bean.tipoDato == 'F'\">{{bean.cadena | date : ('formatofecha' | translate) }}</label>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n </p-accordion>\n </div>\n <div *ngIf=\"isMotor()\">\n <div class=\"flex justify-content-between align-items-center mb-4 mt-3\">\n <div>\n \n </div>\n \n <div class=\"flex justify-content-end\">\n <div class=\"ml-2 mb-1 mt-2\" *ngIf=\"lineasConMensaje != 0\" >\n <p-checkbox class=\"ml-1\" [(ngModel)]=\"verInconsistencia\" [binary]=\"true\"> </p-checkbox>\n <label style=\"margin: 3px 8px;\"> {{'soloinconsistencias' | translate}}</label>\n </div>\n\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla2.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcel(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , 'tabla2')\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , exportColumns, 'tabla2')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n <br/>\n <p-table #tablaDatos2 responsiveLayout=\"scroll\" [value]=\"lineasCargadas\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasCargadas.length\"\n [paginator]=\"lineasCargadas.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\" !verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n <p-table responsiveLayout=\"scroll\" [value]=\"lineasInconsistencia\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasInconsistencia.length\"\n [paginator]=\"lineasInconsistencia.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\"verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n \n </div>\n </div>\n \n \n</div>\n</div>\n", styles: ["#btn-cargar-popup .p-fileupload .p-button{background:#fff;box-shadow:none;width:auto;color:var(--color-400);padding:.85rem .1rem;border-radius:0 5px 5px 0;margin-left:-3px;border-right:solid 1px var(--color-100)}\n"] }]
|
|
10001
|
+
args: [{ selector: 'app-importar-fuente-con', imports: [TableModule, ConfirmPopupModule, InputTextModule, TranslateModule, CheckboxModule, TabViewModule, TablaGeneralComponent, FiltroGeneralComponent, AccordionModule, DatePipe, ButtonModule, CheckboxModule, FormulariodinamicoComponent, FileUploadModule, FormsModule, FuentePipe, FormsModule, ReactiveFormsModule, CommonModule,], standalone: true, providers: [DataExporter, MessageService, ConfirmationService], template: "<p-confirmPopup></p-confirmPopup>\n<div *ngIf=\"!mostrar\">\n <div class=\"flex justify-content-between align-items-center mb-3\">\n <app-filtro-general [filtros]=\"filters\" [datatable]=\"tablaGeneral\">\n <ng-template let-form>\n <ng-container [formGroup]=\"form\">\n <span class=\"p-float-label\">\n <input pInputText autofocus type=\"text\" id=\"descripcion\" formControlName=\"descripcion\"\n autocomplete=\"off\" />\n <label for=\"descripcion\">{{'filtro' | translate}}</label>\n </span>\n </ng-container>\n </ng-template>\n </app-filtro-general>\n </div>\n <app-tabla-general #tablaGeneral [columns]=\"columns\" [value]=\"paginadorFuente\" [rows]=\"paginator.rows\"\n [totalRecords]=\"paginator.totalRecords\" (onLoad)=\"cargarlistado($event)\" (onRowSelect)=\"cargar($event)\"\n [loading]=\"loadingPaginadorFuente\"></app-tabla-general>\n</div>\n<div *ngIf=\"mostrar\">\n <div class=\"card mt-3\" *ngIf=\"fuenteDTO != null\">\n <h5 class=\"mt-3\"><i class=\"glyphicons glyphicons-book\"></i>{{'detalle' | translate}}</h5>\n <div class=\"Inputgroup p-fluid p-formgrid grid\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.descripcion\" [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fuente\">{{'fuente' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.tipo | fuentePipe:'listaTipoFuente'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"tipo\">{{'tipo' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{fuenteDTO.separador | fuentePipe:'listaSeparador'}}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"separador\">{{'separador' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"procesoDTO != null\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" value=\"{{procesoDTO.fechaProceso | date: ('formatofecha' | translate) }}\"\n [disabled]=\"true\" pInputText autofocus type=\"text\" />\n <label for=\"fechaproceso\">{{'fechaproceso' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\" *ngIf=\"nombreArchivo != null && this.panel == 'DATOS' \">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"nombreArchivo\" [disabled]=\"true\" pInputText autofocus\n type=\"text\" />\n <label for=\"nombrearchivo\">{{'nombrearchivo' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n\n<div *ngIf=\"panel =='IMPORTAR'\">\n <p-tabView>\n <p-tabPanel header=\"{{'entrada' | translate}}\" *ngIf=\"fuenteDTO != null\">\n <div class=\"field col-12 md:col-12 lg:col-12\" *ngIf=\"fuenteDTO?.motor == 'X'\">\n <div class=\"card mt-2 mb-2\">\n <div class=\"contenedor p-fluid grid mt-1 mb-1\">\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.estado\" [disabled]=\"true\" pInputText\n autofocus type=\"text\" />\n <label for=\"estado\">{{'estado' | translate}}</label>\n </span>\n </div>\n <div class=\"field col-3 md:col-3 lg:col-3\">\n <span class=\"p-float-label\">\n <input class=\"w-full\" [(ngModel)]=\"fuenteDTO.solicitaDetalle\" [disabled]=\"true\"\n pInputText autofocus type=\"text\" />\n <label for=\"detalle\">{{'detalle' | translate}}</label>\n </span>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"card mt-2 mb-2 field col-12 md:col-12 lg:col-12\" *ngIf=\"!isServicioWeb()\">\n\n <p-table [value]=\"camposArchivo\">\n <ng-template pTemplate=\"body\" let-campo>\n <tr>\n <td style=\"width: 20%;\">\n <label>{{campo.descripcion}}</label>\n </td>\n <td style=\"width: 80%\">\n <div class=\"p-fluid p-formgrid grid\">\n <div class=\"col-12 md:col-12\" id=\"btn-cargar-popup\">\n <div class=\"p-inputgroup\">\n <input pInputText [readonly]=\"true\" [value]=\"archivoSeleccionado?.name ? archivoSeleccionado?.name : ''\" disabled />\n <p-fileUpload #fubauto mode=\"basic\" [customUpload]=\"true\" chooseIcon=\"pi pi-paperclip\"\n (onSelect)=\"cargarArchivo($event, fubauto)\" ></p-fileUpload>\n </div>\n </div>\n </div>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <formulario-dinamico #formulario [editable]=\"true\" [campos]=\"campos\" \n [objeto]=\"fuenteDTO\" *ngIf=\"verFormulario && campos.length > 0\"></formulario-dinamico>\n \n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"m-2 p-button-outlined\"\n *ngIf=\"fuenteDTO.motor != 'X' && (isServicioWeb() || nombreArchivo != null)\" icon=\"pi pi-upload\"\n label=\"{{'link_importar' | translate}}\" (click)=\"importar()\">\n </button>\n <button pButton pRipple class=\"m-2 p-button p-button-raised\" *ngIf=\"fuenteDTO.motor =='X'\"\n label=\"{{'link_importarejecutar' | translate}}\" (click)=\"importarEjecutar()\">\n </button>\n </div>\n </div>\n </p-tabPanel>\n <p-tabPanel header=\"{{'historico' | translate}}\" *ngIf=\"paginadorProcesos.length > 0 && fuenteDTO != null\">\n\n </p-tabPanel>\n </p-tabView>\n</div>\n\n<div *ngIf=\"panel =='DATOS'\">\n\n <div class=\"card\" *ngIf=\"panelImportar =='GRUPOS'\">\n \n\n <div class=\"flex justify-content-between align-items-center\">\n <div>\n \n </div>\n\n <div class=\"flex justify-content-end\">\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , 'tabla', columnasExportExcel)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla.filteredValue == null ? tabla.value : tabla.filteredValue , exportColumns, 'tabla')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n\n <p-table #tablaDatos responsiveLayout=\"scroll\" [value]=\"datos\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"datos.length\" [exportFilename]=\"'tablaDatos'\"\n [paginator]=\"datos.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" selectionMode=\"single\" [scrollable]=\"true\" [columns]=\"cols\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\" *ngIf=\"!isMotor()\"\n [(selection)]=\"grupo\" (onRowSelect)=\"verGrupo($event)\">\n \n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'grupo' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'advertencia' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td class=\"w-8rem font-medium\">{{bean.codigo}}</td>\n <td>\n {{bean.unicaLinea}}</td>\n <td>\n {{bean.mensajeErrores}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </div>\n\n <div *ngIf=\"panelImportar =='DETALLEGRUPO'\">\n <div *ngIf=\"!isMotor()\">\n <h5>{{'grupo' | translate}}: {{grupo.codigo}}</h5>\n <p-accordion *ngIf=\"!isMotor()\">\n <p-accordionTab [selected]=\"true\">\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'linea' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n \n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorCampos\" responsiveLaoyout=\"scroll\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"numeroLinea\" groupRowsBy=\"numeroLinea\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorCampos.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'campo' | translate}}</th>\n <th>{{'archivo' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\"> {{'linea' | translate}}:\n {{bean.numeroLinea}}</span>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.campoAtributo}}</td>\n <td>{{bean.cadena}}</td>\n <td>{{bean.tipoDato | fuentePipe : 'listaTipoDato'}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n <p-accordionTab *ngIf=\"paginadorParametros?.length > 0\" >\n <ng-template pTemplate=\"header\"><i class=\"glyphicons glyphicons-book\"></i>{{'servicio' | translate}} </ng-template>\n <ng-template pTemplate=\"content\">\n\n <p-table responsiveLayout=\"scroll\" [value]=\"paginadorParametros\" responsiveLaoyout=\"scroll\" \n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n rowGroupMode=\"subheader\" dataKey=\"llaveunica\" groupRowsBy=\"llaveunica\" expandableRowGroups=\"true\"\n *ngIf=\"paginadorParametros.length > 0\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'parametro' | translate}}s</th>\n <th>{{'valor' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"groupheader\" let-bean let-rowIndex=\"rowIndex\" let-expanded=\"expanded\">\n <tr>\n <td colspan=\"100\">\n <button type=\"button\" pButton pRipple [pRowToggler]=\"bean\"\n class=\"p-element p-ripple p-button-rounded mr-2 mb-2 p-button p-component p-button-desplegable p-button-icon-only\"\n [icon]=\"expanded ? 'pi pi-chevron-down' : 'pi pi-chevron-right'\"></button>\n \n <span class=\"font-bold ml-2\" style=\"line-height: 40px;\">{{bean.llaveunica}}</span>\n <br/>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"rowexpansion\" let-bean>\n <tr>\n <td>{{bean.campoAtributo}}</td>\n <td>\n <label *ngIf=\"bean.tipoDato == 'L' || bean.tipoDato == 'T'\">{{bean.cadena}}</label>\n <label *ngIf=\"bean.tipoDato == 'D' || bean.tipoDato == 'N'\">{{bean.numero}}</label>\n <label *ngIf=\"bean.tipoDato == 'F'\">{{bean.cadena | date : ('formatofecha' | translate) }}</label>\n </td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n </ng-template>\n </p-accordionTab>\n </p-accordion>\n </div>\n <div *ngIf=\"isMotor()\">\n <div class=\"flex justify-content-between align-items-center\">\n <div>\n \n </div>\n \n <div class=\"flex justify-content-end\">\n <div class=\"ml-2 mb-1 mt-2\" *ngIf=\"lineasConMensaje != 0\" >\n <p-checkbox class=\"ml-1\" [(ngModel)]=\"verInconsistencia\" [binary]=\"true\"> </p-checkbox>\n <label style=\"margin: 3px 8px;\"> {{'soloinconsistencias' | translate}}</label>\n </div>\n\n <button pButton pRipple class=\"p-button-secondary font-semibold ml-2 mb-0 mt-0\" icon=\"glyphicons glyphicons-play\"\n *ngIf=\"verBotonEjecutar && procesarDatos && (isImportacion() || isEjecucion())\"\n label=\"{{'link_ejecutar' | translate}}\" (click)=\"ejecutar()\">\n </button>\n <button pButton pRipple class=\"p-button-outlined claro font-semibold ml-2 mb-0 mt-0\" *ngIf=\"procesoDTO.llaveTabla != null\" icon=\"glyphicons glyphicons-bin\" \n label=\"{{'link_eliminar' | translate}}\" (click)=\"cancelarProceso()\">\n </button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file\" (click)=\"tabla2.exportCSV()\"\n class=\"p-button-raised p-button-export border-solid-1 border-color-400 ml-2 w-auto\" pTooltip=\"CSV\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-excel\"\n (click)=\"dataExporter.exportExcelColumnas(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , 'tabla2', columnasExportExcel2)\"\n class=\"p-button-outlined ml-2 background-100 w-auto\" pTooltip=\"XLS\"\n tooltipPosition=\"bottom\"></button>\n <button type=\"button\" pButton pRipple icon=\"pi pi-file-pdf\"\n (click)=\"dataExporter.exportPdf(tabla2.filteredValue == null ? tabla2.value : tabla2.filteredValue , exportColumns2, 'tabla2')\"\n class=\"p-button-outlined ml-2 w-auto\" pTooltip=\"PDF\" tooltipPosition=\"bottom\"></button>\n </div>\n </div>\n <br/>\n <p-table #tablaDatos2 responsiveLayout=\"scroll\" [value]=\"lineasCargadas\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasCargadas.length\" [exportFilename]=\"'tablaDatos'\" [columns]=\"cols2\"\n [paginator]=\"lineasCargadas.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\" !verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n <p-table responsiveLayout=\"scroll\" [value]=\"lineasInconsistencia\" responsiveLaoyout=\"scroll\" [paginator]=\"true\"\n [rows]=\"10\" [totalRecords]=\"lineasInconsistencia.length\"\n [paginator]=\"lineasInconsistencia.length > 10\" [rowsPerPageOptions]=\"[10, 20, 50]\"\n [showCurrentPageReport]=\"true\" [scrollable]=\"true\"\n currentPageReportTemplate=\"{first} al {last} de {totalRecords} registros\"\n *ngIf=\"verInconsistencia\">\n <ng-template pTemplate=\"header\">\n\n <tr class=\"fondoTablaPincipal\">\n <th>{{'numerolinea' | translate}}</th>\n <th>{{'linea' | translate}}</th>\n <th>{{'mensaje' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-bean>\n <tr [pSelectableRow]=\"bean\">\n <td>{{bean.numero}}</td>\n <td>{{bean.linea}}</td>\n <td>{{bean.mensaje}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"100\" class=\"p-3 font-medium emptymessage\">{{'mensajetablavacia' | translate}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"footer\" let-dato >\n <tr>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'resumen' | translate}}: </td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineasinmensaje' | translate}}: {{lineasSinMensaje}}</td>\n <td class=\"font-bold\" *ngIf=\"lineasConMensaje != 0 || lineasSinMensaje != 0\">{{'cantidadlineaconmensaje' | translate}}: {{lineasConMensaje}}</td>\n </tr>\n </ng-template>\n </p-table>\n \n </div>\n </div>\n \n \n</div>\n</div>\n", styles: ["#btn-cargar-popup .p-fileupload .p-button{background:#fff;box-shadow:none;width:auto;color:var(--color-400);padding:.85rem .1rem;border-radius:0 5px 5px 0;margin-left:-3px;border-right:solid 1px var(--color-100)}\n"] }]
|
|
9993
10002
|
}], ctorParameters: () => [{ type: GeneralService }, { type: DataExporter }, { type: AuthService }, { type: FuentePipe }, { type: CargueLineaService }, { type: ToastService }, { type: i7.ConfirmationService }, { type: MenuService$1 }, { type: GeneralPipe }, { type: UtilsService }, { type: ParametrosNavegacionService }, { type: i7$1.TranslateService }], propDecorators: { regresarFuente: [{
|
|
9994
10003
|
type: Output
|
|
9995
10004
|
}], formulario: [{
|