general-library-union 2.9.74 → 2.9.76

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