general-library-union 3.3.3 → 3.3.4
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/.browserslistrc +15 -0
- package/.editorconfig +16 -0
- package/.vscode/extensions.json +4 -0
- package/.vscode/launch.json +20 -0
- package/.vscode/tasks.json +42 -0
- package/angular.json +143 -0
- package/karma.conf.js +44 -0
- package/ng-package.json +21 -0
- package/package.json +73 -62
- package/{public-api.d.ts → public-api.ts} +206 -164
- package/src/app/app.component.html +12 -0
- package/src/app/app.component.scss +0 -0
- package/src/app/app.component.spec.ts +29 -0
- package/src/app/app.component.ts +34 -0
- package/src/app/app.config.ts +43 -0
- package/src/app/app.module.ts +10 -0
- package/src/app/app.routes.ts +88 -0
- package/src/app/core/componentes/breadcrumb/breadcrumb.component.html +6 -0
- package/src/app/core/componentes/breadcrumb/breadcrumb.component.scss +0 -0
- package/src/app/core/componentes/breadcrumb/breadcrumb.component.ts +39 -0
- package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.html +1 -0
- package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.scss +0 -0
- package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.ts +31 -0
- package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.html +9 -0
- package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.scss +28 -0
- package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.ts +32 -0
- package/src/app/core/componentes/filtro-general/filtro-general.component.html +36 -0
- package/src/app/core/componentes/filtro-general/filtro-general.component.scss +3 -0
- package/src/app/core/componentes/filtro-general/filtro-general.component.ts +218 -0
- package/src/app/core/componentes/footer/footer.component.html +13 -0
- package/src/app/core/componentes/footer/footer.component.scss +3 -0
- package/src/app/core/componentes/footer/footer.component.ts +20 -0
- package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.html +267 -0
- package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.scss +21 -0
- package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.ts +278 -0
- package/src/app/core/componentes/formulariodinamico/objetosformulario/{Cambio.d.ts → Cambio.ts} +13 -7
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.ts +118 -0
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.ts +76 -0
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.ts +67 -0
- package/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.ts +11 -0
- package/src/app/core/componentes/inicio-component/inicio-component.component.html +29 -0
- package/src/app/core/componentes/inicio-component/inicio-component.component.scss +63 -0
- package/src/app/core/componentes/inicio-component/inicio-component.component.ts +68 -0
- package/src/app/core/componentes/menu/menu.component.html +13 -0
- package/src/app/core/componentes/menu/menu.component.scss +36 -0
- package/src/app/core/componentes/menu/menu.component.ts +35 -0
- package/src/app/core/componentes/tabla-general/tabla-general.component.html +90 -0
- package/src/app/core/componentes/tabla-general/tabla-general.component.scss +0 -0
- package/src/app/core/componentes/tabla-general/tabla-general.component.ts +96 -0
- package/src/app/core/core.module.ts +22 -0
- package/src/app/core/errores/authentication.error.ts +6 -0
- package/src/app/core/modelos/error-response.model.ts +9 -0
- package/src/app/core/modelos/table-column.model.ts +10 -0
- package/src/app/core/modelos/user.model.ts +6 -0
- package/src/app/core/plantilla-general/plantilla-general.template.html +139 -0
- package/src/app/core/plantilla-general/plantilla-general.template.scss +37 -0
- package/src/app/core/plantilla-general/plantilla-general.template.ts +233 -0
- package/src/app/core/servicios/auth.service.ts +189 -0
- package/src/app/core/servicios/cargar-control-funcionalidad.service.ts +48 -0
- package/src/app/core/servicios/click-posicion.service.ts +16 -0
- package/src/app/core/servicios/data-exporter-table.utils.ts +78 -0
- package/src/app/core/servicios/error-interceptor.service.ts +208 -0
- package/src/app/core/servicios/guardias/auth.guard.ts +51 -0
- package/src/app/core/servicios/guardias/publico.guard.ts +26 -0
- package/src/app/core/servicios/interceptores/loading-interceptor.ts +37 -0
- package/src/app/core/servicios/interceptores/token-interceptor.service.ts +177 -0
- package/src/app/core/servicios/loading.service.ts +48 -0
- package/src/app/core/servicios/menu.service.ts +153 -0
- package/src/app/core/servicios/spinner-service.ts +18 -0
- package/src/app/core/servicios/storage.service.ts +68 -0
- package/src/app/core/servicios/template.service.ts +91 -0
- package/src/app/core/servicios/toast.service.ts +114 -0
- package/src/app/core/servicios/utils.service.ts +393 -0
- package/src/app/core/sharedlib.module.ts +11 -0
- package/src/app/core/utilidades/color.util.ts +197 -0
- package/src/app/layout/api/{menuchangeevent.d.ts → menuchangeevent.ts} +4 -4
- package/src/app/layout/app.breadcrumb.component.html +20 -0
- package/src/app/layout/app.breadcrumb.component.ts +78 -0
- package/src/app/layout/app.footer.component.html +18 -0
- package/src/app/layout/app.footer.component.ts +15 -0
- package/src/app/layout/app.layout.component.html +20 -0
- package/src/app/layout/app.layout.component.ts +201 -0
- package/src/app/layout/app.layout.module.ts +9 -0
- package/src/app/layout/app.menu.component.html +6 -0
- package/src/app/layout/app.menu.component.ts +51 -0
- package/src/app/layout/app.menu.service.ts +23 -0
- package/src/app/layout/app.menuitem.component.ts +252 -0
- package/src/app/layout/app.menuprofile.component.html +35 -0
- package/src/app/layout/app.menuprofile.component.ts +60 -0
- package/src/app/layout/app.rightmenu.component.html +72 -0
- package/src/app/layout/app.rightmenu.component.ts +24 -0
- package/src/app/layout/app.sidebar.component.html +40 -0
- package/src/app/layout/app.sidebar.component.ts +81 -0
- package/src/app/layout/app.topbar.component.html +195 -0
- package/src/app/layout/app.topbar.component.ts +343 -0
- package/src/app/layout/config/app.config.component.html +125 -0
- package/src/app/layout/config/app.config.component.ts +206 -0
- package/src/app/layout/config/app.config.module.ts +11 -0
- package/src/app/layout/service/app.layout.service.ts +191 -0
- package/src/app/publico/pages/login/login.page.html +53 -0
- package/src/app/publico/pages/login/login.page.scss +210 -0
- package/src/app/publico/pages/login/login.page.ts +130 -0
- package/src/app/publico/pages/not-found/not-found.page.html +36 -0
- package/src/app/publico/pages/not-found/not-found.page.scss +2 -0
- package/src/app/publico/pages/not-found/not-found.page.ts +46 -0
- package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.html +58 -0
- package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.scss +46 -0
- package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.ts +176 -0
- package/src/app/publico/pages/timeout/timeout.page.html +24 -0
- package/src/app/publico/pages/timeout/timeout.page.scss +2 -0
- package/src/app/publico/pages/timeout/timeout.page.ts +18 -0
- package/src/app/seguridad/constantes/ConstantesGenerales.ts +30 -0
- package/src/app/seguridad/constantes/ReporteEntradaConstantes.ts +18 -0
- package/src/app/seguridad/constantes/ReporteFuenteConstantes.ts +13 -0
- package/src/app/seguridad/modelos/AplicacionModel.ts +11 -0
- package/src/app/seguridad/modelos/ArchivoPortalModel.ts +16 -0
- package/src/app/seguridad/modelos/AtributoPuntoModel.ts +9 -0
- package/src/app/seguridad/modelos/AtributoSSOportalModel.ts +22 -0
- package/src/app/seguridad/modelos/{AuditoriaArchivoModel.d.ts → AuditoriaArchivoModel.ts} +13 -10
- package/src/app/seguridad/modelos/CargueLineaModel.ts +17 -0
- package/src/app/seguridad/modelos/ColoresRGB.ts +17 -0
- package/src/app/seguridad/modelos/ColumnaFuenteModel.ts +9 -0
- package/src/app/seguridad/modelos/{ColumnaWraperModel.d.ts → ColumnaWraperModel.ts} +7 -6
- package/src/app/seguridad/modelos/ComplementoModel.ts +10 -0
- package/src/app/seguridad/modelos/ComponentePaginaModel.ts +22 -0
- package/src/app/seguridad/modelos/ConexionModel.ts +15 -0
- package/src/app/seguridad/modelos/{ContenidoHtmlPortalModel.d.ts → ContenidoHtmlPortalModel.ts} +25 -20
- package/src/app/seguridad/modelos/ControlFuncionModel.ts +10 -0
- package/src/app/seguridad/modelos/CorreoModel.ts +45 -0
- package/src/app/seguridad/modelos/{CorreoOrgEmpModModel.d.ts → CorreoOrgEmpModModel.ts} +11 -8
- package/src/app/seguridad/modelos/CorreoWSModel.ts +49 -0
- package/src/app/seguridad/modelos/CruceRecursoPuntoModel.ts +14 -0
- package/src/app/seguridad/modelos/{DatoInicioModel.d.ts → DatoInicioModel.ts} +7 -6
- package/src/app/seguridad/modelos/{EjecucionReporteDataModel.d.ts → EjecucionReporteDataModel.ts} +21 -20
- package/src/app/seguridad/modelos/EmpresaModel.ts +25 -0
- package/src/app/seguridad/modelos/EmpresaSeguridadModel.ts +19 -0
- package/src/app/seguridad/modelos/{EntradaComplementoModel.d.ts → EntradaComplementoModel.ts} +9 -6
- package/src/app/seguridad/modelos/EtiquetaModel.ts +4 -0
- package/src/app/seguridad/modelos/Etiquetas.ts +14 -0
- package/src/app/seguridad/modelos/{ForeingWraperModel.d.ts → ForeingWraperModel.ts} +9 -6
- package/src/app/seguridad/modelos/FuenteCampoAtributoModel.ts +21 -0
- package/src/app/seguridad/modelos/{FuenteCampoModel.d.ts → FuenteCampoModel.ts} +20 -16
- package/src/app/seguridad/modelos/FuenteDato.ts +19 -0
- package/src/app/seguridad/modelos/FuenteEntradaModel.ts +9 -0
- package/src/app/seguridad/modelos/{FuenteGeneralModel.d.ts → FuenteGeneralModel.ts} +55 -36
- package/src/app/seguridad/modelos/FuenteLineaServicioModel.ts +19 -0
- package/src/app/seguridad/modelos/FuenteProcesoGeneralModel.ts +14 -0
- package/src/app/seguridad/modelos/{FuenteServicioModel.d.ts → FuenteServicioModel.ts} +61 -47
- package/src/app/seguridad/modelos/FuncionalidadModel.ts +12 -0
- package/src/app/seguridad/modelos/GeneralModel.ts +16 -0
- package/src/app/seguridad/modelos/{GrupoAccesoModel.d.ts → GrupoAccesoModel.ts} +9 -6
- package/src/app/seguridad/modelos/GrupoControlFuncionModel.ts +12 -0
- package/src/app/seguridad/modelos/GrupoFuenteModel.ts +17 -0
- package/src/app/seguridad/modelos/GrupoPermisoModel.ts +16 -0
- package/src/app/seguridad/modelos/{JoinFromModel.d.ts → JoinFromModel.ts} +4 -4
- package/src/app/seguridad/modelos/ListaServicioModel.ts +18 -0
- package/src/app/seguridad/modelos/LlaveForaneaModel.ts +6 -0
- package/src/app/seguridad/modelos/LoginModel.ts +19 -0
- package/src/app/seguridad/modelos/MensajeSistemaModel.ts +10 -0
- package/src/app/seguridad/modelos/{MenuPortalModel.d.ts → MenuPortalModel.ts} +5 -4
- package/src/app/seguridad/modelos/ModulosModel.ts +17 -0
- package/src/app/seguridad/modelos/{ObjetoReporteModel.d.ts → ObjetoReporteModel.ts} +6 -5
- package/src/app/seguridad/modelos/PaginaPortalModel.ts +23 -0
- package/src/app/seguridad/modelos/ParametroComponenteModel.ts +9 -0
- package/src/app/seguridad/modelos/ParametrosGeneralModel.ts +16 -0
- package/src/app/seguridad/modelos/PermisoFuncionModel.ts +11 -0
- package/src/app/seguridad/modelos/PermisocontenidoModel.ts +20 -0
- package/src/app/seguridad/modelos/{PeticionModel.d.ts → PeticionModel.ts} +20 -15
- package/src/app/seguridad/modelos/PreguntaSeguridadModel.ts +9 -0
- package/src/app/seguridad/modelos/PropiedadModel.ts +12 -0
- package/src/app/seguridad/modelos/PublicacionWebModel.ts +29 -0
- package/src/app/seguridad/modelos/PuntoProcesoModel.ts +7 -0
- package/src/app/seguridad/modelos/RecursoPunto.ts +13 -0
- package/src/app/seguridad/modelos/RecursoPuntoModel.ts +13 -0
- package/src/app/seguridad/modelos/ReporteBanda.ts +9 -0
- package/src/app/seguridad/modelos/ReporteColumna.ts +33 -0
- package/src/app/seguridad/modelos/ReporteColumnario.ts +82 -0
- package/src/app/seguridad/modelos/ReporteColumnarioMarcador.ts +31 -0
- package/src/app/seguridad/modelos/{ReporteEntradaModel.d.ts → ReporteEntradaModel.ts} +21 -19
- package/src/app/seguridad/modelos/{ReporteFuenteModel.d.ts → ReporteFuenteModel.ts} +141 -87
- package/src/app/seguridad/modelos/ReporteMarcador.ts +40 -0
- package/src/app/seguridad/modelos/ReporteSoporte.ts +10 -0
- package/src/app/seguridad/modelos/ReporteTabla.ts +14 -0
- package/src/app/seguridad/modelos/RespuestaModel.ts +9 -0
- package/src/app/seguridad/modelos/{RolModel.d.ts → RolModel.ts} +41 -37
- package/src/app/seguridad/modelos/ServidorCorreoModel.ts +31 -0
- package/src/app/seguridad/modelos/SistemaMensajeModel.ts +11 -0
- package/src/app/seguridad/modelos/SitioPortalModel.ts +29 -0
- package/src/app/seguridad/modelos/TablaFromModel.ts +5 -0
- package/src/app/seguridad/modelos/TareasModel.ts +54 -0
- package/src/app/seguridad/modelos/TextoModel.ts +11 -0
- package/src/app/seguridad/modelos/TipoEtiqueta.ts +8 -0
- package/src/app/seguridad/modelos/UnionModel.ts +14 -0
- package/src/app/seguridad/modelos/{UsuarioModel.d.ts → UsuarioModel.ts} +60 -49
- package/src/app/seguridad/modelos/UsuariogrupoModel.ts +27 -0
- package/src/app/seguridad/modelos/aplicacion-propiedad-model.ts +16 -0
- package/src/app/seguridad/modelos/contenidoCorreoModel.ts +13 -0
- package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.html +47 -0
- package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.scss +8 -0
- package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.ts +144 -0
- package/src/app/shared/servicios/cargar-archivos.service.ts +51 -0
- package/src/app/shared/servicios/cargar-mapas.service.ts +43 -0
- package/src/app/shared/servicios/encriptado-basico.service.ts +54 -0
- package/src/app/shared/servicios/encriptador-simetrico.service.ts +29 -0
- package/src/app/shared/servicios/general.service.ts +124 -0
- package/src/app/shared/servicios/parametros-navegacion.service.ts +20 -0
- package/src/app/shared/servicios/plantillas.service.ts +22 -0
- package/src/app/shared/servicios/tarea.service.ts +71 -0
- package/src/app/shared/utilidades/translate-loader.util.ts +44 -0
- package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.html +175 -0
- package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.scss +78 -0
- package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.ts +438 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.html +87 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.scss +0 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.ts +189 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.html +117 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.scss +0 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.ts +87 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.html +158 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.scss +6 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.ts +345 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.html +131 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.scss +0 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.ts +198 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.html +206 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.scss +3 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.ts +328 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.html +2121 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.scss +241 -0
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.ts +1698 -0
- package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.html +33 -0
- package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.scss +0 -0
- package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.ts +96 -0
- package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.html +54 -0
- package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.scss +0 -0
- package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.ts +111 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.html +394 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.scss +10 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.ts +610 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.html +130 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.scss +0 -0
- package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.ts +172 -0
- package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.html +404 -0
- package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.scss +5 -0
- package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.ts +763 -0
- package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.html +145 -0
- package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.scss +0 -0
- package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.ts +302 -0
- package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.html +19 -0
- package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.scss +0 -0
- package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.ts +88 -0
- package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.html +714 -0
- package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.scss +0 -0
- package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.ts +688 -0
- package/src/app/webcommon/pipes/dashboard.pipe.ts +79 -0
- package/src/app/webcommon/pipes/fuente.pipe.ts +207 -0
- package/src/app/webcommon/pipes/general.pipe.ts +1046 -0
- package/src/app/webcommon/pipes/reporte-columnario.pipe.ts +101 -0
- package/src/app/webcommon/pipes/reporte-fuente.pipe.ts +306 -0
- package/src/app/webcommon/pipes/sara-general.pipe.ts +289 -0
- package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.html +90 -0
- package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.scss +0 -0
- package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.ts +262 -0
- package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.html +50 -0
- package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.scss +0 -0
- package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.ts +135 -0
- package/src/app/webcommon/popups/popup-editor-formula/popup-editor-formula.component.html +44 -0
- package/src/app/webcommon/popups/popup-editor-formula/popup-editor-formula.component.scss +0 -0
- package/src/app/webcommon/popups/popup-editor-formula/popup-editor-formula.component.ts +66 -0
- package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.html +41 -0
- package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.scss +0 -0
- package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.ts +283 -0
- package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.html +179 -0
- package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.scss +3 -0
- package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.ts +266 -0
- package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.html +273 -0
- package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.scss +13 -0
- package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.ts +564 -0
- package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.html +10 -0
- package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.scss +5 -0
- package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.ts +58 -0
- package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.html +71 -0
- package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.scss +0 -0
- package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.ts +154 -0
- package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.html +11 -0
- package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.scss +0 -0
- package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.ts +82 -0
- package/src/app/webcommon/services/carguelinea.service.ts +74 -0
- package/src/app/webcommon/services/dashboard.service.ts +258 -0
- package/src/app/webcommon/services/ejecucionreporte.service.ts +160 -0
- package/src/app/webcommon/services/fechaUtils.service.ts +133 -0
- package/src/app/webcommon/services/fuentegeneral.service.ts +74 -0
- package/src/app/webcommon/services/homologacion.service.ts +49 -0
- package/src/app/webcommon/services/plantillas.service.ts +165 -0
- package/src/app/webcommon/services/reportes.service.ts +133 -0
- package/src/app/webcommon/webcommon.module.ts +11 -0
- package/src/environments/environment.prod.ts +3 -0
- package/src/environments/environment.ts +25 -0
- package/src/favicon.ico +0 -0
- package/src/index.html +14 -0
- package/src/main.ts +12 -0
- package/src/polyfills.ts +53 -0
- package/src/test.ts +14 -0
- package/tsconfig.app.json +15 -0
- package/tsconfig.json +35 -0
- package/tsconfig.spec.json +18 -0
- package/esm2022/general-library-union.mjs +0 -5
- package/esm2022/public-api.mjs +0 -183
- package/esm2022/src/app/core/componentes/breadcrumb/breadcrumb.component.mjs +0 -40
- package/esm2022/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.mjs +0 -28
- package/esm2022/src/app/core/componentes/filtro-general/filtro-general.component.mjs +0 -214
- package/esm2022/src/app/core/componentes/footer/footer.component.mjs +0 -16
- package/esm2022/src/app/core/componentes/formulariodinamico/formulariodinamico.component.mjs +0 -276
- package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/Cambio.mjs +0 -11
- package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.mjs +0 -124
- package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.mjs +0 -73
- package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.mjs +0 -59
- package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.mjs +0 -21
- package/esm2022/src/app/core/componentes/inicio-component/inicio-component.component.mjs +0 -70
- package/esm2022/src/app/core/componentes/menu/menu.component.mjs +0 -37
- package/esm2022/src/app/core/componentes/tabla-general/tabla-general.component.mjs +0 -93
- package/esm2022/src/app/core/core.module.mjs +0 -23
- package/esm2022/src/app/core/errores/authentication.error.mjs +0 -7
- package/esm2022/src/app/core/modelos/error-response.model.mjs +0 -2
- package/esm2022/src/app/core/modelos/table-column.model.mjs +0 -2
- package/esm2022/src/app/core/modelos/user.model.mjs +0 -7
- package/esm2022/src/app/core/plantilla-general/plantilla-general.template.mjs +0 -230
- package/esm2022/src/app/core/servicios/auth.service.mjs +0 -185
- package/esm2022/src/app/core/servicios/cargar-control-funcionalidad.service.mjs +0 -54
- package/esm2022/src/app/core/servicios/click-posicion.service.mjs +0 -20
- package/esm2022/src/app/core/servicios/data-exporter-table.utils.mjs +0 -64
- package/esm2022/src/app/core/servicios/error-interceptor.service.mjs +0 -214
- package/esm2022/src/app/core/servicios/guardias/auth.guard.mjs +0 -66
- package/esm2022/src/app/core/servicios/guardias/publico.guard.mjs +0 -35
- package/esm2022/src/app/core/servicios/interceptores/loading-interceptor.mjs +0 -37
- package/esm2022/src/app/core/servicios/interceptores/token-interceptor.service.mjs +0 -180
- package/esm2022/src/app/core/servicios/loading.service.mjs +0 -43
- package/esm2022/src/app/core/servicios/menu.service.mjs +0 -146
- package/esm2022/src/app/core/servicios/spinner-service.mjs +0 -22
- package/esm2022/src/app/core/servicios/storage.service.mjs +0 -68
- package/esm2022/src/app/core/servicios/template.service.mjs +0 -99
- package/esm2022/src/app/core/servicios/toast.service.mjs +0 -120
- package/esm2022/src/app/core/servicios/utils.service.mjs +0 -360
- package/esm2022/src/app/core/sharedlib.module.mjs +0 -16
- package/esm2022/src/app/core/utilidades/color.util.mjs +0 -177
- package/esm2022/src/app/layout/api/menuchangeevent.mjs +0 -2
- package/esm2022/src/app/layout/app.breadcrumb.component.mjs +0 -71
- package/esm2022/src/app/layout/app.footer.component.mjs +0 -18
- package/esm2022/src/app/layout/app.layout.component.mjs +0 -188
- package/esm2022/src/app/layout/app.layout.module.mjs +0 -15
- package/esm2022/src/app/layout/app.menu.component.mjs +0 -51
- package/esm2022/src/app/layout/app.menu.service.mjs +0 -24
- package/esm2022/src/app/layout/app.menuitem.component.mjs +0 -296
- package/esm2022/src/app/layout/app.menuprofile.component.mjs +0 -78
- package/esm2022/src/app/layout/app.rightmenu.component.mjs +0 -24
- package/esm2022/src/app/layout/app.sidebar.component.mjs +0 -92
- package/esm2022/src/app/layout/app.topbar.component.mjs +0 -351
- package/esm2022/src/app/layout/service/app.layout.service.mjs +0 -134
- package/esm2022/src/app/publico/pages/login/login.page.mjs +0 -132
- package/esm2022/src/app/publico/pages/not-found/not-found.page.mjs +0 -51
- package/esm2022/src/app/publico/pages/seleccion-rol/seleccion-rol.component.mjs +0 -167
- package/esm2022/src/app/publico/pages/timeout/timeout.page.mjs +0 -20
- package/esm2022/src/app/seguridad/constantes/ConstantesGenerales.mjs +0 -30
- package/esm2022/src/app/seguridad/constantes/ReporteEntradaConstantes.mjs +0 -19
- package/esm2022/src/app/seguridad/modelos/AplicacionModel.mjs +0 -8
- package/esm2022/src/app/seguridad/modelos/ArchivoPortalModel.mjs +0 -14
- package/esm2022/src/app/seguridad/modelos/AtributoPuntoModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/AtributoSSOportalModel.mjs +0 -17
- package/esm2022/src/app/seguridad/modelos/AuditoriaArchivoModel.mjs +0 -11
- package/esm2022/src/app/seguridad/modelos/CargueLineaModel.mjs +0 -13
- package/esm2022/src/app/seguridad/modelos/ColoresRGB.mjs +0 -18
- package/esm2022/src/app/seguridad/modelos/ColumnaFuenteModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/ColumnaWraperModel.mjs +0 -6
- package/esm2022/src/app/seguridad/modelos/ComplementoModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/ComponentePaginaModel.mjs +0 -21
- package/esm2022/src/app/seguridad/modelos/ConexionModel.mjs +0 -14
- package/esm2022/src/app/seguridad/modelos/ContenidoHtmlPortalModel.mjs +0 -21
- package/esm2022/src/app/seguridad/modelos/ControlFuncionModel.mjs +0 -8
- package/esm2022/src/app/seguridad/modelos/CorreoModel.mjs +0 -35
- package/esm2022/src/app/seguridad/modelos/CorreoOrgEmpModModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/CorreoWSModel.mjs +0 -37
- package/esm2022/src/app/seguridad/modelos/CruceRecursoPuntoModel.mjs +0 -14
- package/esm2022/src/app/seguridad/modelos/DatoInicioModel.mjs +0 -6
- package/esm2022/src/app/seguridad/modelos/EjecucionReporteDataModel.mjs +0 -14
- package/esm2022/src/app/seguridad/modelos/EmpresaModel.mjs +0 -25
- package/esm2022/src/app/seguridad/modelos/EmpresaSeguridadModel.mjs +0 -19
- package/esm2022/src/app/seguridad/modelos/EntradaComplementoModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/EtiquetaModel.mjs +0 -5
- package/esm2022/src/app/seguridad/modelos/Etiquetas.mjs +0 -12
- package/esm2022/src/app/seguridad/modelos/ForeingWraperModel.mjs +0 -6
- package/esm2022/src/app/seguridad/modelos/FuenteCampoAtributoModel.mjs +0 -16
- package/esm2022/src/app/seguridad/modelos/FuenteCampoModel.mjs +0 -17
- package/esm2022/src/app/seguridad/modelos/FuenteDato.mjs +0 -19
- package/esm2022/src/app/seguridad/modelos/FuenteEntradaModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/FuenteGeneralModel.mjs +0 -37
- package/esm2022/src/app/seguridad/modelos/FuenteLineaServicioModel.mjs +0 -16
- package/esm2022/src/app/seguridad/modelos/FuenteProcesoGeneralModel.mjs +0 -11
- package/esm2022/src/app/seguridad/modelos/FuenteServicioModel.mjs +0 -51
- package/esm2022/src/app/seguridad/modelos/FuncionalidadModel.mjs +0 -10
- package/esm2022/src/app/seguridad/modelos/GeneralModel.mjs +0 -15
- package/esm2022/src/app/seguridad/modelos/GrupoAccesoModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/GrupoControlFuncionModel.mjs +0 -10
- package/esm2022/src/app/seguridad/modelos/GrupoFuenteModel.mjs +0 -13
- package/esm2022/src/app/seguridad/modelos/GrupoPermisoModel.mjs +0 -14
- package/esm2022/src/app/seguridad/modelos/JoinFromModel.mjs +0 -5
- package/esm2022/src/app/seguridad/modelos/ListaServicioModel.mjs +0 -17
- package/esm2022/src/app/seguridad/modelos/LlaveForaneaModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/LoginModel.mjs +0 -15
- package/esm2022/src/app/seguridad/modelos/MensajeSistemaModel.mjs +0 -8
- package/esm2022/src/app/seguridad/modelos/MenuPortalModel.mjs +0 -5
- package/esm2022/src/app/seguridad/modelos/ModulosModel.mjs +0 -18
- package/esm2022/src/app/seguridad/modelos/ObjetoReporteModel.mjs +0 -6
- package/esm2022/src/app/seguridad/modelos/PaginaPortalModel.mjs +0 -20
- package/esm2022/src/app/seguridad/modelos/ParametroComponenteModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/ParametrosGeneralModel.mjs +0 -15
- package/esm2022/src/app/seguridad/modelos/PermisoFuncionModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/PermisocontenidoModel.mjs +0 -20
- package/esm2022/src/app/seguridad/modelos/PeticionModel.mjs +0 -16
- package/esm2022/src/app/seguridad/modelos/PreguntaSeguridadModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/PropiedadModel.mjs +0 -10
- package/esm2022/src/app/seguridad/modelos/PublicacionWebModel.mjs +0 -27
- package/esm2022/src/app/seguridad/modelos/PuntoProcesoModel.mjs +0 -7
- package/esm2022/src/app/seguridad/modelos/RecursoPunto.mjs +0 -13
- package/esm2022/src/app/seguridad/modelos/RecursoPuntoModel.mjs +0 -13
- package/esm2022/src/app/seguridad/modelos/ReporteBanda.mjs +0 -8
- package/esm2022/src/app/seguridad/modelos/ReporteColumna.mjs +0 -33
- package/esm2022/src/app/seguridad/modelos/ReporteColumnario.mjs +0 -69
- package/esm2022/src/app/seguridad/modelos/ReporteColumnarioMarcador.mjs +0 -24
- package/esm2022/src/app/seguridad/modelos/ReporteEntradaModel.mjs +0 -20
- package/esm2022/src/app/seguridad/modelos/ReporteFuenteModel.mjs +0 -124
- package/esm2022/src/app/seguridad/modelos/ReporteMarcador.mjs +0 -40
- package/esm2022/src/app/seguridad/modelos/ReporteSoporte.mjs +0 -10
- package/esm2022/src/app/seguridad/modelos/ReporteTabla.mjs +0 -13
- package/esm2022/src/app/seguridad/modelos/RespuestaModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/RolModel.mjs +0 -39
- package/esm2022/src/app/seguridad/modelos/ServidorCorreoModel.mjs +0 -28
- package/esm2022/src/app/seguridad/modelos/SistemaMensajeModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/SitioPortalModel.mjs +0 -25
- package/esm2022/src/app/seguridad/modelos/TablaFromModel.mjs +0 -5
- package/esm2022/src/app/seguridad/modelos/TareasModel.mjs +0 -55
- package/esm2022/src/app/seguridad/modelos/TextoModel.mjs +0 -9
- package/esm2022/src/app/seguridad/modelos/TipoEtiqueta.mjs +0 -8
- package/esm2022/src/app/seguridad/modelos/UnionModel.mjs +0 -12
- package/esm2022/src/app/seguridad/modelos/UsuarioModel.mjs +0 -53
- package/esm2022/src/app/seguridad/modelos/UsuariogrupoModel.mjs +0 -24
- package/esm2022/src/app/seguridad/modelos/aplicacion-propiedad-model.mjs +0 -15
- package/esm2022/src/app/seguridad/modelos/contenidoCorreoModel.mjs +0 -10
- package/esm2022/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.mjs +0 -154
- package/esm2022/src/app/shared/servicios/cargar-archivos.service.mjs +0 -54
- package/esm2022/src/app/shared/servicios/cargar-mapas.service.mjs +0 -46
- package/esm2022/src/app/shared/servicios/encriptado-basico.service.mjs +0 -53
- package/esm2022/src/app/shared/servicios/general.service.mjs +0 -104
- package/esm2022/src/app/shared/servicios/parametros-navegacion.service.mjs +0 -21
- package/esm2022/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.mjs +0 -378
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.mjs +0 -187
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.mjs +0 -85
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.mjs +0 -347
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.mjs +0 -206
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.mjs +0 -327
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.mjs +0 -1590
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.mjs +0 -105
- package/esm2022/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.mjs +0 -114
- package/esm2022/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.mjs +0 -597
- package/esm2022/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.mjs +0 -177
- package/esm2022/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.mjs +0 -769
- package/esm2022/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.mjs +0 -331
- package/esm2022/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.mjs +0 -95
- package/esm2022/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.mjs +0 -675
- package/esm2022/src/app/webcommon/pipes/dashboard.pipe.mjs +0 -86
- package/esm2022/src/app/webcommon/pipes/fuente.pipe.mjs +0 -201
- package/esm2022/src/app/webcommon/pipes/general.pipe.mjs +0 -918
- package/esm2022/src/app/webcommon/pipes/reporte-columnario.pipe.mjs +0 -115
- package/esm2022/src/app/webcommon/pipes/reporte-fuente.pipe.mjs +0 -301
- package/esm2022/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.mjs +0 -267
- package/esm2022/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.mjs +0 -128
- package/esm2022/src/app/webcommon/popups/popup-editor-formula/popup-editor-formula.component.mjs +0 -73
- package/esm2022/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.mjs +0 -293
- package/esm2022/src/app/webcommon/popups/popup-recurso/popup-recurso.component.mjs +0 -269
- package/esm2022/src/app/webcommon/popups/popup-reporte/popup-reporte.component.mjs +0 -563
- package/esm2022/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.mjs +0 -64
- package/esm2022/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.mjs +0 -162
- package/esm2022/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.mjs +0 -89
- package/esm2022/src/app/webcommon/services/carguelinea.service.mjs +0 -69
- package/esm2022/src/app/webcommon/services/dashboard.service.mjs +0 -253
- package/esm2022/src/app/webcommon/services/ejecucionreporte.service.mjs +0 -114
- package/esm2022/src/app/webcommon/services/fechaUtils.service.mjs +0 -102
- package/esm2022/src/app/webcommon/services/fuentegeneral.service.mjs +0 -68
- package/esm2022/src/app/webcommon/services/homologacion.service.mjs +0 -50
- package/esm2022/src/app/webcommon/services/plantillas.service.mjs +0 -129
- package/esm2022/src/app/webcommon/services/reportes.service.mjs +0 -95
- package/esm2022/src/app/webcommon/webcommon.module.mjs +0 -15
- package/esm2022/src/environments/environment.mjs +0 -24
- package/fesm2022/general-library-union.mjs +0 -16136
- package/fesm2022/general-library-union.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/src/app/core/componentes/breadcrumb/breadcrumb.component.d.ts +0 -18
- package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.d.ts +0 -14
- package/src/app/core/componentes/filtro-general/filtro-general.component.d.ts +0 -36
- package/src/app/core/componentes/footer/footer.component.d.ts +0 -9
- package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.d.ts +0 -50
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.d.ts +0 -44
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.d.ts +0 -45
- package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.d.ts +0 -33
- package/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.d.ts +0 -9
- package/src/app/core/componentes/inicio-component/inicio-component.component.d.ts +0 -26
- package/src/app/core/componentes/menu/menu.component.d.ts +0 -16
- package/src/app/core/componentes/tabla-general/tabla-general.component.d.ts +0 -32
- package/src/app/core/core.module.d.ts +0 -8
- package/src/app/core/errores/authentication.error.d.ts +0 -3
- package/src/app/core/modelos/error-response.model.d.ts +0 -9
- package/src/app/core/modelos/table-column.model.d.ts +0 -12
- package/src/app/core/modelos/user.model.d.ts +0 -6
- package/src/app/core/plantilla-general/plantilla-general.template.d.ts +0 -89
- package/src/app/core/servicios/auth.service.d.ts +0 -52
- package/src/app/core/servicios/cargar-control-funcionalidad.service.d.ts +0 -19
- package/src/app/core/servicios/click-posicion.service.d.ts +0 -11
- package/src/app/core/servicios/data-exporter-table.utils.d.ts +0 -11
- package/src/app/core/servicios/error-interceptor.service.d.ts +0 -41
- package/src/app/core/servicios/guardias/auth.guard.d.ts +0 -17
- package/src/app/core/servicios/guardias/publico.guard.d.ts +0 -13
- package/src/app/core/servicios/interceptores/loading-interceptor.d.ts +0 -11
- package/src/app/core/servicios/interceptores/token-interceptor.service.d.ts +0 -26
- package/src/app/core/servicios/loading.service.d.ts +0 -22
- package/src/app/core/servicios/menu.service.d.ts +0 -35
- package/src/app/core/servicios/spinner-service.d.ts +0 -9
- package/src/app/core/servicios/storage.service.d.ts +0 -37
- package/src/app/core/servicios/template.service.d.ts +0 -20
- package/src/app/core/servicios/toast.service.d.ts +0 -48
- package/src/app/core/servicios/utils.service.d.ts +0 -46
- package/src/app/core/sharedlib.module.d.ts +0 -6
- package/src/app/core/utilidades/color.util.d.ts +0 -70
- package/src/app/layout/app.breadcrumb.component.d.ts +0 -28
- package/src/app/layout/app.footer.component.d.ts +0 -8
- package/src/app/layout/app.layout.component.d.ts +0 -39
- package/src/app/layout/app.layout.module.d.ts +0 -6
- package/src/app/layout/app.menu.component.d.ts +0 -19
- package/src/app/layout/app.menu.service.d.ts +0 -12
- package/src/app/layout/app.menuitem.component.d.ts +0 -41
- package/src/app/layout/app.menuprofile.component.d.ts +0 -18
- package/src/app/layout/app.rightmenu.component.d.ts +0 -10
- package/src/app/layout/app.sidebar.component.d.ts +0 -34
- package/src/app/layout/app.topbar.component.d.ts +0 -82
- package/src/app/layout/service/app.layout.service.d.ts +0 -57
- package/src/app/publico/pages/login/login.page.d.ts +0 -40
- package/src/app/publico/pages/not-found/not-found.page.d.ts +0 -17
- package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.d.ts +0 -41
- package/src/app/publico/pages/timeout/timeout.page.d.ts +0 -10
- package/src/app/seguridad/constantes/ConstantesGenerales.d.ts +0 -25
- package/src/app/seguridad/constantes/ReporteEntradaConstantes.d.ts +0 -7
- package/src/app/seguridad/modelos/AplicacionModel.d.ts +0 -7
- package/src/app/seguridad/modelos/ArchivoPortalModel.d.ts +0 -13
- package/src/app/seguridad/modelos/AtributoPuntoModel.d.ts +0 -8
- package/src/app/seguridad/modelos/AtributoSSOportalModel.d.ts +0 -16
- package/src/app/seguridad/modelos/CargueLineaModel.d.ts +0 -12
- package/src/app/seguridad/modelos/ColoresRGB.d.ts +0 -17
- package/src/app/seguridad/modelos/ColumnaFuenteModel.d.ts +0 -8
- package/src/app/seguridad/modelos/ComplementoModel.d.ts +0 -6
- package/src/app/seguridad/modelos/ComponentePaginaModel.d.ts +0 -20
- package/src/app/seguridad/modelos/ConexionModel.d.ts +0 -13
- package/src/app/seguridad/modelos/ControlFuncionModel.d.ts +0 -7
- package/src/app/seguridad/modelos/CorreoModel.d.ts +0 -31
- package/src/app/seguridad/modelos/CorreoWSModel.d.ts +0 -33
- package/src/app/seguridad/modelos/CruceRecursoPuntoModel.d.ts +0 -13
- package/src/app/seguridad/modelos/EmpresaModel.d.ts +0 -23
- package/src/app/seguridad/modelos/EmpresaSeguridadModel.d.ts +0 -18
- package/src/app/seguridad/modelos/EtiquetaModel.d.ts +0 -4
- package/src/app/seguridad/modelos/Etiquetas.d.ts +0 -10
- package/src/app/seguridad/modelos/FuenteCampoAtributoModel.d.ts +0 -15
- package/src/app/seguridad/modelos/FuenteDato.d.ts +0 -18
- package/src/app/seguridad/modelos/FuenteEntradaModel.d.ts +0 -8
- package/src/app/seguridad/modelos/FuenteLineaServicioModel.d.ts +0 -16
- package/src/app/seguridad/modelos/FuenteProcesoGeneralModel.d.ts +0 -10
- package/src/app/seguridad/modelos/FuncionalidadModel.d.ts +0 -8
- package/src/app/seguridad/modelos/GeneralModel.d.ts +0 -8
- package/src/app/seguridad/modelos/GrupoControlFuncionModel.d.ts +0 -9
- package/src/app/seguridad/modelos/GrupoFuenteModel.d.ts +0 -13
- package/src/app/seguridad/modelos/GrupoPermisoModel.d.ts +0 -13
- package/src/app/seguridad/modelos/ListaServicioModel.d.ts +0 -16
- package/src/app/seguridad/modelos/LlaveForaneaModel.d.ts +0 -6
- package/src/app/seguridad/modelos/LoginModel.d.ts +0 -17
- package/src/app/seguridad/modelos/MensajeSistemaModel.d.ts +0 -7
- package/src/app/seguridad/modelos/ModulosModel.d.ts +0 -14
- package/src/app/seguridad/modelos/PaginaPortalModel.d.ts +0 -19
- package/src/app/seguridad/modelos/ParametroComponenteModel.d.ts +0 -8
- package/src/app/seguridad/modelos/ParametrosGeneralModel.d.ts +0 -8
- package/src/app/seguridad/modelos/PermisoFuncionModel.d.ts +0 -8
- package/src/app/seguridad/modelos/PermisocontenidoModel.d.ts +0 -18
- package/src/app/seguridad/modelos/PreguntaSeguridadModel.d.ts +0 -6
- package/src/app/seguridad/modelos/PropiedadModel.d.ts +0 -9
- package/src/app/seguridad/modelos/PublicacionWebModel.d.ts +0 -25
- package/src/app/seguridad/modelos/PuntoProcesoModel.d.ts +0 -6
- package/src/app/seguridad/modelos/RecursoPunto.d.ts +0 -12
- package/src/app/seguridad/modelos/RecursoPuntoModel.d.ts +0 -12
- package/src/app/seguridad/modelos/ReporteBanda.d.ts +0 -7
- package/src/app/seguridad/modelos/ReporteColumna.d.ts +0 -32
- package/src/app/seguridad/modelos/ReporteColumnario.d.ts +0 -68
- package/src/app/seguridad/modelos/ReporteColumnarioMarcador.d.ts +0 -23
- package/src/app/seguridad/modelos/ReporteMarcador.d.ts +0 -39
- package/src/app/seguridad/modelos/ReporteSoporte.d.ts +0 -9
- package/src/app/seguridad/modelos/ReporteTabla.d.ts +0 -12
- package/src/app/seguridad/modelos/RespuestaModel.d.ts +0 -8
- package/src/app/seguridad/modelos/ServidorCorreoModel.d.ts +0 -25
- package/src/app/seguridad/modelos/SistemaMensajeModel.d.ts +0 -8
- package/src/app/seguridad/modelos/SitioPortalModel.d.ts +0 -24
- package/src/app/seguridad/modelos/TablaFromModel.d.ts +0 -4
- package/src/app/seguridad/modelos/TareasModel.d.ts +0 -50
- package/src/app/seguridad/modelos/TextoModel.d.ts +0 -8
- package/src/app/seguridad/modelos/TipoEtiqueta.d.ts +0 -7
- package/src/app/seguridad/modelos/UnionModel.d.ts +0 -11
- package/src/app/seguridad/modelos/UsuariogrupoModel.d.ts +0 -22
- package/src/app/seguridad/modelos/aplicacion-propiedad-model.d.ts +0 -13
- package/src/app/seguridad/modelos/contenidoCorreoModel.d.ts +0 -9
- package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.d.ts +0 -47
- package/src/app/shared/servicios/cargar-archivos.service.d.ts +0 -15
- package/src/app/shared/servicios/cargar-mapas.service.d.ts +0 -18
- package/src/app/shared/servicios/encriptado-basico.service.d.ts +0 -10
- package/src/app/shared/servicios/general.service.d.ts +0 -24
- package/src/app/shared/servicios/parametros-navegacion.service.d.ts +0 -9
- package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.d.ts +0 -79
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.d.ts +0 -79
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.d.ts +0 -29
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.d.ts +0 -69
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.d.ts +0 -51
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.d.ts +0 -77
- package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.d.ts +0 -279
- package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.d.ts +0 -42
- package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.d.ts +0 -35
- package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.d.ts +0 -146
- package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.d.ts +0 -49
- package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.d.ts +0 -132
- package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.d.ts +0 -64
- package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.d.ts +0 -33
- package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.d.ts +0 -149
- package/src/app/webcommon/pipes/dashboard.pipe.d.ts +0 -48
- package/src/app/webcommon/pipes/fuente.pipe.d.ts +0 -136
- package/src/app/webcommon/pipes/general.pipe.d.ts +0 -647
- package/src/app/webcommon/pipes/reporte-columnario.pipe.d.ts +0 -59
- package/src/app/webcommon/pipes/reporte-fuente.pipe.d.ts +0 -193
- package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.d.ts +0 -59
- package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.d.ts +0 -27
- package/src/app/webcommon/popups/popup-editor-formula/popup-editor-formula.component.d.ts +0 -21
- package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.d.ts +0 -64
- package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.d.ts +0 -63
- package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.d.ts +0 -105
- package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.d.ts +0 -21
- package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.d.ts +0 -42
- package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.d.ts +0 -30
- package/src/app/webcommon/services/carguelinea.service.d.ts +0 -19
- package/src/app/webcommon/services/dashboard.service.d.ts +0 -27
- package/src/app/webcommon/services/ejecucionreporte.service.d.ts +0 -34
- package/src/app/webcommon/services/fechaUtils.service.d.ts +0 -31
- package/src/app/webcommon/services/fuentegeneral.service.d.ts +0 -24
- package/src/app/webcommon/services/homologacion.service.d.ts +0 -17
- package/src/app/webcommon/services/plantillas.service.d.ts +0 -26
- package/src/app/webcommon/services/reportes.service.d.ts +0 -35
- package/src/app/webcommon/webcommon.module.d.ts +0 -6
- package/src/environments/environment.d.ts +0 -7
|
@@ -0,0 +1,1698 @@
|
|
|
1
|
+
import { Component, OnInit, Input, OnDestroy, ElementRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { FormBuilder, FormControl, FormGroup, FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
3
|
+
import { GeneralPipe } from '../../../pipes/general.pipe';
|
|
4
|
+
import { GeneralService } from '../../../../shared/servicios/general.service';
|
|
5
|
+
import { GeneralModel } from '../../../../seguridad/modelos/GeneralModel';
|
|
6
|
+
import { CargarArchivosService } from '../../../../shared/servicios/cargar-archivos.service';
|
|
7
|
+
import { EncriptadoBasicoService } from '../../../../shared/servicios/encriptado-basico.service';
|
|
8
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
9
|
+
import { Subscription } from 'rxjs';
|
|
10
|
+
|
|
11
|
+
import { ReporteFuentePipe } from '../../../pipes/reporte-fuente.pipe';
|
|
12
|
+
import { EjecucionReporteService } from '../../../services/ejecucionreporte.service';
|
|
13
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
14
|
+
import { FuentePipe } from '../../../pipes/fuente.pipe';
|
|
15
|
+
import { ReporteColumnarioPipe } from '../../../pipes/reporte-columnario.pipe';
|
|
16
|
+
import { ReporteColumnaModel } from '../../../../seguridad/modelos/ReporteColumna';
|
|
17
|
+
import { ReporteMarcadorModel } from '../../../../seguridad/modelos/ReporteMarcador';
|
|
18
|
+
import { ReporteTablaModel } from '../../../../seguridad/modelos/ReporteTabla';
|
|
19
|
+
import { ReporteColumnarioModel } from '../../../../seguridad/modelos/ReporteColumnario';
|
|
20
|
+
import { ReporteFuenteModel } from '../../../../seguridad/modelos/ReporteFuenteModel';
|
|
21
|
+
import { ReporteColumnarioMarcadorModel } from '../../../../seguridad/modelos/ReporteColumnarioMarcador';
|
|
22
|
+
import { ReporteBandaModel } from '../../../../seguridad/modelos/ReporteBanda';
|
|
23
|
+
import { ReporteSoporteModel } from '../../../../seguridad/modelos/ReporteSoporte';
|
|
24
|
+
import { ToastService } from '../../../../core/servicios/toast.service';
|
|
25
|
+
import { UtilsService } from '../../../../core/servicios/utils.service';
|
|
26
|
+
import { AuthService } from '../../../../core/servicios/auth.service';
|
|
27
|
+
import { TableModule } from 'primeng/table';
|
|
28
|
+
import { TabViewModule } from 'primeng/tabview';
|
|
29
|
+
import { InputHelperSeleccionPlantillaComponent } from '../../../../shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component';
|
|
30
|
+
import { DropdownModule } from 'primeng/dropdown';
|
|
31
|
+
import { CommonModule } from '@angular/common';
|
|
32
|
+
import { ButtonModule } from 'primeng/button';
|
|
33
|
+
import { PickListModule } from 'primeng/picklist';
|
|
34
|
+
import { FieldsetModule } from 'primeng/fieldset';
|
|
35
|
+
import { AccordionModule } from 'primeng/accordion';
|
|
36
|
+
import { InputTextModule } from 'primeng/inputtext';
|
|
37
|
+
import { InputTextareaModule } from 'primeng/inputtextarea';
|
|
38
|
+
import { FloatLabelModule } from 'primeng/floatlabel';
|
|
39
|
+
import { InputNumberModule } from 'primeng/inputnumber';
|
|
40
|
+
import { DashboardService } from '../../../services/dashboard.service';
|
|
41
|
+
import { ChartModule } from 'primeng/chart';
|
|
42
|
+
import { DashboardPipe } from '../../../pipes/dashboard.pipe';
|
|
43
|
+
import { ColorPickerModule } from 'primeng/colorpicker';
|
|
44
|
+
|
|
45
|
+
@Component({
|
|
46
|
+
selector: 'detalle-tipo-reporte',
|
|
47
|
+
imports: [TranslateModule, TableModule, TabViewModule, InputHelperSeleccionPlantillaComponent, ReporteColumnarioPipe, ReporteFuentePipe, DropdownModule, FormsModule, ReactiveFormsModule, CommonModule, ButtonModule, PickListModule, FieldsetModule, AccordionModule, InputTextModule, InputTextareaModule, FloatLabelModule, InputNumberModule, FieldsetModule, ChartModule, ColorPickerModule],
|
|
48
|
+
standalone: true,
|
|
49
|
+
providers: [MessageService],
|
|
50
|
+
templateUrl: './detalle-tipo-reporte.component.html',
|
|
51
|
+
styleUrls: ['./detalle-tipo-reporte.component.scss']
|
|
52
|
+
})
|
|
53
|
+
export class DetalleTipoReporteComponent implements OnInit, OnDestroy {
|
|
54
|
+
|
|
55
|
+
public listaTipoCifrado: any[] = [];
|
|
56
|
+
//tab excel
|
|
57
|
+
public listaExcel: ReporteColumnaModel[] = [];
|
|
58
|
+
public listaNoExcel: ReporteColumnaModel[] = [];
|
|
59
|
+
public listaMarcadorExcel: ReporteMarcadorModel[] = [];
|
|
60
|
+
public reporteMarcadorExcel: ReporteMarcadorModel = new ReporteMarcadorModel;
|
|
61
|
+
public formMarcadorExcel: FormGroup;
|
|
62
|
+
public verNuevoMarcadorExcel: boolean = false;
|
|
63
|
+
public esMarcador: boolean = false;
|
|
64
|
+
public esImagenFija: boolean = false;
|
|
65
|
+
|
|
66
|
+
//tab plantillas
|
|
67
|
+
public listaColumnas: any[] = [];
|
|
68
|
+
public listaMarcadores: ReporteMarcadorModel[] = [];
|
|
69
|
+
public listaTipoMarcador;
|
|
70
|
+
public listaTipoGrafico_JFC;
|
|
71
|
+
public listaGrafico;
|
|
72
|
+
public listaGraficoSencillo;
|
|
73
|
+
public listaAlineacion;
|
|
74
|
+
public listaOperaciones;
|
|
75
|
+
public reporteMarcador: ReporteMarcadorModel = new ReporteMarcadorModel;
|
|
76
|
+
public formMarcador: FormGroup;
|
|
77
|
+
public origenMarcador: string = null;
|
|
78
|
+
public verNuevoMarcador: boolean = false;
|
|
79
|
+
public listaCamposMarcador: ReporteTablaModel[] = [];
|
|
80
|
+
public campoMarcadorInsertar: ReporteTablaModel = new ReporteTablaModel;
|
|
81
|
+
public listaSoportes: ReporteSoporteModel[] = [];
|
|
82
|
+
public soporteIngresar: ReporteSoporteModel = new ReporteSoporteModel;
|
|
83
|
+
public clickGuardarMarcadorCampo: boolean = false
|
|
84
|
+
public clickGuardarMarcadorExcel: boolean = false;
|
|
85
|
+
public verReporteMarcadorDetalle: boolean = false;
|
|
86
|
+
public verSoporteArchivoDetalle: boolean = false;
|
|
87
|
+
public clickGuardarSoporteArchivo: boolean = false;
|
|
88
|
+
public habilitaCampo: boolean = false;
|
|
89
|
+
|
|
90
|
+
public bloquearCampoMarcador: boolean = false;
|
|
91
|
+
public bloquearSoporte: boolean = false;
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
//reporte dinamico
|
|
95
|
+
public listaTipoBanda = [
|
|
96
|
+
{key: 'banda1', value: 'Banda 1'},
|
|
97
|
+
{key: 'banda2', value: 'Banda 2'},
|
|
98
|
+
{key: 'banda3', value: 'Banda 3'},
|
|
99
|
+
{key: 'banda4', value: 'Banda 4'},
|
|
100
|
+
{key: 'banda5', value: 'Banda 5'},
|
|
101
|
+
{key: 'detalle', value: 'Detalle'},
|
|
102
|
+
{key: 'summary', value: 'Resumen'},
|
|
103
|
+
]
|
|
104
|
+
public existeJasper: boolean = false;
|
|
105
|
+
public bandaSeleccionada = {key: null, value: null};
|
|
106
|
+
public nuevaBanda: boolean = false;
|
|
107
|
+
public verTabBanda: boolean = false;
|
|
108
|
+
public nuevoReporteMarcadorDinamico: boolean = false;
|
|
109
|
+
public reporteMarcadorDinamico: ReporteMarcadorModel = new ReporteMarcadorModel;
|
|
110
|
+
public reporteBanda: ReporteBandaModel = new ReporteBandaModel;
|
|
111
|
+
public formReporteDinamico: FormGroup;
|
|
112
|
+
public listaMarcadorDinamico: ReporteMarcadorModel[] = []
|
|
113
|
+
public listaTipoCampoJasperDinamico = [
|
|
114
|
+
{key: 'C', value: 'Calculo'},
|
|
115
|
+
{key: 'T', value: 'Columna'},
|
|
116
|
+
]
|
|
117
|
+
public listaTipoDatoSintaxis = [
|
|
118
|
+
{key: 'F', value: 'Fecha'},
|
|
119
|
+
{key: 'N', value: 'Numero'},
|
|
120
|
+
{key: 'T', value: 'Texto'},
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
//reporte tabla
|
|
124
|
+
public listaTabla: ReporteColumnaModel[] = [];
|
|
125
|
+
public listaNoTabla: ReporteColumnaModel[] = [];
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
//reporte texto
|
|
129
|
+
public listaSeparadores;
|
|
130
|
+
public clickGuardarReporteTexto: boolean = false;
|
|
131
|
+
public listaMarcadoresTexto: ReporteMarcadorModel[] = [];
|
|
132
|
+
public marcadorTexto: ReporteMarcadorModel = new ReporteMarcadorModel()
|
|
133
|
+
public verNuevoMarcadorTexto: boolean = false;
|
|
134
|
+
public listaTipoMarcadorTexto;
|
|
135
|
+
public clickGuardarMarcadorTexto: boolean = false
|
|
136
|
+
|
|
137
|
+
//reporte XML
|
|
138
|
+
public listaTipoMarcadorXML;
|
|
139
|
+
public listaXML: ReporteMarcadorModel[] = []
|
|
140
|
+
public marcadorXML: ReporteMarcadorModel = new ReporteMarcadorModel
|
|
141
|
+
public clickGuardarMarcadorXML: boolean = false;
|
|
142
|
+
public verNuevoMarcadorXML: boolean = false;
|
|
143
|
+
public listaCamposMarcadorXML: ReporteTablaModel[] = [];
|
|
144
|
+
public campoMarcadorInsertarXML: ReporteTablaModel = new ReporteTablaModel;
|
|
145
|
+
public verReporteMarcadorDetalleXML: boolean = false;
|
|
146
|
+
public clickGuardarMarcadorCampoXML: boolean = false;
|
|
147
|
+
|
|
148
|
+
//reporte columnario
|
|
149
|
+
public listaReporteColumnario: ReporteColumnarioModel[] = [];
|
|
150
|
+
public verNuevoReporteColumnario: boolean = false;
|
|
151
|
+
public columnaBasica: ReporteColumnarioModel;
|
|
152
|
+
public clickGuardarReporteColumnario: boolean = false;
|
|
153
|
+
public listaTipoColumnas;
|
|
154
|
+
public listaOperacionesColumnario;
|
|
155
|
+
public listaOperacionesExcelColumnario;
|
|
156
|
+
public listaOrdenamiento;
|
|
157
|
+
|
|
158
|
+
public verNuevoColumnaAdicional: boolean = false;
|
|
159
|
+
public clickGuardarColumnaAdicional: boolean = false;
|
|
160
|
+
public columnasAdicionales: ReporteColumnarioModel[] = [];
|
|
161
|
+
public columnaAdicional: ReporteColumnarioModel;
|
|
162
|
+
|
|
163
|
+
public listaTipoMarcadorColumnario;
|
|
164
|
+
public verNuevoMarcadorColumnario: boolean = false;
|
|
165
|
+
public clickGuardarMarcadorColumnario: boolean = false;
|
|
166
|
+
public marcadoresColumnario: ReporteColumnarioMarcadorModel[] = [];
|
|
167
|
+
public marcadorColumnario: ReporteColumnarioMarcadorModel;
|
|
168
|
+
|
|
169
|
+
//grafica
|
|
170
|
+
public listaTipoGrafico;
|
|
171
|
+
public paginadorColumnas: ReporteColumnaModel[] = [];
|
|
172
|
+
public paginadorColoresGrafica: ReporteBandaModel[] = [];
|
|
173
|
+
public colorCategoria: ReporteBandaModel = new ReporteBandaModel();
|
|
174
|
+
public verColorCategoriaDetalle: boolean = false;
|
|
175
|
+
public clickGuardarColorCategoria: boolean = false;
|
|
176
|
+
public grafica;
|
|
177
|
+
public tipoGrafica: "bar" | "line" | "scatter" | "bubble" | "pie" | "doughnut" | "polarArea" | "radar";
|
|
178
|
+
@ViewChild('divGrafica') divGrafica!: ElementRef;
|
|
179
|
+
|
|
180
|
+
public reporteFuente : ReporteFuenteModel = new ReporteFuenteModel();
|
|
181
|
+
public llaveEmpresa: string;
|
|
182
|
+
public listaSiNo;
|
|
183
|
+
@Input() public llaveReporte : string;
|
|
184
|
+
@Input() public aplicacion : string;
|
|
185
|
+
@Input() public listaFuentes: any[] = [];
|
|
186
|
+
|
|
187
|
+
_subsciprtions: Subscription[] = [];
|
|
188
|
+
|
|
189
|
+
constructor(private formBuilder: FormBuilder,
|
|
190
|
+
private notificacionesBusService: ToastService,
|
|
191
|
+
private generalService: GeneralService,
|
|
192
|
+
private generalPipe: GeneralPipe,
|
|
193
|
+
private authService: AuthService,
|
|
194
|
+
private reporteFuentePipe: ReporteFuentePipe,
|
|
195
|
+
private confirmationService: ConfirmationService,
|
|
196
|
+
private cargarArchivo: CargarArchivosService,
|
|
197
|
+
private encriptadorArchivo: EncriptadoBasicoService,
|
|
198
|
+
public utilsService: UtilsService,
|
|
199
|
+
private translateService: TranslateService,
|
|
200
|
+
private fuentePipe: FuentePipe,
|
|
201
|
+
private reporteColumnarioPipe: ReporteColumnarioPipe,
|
|
202
|
+
private reporteService: EjecucionReporteService,
|
|
203
|
+
private dashboardService: DashboardService,
|
|
204
|
+
private dashboardPipe: DashboardPipe,) {
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
ngOnInit(): void {
|
|
208
|
+
this.aplicacion = this.authService.getTokenKey('aplicacion')
|
|
209
|
+
this.llaveEmpresa = this.authService.getTokenKey('llaveEmpresa');
|
|
210
|
+
this.listaSiNo = this.generalPipe.LISTA_SINO;
|
|
211
|
+
this.listaTipoMarcadorColumnario = this.reporteColumnarioPipe.MAPA_TIPO_MARCADOR;
|
|
212
|
+
this.listaTipoColumnas = this.reporteColumnarioPipe.MAPA_TIPO_COLUMNAS;
|
|
213
|
+
this.listaOperacionesColumnario = this.reporteColumnarioPipe.MAPA_OPERACIONES_COLUMNARIO;
|
|
214
|
+
this.listaOperacionesExcelColumnario = this.reporteColumnarioPipe.MAPA_OPERACIONES_COLUMNARIO_EXCEL;
|
|
215
|
+
this.listaOrdenamiento = this.reporteColumnarioPipe.MAPA_ORDENAMIENTO;
|
|
216
|
+
this.listaSeparadores = this.fuentePipe.LISTA_SEPARADORES;
|
|
217
|
+
this.listaTipoMarcador = this.reporteFuentePipe.LISTA_MARCADORES;
|
|
218
|
+
this.listaTipoGrafico_JFC = this.reporteFuentePipe.LISTA_TIPO_GRAFICO_JFC;
|
|
219
|
+
this.listaGrafico = this.reporteFuentePipe.LISTA_RECURSO_GRAFICA;
|
|
220
|
+
this.listaGraficoSencillo = this.reporteFuentePipe.RECURSO_GRAFICA;
|
|
221
|
+
this.listaAlineacion = this.reporteFuentePipe.LISTA_ALINEACION;
|
|
222
|
+
this.listaOperaciones = this.generalPipe.MAPAOPERACIONES;
|
|
223
|
+
this.listaTipoMarcadorTexto = this.reporteFuentePipe.TIPOMARCADORESTEXTO;
|
|
224
|
+
this.listaTipoMarcadorXML = this.reporteFuentePipe.LISTA_MARCADORES_XML;
|
|
225
|
+
this.listaTipoGrafico = this.reporteFuentePipe.LISTA_TIPO_GRAFICO;
|
|
226
|
+
this.cargar();
|
|
227
|
+
this.cargarFormMarcadorExcel();
|
|
228
|
+
this.cargarFormMarcador();
|
|
229
|
+
this.cargarFormDinamico();
|
|
230
|
+
this.agregarSubscripciones();
|
|
231
|
+
//this.cargarListas();
|
|
232
|
+
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
ngOnDestroy(){
|
|
236
|
+
this._subsciprtions.forEach((sub) => {
|
|
237
|
+
sub.unsubscribe();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
agregarSubscripciones() {
|
|
242
|
+
this._subsciprtions.push(
|
|
243
|
+
this.formMarcadorExcel.get('tipo').valueChanges.subscribe((value) => {
|
|
244
|
+
const textoRegistroControl = this.formMarcadorExcel.get('textoRegistro');
|
|
245
|
+
const origenControl = this.formMarcadorExcel.get('origen');
|
|
246
|
+
if (!value){
|
|
247
|
+
this.esImagenFija = true;
|
|
248
|
+
this.esMarcador = true;
|
|
249
|
+
origenControl.clearValidators();
|
|
250
|
+
textoRegistroControl.clearValidators();
|
|
251
|
+
} else if (['MA'].includes(value)) {
|
|
252
|
+
this.esImagenFija = false;
|
|
253
|
+
this.esMarcador = true;
|
|
254
|
+
textoRegistroControl.setValidators(Validators.required);
|
|
255
|
+
origenControl.clearValidators();
|
|
256
|
+
} else if (['IF'].includes(value)) {
|
|
257
|
+
this.esImagenFija = true;
|
|
258
|
+
this.esMarcador = false;
|
|
259
|
+
origenControl.setValidators(Validators.required);
|
|
260
|
+
textoRegistroControl.setValidators(Validators.required);
|
|
261
|
+
}
|
|
262
|
+
textoRegistroControl.updateValueAndValidity();
|
|
263
|
+
origenControl.updateValueAndValidity();
|
|
264
|
+
})
|
|
265
|
+
);
|
|
266
|
+
|
|
267
|
+
this._subsciprtions.push(
|
|
268
|
+
this.formMarcador.get('tipo').valueChanges.subscribe((value) => {
|
|
269
|
+
console.log('entra a tipo: ')
|
|
270
|
+
console.log(value)
|
|
271
|
+
this.formMarcador.clearValidators();
|
|
272
|
+
this.reporteMarcador.tipo = value;
|
|
273
|
+
if (this.reporteMarcador.tipo == this.reporteFuentePipe.MARCADORTABLA){
|
|
274
|
+
// this.reporteMarcador.tieneSql = 'N'
|
|
275
|
+
// this.formMarcador.get('tieneSql').setValue('N')
|
|
276
|
+
}
|
|
277
|
+
this.formMarcador.updateValueAndValidity();
|
|
278
|
+
})
|
|
279
|
+
);
|
|
280
|
+
|
|
281
|
+
this._subsciprtions.push(
|
|
282
|
+
this.formMarcador.get('origen').valueChanges.subscribe((value) => {
|
|
283
|
+
this.formMarcador.clearValidators();
|
|
284
|
+
this.reporteMarcador.origen = value;
|
|
285
|
+
this.formMarcador.updateValueAndValidity();
|
|
286
|
+
})
|
|
287
|
+
);
|
|
288
|
+
|
|
289
|
+
this._subsciprtions.push(
|
|
290
|
+
this.formMarcador.get('tieneSql').valueChanges.subscribe((value) => {
|
|
291
|
+
console.log('entra a tieneSql: ')
|
|
292
|
+
console.log(value)
|
|
293
|
+
this.formMarcador.clearValidators();
|
|
294
|
+
this.reporteMarcador.tieneSql = value;
|
|
295
|
+
this.formMarcador.updateValueAndValidity();
|
|
296
|
+
})
|
|
297
|
+
);
|
|
298
|
+
|
|
299
|
+
this._subsciprtions.push(
|
|
300
|
+
this.formMarcador.get('tipoGrafico').valueChanges.subscribe((value) => {
|
|
301
|
+
this.formMarcador.clearValidators();
|
|
302
|
+
this.reporteMarcador.tipoGrafico = value;
|
|
303
|
+
this.formMarcador.updateValueAndValidity();
|
|
304
|
+
})
|
|
305
|
+
);
|
|
306
|
+
|
|
307
|
+
this._subsciprtions.push(
|
|
308
|
+
this.formMarcadorExcel.get('origen').valueChanges.subscribe((value) => {
|
|
309
|
+
if (['U'].includes(value)) {
|
|
310
|
+
this.reporteMarcadorExcel.origen = 'U'
|
|
311
|
+
} else if (['C'].includes(value)) {
|
|
312
|
+
this.reporteMarcadorExcel.origen = 'C'
|
|
313
|
+
}
|
|
314
|
+
})
|
|
315
|
+
);
|
|
316
|
+
|
|
317
|
+
this._subsciprtions.push(
|
|
318
|
+
this.formReporteDinamico.get('tipoCampo').valueChanges.subscribe((value) => {
|
|
319
|
+
this.reporteMarcadorDinamico.tipoCampo = value;
|
|
320
|
+
const resultadoXControl = this.formReporteDinamico.get('resultadoX');
|
|
321
|
+
const resultadoYControl = this.formReporteDinamico.get('resultadoY');
|
|
322
|
+
if (this.bandaSeleccionada.key != 'detalle') {
|
|
323
|
+
resultadoXControl.setValidators(Validators.required);
|
|
324
|
+
resultadoYControl.setValidators(Validators.required);
|
|
325
|
+
} else {
|
|
326
|
+
resultadoXControl.clearValidators();
|
|
327
|
+
resultadoYControl.clearValidators();
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
const marcadorControl = this.formReporteDinamico.get('marcador');
|
|
331
|
+
const filtroControl = this.formReporteDinamico.get('filtro');
|
|
332
|
+
const tipoDatoControl = this.formReporteDinamico.get('tipoDato');
|
|
333
|
+
if (this.reporteMarcadorDinamico.tipoCampo == 'T') {
|
|
334
|
+
marcadorControl.setValidators(Validators.required);
|
|
335
|
+
filtroControl.clearValidators();
|
|
336
|
+
tipoDatoControl.clearValidators();
|
|
337
|
+
} else {
|
|
338
|
+
marcadorControl.clearValidators();
|
|
339
|
+
filtroControl.setValidators(Validators.required);
|
|
340
|
+
tipoDatoControl.setValidators(Validators.required);
|
|
341
|
+
}
|
|
342
|
+
marcadorControl.updateValueAndValidity();
|
|
343
|
+
filtroControl.updateValueAndValidity();
|
|
344
|
+
tipoDatoControl.updateValueAndValidity();
|
|
345
|
+
resultadoXControl.updateValueAndValidity();
|
|
346
|
+
resultadoYControl.updateValueAndValidity();
|
|
347
|
+
}),
|
|
348
|
+
this.formReporteDinamico.get('tipoDato').valueChanges.subscribe((value) => {
|
|
349
|
+
this.reporteMarcadorDinamico.tipoDato = value
|
|
350
|
+
})
|
|
351
|
+
);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
cambiarTab(event){
|
|
355
|
+
switch (event.index) {
|
|
356
|
+
case 0:
|
|
357
|
+
this.cargar();
|
|
358
|
+
this.cargarListasExcel();
|
|
359
|
+
break;
|
|
360
|
+
case 1:
|
|
361
|
+
this.cargarListaMarcadores();
|
|
362
|
+
if (this.reporteFuente.unicoArchivo == 'N'){
|
|
363
|
+
this.cargarListaSoportes();
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
case 2:
|
|
367
|
+
this.validarExisteJasper();
|
|
368
|
+
break;
|
|
369
|
+
case 3:
|
|
370
|
+
this.cargarListaMarcadoresTexto();
|
|
371
|
+
break;
|
|
372
|
+
case 4:
|
|
373
|
+
this.cargarListasTabla();
|
|
374
|
+
break;
|
|
375
|
+
case 5:
|
|
376
|
+
this.cargarListaXML();
|
|
377
|
+
break;
|
|
378
|
+
case 6:
|
|
379
|
+
this.cargarReporteColumnario();
|
|
380
|
+
break;
|
|
381
|
+
case 7:
|
|
382
|
+
this.cargarGraficasColumnas();
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
cargarListasTabla(){
|
|
390
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {buscarOrdenTabla: 'S', ordenarTabla: 'S', reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
391
|
+
this.listaTabla = data;
|
|
392
|
+
})
|
|
393
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {buscarOrdenTabla: 'N', reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
394
|
+
this.listaNoTabla = data;
|
|
395
|
+
})
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
cargarListaMarcadores(){
|
|
399
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {tipoReporte: 'P', reporteFuente: this.reporteFuente.llave, ordenDinamico: this.generalPipe.SI})).subscribe(data => {
|
|
400
|
+
this.listaMarcadores = data;
|
|
401
|
+
})
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
cargarListasExcel(){
|
|
405
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {ordenExcel: 'S', reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
406
|
+
this.listaExcel = data;
|
|
407
|
+
})
|
|
408
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {ordenExcel: 'N', reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
409
|
+
this.listaNoExcel = data;
|
|
410
|
+
})
|
|
411
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {tipoReporte: 'E', reporteFuente: this.reporteFuente.llave, ordenDinamico: this.generalPipe.SI})).subscribe(data => {
|
|
412
|
+
this.listaMarcadorExcel = data;
|
|
413
|
+
})
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
cargarListaColumnas(){
|
|
417
|
+
this.listaColumnas = [];
|
|
418
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
419
|
+
this.listaColumnas = data;
|
|
420
|
+
})
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
cargarListas(){
|
|
424
|
+
this.listaTipoCifrado = [];
|
|
425
|
+
this.generalService.queryForList(new GeneralModel('EncripcionArchivoDTO', null, false, {})).subscribe(data => {
|
|
426
|
+
this.listaTipoCifrado = data;
|
|
427
|
+
})
|
|
428
|
+
this.cargarListaColumnas();
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
cargarFormMarcadorExcel(){
|
|
432
|
+
this.formMarcadorExcel = this.formBuilder.group({
|
|
433
|
+
descripcion: new FormControl(this.reporteMarcadorExcel.descripcion, [Validators.required, Validators.maxLength(100)]),
|
|
434
|
+
marcador: new FormControl(this.reporteMarcadorExcel.marcador, [Validators.required, Validators.maxLength(50)]),
|
|
435
|
+
tipo: new FormControl(this.reporteMarcadorExcel.tipo, [Validators.required]),
|
|
436
|
+
textoRegistro: new FormControl(this.reporteMarcadorExcel.textoRegistro),
|
|
437
|
+
origen: new FormControl(this.reporteMarcadorExcel.origen),
|
|
438
|
+
//campos bd
|
|
439
|
+
llave: new FormControl(this.reporteMarcadorExcel.llave),
|
|
440
|
+
reporteFuente: new FormControl(this.reporteFuente.llave),
|
|
441
|
+
tipoReporte: new FormControl('E')
|
|
442
|
+
})
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
cargarFormMarcador(){
|
|
446
|
+
this.formMarcador = this.formBuilder.group({
|
|
447
|
+
descripcion: new FormControl(this.reporteMarcador.descripcion, [Validators.required, Validators.maxLength(100)]),
|
|
448
|
+
tipo: new FormControl(this.reporteMarcador.tipo, [Validators.required]),
|
|
449
|
+
marcador: new FormControl(this.reporteMarcador.marcador, [Validators.maxLength(50)]),
|
|
450
|
+
tabla: new FormControl(this.reporteMarcador.tabla),
|
|
451
|
+
origen: new FormControl(this.reporteMarcador.origen),
|
|
452
|
+
textoRegistro: new FormControl(this.reporteMarcador.textoRegistro),
|
|
453
|
+
reporteColumna: new FormControl(this.reporteMarcador.reporteColumna),
|
|
454
|
+
formato: new FormControl(this.reporteMarcador.formato),
|
|
455
|
+
ancho: new FormControl(this.reporteMarcador.ancho),
|
|
456
|
+
alto: new FormControl(this.reporteMarcador.alto),
|
|
457
|
+
grupo1: new FormControl(this.reporteMarcador.grupo1),
|
|
458
|
+
grupo2: new FormControl(this.reporteMarcador.grupo2),
|
|
459
|
+
grupo3: new FormControl(this.reporteMarcador.grupo3),
|
|
460
|
+
finalGrupo: new FormControl(this.reporteMarcador.finalGrupo),
|
|
461
|
+
tieneSql: new FormControl(this.reporteMarcador.tieneSql),
|
|
462
|
+
query: new FormControl(this.reporteMarcador.query),
|
|
463
|
+
fuente: new FormControl(this.reporteMarcador.fuente),
|
|
464
|
+
tipoGrafico: new FormControl(this.reporteMarcador.tipoGrafico),
|
|
465
|
+
marcadorGrafico: new FormControl(this.reporteMarcador.marcadorGrafico),
|
|
466
|
+
titulox: new FormControl(this.reporteMarcador.titulox),
|
|
467
|
+
tituloy: new FormControl(this.reporteMarcador.tituloy),
|
|
468
|
+
banda: new FormControl(this.reporteMarcador.banda),
|
|
469
|
+
anchoJasperLabel: new FormControl(this.reporteMarcador.anchoJasperLabel),
|
|
470
|
+
filtro: new FormControl(this.reporteMarcador.filtro),
|
|
471
|
+
//campos bd
|
|
472
|
+
llave: new FormControl(this.reporteMarcador.llave),
|
|
473
|
+
reporteFuente: new FormControl(this.reporteFuente.llave),
|
|
474
|
+
tipoReporte: new FormControl('N')
|
|
475
|
+
})
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
cargarFormDinamico(){
|
|
479
|
+
this.formReporteDinamico = this.formBuilder.group({
|
|
480
|
+
tipoCampo: new FormControl(this.reporteMarcadorDinamico.tipoCampo, [Validators.required]),
|
|
481
|
+
tipoDato: new FormControl(this.reporteMarcadorDinamico.tipoDato),
|
|
482
|
+
filtro: new FormControl(this.reporteMarcadorDinamico.filtro),
|
|
483
|
+
marcador: new FormControl(this.reporteMarcadorDinamico.marcador),
|
|
484
|
+
alto: new FormControl(this.reporteMarcadorDinamico.alto, [Validators.required]),
|
|
485
|
+
formato: new FormControl(this.reporteMarcadorDinamico.formato),
|
|
486
|
+
descripcion: new FormControl(this.reporteMarcadorDinamico.descripcion),
|
|
487
|
+
ancho: new FormControl(this.reporteMarcadorDinamico.ancho, [Validators.required]),
|
|
488
|
+
anchoJasperLabel: new FormControl(this.reporteMarcadorDinamico.anchoJasperLabel),
|
|
489
|
+
resultadoX: new FormControl(this.reporteMarcadorDinamico.resultadoX ),
|
|
490
|
+
resultadoY: new FormControl(this.reporteMarcadorDinamico.resultadoY ),
|
|
491
|
+
titulox: new FormControl(this.reporteMarcadorDinamico.titulox),
|
|
492
|
+
tituloy: new FormControl(this.reporteMarcadorDinamico.tituloy),
|
|
493
|
+
tipoReporte: new FormControl(this.reporteMarcadorDinamico.tipoReporte, [Validators.required]),
|
|
494
|
+
tipoGrafico: new FormControl(this.reporteMarcadorDinamico.tipoGrafico),
|
|
495
|
+
operacion: new FormControl(this.reporteMarcadorDinamico.operacion),
|
|
496
|
+
//campos tabla
|
|
497
|
+
origen: new FormControl('D'),
|
|
498
|
+
banda: new FormControl(this.bandaSeleccionada.key),
|
|
499
|
+
reporteFuente: new FormControl(this.reporteFuente.llave),
|
|
500
|
+
llave: new FormControl(this.reporteMarcadorDinamico.llave),
|
|
501
|
+
|
|
502
|
+
})
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
cargar(){
|
|
506
|
+
this.existeJasper = false;
|
|
507
|
+
if (this.llaveReporte){
|
|
508
|
+
this.generalService.queryForObject(new GeneralModel('ReporteFuenteDTO', null, false, {llave: this.llaveReporte})).subscribe(data => {
|
|
509
|
+
this.reporteFuente = data;
|
|
510
|
+
this.cargarListasExcel();
|
|
511
|
+
this.cargarListas();
|
|
512
|
+
})
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
public actualizar(){
|
|
517
|
+
if (this.reporteFuente.llave){
|
|
518
|
+
this.generalService.update(new GeneralModel('ReporteFuenteDTO', null, false, this.reporteFuente)).subscribe(data => {
|
|
519
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
520
|
+
if (this.reporteFuente.unicoArchivo == 'N'){
|
|
521
|
+
}
|
|
522
|
+
});
|
|
523
|
+
} else {
|
|
524
|
+
this.reporteService.guardarReporte(this.reporteFuente).subscribe(data => {
|
|
525
|
+
this.reporteFuente = data;
|
|
526
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
obtenerArchivo(event){
|
|
532
|
+
this.reporteFuente.archivoTodo = event.data
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
obtenerArchivoMarcadorExcel(event){
|
|
536
|
+
this.reporteMarcador.textoRegistro = event.data
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
obtenerArchivoMarcador(event){
|
|
540
|
+
this.reporteMarcador.textoRegistro = event.data
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
obtenerArchivoPlanilla(event){
|
|
544
|
+
this.reporteFuente.archivoIndividual = event.data
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
obtenerArchivoSoporte(event, soporte){
|
|
548
|
+
soporte.archivoIndividual = event.data
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
obtenerArchivoColumnario(event){
|
|
552
|
+
this.reporteFuente.archivoExcelColumnario = event.data
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
moverAAsociado(event){
|
|
557
|
+
this.reporteService.actualizarReporteColumnaOrden({
|
|
558
|
+
listaAsociado: this.listaExcel,
|
|
559
|
+
excel: true
|
|
560
|
+
}).subscribe(data => {this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR_VARIOS)})
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
moverADesasociado(event){
|
|
564
|
+
this.reporteService.actualizarReporteColumnaOrden({
|
|
565
|
+
listaDesasociado: this.listaNoExcel,
|
|
566
|
+
excel: true
|
|
567
|
+
}).subscribe(data => {this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR_VARIOS)})
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
moverAAsociadoTabla(event){
|
|
571
|
+
this.reporteService.actualizarReporteColumnaOrden({
|
|
572
|
+
listaAsociado: this.listaTabla,
|
|
573
|
+
excel: false
|
|
574
|
+
}).subscribe(data => {this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR_VARIOS)})
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
moverADesasociadoTabla(event){
|
|
578
|
+
this.reporteService.actualizarReporteColumnaOrden({
|
|
579
|
+
listaDesasociado: this.listaNoTabla,
|
|
580
|
+
excel: false
|
|
581
|
+
}).subscribe(data => {this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR_VARIOS)})
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
reorderTabla(event){
|
|
585
|
+
this.reporteService.actualizarReporteColumnaOrden({
|
|
586
|
+
listaAsociado: this.listaTabla,
|
|
587
|
+
excel: false
|
|
588
|
+
}).subscribe(data => {this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR_VARIOS)})
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
verDetalleMarcadorExcel(event){
|
|
592
|
+
this.formMarcadorExcel.reset();
|
|
593
|
+
this.verNuevoMarcadorExcel = true;
|
|
594
|
+
this.reporteMarcadorExcel = event.data;
|
|
595
|
+
this.formMarcadorExcel.patchValue(this.reporteMarcadorExcel)
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
nuevoMarcadorExcel(){
|
|
599
|
+
this.formMarcadorExcel.reset();
|
|
600
|
+
this.verNuevoMarcadorExcel = true;
|
|
601
|
+
this.esMarcador = false;
|
|
602
|
+
this.esImagenFija = false;
|
|
603
|
+
this.reporteMarcadorExcel = new ReporteMarcadorModel();
|
|
604
|
+
this.formMarcadorExcel.patchValue(this.reporteMarcadorExcel)
|
|
605
|
+
this.formMarcadorExcel.get('tipo').setValue(null)
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
guardarMarcadorExcel(){
|
|
609
|
+
this.clickGuardarMarcadorExcel = true;
|
|
610
|
+
if (this.formMarcadorExcel.valid){
|
|
611
|
+
let llaveRegistro = this.formMarcadorExcel.get('llave').value
|
|
612
|
+
this.formMarcadorExcel.get('reporteFuente').setValue(this.reporteFuente.llave)
|
|
613
|
+
this.formMarcadorExcel.get('tipoReporte').setValue('E')
|
|
614
|
+
if (llaveRegistro){
|
|
615
|
+
this.generalService.update(new GeneralModel('ReporteMarcadorDTO', null, false, this.formMarcadorExcel.value)).subscribe( data => {
|
|
616
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
617
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {tipoReporte: 'E', reporteFuente: this.reporteFuente.llave, ordenDinamico: this.generalPipe.SI})).subscribe(data => {
|
|
618
|
+
this.listaMarcadorExcel = data;
|
|
619
|
+
})
|
|
620
|
+
})
|
|
621
|
+
} else {
|
|
622
|
+
this.formMarcadorExcel.get('llave').setValue(this.utilsService.generarLlave())
|
|
623
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteMarcadorDTO', null, false, this.formMarcadorExcel.value)).subscribe( data => {
|
|
624
|
+
this.verNuevoMarcadorExcel = false
|
|
625
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
626
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {tipoReporte: 'E', reporteFuente: this.reporteFuente.llave, ordenDinamico: this.generalPipe.SI})).subscribe(data => {
|
|
627
|
+
this.listaMarcadorExcel = data;
|
|
628
|
+
})
|
|
629
|
+
})
|
|
630
|
+
}
|
|
631
|
+
this.clickGuardarMarcadorExcel = false;
|
|
632
|
+
} else {
|
|
633
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
634
|
+
Object.keys(this.formMarcadorExcel.controls).forEach((key) => {
|
|
635
|
+
if (this.formMarcadorExcel.get(key).errors) {
|
|
636
|
+
this.formMarcadorExcel.get(key).markAsDirty();
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
eliminarMarcadorExcel(event){
|
|
643
|
+
this.confirmationService.confirm({
|
|
644
|
+
target: event.target,
|
|
645
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
646
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
647
|
+
header: this.translateService.instant('confirmar'),
|
|
648
|
+
accept: () => {
|
|
649
|
+
this.generalService.delete(new GeneralModel('ReporteMarcadorDTO', null, false, this.reporteMarcadorExcel)).subscribe(data =>{
|
|
650
|
+
this.formMarcadorExcel.reset();
|
|
651
|
+
this.verNuevoMarcadorExcel = false;
|
|
652
|
+
this.reporteMarcadorExcel = new ReporteMarcadorModel();
|
|
653
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR)
|
|
654
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {tipoReporte: 'E', reporteFuente: this.reporteFuente.llave, ordenDinamico: this.generalPipe.SI})).subscribe(data => {
|
|
655
|
+
this.listaMarcadorExcel = data;
|
|
656
|
+
})
|
|
657
|
+
})
|
|
658
|
+
}
|
|
659
|
+
})
|
|
660
|
+
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
//plantilla
|
|
664
|
+
|
|
665
|
+
cargarListaCampoMarcador() {
|
|
666
|
+
this.generalService.queryForList(new GeneralModel('ReporteTablaDTO', null, false, { reporteMarcador: this.reporteMarcador.llave})).subscribe(data => {
|
|
667
|
+
this.listaCamposMarcador = data;
|
|
668
|
+
})
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
async cargarListaCampoMarcadorAsync() {
|
|
672
|
+
this.bloquearCampoMarcador = false;
|
|
673
|
+
this.listaCamposMarcador = await this.generalService.queryForList(new GeneralModel('ReporteTablaDTO', null, false, { reporteMarcador: this.reporteMarcador.llave})).toPromise();
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
verDetalleMarcador(event){
|
|
677
|
+
//this.formMarcador.reset();
|
|
678
|
+
this.verNuevoMarcador = true;
|
|
679
|
+
this.reporteMarcador = event.data;
|
|
680
|
+
this.formMarcador.patchValue(this.reporteMarcador)
|
|
681
|
+
this.formMarcador.get('tipo').setValue(this.reporteMarcador.tipo)
|
|
682
|
+
|
|
683
|
+
this.cargarListaCampoMarcador();
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
nuevoMarcador(){
|
|
687
|
+
//this.formMarcador.reset();
|
|
688
|
+
this.formMarcador.reset({}, { emitEvent: false });
|
|
689
|
+
|
|
690
|
+
this.verNuevoMarcador = true;
|
|
691
|
+
this.reporteMarcador = new ReporteMarcadorModel();
|
|
692
|
+
this.formMarcador.patchValue(this.reporteMarcador)
|
|
693
|
+
this.formMarcador.get('tipoReporte').setValue('P')
|
|
694
|
+
//this.formMarcador.get('tipo').setValue(null)
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
guardarMarcador(){
|
|
698
|
+
if (this.formMarcador.valid){
|
|
699
|
+
let llaveRegistro = this.formMarcador.get('llave').value
|
|
700
|
+
this.formMarcador.get('reporteFuente').setValue(this.reporteFuente.llave)
|
|
701
|
+
//this.formMarcador.get('tipoReporte').setValue('N')
|
|
702
|
+
if (llaveRegistro){
|
|
703
|
+
this.generalService.update(new GeneralModel('ReporteMarcadorDTO', null, false, this.formMarcador.value)).subscribe( data => {
|
|
704
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
705
|
+
this.cargarListaMarcadores();
|
|
706
|
+
if (this.reporteFuente.unicoArchivo == 'N'){
|
|
707
|
+
this.cargarListaSoportes();
|
|
708
|
+
}
|
|
709
|
+
})
|
|
710
|
+
} else {
|
|
711
|
+
this.formMarcador.get('llave').setValue(this.utilsService.generarLlave())
|
|
712
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteMarcadorDTO', null, false, this.formMarcador.value)).subscribe( data => {
|
|
713
|
+
this.verNuevoMarcador = false;
|
|
714
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
715
|
+
this.cargarListaMarcadores();
|
|
716
|
+
if (this.reporteFuente.unicoArchivo == 'N'){
|
|
717
|
+
this.cargarListaSoportes();
|
|
718
|
+
}
|
|
719
|
+
})
|
|
720
|
+
}
|
|
721
|
+
} else {
|
|
722
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
723
|
+
Object.keys(this.formMarcador.controls).forEach((key) => {
|
|
724
|
+
if (this.formMarcador.get(key).errors) {
|
|
725
|
+
this.formMarcador.get(key).markAsDirty();
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
eliminarMarcador(event){
|
|
732
|
+
this.confirmationService.confirm({
|
|
733
|
+
target: event.target,
|
|
734
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
735
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
736
|
+
header: this.translateService.instant('confirmar'),
|
|
737
|
+
accept: () => {
|
|
738
|
+
this.generalService.delete(new GeneralModel('ReporteMarcadorDTO', null, false, this.reporteMarcador)).subscribe(data =>{
|
|
739
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR)
|
|
740
|
+
this.formMarcador.reset();
|
|
741
|
+
this.verNuevoMarcador = false;
|
|
742
|
+
this.reporteMarcador = new ReporteMarcadorModel();
|
|
743
|
+
this.cargarListaMarcadores();
|
|
744
|
+
})
|
|
745
|
+
}
|
|
746
|
+
})
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
eliminarCampoMarcador(event, objeto){
|
|
750
|
+
this.confirmationService.confirm({
|
|
751
|
+
target: event.target,
|
|
752
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
753
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
754
|
+
header: this.translateService.instant('confirmar'),
|
|
755
|
+
accept: () => {
|
|
756
|
+
this.generalService.delete(new GeneralModel('ReporteTablaDTO', null, false, objeto)).subscribe(data => {
|
|
757
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
758
|
+
this.cargarListaCampoMarcador();
|
|
759
|
+
})
|
|
760
|
+
}
|
|
761
|
+
})
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
nuevoCampoTabla(){
|
|
765
|
+
this.verReporteMarcadorDetalle = true;
|
|
766
|
+
this.bloquearCampoMarcador = true;
|
|
767
|
+
this.campoMarcadorInsertar = new ReporteTablaModel();
|
|
768
|
+
this.campoMarcadorInsertar.reporteMarcador = this.reporteMarcador.llave
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
validarCampoMarcador(campoMarcador){
|
|
772
|
+
var validador: boolean = true;
|
|
773
|
+
validador = validador && this.utilsService.validarCampoObligatorio(campoMarcador.columna)
|
|
774
|
+
validador = validador && this.utilsService.validarCampoObligatorio(campoMarcador.campoFuente)
|
|
775
|
+
return validador;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
editarCampoMarcador() {
|
|
779
|
+
this.bloquearCampoMarcador = true;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
agregarCampoMarcador(campoMarcador){
|
|
783
|
+
this.clickGuardarMarcadorCampo = true;
|
|
784
|
+
if (!this.validarCampoMarcador(campoMarcador)){
|
|
785
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
campoMarcador.reporteMarcador = this.reporteMarcador.llave;
|
|
789
|
+
if ('I' == campoMarcador.tipo){
|
|
790
|
+
if (!campoMarcador.ancho || campoMarcador.ancho == 0){
|
|
791
|
+
campoMarcador.ancho = 10;
|
|
792
|
+
}
|
|
793
|
+
if (!campoMarcador.alto || campoMarcador.alto == 0){
|
|
794
|
+
campoMarcador.alto = 10;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
if (['G'].includes(campoMarcador.tipo)){
|
|
798
|
+
campoMarcador.columna = 0;
|
|
799
|
+
}
|
|
800
|
+
if (campoMarcador.llave){
|
|
801
|
+
this.generalService.update(new GeneralModel('ReporteTablaDTO', null, false, campoMarcador)).subscribe(data => {
|
|
802
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
803
|
+
this.clickGuardarMarcadorCampo = false;
|
|
804
|
+
campoMarcador = new ReporteTablaModel;
|
|
805
|
+
this.bloquearCampoMarcador = false;
|
|
806
|
+
this.cargarListaCampoMarcador();
|
|
807
|
+
})
|
|
808
|
+
} else {
|
|
809
|
+
campoMarcador.llave = this.utilsService.generarLlave();
|
|
810
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteTablaDTO', null, false, campoMarcador)).subscribe(data => {
|
|
811
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
812
|
+
this.clickGuardarMarcadorCampo = false;
|
|
813
|
+
campoMarcador = new ReporteTablaModel;
|
|
814
|
+
this.verReporteMarcadorDetalle = false;
|
|
815
|
+
this.campoMarcadorInsertar = new ReporteTablaModel();
|
|
816
|
+
this.bloquearCampoMarcador = false;
|
|
817
|
+
this.cargarListaCampoMarcador();
|
|
818
|
+
})
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
cargarListaSoportes(){
|
|
823
|
+
this.generalService.queryForList(new GeneralModel('ReporteSoporteDTO', null, false, {reporteFuente: this.reporteFuente.llave, tipo: 'S'})).subscribe(data => {
|
|
824
|
+
this.listaSoportes = data;
|
|
825
|
+
})
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
async cargarListaSoportesAsync(){
|
|
829
|
+
this.listaSoportes = await this.generalService.queryForList(new GeneralModel('ReporteSoporteDTO', null, false, {reporteFuente: this.reporteFuente.llave, tipo: 'S'})).toPromise()
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
nuevoSoporte(){
|
|
833
|
+
this.soporteIngresar = new ReporteSoporteModel();
|
|
834
|
+
this.verSoporteArchivoDetalle = true;
|
|
835
|
+
this.habilitaCampo = true;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
cancelarSoporte() {
|
|
839
|
+
this.soporteIngresar = new ReporteSoporteModel();
|
|
840
|
+
this.verSoporteArchivoDetalle = false;
|
|
841
|
+
this.habilitaCampo = false;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
validarSoporte(soporte){
|
|
845
|
+
var validador: boolean = true;
|
|
846
|
+
validador = validador && this.utilsService.validarCampoObligatorio(soporte.descripcion)
|
|
847
|
+
validador = validador && this.utilsService.validarCampoObligatorio(soporte.archivoIndividual)
|
|
848
|
+
return validador;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
agregarSoporte(soporte){
|
|
852
|
+
this.clickGuardarSoporteArchivo = true;
|
|
853
|
+
if (!this.validarSoporte(soporte)){
|
|
854
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
if (!soporte.llaveTabla){
|
|
858
|
+
soporte.tipo = 'S'
|
|
859
|
+
soporte.reporteFuente = this.reporteFuente.llave
|
|
860
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteSoporteDTO', null, false, soporte)).subscribe(data => {
|
|
861
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
862
|
+
soporte = new ReporteSoporteModel;
|
|
863
|
+
this.cargarListaSoportes();
|
|
864
|
+
this.verSoporteArchivoDetalle = false;
|
|
865
|
+
this.clickGuardarSoporteArchivo = false;
|
|
866
|
+
})
|
|
867
|
+
} else {
|
|
868
|
+
this.generalService.update(new GeneralModel('ReporteSoporteDTO', null, false, soporte)).subscribe(data => {
|
|
869
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
870
|
+
this.cargarListaSoportes();
|
|
871
|
+
this.verSoporteArchivoDetalle = false;
|
|
872
|
+
this.clickGuardarSoporteArchivo = false;
|
|
873
|
+
soporte = new ReporteSoporteModel;
|
|
874
|
+
})
|
|
875
|
+
}
|
|
876
|
+
this.habilitaCampo = false;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
eliminarSoporte(event, soporte){
|
|
880
|
+
this.habilitaCampo = true;
|
|
881
|
+
this.confirmationService.confirm({
|
|
882
|
+
target: event.target,
|
|
883
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
884
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
885
|
+
header: this.translateService.instant('confirmar'),
|
|
886
|
+
accept: () => {
|
|
887
|
+
this.generalService.delete(new GeneralModel('ReporteSoporteDTO', null, false, soporte)).subscribe(data => {
|
|
888
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
889
|
+
this.cargarListaSoportes();
|
|
890
|
+
this.habilitaCampo = false;
|
|
891
|
+
})
|
|
892
|
+
}
|
|
893
|
+
})
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
iniciarEdicion() {
|
|
897
|
+
this.habilitaCampo = true;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
async cancelarEdicion() {
|
|
901
|
+
this.cargarListaSoportesAsync();
|
|
902
|
+
this.habilitaCampo = false;
|
|
903
|
+
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
//Reporte Dinamico
|
|
907
|
+
|
|
908
|
+
generarJasper(){
|
|
909
|
+
this.reporteService.generarJasper(this.reporteFuente.llave, 'compensacion/ReportesBase') .subscribe({
|
|
910
|
+
next: (data) => {
|
|
911
|
+
this.notificacionesBusService.showSuccess('Se ha generado el jasper exitosamente')
|
|
912
|
+
this.validarExisteJasper();
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
|
|
918
|
+
descargarJasper() {
|
|
919
|
+
|
|
920
|
+
let propiedad = 'ruta_plantillas';
|
|
921
|
+
//Ruta archivo
|
|
922
|
+
this.aplicacion = this.authService.getTokenKey('aplicacion')
|
|
923
|
+
this.cargarArchivo.descargarArchivo(this.encriptadorArchivo.encriptar('reportes/' + this.reporteFuente.llave + '.jrxml'), propiedad, this.aplicacion).subscribe({
|
|
924
|
+
next: blob => {
|
|
925
|
+
const a = document.createElement('a')
|
|
926
|
+
const objectUrl = URL.createObjectURL(blob)
|
|
927
|
+
a.href = objectUrl
|
|
928
|
+
a.download = this.reporteFuente.llave + '.jrxml' //documento.archivoorigen;
|
|
929
|
+
a.click();
|
|
930
|
+
URL.revokeObjectURL(objectUrl);
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
nuevoMarcadorDinamico(){
|
|
936
|
+
this.reporteMarcadorDinamico = new ReporteMarcadorModel
|
|
937
|
+
this.reporteMarcadorDinamico.origen = 'D'
|
|
938
|
+
this.reporteMarcadorDinamico.reporteFuente = this.reporteFuente.llave
|
|
939
|
+
this.reporteMarcadorDinamico.banda = this.bandaSeleccionada.key
|
|
940
|
+
this.formReporteDinamico.reset();
|
|
941
|
+
this.formReporteDinamico.patchValue(this.reporteMarcadorDinamico)
|
|
942
|
+
this.nuevoReporteMarcadorDinamico = true
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
verMarcadorDinamico(event){
|
|
946
|
+
this.reporteMarcadorDinamico = event.data;
|
|
947
|
+
this.formReporteDinamico.patchValue(this.reporteMarcadorDinamico)
|
|
948
|
+
this.nuevoReporteMarcadorDinamico = true;
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
async verBanda(event){
|
|
952
|
+
this.verTabBanda = false;
|
|
953
|
+
this.bandaSeleccionada = event.data;
|
|
954
|
+
this.reporteMarcadorDinamico = new ReporteMarcadorModel;
|
|
955
|
+
this.nuevoReporteMarcadorDinamico = false;
|
|
956
|
+
this.nuevaBanda = false;
|
|
957
|
+
if (['detalle','summary'].includes(this.bandaSeleccionada.key)){
|
|
958
|
+
await this.cargarListaMarcadorDinamico();
|
|
959
|
+
} else {
|
|
960
|
+
this.reporteBanda = await this.generalService.queryForObject(new GeneralModel('ReporteBandaDTO', null, false, {reporteFuente: this.reporteFuente.llave, banda: this.bandaSeleccionada.key})).toPromise();
|
|
961
|
+
if (!this.reporteBanda) {
|
|
962
|
+
this.nuevaBanda = true;
|
|
963
|
+
if (['detalle','summary'].includes(this.bandaSeleccionada.key)){
|
|
964
|
+
this.nuevaBanda = false;
|
|
965
|
+
}
|
|
966
|
+
this.reporteBanda = new ReporteBandaModel;
|
|
967
|
+
this.reporteBanda.totales = 'S'
|
|
968
|
+
} else {
|
|
969
|
+
await this.cargarListaMarcadorDinamico()
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
await this.sleep(25)
|
|
973
|
+
this.verTabBanda = true;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
async cargarListaMarcadorDinamico(){
|
|
977
|
+
this.listaMarcadorDinamico = await this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {
|
|
978
|
+
reporteFuente: this.reporteFuente.llave,
|
|
979
|
+
banda: this.bandaSeleccionada.key,
|
|
980
|
+
ordenDinamico: 'S',
|
|
981
|
+
origen: 'D'
|
|
982
|
+
})).toPromise();
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
async guardarCaracteristicaBanda(){
|
|
986
|
+
if(this.nuevaBanda) {
|
|
987
|
+
this.reporteBanda.reporteFuente = this.reporteFuente.llave;
|
|
988
|
+
this.reporteBanda.banda = this.bandaSeleccionada.key;
|
|
989
|
+
this.reporteBanda = await this.generalService.crearRegistro(new GeneralModel('ReporteBandaDTO', null, false, this.reporteBanda)).toPromise();
|
|
990
|
+
}else {
|
|
991
|
+
await this.generalService.update(new GeneralModel('ReporteBandaDTO', null, false, this.reporteBanda)).toPromise();
|
|
992
|
+
}
|
|
993
|
+
await this.sleep(25)
|
|
994
|
+
this.nuevaBanda=false;
|
|
995
|
+
this.notificacionesBusService.showInfo("Se actualizaron las caracteristicas de "+this.bandaSeleccionada.value);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
async guardarColumnaDinamico(){
|
|
999
|
+
if (!this.formReporteDinamico.valid) {
|
|
1000
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1001
|
+
Object.keys(this.formReporteDinamico.controls).forEach((key) => {
|
|
1002
|
+
if (this.formReporteDinamico.get(key).errors) {
|
|
1003
|
+
this.formReporteDinamico.get(key).markAsDirty();
|
|
1004
|
+
}
|
|
1005
|
+
});
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
this.reporteMarcadorDinamico = this.formReporteDinamico.value;
|
|
1009
|
+
if(this.utilsService.isBlank(this.reporteMarcadorDinamico.llave)){
|
|
1010
|
+
this.reporteMarcadorDinamico.llave = this.utilsService.generarLlave();
|
|
1011
|
+
this.reporteMarcadorDinamico.origen = 'D';
|
|
1012
|
+
if(this.reporteMarcadorDinamico.tipoCampo == 'C'){
|
|
1013
|
+
this.reporteMarcadorDinamico.marcador = this.reporteMarcadorDinamico.filtro;
|
|
1014
|
+
this.reporteMarcadorDinamico.reporteColumna = null;
|
|
1015
|
+
}else{
|
|
1016
|
+
var columna = new ReporteColumnaModel();
|
|
1017
|
+
columna.llaveTabla = this.reporteMarcadorDinamico.marcador;
|
|
1018
|
+
columna = await this.generalService.queryForObject(new GeneralModel('ReporteColumnaDTO', null, false, columna)).toPromise();
|
|
1019
|
+
|
|
1020
|
+
this.reporteMarcadorDinamico.marcador = columna.nombre;
|
|
1021
|
+
this.reporteMarcadorDinamico.reporteColumna = columna.llaveTabla;
|
|
1022
|
+
this.reporteMarcadorDinamico.filtro = columna.sintaxis;
|
|
1023
|
+
this.reporteMarcadorDinamico.tipoDato = columna.tipoDato;
|
|
1024
|
+
}
|
|
1025
|
+
await this.generalService.crearRegistro(new GeneralModel('ReporteMarcadorDTO', null, false, this.reporteMarcadorDinamico)).toPromise();
|
|
1026
|
+
}else{
|
|
1027
|
+
if(this.reporteMarcadorDinamico.tipoCampo == 'C'){
|
|
1028
|
+
this.reporteMarcadorDinamico.marcador = this.reporteMarcadorDinamico.filtro;
|
|
1029
|
+
}
|
|
1030
|
+
await this.generalService.update(new GeneralModel('ReporteMarcadorDTO', null, false, this.reporteMarcadorDinamico)).toPromise();
|
|
1031
|
+
}
|
|
1032
|
+
this.reporteMarcadorDinamico = null;
|
|
1033
|
+
this.nuevoReporteMarcadorDinamico = false;
|
|
1034
|
+
await this.cargarListaMarcadorDinamico()
|
|
1035
|
+
this.notificacionesBusService.showInfo('Se ha guardado el cambio');
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
regresarBandaSeleccionada(){
|
|
1039
|
+
this.bandaSeleccionada = {key: null, value: null}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
async eliminarColumnaDinamico(event) {
|
|
1043
|
+
this.confirmationService.confirm({
|
|
1044
|
+
target: event.target,
|
|
1045
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1046
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1047
|
+
header: this.translateService.instant('confirmar'),
|
|
1048
|
+
accept: async () => {
|
|
1049
|
+
await this.generalService.delete(new GeneralModel('ReporteMarcadorDTO', null, false, this.reporteMarcadorDinamico )).toPromise();
|
|
1050
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR)
|
|
1051
|
+
this.reporteMarcadorDinamico = new ReporteMarcadorModel()
|
|
1052
|
+
this.nuevoReporteMarcadorDinamico = false;
|
|
1053
|
+
await this.cargarListaMarcadorDinamico()
|
|
1054
|
+
}
|
|
1055
|
+
})
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
validarSeparador(){
|
|
1059
|
+
var validador: boolean = true;
|
|
1060
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.reporteFuente.separador);
|
|
1061
|
+
return validador;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
actualizarSeparador(){
|
|
1065
|
+
this.clickGuardarReporteTexto = true;
|
|
1066
|
+
if (!this.validarSeparador()){
|
|
1067
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
1068
|
+
return;
|
|
1069
|
+
}
|
|
1070
|
+
this.actualizar();
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
cargarListaMarcadoresTexto(){
|
|
1074
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {
|
|
1075
|
+
tipoReporte: this.reporteFuentePipe.REPORTEARCHIVOPLANO,
|
|
1076
|
+
reporteFuente: this.reporteFuente.llave,
|
|
1077
|
+
ordenDinamico: this.generalPipe.SI
|
|
1078
|
+
})).subscribe(data => {
|
|
1079
|
+
this.listaMarcadoresTexto = data;
|
|
1080
|
+
})
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
verMarcadorTexto(event){
|
|
1084
|
+
this.verNuevoMarcadorTexto = true;
|
|
1085
|
+
this.marcadorTexto = event.data;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
nuevoMarcadorTexto(){
|
|
1089
|
+
this.verNuevoMarcadorTexto = true;
|
|
1090
|
+
this.marcadorTexto = new ReporteMarcadorModel();
|
|
1091
|
+
this.marcadorTexto.tipoReporte = this.reporteFuentePipe.REPORTEARCHIVOPLANO;
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
validarMarcadorTexto() : boolean{
|
|
1095
|
+
var validador: boolean = true;
|
|
1096
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorTexto.tipoGrafico);
|
|
1097
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorTexto.alto);
|
|
1098
|
+
if (this.reporteFuentePipe.MARCADORTEXTOFIJO == this.marcadorTexto.tipoGrafico){
|
|
1099
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorTexto.formato);
|
|
1100
|
+
}
|
|
1101
|
+
if (this.reporteFuentePipe.MARCADORTEXTODINAMICO == this.marcadorTexto.tipoGrafico){
|
|
1102
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorTexto.ancho);
|
|
1103
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorTexto.reporteColumna);
|
|
1104
|
+
}
|
|
1105
|
+
return validador;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
async guardarMarcadorTexto(){
|
|
1109
|
+
this.clickGuardarMarcadorTexto = true;
|
|
1110
|
+
if (!this.validarMarcadorTexto()) {
|
|
1111
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1112
|
+
return;
|
|
1113
|
+
}
|
|
1114
|
+
this.clickGuardarMarcadorTexto = false;
|
|
1115
|
+
this.marcadorTexto.reporteFuente = this.reporteFuente.llave;
|
|
1116
|
+
if (this.marcadorTexto.llave){
|
|
1117
|
+
await this.generalService.update(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorTexto)).toPromise();
|
|
1118
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1119
|
+
} else {
|
|
1120
|
+
this.marcadorTexto.llave = this.utilsService.generarLlave();
|
|
1121
|
+
await this.generalService.crearRegistro(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorTexto)).toPromise();
|
|
1122
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1123
|
+
}
|
|
1124
|
+
this.cargarListaMarcadoresTexto();
|
|
1125
|
+
this.verNuevoMarcadorTexto = false;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
eliminarMarcadoTexto(event){
|
|
1129
|
+
this.confirmationService.confirm({
|
|
1130
|
+
target: event.target,
|
|
1131
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1132
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1133
|
+
header: this.translateService.instant('confirmar'),
|
|
1134
|
+
accept: async () => {
|
|
1135
|
+
await this.generalService.delete(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorTexto)).toPromise();
|
|
1136
|
+
this.verNuevoMarcadorTexto = false;
|
|
1137
|
+
this.marcadorTexto = new ReporteMarcadorModel();
|
|
1138
|
+
this.cargarListaMarcadoresTexto();
|
|
1139
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR)
|
|
1140
|
+
}
|
|
1141
|
+
})
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
cargarListaXML(){
|
|
1145
|
+
this.generalService.queryForList(new GeneralModel('ReporteMarcadorDTO', null, false, {
|
|
1146
|
+
tipoReporte: 'X',
|
|
1147
|
+
origen: 'X',
|
|
1148
|
+
reporteFuente: this.reporteFuente.llave,
|
|
1149
|
+
ordenDinamico: this.generalPipe.SI
|
|
1150
|
+
})).subscribe(data => {
|
|
1151
|
+
this.listaXML = data;
|
|
1152
|
+
})
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
nuevoMarcadorXML(){
|
|
1156
|
+
this.marcadorXML = new ReporteMarcadorModel();
|
|
1157
|
+
this.marcadorXML.tipoReporte = 'X';
|
|
1158
|
+
this.marcadorXML.origen = 'X';
|
|
1159
|
+
this.verNuevoMarcadorXML = true;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
verMarcadorXML(event){
|
|
1163
|
+
this.marcadorXML = event.data;
|
|
1164
|
+
this.verNuevoMarcadorXML = true;
|
|
1165
|
+
if (this.marcadorXML.tipo == 'MR' || this.marcadorXML.tipo == 'TB'){
|
|
1166
|
+
this.cargarListaCampoMarcadorXML();
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
validarMarcadorXML(){
|
|
1171
|
+
var validador: boolean = true;
|
|
1172
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorXML.descripcion);
|
|
1173
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorXML.tipo);
|
|
1174
|
+
return validador
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
guardarMarcadorXML(){
|
|
1178
|
+
this.clickGuardarMarcadorXML = true;
|
|
1179
|
+
if (!this.validarMarcadorXML()){
|
|
1180
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
this.marcadorXML.reporteFuente = this.reporteFuente.llave;
|
|
1184
|
+
if (this.marcadorXML.llave){
|
|
1185
|
+
this.generalService.update(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorXML)).subscribe(data => {
|
|
1186
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1187
|
+
this.marcadorXML = new ReporteMarcadorModel();
|
|
1188
|
+
this.verNuevoMarcadorXML = false;
|
|
1189
|
+
this.cargarListaXML();
|
|
1190
|
+
})
|
|
1191
|
+
} else {
|
|
1192
|
+
this.marcadorXML.llave = this.utilsService.generarLlave();
|
|
1193
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorXML)).subscribe(data => {
|
|
1194
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1195
|
+
this.marcadorXML = new ReporteMarcadorModel();
|
|
1196
|
+
this.verNuevoMarcadorXML = false;
|
|
1197
|
+
this.cargarListaXML();
|
|
1198
|
+
})
|
|
1199
|
+
}
|
|
1200
|
+
this.clickGuardarMarcadorXML = false;
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
eliminarMarcadorXML(event){
|
|
1204
|
+
this.confirmationService.confirm({
|
|
1205
|
+
target: event.target,
|
|
1206
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1207
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1208
|
+
header: this.translateService.instant('confirmar'),
|
|
1209
|
+
accept: async () => {
|
|
1210
|
+
await this.generalService.delete(new GeneralModel('ReporteMarcadorDTO', null, false, this.marcadorXML)).toPromise();
|
|
1211
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1212
|
+
this.marcadorXML = new ReporteMarcadorModel();
|
|
1213
|
+
this.verNuevoMarcadorXML = false;
|
|
1214
|
+
this.cargarListaXML();
|
|
1215
|
+
}
|
|
1216
|
+
})
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
nuevoCampoTablaXML(){
|
|
1220
|
+
this.verReporteMarcadorDetalleXML = true;
|
|
1221
|
+
this.campoMarcadorInsertarXML = new ReporteTablaModel();
|
|
1222
|
+
this.campoMarcadorInsertarXML.reporteMarcador = this.marcadorXML.llave
|
|
1223
|
+
this.habilitaCampo = true;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
cargarListaCampoMarcadorXML() {
|
|
1227
|
+
this.generalService.queryForList(new GeneralModel('ReporteTablaDTO', null, false, { reporteMarcador: this.marcadorXML.llave})).subscribe(data => {
|
|
1228
|
+
this.listaCamposMarcadorXML = data;
|
|
1229
|
+
})
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
async cargarListaCampoMarcadorXMLAsync() {
|
|
1233
|
+
this.habilitaCampo = false;
|
|
1234
|
+
this.listaCamposMarcadorXML = await this.generalService.queryForList(new GeneralModel('ReporteTablaDTO', null, false, { reporteMarcador: this.marcadorXML.llave})).toPromise();
|
|
1235
|
+
}
|
|
1236
|
+
|
|
1237
|
+
validarCampoMarcadorXML(campoMarcador){
|
|
1238
|
+
var validador: boolean = true;
|
|
1239
|
+
validador = validador && this.utilsService.validarCampoObligatorio(campoMarcador.campoFuente);
|
|
1240
|
+
validador = validador && this.utilsService.validarCampoObligatorio(campoMarcador.marcador);
|
|
1241
|
+
return validador;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
agregarCampoMarcadorXML(campo: ReporteTablaModel){
|
|
1245
|
+
this.clickGuardarMarcadorCampoXML = true;
|
|
1246
|
+
if (!this.validarCampoMarcadorXML(campo)){
|
|
1247
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
1248
|
+
return;
|
|
1249
|
+
}
|
|
1250
|
+
if (campo.llave){
|
|
1251
|
+
this.generalService.update(new GeneralModel('ReporteTablaDTO', null, false, campo)).subscribe(data => {
|
|
1252
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1253
|
+
this.campoMarcadorInsertarXML = new ReporteTablaModel();
|
|
1254
|
+
this.habilitaCampo = false;
|
|
1255
|
+
this.cargarListaCampoMarcadorXML();
|
|
1256
|
+
})
|
|
1257
|
+
} else {
|
|
1258
|
+
campo.columna = 0;
|
|
1259
|
+
campo.llave = this.utilsService.generarLlave();
|
|
1260
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteTablaDTO', null, false, campo)).subscribe(data => {
|
|
1261
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1262
|
+
campo = new ReporteTablaModel();
|
|
1263
|
+
this.habilitaCampo = false;
|
|
1264
|
+
this.cargarListaCampoMarcadorXML();
|
|
1265
|
+
})
|
|
1266
|
+
}
|
|
1267
|
+
this.clickGuardarMarcadorCampoXML = false;
|
|
1268
|
+
this.verReporteMarcadorDetalleXML = false;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
eliminarCampoMarcadorXML(event, objeto){
|
|
1272
|
+
this.confirmationService.confirm({
|
|
1273
|
+
target: event.target,
|
|
1274
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1275
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1276
|
+
header: this.translateService.instant('confirmar'),
|
|
1277
|
+
accept: () => {
|
|
1278
|
+
this.generalService.delete(new GeneralModel('ReporteTablaDTO', null, false, objeto)).subscribe(data => {
|
|
1279
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1280
|
+
this.cargarListaCampoMarcadorXML();
|
|
1281
|
+
})
|
|
1282
|
+
}
|
|
1283
|
+
})
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
cambiarTabColumnario(event){
|
|
1287
|
+
switch (event.index) {
|
|
1288
|
+
case 0:
|
|
1289
|
+
this.cargarReporteColumnario();
|
|
1290
|
+
break;
|
|
1291
|
+
case 1:
|
|
1292
|
+
this.cargarDatosAdicionales();
|
|
1293
|
+
break;
|
|
1294
|
+
case 2:
|
|
1295
|
+
this.cargarMarcadoresColumnario();
|
|
1296
|
+
break;
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
cargarMarcadoresColumnario() {
|
|
1301
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnarioMarcadorDTO', null, false, {reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
1302
|
+
this.marcadoresColumnario = data;
|
|
1303
|
+
})
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
cargarDatosAdicionales() {
|
|
1308
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnarioDTO', null, false, {reporteFuente: this.reporteFuente.llave, filtroColumnaBasica: 'N'})).subscribe(data => {
|
|
1309
|
+
this.columnasAdicionales = data;
|
|
1310
|
+
})
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
cargarReporteColumnario(){
|
|
1314
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnarioDTO', null, false, {reporteFuente: this.reporteFuente.llave, filtroColumnaBasica: 'S'})).subscribe(data => {
|
|
1315
|
+
this.listaReporteColumnario = data;
|
|
1316
|
+
})
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
cargarGraficasColumnas() {
|
|
1320
|
+
this.generalService.queryForList(new GeneralModel('ReporteColumnaDTO', null, false, {reporteFuente: this.reporteFuente.llave})).subscribe(data => {
|
|
1321
|
+
this.paginadorColumnas = data;
|
|
1322
|
+
})
|
|
1323
|
+
this.generalService.queryForList(new GeneralModel('ReporteBandaDTO', null, false, {reporteFuente: this.reporteFuente.llave, totales: 'C'})).subscribe(data => {
|
|
1324
|
+
this.paginadorColoresGrafica = data;
|
|
1325
|
+
})
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
validarExisteJasper(){
|
|
1329
|
+
this.cargarArchivo.descargarArchivo(this.encriptadorArchivo.encriptar('reportes/' + this.reporteFuente.llave + '.jrxml'), 'ruta_plantillas', this.aplicacion).subscribe(
|
|
1330
|
+
(response) => {
|
|
1331
|
+
this.existeJasper = true;
|
|
1332
|
+
},
|
|
1333
|
+
(error) => {
|
|
1334
|
+
this.existeJasper = false;
|
|
1335
|
+
}
|
|
1336
|
+
)
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
verReporteColumnario(event){
|
|
1340
|
+
this.columnaBasica = event.data;
|
|
1341
|
+
this.verNuevoReporteColumnario = true;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
nuevoColumnaBasica(){
|
|
1345
|
+
this.columnaBasica = new ReporteColumnarioModel();
|
|
1346
|
+
this.columnaBasica.reporteFuente = this.reporteFuente.llave;
|
|
1347
|
+
this.verNuevoReporteColumnario = true;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
validarColumnaBasica(){
|
|
1351
|
+
var validador: boolean = true;
|
|
1352
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.nombre);
|
|
1353
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.tipo);
|
|
1354
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.reporteColumna);
|
|
1355
|
+
if (validador){
|
|
1356
|
+
if (this.isMostrarOrden()){
|
|
1357
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.orden);
|
|
1358
|
+
}
|
|
1359
|
+
if (this.isMostrarOrdenConsulta()){
|
|
1360
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.ordenConsulta);
|
|
1361
|
+
}
|
|
1362
|
+
if (this.reporteColumnarioPipe.TIPO_CELDA == this.columnaBasica.tipo) {
|
|
1363
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.operacion);
|
|
1364
|
+
} else if (this.reporteColumnarioPipe.TIPO_COLUMNA== this.columnaBasica.tipo) {
|
|
1365
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.operacionHorizontal);
|
|
1366
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.operacionVertical);
|
|
1367
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.columnaOperacionVertical);
|
|
1368
|
+
} else if (this.reporteColumnarioPipe.TIPO_LABEL == this.columnaBasica.tipo) {
|
|
1369
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaBasica.orderBy);
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
return validador;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
async verificarColumnasValidas(reporteColumnarioDTO): Promise<boolean> {
|
|
1376
|
+
var tipo=reporteColumnarioDTO.tipo;
|
|
1377
|
+
if(this.reporteColumnarioPipe.TIPO_FILA == reporteColumnarioDTO.tipo){
|
|
1378
|
+
return true;
|
|
1379
|
+
}
|
|
1380
|
+
var filtro=new ReporteColumnarioModel();
|
|
1381
|
+
filtro.reporteFuente = reporteColumnarioDTO.reporteFuente;
|
|
1382
|
+
filtro.diferenteColumnario = reporteColumnarioDTO.llaveTabla;
|
|
1383
|
+
filtro.tipo = tipo;
|
|
1384
|
+
var cantidad= await this.generalService.cantidadRegistros(new GeneralModel('ReporteColumnarioDTO', null, false, filtro)).toPromise();
|
|
1385
|
+
if(cantidad==0){
|
|
1386
|
+
return true;
|
|
1387
|
+
}
|
|
1388
|
+
if(this.reporteColumnarioPipe.TIPO_COLUMNA == reporteColumnarioDTO.tipo){
|
|
1389
|
+
this.notificacionesBusService.showWarning("El reporte solo puede contener 1 registro con tipo "+this.reporteColumnarioPipe.TIPO_COLUMNA_DESC);
|
|
1390
|
+
return false;
|
|
1391
|
+
}else if(this.reporteColumnarioPipe.TIPO_CELDA == reporteColumnarioDTO.tipo){
|
|
1392
|
+
this.notificacionesBusService.showWarning("El reporte solo puede contener 1 registro con tipo "+this.reporteColumnarioPipe.TIPO_CELDA_DESC);
|
|
1393
|
+
return false;
|
|
1394
|
+
}
|
|
1395
|
+
return true;
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
async guardarColumnaBasica(){
|
|
1399
|
+
this.clickGuardarReporteColumnario = true;
|
|
1400
|
+
if (!this.validarColumnaBasica()){
|
|
1401
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1402
|
+
return;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
if (await this.verificarColumnasValidas(this.columnaBasica)){
|
|
1406
|
+
if (this.columnaBasica.llaveTabla) {
|
|
1407
|
+
await this.generalService.update(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaBasica)).toPromise();
|
|
1408
|
+
this.columnaBasica = new ReporteColumnarioModel();
|
|
1409
|
+
this.verNuevoReporteColumnario = false;
|
|
1410
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1411
|
+
} else {
|
|
1412
|
+
await this.generalService.crearRegistro(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaBasica)).toPromise();
|
|
1413
|
+
this.columnaBasica = new ReporteColumnarioModel();
|
|
1414
|
+
this.verNuevoReporteColumnario = false;
|
|
1415
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1416
|
+
}
|
|
1417
|
+
this.clickGuardarReporteColumnario = false;
|
|
1418
|
+
this.cargarReporteColumnario();
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
eliminarColumnaBasica(event){
|
|
1423
|
+
this.confirmationService.confirm({
|
|
1424
|
+
target: event.target,
|
|
1425
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1426
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1427
|
+
header: this.translateService.instant('confirmar'),
|
|
1428
|
+
accept: () => {
|
|
1429
|
+
this.generalService.delete(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaBasica)).subscribe(data => {
|
|
1430
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1431
|
+
this.verNuevoReporteColumnario = false;
|
|
1432
|
+
this.columnaBasica = new ReporteColumnarioModel();
|
|
1433
|
+
this.cargarReporteColumnario();
|
|
1434
|
+
})
|
|
1435
|
+
|
|
1436
|
+
}
|
|
1437
|
+
})
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
nuevaColumnaAdicional() {
|
|
1441
|
+
this.columnaAdicional = new ReporteColumnarioModel();
|
|
1442
|
+
this.columnaAdicional.reporteFuente = this.reporteFuente.llave;
|
|
1443
|
+
this.columnaAdicional.tipo = this.reporteColumnarioPipe.TIPO_ADICIONAL;
|
|
1444
|
+
this.verNuevoColumnaAdicional = true;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
verDetalleAdicional(event) {
|
|
1448
|
+
this.columnaAdicional = event.data;
|
|
1449
|
+
this.verNuevoColumnaAdicional = true;
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
validarColumnaAdicional() {
|
|
1453
|
+
var validador: boolean = true;
|
|
1454
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaAdicional.nombre);
|
|
1455
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaAdicional.sintaxis);
|
|
1456
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaAdicional.orden);
|
|
1457
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaAdicional.orderBy);
|
|
1458
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.columnaAdicional.ordenConsulta);
|
|
1459
|
+
return validador;
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
async guardarColumnaAdicional() {
|
|
1463
|
+
this.clickGuardarColumnaAdicional = true;
|
|
1464
|
+
if (!this.validarColumnaAdicional()){
|
|
1465
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1466
|
+
return;
|
|
1467
|
+
}
|
|
1468
|
+
if (this.columnaAdicional.llaveTabla) {
|
|
1469
|
+
await this.generalService.update(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaAdicional)).toPromise();
|
|
1470
|
+
this.columnaAdicional = new ReporteColumnarioModel();
|
|
1471
|
+
this.verNuevoColumnaAdicional = false;
|
|
1472
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1473
|
+
} else {
|
|
1474
|
+
await this.generalService.crearRegistro(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaAdicional)).toPromise();
|
|
1475
|
+
this.columnaAdicional = new ReporteColumnarioModel();
|
|
1476
|
+
this.verNuevoColumnaAdicional = false;
|
|
1477
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1478
|
+
}
|
|
1479
|
+
this.clickGuardarColumnaAdicional = false;
|
|
1480
|
+
this.cargarDatosAdicionales();
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
eliminarColumnaAdicional(event) {
|
|
1484
|
+
this.confirmationService.confirm({
|
|
1485
|
+
target: event.target,
|
|
1486
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1487
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1488
|
+
header: this.translateService.instant('confirmar'),
|
|
1489
|
+
accept: () => {
|
|
1490
|
+
this.generalService.delete(new GeneralModel('ReporteColumnarioDTO', null, false, this.columnaAdicional)).subscribe(data => {
|
|
1491
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1492
|
+
this.verNuevoColumnaAdicional = false;
|
|
1493
|
+
this.columnaAdicional = new ReporteColumnarioModel();
|
|
1494
|
+
this.cargarDatosAdicionales();
|
|
1495
|
+
})
|
|
1496
|
+
}
|
|
1497
|
+
})
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
nuevoMarcadorColumnario() {
|
|
1501
|
+
this.marcadorColumnario = new ReporteColumnarioMarcadorModel();
|
|
1502
|
+
this.marcadorColumnario.reporteFuente = this.reporteFuente.llave;
|
|
1503
|
+
this.verNuevoMarcadorColumnario = true;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
verDetalleMarcadorColumnario(event) {
|
|
1507
|
+
this.marcadorColumnario = event.data;
|
|
1508
|
+
this.verNuevoMarcadorColumnario = true;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
validarMarcadorColumnario() {
|
|
1512
|
+
var validador: boolean = true;
|
|
1513
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorColumnario.marcador);
|
|
1514
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorColumnario.tipo);
|
|
1515
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorColumnario.textoRegistro);
|
|
1516
|
+
validador = validador && this.utilsService.validarCampoObligatorio(this.marcadorColumnario.descripcion);
|
|
1517
|
+
return validador;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
async guardarMarcadorColumnario() {
|
|
1521
|
+
this.clickGuardarMarcadorColumnario = true;
|
|
1522
|
+
if (!this.validarMarcadorColumnario()){
|
|
1523
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios');
|
|
1524
|
+
return;
|
|
1525
|
+
}
|
|
1526
|
+
if (this.marcadorColumnario.llaveTabla) {
|
|
1527
|
+
await this.generalService.update(new GeneralModel('ReporteColumnarioMarcadorDTO', null, false, this.marcadorColumnario)).toPromise();
|
|
1528
|
+
this.marcadorColumnario = new ReporteColumnarioMarcadorModel();
|
|
1529
|
+
this.verNuevoMarcadorColumnario = false;
|
|
1530
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1531
|
+
} else {
|
|
1532
|
+
await this.generalService.crearRegistro(new GeneralModel('ReporteColumnarioMarcadorDTO', null, false, this.marcadorColumnario)).toPromise();
|
|
1533
|
+
this.marcadorColumnario = new ReporteColumnarioMarcadorModel();
|
|
1534
|
+
this.verNuevoMarcadorColumnario = false;
|
|
1535
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_GUARDAR);
|
|
1536
|
+
}
|
|
1537
|
+
this.clickGuardarMarcadorColumnario = false;
|
|
1538
|
+
this.cargarMarcadoresColumnario();
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
eliminarMarcadorColumnario(event) {
|
|
1542
|
+
this.confirmationService.confirm({
|
|
1543
|
+
target: event.target,
|
|
1544
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1545
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1546
|
+
header: this.translateService.instant('confirmar'),
|
|
1547
|
+
accept: () => {
|
|
1548
|
+
this.generalService.delete(new GeneralModel('ReporteColumnarioMarcadorDTO', null, false, this.marcadorColumnario)).subscribe(data => {
|
|
1549
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1550
|
+
this.verNuevoMarcadorColumnario = false;
|
|
1551
|
+
this.marcadorColumnario = new ReporteColumnarioMarcadorModel();
|
|
1552
|
+
this.cargarMarcadoresColumnario();
|
|
1553
|
+
})
|
|
1554
|
+
}
|
|
1555
|
+
})
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
public guardarGrafico() {
|
|
1559
|
+
this.actualizar();
|
|
1560
|
+
this.paginadorColumnas.forEach(data => {
|
|
1561
|
+
this.generalService.update(new GeneralModel('ReporteColumnaDTO', null, false, data)).subscribe(data => {})
|
|
1562
|
+
});
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
public verGrafico() {
|
|
1566
|
+
this.reporteService.verGrafico({llaveReporte: this.reporteFuente.llave}).subscribe(data => {
|
|
1567
|
+
let columna = this.dashboardService.cargarGrafica({accion: data.tipoGrafico, datosGrafica: data});
|
|
1568
|
+
this.grafica = columna;
|
|
1569
|
+
this.utilsService.sleep(500).then(data2 => {
|
|
1570
|
+
this.divGrafica.nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
1571
|
+
})
|
|
1572
|
+
let respuesta = this.dashboardPipe.TIPO_GRAFICO_CHART.filter(data => data.codigo == columna.datosGrafica.tipoGrafico);
|
|
1573
|
+
if (respuesta.length < 0) {
|
|
1574
|
+
return;
|
|
1575
|
+
}
|
|
1576
|
+
columna.tipoGrafico = respuesta[0].codigoChart;
|
|
1577
|
+
this.tipoGrafica = columna.tipoGrafico;
|
|
1578
|
+
console.log(this.tipoGrafica)
|
|
1579
|
+
})
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
nuevoColorCategoria(){
|
|
1583
|
+
this.colorCategoria = new ReporteBandaModel();
|
|
1584
|
+
this.colorCategoria.banda = '#FFFFFF';
|
|
1585
|
+
this.verColorCategoriaDetalle = true;
|
|
1586
|
+
this.habilitaCampo = true;
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
cancelarColorCategoria() {
|
|
1590
|
+
this.colorCategoria = new ReporteBandaModel();
|
|
1591
|
+
this.verColorCategoriaDetalle = false;
|
|
1592
|
+
this.habilitaCampo = false;
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
validarColorCategoria(color){
|
|
1596
|
+
var validador: boolean = true;
|
|
1597
|
+
validador = validador && this.utilsService.validarCampoObligatorio(color.titulo)
|
|
1598
|
+
validador = validador && this.utilsService.validarCampoObligatorio(color.banda)
|
|
1599
|
+
return validador;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
agregarColorCategoria(color){
|
|
1603
|
+
this.clickGuardarColorCategoria = true;
|
|
1604
|
+
if (!this.validarColorCategoria(color)){
|
|
1605
|
+
this.notificacionesBusService.showError('Faltan campos obligatorios')
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
1608
|
+
if (!color.llaveTabla){
|
|
1609
|
+
color.totales = 'C'
|
|
1610
|
+
color.reporteFuente = this.reporteFuente.llave
|
|
1611
|
+
this.generalService.crearRegistro(new GeneralModel('ReporteBandaDTO', null, false, color)).subscribe(data => {
|
|
1612
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_GUARDAR);
|
|
1613
|
+
color = new ReporteBandaModel();
|
|
1614
|
+
this.cargarGraficasColumnas();
|
|
1615
|
+
this.verColorCategoriaDetalle = false;
|
|
1616
|
+
this.clickGuardarColorCategoria = false;
|
|
1617
|
+
})
|
|
1618
|
+
} else {
|
|
1619
|
+
this.generalService.update(new GeneralModel('ReporteBandaDTO', null, false, color)).subscribe(data => {
|
|
1620
|
+
this.notificacionesBusService.showSuccess(this.generalPipe.MENSAJE_ACTUALIZAR);
|
|
1621
|
+
this.cargarGraficasColumnas();
|
|
1622
|
+
this.verColorCategoriaDetalle = false;
|
|
1623
|
+
this.clickGuardarColorCategoria = false;
|
|
1624
|
+
color = new ReporteBandaModel();
|
|
1625
|
+
})
|
|
1626
|
+
}
|
|
1627
|
+
this.habilitaCampo = false;
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
eliminarColorCategoria(event, color){
|
|
1631
|
+
this.habilitaCampo = true;
|
|
1632
|
+
this.confirmationService.confirm({
|
|
1633
|
+
target: event.target,
|
|
1634
|
+
message: this.generalPipe.MENSAJE_ELIMINAR_CONFIRMAR,
|
|
1635
|
+
acceptLabel: this.generalPipe.SI_DESC,
|
|
1636
|
+
header: this.translateService.instant('confirmar'),
|
|
1637
|
+
accept: () => {
|
|
1638
|
+
this.generalService.delete(new GeneralModel('ReporteBandaDTO', null, false, color)).subscribe(data => {
|
|
1639
|
+
this.notificacionesBusService.showInfo(this.generalPipe.MENSAJE_ELIMINAR);
|
|
1640
|
+
this.cargarGraficasColumnas();
|
|
1641
|
+
this.habilitaCampo = false;
|
|
1642
|
+
})
|
|
1643
|
+
}
|
|
1644
|
+
})
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
async cancelarEdicionColor() {
|
|
1648
|
+
this.cargarGraficasColumnas();
|
|
1649
|
+
this.habilitaCampo = false;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
public isFijo():boolean{
|
|
1653
|
+
return this.filtroOrigenFuente(this.reporteFuentePipe.FIJO);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
public isSql():boolean{
|
|
1657
|
+
return this.filtroOrigenFuente(this.reporteFuentePipe.SQL);
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
/**
|
|
1661
|
+
* Permite conocer si se debe presentar en la interfaz los campos referentes a orden consulta
|
|
1662
|
+
* @return Si se debe mostrar se retornara true, de lo contrario false
|
|
1663
|
+
*/
|
|
1664
|
+
isMostrarOrdenConsulta(){
|
|
1665
|
+
return this.reporteColumnarioPipe.TIPO_FILA == this.columnaBasica.tipo;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
isMostrarOrden(){
|
|
1670
|
+
return this.reporteColumnarioPipe.TIPO_FILA == this.columnaBasica.tipo||
|
|
1671
|
+
this.reporteColumnarioPipe.TIPO_COLUMNA == this.columnaBasica.tipo||this.reporteColumnarioPipe.TIPO_LABEL == this.columnaBasica.tipo;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
isTipoColumna(){
|
|
1675
|
+
return this.reporteColumnarioPipe.TIPO_COLUMNA == this.columnaBasica.tipo;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
|
|
1679
|
+
isTipoFila(){
|
|
1680
|
+
return this.reporteColumnarioPipe.TIPO_FILA == this.columnaBasica.tipo;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
isTipoLabel(){
|
|
1684
|
+
return this.reporteColumnarioPipe.TIPO_LABEL == this.columnaBasica.tipo;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
sleep(ms: number): Promise<void> {
|
|
1688
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
public isFuente():boolean{
|
|
1692
|
+
return this.filtroOrigenFuente(this.reporteFuentePipe.FUENTE);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
public filtroOrigenFuente(tipo:string):boolean{
|
|
1696
|
+
return this.reporteFuente.origenFuente == tipo;
|
|
1697
|
+
}
|
|
1698
|
+
}
|