general-library-union 2.9.38 → 2.9.39

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/.browserslistrc +15 -0
  2. package/.editorconfig +16 -0
  3. package/.vscode/extensions.json +4 -0
  4. package/.vscode/launch.json +20 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/angular.json +143 -0
  7. package/karma.conf.js +44 -0
  8. package/ng-package.json +21 -0
  9. package/package.json +73 -62
  10. package/{public-api.d.ts → public-api.ts} +201 -161
  11. package/src/app/app.component.html +12 -0
  12. package/src/app/app.component.scss +0 -0
  13. package/src/app/app.component.spec.ts +29 -0
  14. package/src/app/app.component.ts +34 -0
  15. package/src/app/app.config.ts +43 -0
  16. package/src/app/app.module.ts +10 -0
  17. package/src/app/app.routes.ts +88 -0
  18. package/src/app/core/componentes/breadcrumb/breadcrumb.component.html +6 -0
  19. package/src/app/core/componentes/breadcrumb/breadcrumb.component.scss +0 -0
  20. package/src/app/core/componentes/breadcrumb/breadcrumb.component.ts +39 -0
  21. package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.html +1 -0
  22. package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.scss +0 -0
  23. package/src/app/core/componentes/carga-breadcrumb/carga-breadcrumb.component.ts +31 -0
  24. package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.html +9 -0
  25. package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.scss +28 -0
  26. package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.ts +32 -0
  27. package/src/app/core/componentes/filtro-general/filtro-general.component.html +34 -0
  28. package/src/app/core/componentes/filtro-general/filtro-general.component.scss +3 -0
  29. package/src/app/core/componentes/filtro-general/filtro-general.component.ts +202 -0
  30. package/src/app/core/componentes/footer/footer.component.html +13 -0
  31. package/src/app/core/componentes/footer/footer.component.scss +3 -0
  32. package/src/app/core/componentes/footer/footer.component.ts +20 -0
  33. package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.html +267 -0
  34. package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.scss +21 -0
  35. package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.ts +275 -0
  36. package/src/app/core/componentes/formulariodinamico/objetosformulario/{Cambio.d.ts → Cambio.ts} +13 -7
  37. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.ts +118 -0
  38. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.ts +76 -0
  39. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.ts +67 -0
  40. package/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.ts +11 -0
  41. package/src/app/core/componentes/inicio-component/inicio-component.component.html +29 -0
  42. package/src/app/core/componentes/inicio-component/inicio-component.component.scss +69 -0
  43. package/src/app/core/componentes/inicio-component/inicio-component.component.ts +65 -0
  44. package/src/app/core/componentes/menu/menu.component.html +13 -0
  45. package/src/app/core/componentes/menu/menu.component.scss +36 -0
  46. package/src/app/core/componentes/menu/menu.component.ts +35 -0
  47. package/src/app/core/componentes/tabla-general/tabla-general.component.html +90 -0
  48. package/src/app/core/componentes/tabla-general/tabla-general.component.scss +0 -0
  49. package/src/app/core/componentes/tabla-general/tabla-general.component.ts +96 -0
  50. package/src/app/core/core.module.ts +22 -0
  51. package/src/app/core/errores/authentication.error.ts +6 -0
  52. package/src/app/core/modelos/error-response.model.ts +9 -0
  53. package/src/app/core/modelos/table-column.model.ts +10 -0
  54. package/src/app/core/modelos/user.model.ts +6 -0
  55. package/src/app/core/plantilla-general/plantilla-general.template.html +139 -0
  56. package/src/app/core/plantilla-general/plantilla-general.template.scss +37 -0
  57. package/src/app/core/plantilla-general/plantilla-general.template.ts +233 -0
  58. package/src/app/core/servicios/auth.service.ts +189 -0
  59. package/src/app/core/servicios/cargar-control-funcionalidad.service.ts +49 -0
  60. package/src/app/core/servicios/data-exporter-table.utils.ts +78 -0
  61. package/src/app/core/servicios/error-interceptor.service.ts +208 -0
  62. package/src/app/core/servicios/guardias/auth.guard.ts +51 -0
  63. package/src/app/core/servicios/guardias/publico.guard.ts +26 -0
  64. package/src/app/core/servicios/interceptores/loading-interceptor.ts +37 -0
  65. package/src/app/core/servicios/interceptores/token-interceptor.service.ts +177 -0
  66. package/src/app/core/servicios/loading.service.ts +48 -0
  67. package/src/app/core/servicios/menu.service.ts +153 -0
  68. package/src/app/core/servicios/spinner-service.ts +18 -0
  69. package/src/app/core/servicios/storage.service.ts +68 -0
  70. package/src/app/core/servicios/template.service.ts +91 -0
  71. package/src/app/core/servicios/toast.service.ts +114 -0
  72. package/src/app/core/servicios/utils.service.ts +362 -0
  73. package/src/app/core/sharedlib.module.ts +11 -0
  74. package/src/app/core/utilidades/color.util.ts +197 -0
  75. package/src/app/layout/api/{menuchangeevent.d.ts → menuchangeevent.ts} +4 -4
  76. package/src/app/layout/app.breadcrumb.component.html +20 -0
  77. package/src/app/layout/app.breadcrumb.component.ts +78 -0
  78. package/src/app/layout/app.footer.component.html +18 -0
  79. package/src/app/layout/app.footer.component.ts +15 -0
  80. package/src/app/layout/app.layout.component.html +20 -0
  81. package/src/app/layout/app.layout.component.ts +201 -0
  82. package/src/app/layout/app.layout.module.ts +9 -0
  83. package/src/app/layout/app.menu.component.html +6 -0
  84. package/src/app/layout/app.menu.component.ts +51 -0
  85. package/src/app/layout/app.menu.service.ts +23 -0
  86. package/src/app/layout/app.menuitem.component.ts +252 -0
  87. package/src/app/layout/app.menuprofile.component.html +35 -0
  88. package/src/app/layout/app.menuprofile.component.ts +60 -0
  89. package/src/app/layout/app.rightmenu.component.html +72 -0
  90. package/src/app/layout/app.rightmenu.component.ts +24 -0
  91. package/src/app/layout/app.sidebar.component.html +40 -0
  92. package/src/app/layout/app.sidebar.component.ts +81 -0
  93. package/src/app/layout/app.topbar.component.html +214 -0
  94. package/src/app/layout/app.topbar.component.ts +335 -0
  95. package/src/app/layout/config/app.config.component.html +125 -0
  96. package/src/app/layout/config/app.config.component.ts +206 -0
  97. package/src/app/layout/config/app.config.module.ts +11 -0
  98. package/src/app/layout/service/app.layout.service.ts +191 -0
  99. package/src/app/publico/pages/login/login.page.html +53 -0
  100. package/src/app/publico/pages/login/login.page.scss +166 -0
  101. package/src/app/publico/pages/login/login.page.ts +128 -0
  102. package/src/app/publico/pages/not-found/not-found.page.html +35 -0
  103. package/src/app/publico/pages/not-found/not-found.page.scss +2 -0
  104. package/src/app/publico/pages/not-found/not-found.page.ts +46 -0
  105. package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.html +58 -0
  106. package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.scss +49 -0
  107. package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.ts +176 -0
  108. package/src/app/publico/pages/timeout/timeout.page.html +24 -0
  109. package/src/app/publico/pages/timeout/timeout.page.scss +2 -0
  110. package/src/app/publico/pages/timeout/timeout.page.ts +18 -0
  111. package/src/app/seguridad/constantes/ConstantesGenerales.ts +30 -0
  112. package/src/app/seguridad/constantes/ReporteEntradaConstantes.ts +18 -0
  113. package/src/app/seguridad/constantes/ReporteFuenteConstantes.ts +13 -0
  114. package/src/app/seguridad/modelos/AplicacionModel.ts +11 -0
  115. package/src/app/seguridad/modelos/ArchivoPortalModel.ts +16 -0
  116. package/src/app/seguridad/modelos/AtributoPuntoModel.ts +9 -0
  117. package/src/app/seguridad/modelos/AtributoSSOportalModel.ts +22 -0
  118. package/src/app/seguridad/modelos/{AuditoriaArchivoModel.d.ts → AuditoriaArchivoModel.ts} +13 -10
  119. package/src/app/seguridad/modelos/CargueLineaModel.ts +17 -0
  120. package/src/app/seguridad/modelos/ColoresRGB.ts +17 -0
  121. package/src/app/seguridad/modelos/ColumnaFuenteModel.ts +9 -0
  122. package/src/app/seguridad/modelos/{ColumnaWraperModel.d.ts → ColumnaWraperModel.ts} +7 -6
  123. package/src/app/seguridad/modelos/ComplementoModel.ts +10 -0
  124. package/src/app/seguridad/modelos/ComponentePaginaModel.ts +22 -0
  125. package/src/app/seguridad/modelos/ConexionModel.ts +15 -0
  126. package/src/app/seguridad/modelos/{ContenidoHtmlPortalModel.d.ts → ContenidoHtmlPortalModel.ts} +25 -20
  127. package/src/app/seguridad/modelos/ControlFuncionModel.ts +10 -0
  128. package/src/app/seguridad/modelos/CorreoModel.ts +45 -0
  129. package/src/app/seguridad/modelos/CorreoWSModel.ts +49 -0
  130. package/src/app/seguridad/modelos/CruceRecursoPuntoModel.ts +14 -0
  131. package/src/app/seguridad/modelos/{DatoInicioModel.d.ts → DatoInicioModel.ts} +7 -6
  132. package/src/app/seguridad/modelos/{EjecucionReporteDataModel.d.ts → EjecucionReporteDataModel.ts} +21 -20
  133. package/src/app/seguridad/modelos/EmpresaModel.ts +25 -0
  134. package/src/app/seguridad/modelos/EmpresaSeguridadModel.ts +19 -0
  135. package/src/app/seguridad/modelos/{EntradaComplementoModel.d.ts → EntradaComplementoModel.ts} +9 -6
  136. package/src/app/seguridad/modelos/EtiquetaModel.ts +4 -0
  137. package/src/app/seguridad/modelos/Etiquetas.ts +14 -0
  138. package/src/app/seguridad/modelos/{ForeingWraperModel.d.ts → ForeingWraperModel.ts} +9 -6
  139. package/src/app/seguridad/modelos/FuenteCampoAtributoModel.ts +21 -0
  140. package/src/app/seguridad/modelos/{FuenteCampoModel.d.ts → FuenteCampoModel.ts} +20 -16
  141. package/src/app/seguridad/modelos/FuenteDato.ts +19 -0
  142. package/src/app/seguridad/modelos/FuenteEntradaModel.ts +9 -0
  143. package/src/app/seguridad/modelos/{FuenteGeneralModel.d.ts → FuenteGeneralModel.ts} +55 -36
  144. package/src/app/seguridad/modelos/FuenteLineaServicioModel.ts +19 -0
  145. package/src/app/seguridad/modelos/FuenteProcesoGeneralModel.ts +14 -0
  146. package/src/app/seguridad/modelos/{FuenteServicioModel.d.ts → FuenteServicioModel.ts} +61 -47
  147. package/src/app/seguridad/modelos/FuncionalidadModel.ts +12 -0
  148. package/src/app/seguridad/modelos/GeneralModel.ts +16 -0
  149. package/src/app/seguridad/modelos/{GrupoAccesoModel.d.ts → GrupoAccesoModel.ts} +9 -6
  150. package/src/app/seguridad/modelos/GrupoControlFuncionModel.ts +12 -0
  151. package/src/app/seguridad/modelos/GrupoFuenteModel.ts +17 -0
  152. package/src/app/seguridad/modelos/GrupoPermisoModel.ts +16 -0
  153. package/src/app/seguridad/modelos/{JoinFromModel.d.ts → JoinFromModel.ts} +4 -4
  154. package/src/app/seguridad/modelos/ListaServicioModel.ts +18 -0
  155. package/src/app/seguridad/modelos/LlaveForaneaModel.ts +6 -0
  156. package/src/app/seguridad/modelos/LoginModel.ts +19 -0
  157. package/src/app/seguridad/modelos/MensajeSistemaModel.ts +10 -0
  158. package/src/app/seguridad/modelos/{MenuPortalModel.d.ts → MenuPortalModel.ts} +5 -4
  159. package/src/app/seguridad/modelos/ModulosModel.ts +17 -0
  160. package/src/app/seguridad/modelos/{ObjetoReporteModel.d.ts → ObjetoReporteModel.ts} +6 -5
  161. package/src/app/seguridad/modelos/PaginaPortalModel.ts +23 -0
  162. package/src/app/seguridad/modelos/ParametroComponenteModel.ts +9 -0
  163. package/src/app/seguridad/modelos/ParametrosGeneralModel.ts +16 -0
  164. package/src/app/seguridad/modelos/PermisoFuncionModel.ts +11 -0
  165. package/src/app/seguridad/modelos/PermisocontenidoModel.ts +20 -0
  166. package/src/app/seguridad/modelos/{PeticionModel.d.ts → PeticionModel.ts} +20 -15
  167. package/src/app/seguridad/modelos/PreguntaSeguridadModel.ts +9 -0
  168. package/src/app/seguridad/modelos/PropiedadModel.ts +12 -0
  169. package/src/app/seguridad/modelos/PublicacionWebModel.ts +29 -0
  170. package/src/app/seguridad/modelos/PuntoProcesoModel.ts +7 -0
  171. package/src/app/seguridad/modelos/RecursoPunto.ts +13 -0
  172. package/src/app/seguridad/modelos/RecursoPuntoModel.ts +13 -0
  173. package/src/app/seguridad/modelos/ReporteBanda.ts +9 -0
  174. package/src/app/seguridad/modelos/ReporteColumna.ts +33 -0
  175. package/src/app/seguridad/modelos/ReporteColumnario.ts +82 -0
  176. package/src/app/seguridad/modelos/ReporteColumnarioMarcador.ts +31 -0
  177. package/src/app/seguridad/modelos/{ReporteEntradaModel.d.ts → ReporteEntradaModel.ts} +21 -19
  178. package/src/app/seguridad/modelos/{ReporteFuenteModel.d.ts → ReporteFuenteModel.ts} +141 -87
  179. package/src/app/seguridad/modelos/ReporteMarcador.ts +40 -0
  180. package/src/app/seguridad/modelos/ReporteSoporte.ts +10 -0
  181. package/src/app/seguridad/modelos/ReporteTabla.ts +14 -0
  182. package/src/app/seguridad/modelos/RespuestaModel.ts +10 -0
  183. package/src/app/seguridad/modelos/{RolModel.d.ts → RolModel.ts} +41 -37
  184. package/src/app/seguridad/modelos/ServidorCorreoModel.ts +31 -0
  185. package/src/app/seguridad/modelos/SistemaMensajeModel.ts +11 -0
  186. package/src/app/seguridad/modelos/SitioPortalModel.ts +29 -0
  187. package/src/app/seguridad/modelos/TablaFromModel.ts +5 -0
  188. package/src/app/seguridad/modelos/TareasModel.ts +54 -0
  189. package/src/app/seguridad/modelos/TextoModel.ts +11 -0
  190. package/src/app/seguridad/modelos/TipoEtiqueta.ts +8 -0
  191. package/src/app/seguridad/modelos/UnionModel.ts +14 -0
  192. package/src/app/seguridad/modelos/{UsuarioModel.d.ts → UsuarioModel.ts} +60 -49
  193. package/src/app/seguridad/modelos/UsuariogrupoModel.ts +27 -0
  194. package/src/app/seguridad/modelos/aplicacion-propiedad-model.ts +16 -0
  195. package/src/app/seguridad/modelos/contenidoCorreoModel.ts +13 -0
  196. package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.html +47 -0
  197. package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.scss +8 -0
  198. package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.ts +144 -0
  199. package/src/app/shared/servicios/cargar-archivos.service.ts +51 -0
  200. package/src/app/shared/servicios/cargar-mapas.service.ts +43 -0
  201. package/src/app/shared/servicios/encriptado-basico.service.ts +54 -0
  202. package/src/app/shared/servicios/encriptador-simetrico.service.ts +29 -0
  203. package/src/app/shared/servicios/general.service.ts +124 -0
  204. package/src/app/shared/servicios/parametros-navegacion.service.ts +20 -0
  205. package/src/app/shared/servicios/plantillas.service.ts +22 -0
  206. package/src/app/shared/servicios/tarea.service.ts +71 -0
  207. package/src/app/shared/utilidades/translate-loader.util.ts +44 -0
  208. package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.html +167 -0
  209. package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.scss +11 -0
  210. package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.ts +425 -0
  211. package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.html +87 -0
  212. package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.scss +0 -0
  213. package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.ts +189 -0
  214. package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.html +117 -0
  215. package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.scss +0 -0
  216. package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.ts +87 -0
  217. package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.html +158 -0
  218. package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.scss +6 -0
  219. package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.ts +345 -0
  220. package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.html +131 -0
  221. package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.scss +0 -0
  222. package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.ts +198 -0
  223. package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.html +206 -0
  224. package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.scss +3 -0
  225. package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.ts +329 -0
  226. package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.html +2114 -0
  227. package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.scss +241 -0
  228. package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.ts +1677 -0
  229. package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.html +33 -0
  230. package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.scss +0 -0
  231. package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.ts +96 -0
  232. package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.html +54 -0
  233. package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.scss +0 -0
  234. package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.ts +111 -0
  235. package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.html +394 -0
  236. package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.scss +10 -0
  237. package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.ts +599 -0
  238. package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.html +130 -0
  239. package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.scss +0 -0
  240. package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.ts +172 -0
  241. package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.html +376 -0
  242. package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.scss +5 -0
  243. package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.ts +749 -0
  244. package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.html +145 -0
  245. package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.scss +0 -0
  246. package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.ts +302 -0
  247. package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.html +19 -0
  248. package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.scss +0 -0
  249. package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.ts +89 -0
  250. package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.html +714 -0
  251. package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.scss +0 -0
  252. package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.ts +688 -0
  253. package/src/app/webcommon/pipes/dashboard.pipe.ts +79 -0
  254. package/src/app/webcommon/pipes/fuente.pipe.ts +207 -0
  255. package/src/app/webcommon/pipes/general.pipe.ts +1043 -0
  256. package/src/app/webcommon/pipes/reporte-columnario.pipe.ts +101 -0
  257. package/src/app/webcommon/pipes/reporte-fuente.pipe.ts +306 -0
  258. package/src/app/webcommon/pipes/sara-general.pipe.ts +289 -0
  259. package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.html +90 -0
  260. package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.scss +0 -0
  261. package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.ts +262 -0
  262. package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.html +50 -0
  263. package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.scss +0 -0
  264. package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.ts +135 -0
  265. package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.html +41 -0
  266. package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.scss +0 -0
  267. package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.ts +283 -0
  268. package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.html +179 -0
  269. package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.scss +3 -0
  270. package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.ts +266 -0
  271. package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.html +261 -0
  272. package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.scss +13 -0
  273. package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.ts +519 -0
  274. package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.html +10 -0
  275. package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.scss +5 -0
  276. package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.ts +58 -0
  277. package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.html +71 -0
  278. package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.scss +0 -0
  279. package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.ts +151 -0
  280. package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.html +11 -0
  281. package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.scss +0 -0
  282. package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.ts +82 -0
  283. package/src/app/webcommon/services/carguelinea.service.ts +72 -0
  284. package/src/app/webcommon/services/dashboard.service.ts +258 -0
  285. package/src/app/webcommon/services/ejecucionreporte.service.ts +160 -0
  286. package/src/app/webcommon/services/fechaUtils.service.ts +117 -0
  287. package/src/app/webcommon/services/fuentegeneral.service.ts +74 -0
  288. package/src/app/webcommon/services/homologacion.service.ts +49 -0
  289. package/src/app/webcommon/services/plantillas.service.ts +165 -0
  290. package/src/app/webcommon/services/reportes.service.ts +133 -0
  291. package/src/app/webcommon/webcommon.module.ts +11 -0
  292. package/src/environments/environment.prod.ts +3 -0
  293. package/src/environments/environment.ts +25 -0
  294. package/src/favicon.ico +0 -0
  295. package/src/index.html +14 -0
  296. package/src/main.ts +12 -0
  297. package/src/polyfills.ts +53 -0
  298. package/src/styles/primeng/sass/overrides/_theme_styles.scss +1 -1
  299. package/src/styles/primeng/sass/overrides/_theme_styles_dark.scss +1 -1
  300. package/src/test.ts +14 -0
  301. package/tsconfig.app.json +15 -0
  302. package/tsconfig.json +35 -0
  303. package/tsconfig.spec.json +18 -0
  304. package/esm2022/general-library-union.mjs +0 -5
  305. package/esm2022/public-api.mjs +0 -180
  306. package/esm2022/src/app/core/componentes/breadcrumb/breadcrumb.component.mjs +0 -40
  307. package/esm2022/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.mjs +0 -28
  308. package/esm2022/src/app/core/componentes/filtro-general/filtro-general.component.mjs +0 -194
  309. package/esm2022/src/app/core/componentes/footer/footer.component.mjs +0 -16
  310. package/esm2022/src/app/core/componentes/formulariodinamico/formulariodinamico.component.mjs +0 -272
  311. package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/Cambio.mjs +0 -11
  312. package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.mjs +0 -124
  313. package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.mjs +0 -73
  314. package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.mjs +0 -59
  315. package/esm2022/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.mjs +0 -21
  316. package/esm2022/src/app/core/componentes/inicio-component/inicio-component.component.mjs +0 -67
  317. package/esm2022/src/app/core/componentes/menu/menu.component.mjs +0 -37
  318. package/esm2022/src/app/core/componentes/tabla-general/tabla-general.component.mjs +0 -93
  319. package/esm2022/src/app/core/core.module.mjs +0 -23
  320. package/esm2022/src/app/core/errores/authentication.error.mjs +0 -7
  321. package/esm2022/src/app/core/modelos/error-response.model.mjs +0 -2
  322. package/esm2022/src/app/core/modelos/table-column.model.mjs +0 -2
  323. package/esm2022/src/app/core/modelos/user.model.mjs +0 -7
  324. package/esm2022/src/app/core/plantilla-general/plantilla-general.template.mjs +0 -230
  325. package/esm2022/src/app/core/servicios/auth.service.mjs +0 -185
  326. package/esm2022/src/app/core/servicios/cargar-control-funcionalidad.service.mjs +0 -57
  327. package/esm2022/src/app/core/servicios/data-exporter-table.utils.mjs +0 -64
  328. package/esm2022/src/app/core/servicios/error-interceptor.service.mjs +0 -214
  329. package/esm2022/src/app/core/servicios/guardias/auth.guard.mjs +0 -66
  330. package/esm2022/src/app/core/servicios/guardias/publico.guard.mjs +0 -35
  331. package/esm2022/src/app/core/servicios/interceptores/loading-interceptor.mjs +0 -37
  332. package/esm2022/src/app/core/servicios/interceptores/token-interceptor.service.mjs +0 -180
  333. package/esm2022/src/app/core/servicios/loading.service.mjs +0 -43
  334. package/esm2022/src/app/core/servicios/menu.service.mjs +0 -146
  335. package/esm2022/src/app/core/servicios/spinner-service.mjs +0 -22
  336. package/esm2022/src/app/core/servicios/storage.service.mjs +0 -68
  337. package/esm2022/src/app/core/servicios/template.service.mjs +0 -99
  338. package/esm2022/src/app/core/servicios/toast.service.mjs +0 -120
  339. package/esm2022/src/app/core/servicios/utils.service.mjs +0 -335
  340. package/esm2022/src/app/core/sharedlib.module.mjs +0 -16
  341. package/esm2022/src/app/core/utilidades/color.util.mjs +0 -177
  342. package/esm2022/src/app/layout/api/menuchangeevent.mjs +0 -2
  343. package/esm2022/src/app/layout/app.breadcrumb.component.mjs +0 -71
  344. package/esm2022/src/app/layout/app.footer.component.mjs +0 -18
  345. package/esm2022/src/app/layout/app.layout.component.mjs +0 -188
  346. package/esm2022/src/app/layout/app.layout.module.mjs +0 -15
  347. package/esm2022/src/app/layout/app.menu.component.mjs +0 -51
  348. package/esm2022/src/app/layout/app.menu.service.mjs +0 -24
  349. package/esm2022/src/app/layout/app.menuitem.component.mjs +0 -296
  350. package/esm2022/src/app/layout/app.menuprofile.component.mjs +0 -78
  351. package/esm2022/src/app/layout/app.rightmenu.component.mjs +0 -24
  352. package/esm2022/src/app/layout/app.sidebar.component.mjs +0 -92
  353. package/esm2022/src/app/layout/app.topbar.component.mjs +0 -345
  354. package/esm2022/src/app/layout/service/app.layout.service.mjs +0 -134
  355. package/esm2022/src/app/publico/pages/login/login.page.mjs +0 -129
  356. package/esm2022/src/app/publico/pages/not-found/not-found.page.mjs +0 -51
  357. package/esm2022/src/app/publico/pages/seleccion-rol/seleccion-rol.component.mjs +0 -167
  358. package/esm2022/src/app/publico/pages/timeout/timeout.page.mjs +0 -20
  359. package/esm2022/src/app/seguridad/constantes/ConstantesGenerales.mjs +0 -30
  360. package/esm2022/src/app/seguridad/constantes/ReporteEntradaConstantes.mjs +0 -19
  361. package/esm2022/src/app/seguridad/modelos/AplicacionModel.mjs +0 -8
  362. package/esm2022/src/app/seguridad/modelos/ArchivoPortalModel.mjs +0 -14
  363. package/esm2022/src/app/seguridad/modelos/AtributoPuntoModel.mjs +0 -9
  364. package/esm2022/src/app/seguridad/modelos/AtributoSSOportalModel.mjs +0 -17
  365. package/esm2022/src/app/seguridad/modelos/AuditoriaArchivoModel.mjs +0 -11
  366. package/esm2022/src/app/seguridad/modelos/CargueLineaModel.mjs +0 -13
  367. package/esm2022/src/app/seguridad/modelos/ColoresRGB.mjs +0 -18
  368. package/esm2022/src/app/seguridad/modelos/ColumnaFuenteModel.mjs +0 -9
  369. package/esm2022/src/app/seguridad/modelos/ColumnaWraperModel.mjs +0 -6
  370. package/esm2022/src/app/seguridad/modelos/ComplementoModel.mjs +0 -7
  371. package/esm2022/src/app/seguridad/modelos/ComponentePaginaModel.mjs +0 -21
  372. package/esm2022/src/app/seguridad/modelos/ConexionModel.mjs +0 -14
  373. package/esm2022/src/app/seguridad/modelos/ContenidoHtmlPortalModel.mjs +0 -21
  374. package/esm2022/src/app/seguridad/modelos/ControlFuncionModel.mjs +0 -8
  375. package/esm2022/src/app/seguridad/modelos/CorreoModel.mjs +0 -35
  376. package/esm2022/src/app/seguridad/modelos/CorreoWSModel.mjs +0 -37
  377. package/esm2022/src/app/seguridad/modelos/CruceRecursoPuntoModel.mjs +0 -14
  378. package/esm2022/src/app/seguridad/modelos/DatoInicioModel.mjs +0 -6
  379. package/esm2022/src/app/seguridad/modelos/EjecucionReporteDataModel.mjs +0 -14
  380. package/esm2022/src/app/seguridad/modelos/EmpresaModel.mjs +0 -25
  381. package/esm2022/src/app/seguridad/modelos/EmpresaSeguridadModel.mjs +0 -19
  382. package/esm2022/src/app/seguridad/modelos/EntradaComplementoModel.mjs +0 -7
  383. package/esm2022/src/app/seguridad/modelos/EtiquetaModel.mjs +0 -5
  384. package/esm2022/src/app/seguridad/modelos/Etiquetas.mjs +0 -12
  385. package/esm2022/src/app/seguridad/modelos/ForeingWraperModel.mjs +0 -6
  386. package/esm2022/src/app/seguridad/modelos/FuenteCampoAtributoModel.mjs +0 -16
  387. package/esm2022/src/app/seguridad/modelos/FuenteCampoModel.mjs +0 -17
  388. package/esm2022/src/app/seguridad/modelos/FuenteDato.mjs +0 -19
  389. package/esm2022/src/app/seguridad/modelos/FuenteEntradaModel.mjs +0 -9
  390. package/esm2022/src/app/seguridad/modelos/FuenteGeneralModel.mjs +0 -37
  391. package/esm2022/src/app/seguridad/modelos/FuenteLineaServicioModel.mjs +0 -16
  392. package/esm2022/src/app/seguridad/modelos/FuenteProcesoGeneralModel.mjs +0 -11
  393. package/esm2022/src/app/seguridad/modelos/FuenteServicioModel.mjs +0 -51
  394. package/esm2022/src/app/seguridad/modelos/FuncionalidadModel.mjs +0 -10
  395. package/esm2022/src/app/seguridad/modelos/GeneralModel.mjs +0 -15
  396. package/esm2022/src/app/seguridad/modelos/GrupoAccesoModel.mjs +0 -7
  397. package/esm2022/src/app/seguridad/modelos/GrupoControlFuncionModel.mjs +0 -10
  398. package/esm2022/src/app/seguridad/modelos/GrupoFuenteModel.mjs +0 -13
  399. package/esm2022/src/app/seguridad/modelos/GrupoPermisoModel.mjs +0 -14
  400. package/esm2022/src/app/seguridad/modelos/JoinFromModel.mjs +0 -5
  401. package/esm2022/src/app/seguridad/modelos/ListaServicioModel.mjs +0 -17
  402. package/esm2022/src/app/seguridad/modelos/LlaveForaneaModel.mjs +0 -7
  403. package/esm2022/src/app/seguridad/modelos/LoginModel.mjs +0 -15
  404. package/esm2022/src/app/seguridad/modelos/MensajeSistemaModel.mjs +0 -8
  405. package/esm2022/src/app/seguridad/modelos/MenuPortalModel.mjs +0 -5
  406. package/esm2022/src/app/seguridad/modelos/ModulosModel.mjs +0 -18
  407. package/esm2022/src/app/seguridad/modelos/ObjetoReporteModel.mjs +0 -6
  408. package/esm2022/src/app/seguridad/modelos/PaginaPortalModel.mjs +0 -20
  409. package/esm2022/src/app/seguridad/modelos/ParametroComponenteModel.mjs +0 -9
  410. package/esm2022/src/app/seguridad/modelos/ParametrosGeneralModel.mjs +0 -15
  411. package/esm2022/src/app/seguridad/modelos/PermisoFuncionModel.mjs +0 -9
  412. package/esm2022/src/app/seguridad/modelos/PermisocontenidoModel.mjs +0 -20
  413. package/esm2022/src/app/seguridad/modelos/PeticionModel.mjs +0 -16
  414. package/esm2022/src/app/seguridad/modelos/PreguntaSeguridadModel.mjs +0 -7
  415. package/esm2022/src/app/seguridad/modelos/PropiedadModel.mjs +0 -10
  416. package/esm2022/src/app/seguridad/modelos/PublicacionWebModel.mjs +0 -27
  417. package/esm2022/src/app/seguridad/modelos/PuntoProcesoModel.mjs +0 -7
  418. package/esm2022/src/app/seguridad/modelos/RecursoPunto.mjs +0 -13
  419. package/esm2022/src/app/seguridad/modelos/RecursoPuntoModel.mjs +0 -13
  420. package/esm2022/src/app/seguridad/modelos/ReporteBanda.mjs +0 -8
  421. package/esm2022/src/app/seguridad/modelos/ReporteColumna.mjs +0 -33
  422. package/esm2022/src/app/seguridad/modelos/ReporteColumnario.mjs +0 -69
  423. package/esm2022/src/app/seguridad/modelos/ReporteColumnarioMarcador.mjs +0 -24
  424. package/esm2022/src/app/seguridad/modelos/ReporteEntradaModel.mjs +0 -20
  425. package/esm2022/src/app/seguridad/modelos/ReporteFuenteModel.mjs +0 -124
  426. package/esm2022/src/app/seguridad/modelos/ReporteMarcador.mjs +0 -40
  427. package/esm2022/src/app/seguridad/modelos/ReporteSoporte.mjs +0 -10
  428. package/esm2022/src/app/seguridad/modelos/ReporteTabla.mjs +0 -13
  429. package/esm2022/src/app/seguridad/modelos/RespuestaModel.mjs +0 -9
  430. package/esm2022/src/app/seguridad/modelos/RolModel.mjs +0 -39
  431. package/esm2022/src/app/seguridad/modelos/ServidorCorreoModel.mjs +0 -28
  432. package/esm2022/src/app/seguridad/modelos/SistemaMensajeModel.mjs +0 -9
  433. package/esm2022/src/app/seguridad/modelos/SitioPortalModel.mjs +0 -25
  434. package/esm2022/src/app/seguridad/modelos/TablaFromModel.mjs +0 -5
  435. package/esm2022/src/app/seguridad/modelos/TareasModel.mjs +0 -54
  436. package/esm2022/src/app/seguridad/modelos/TextoModel.mjs +0 -9
  437. package/esm2022/src/app/seguridad/modelos/TipoEtiqueta.mjs +0 -8
  438. package/esm2022/src/app/seguridad/modelos/UnionModel.mjs +0 -12
  439. package/esm2022/src/app/seguridad/modelos/UsuarioModel.mjs +0 -53
  440. package/esm2022/src/app/seguridad/modelos/UsuariogrupoModel.mjs +0 -24
  441. package/esm2022/src/app/seguridad/modelos/aplicacion-propiedad-model.mjs +0 -15
  442. package/esm2022/src/app/seguridad/modelos/contenidoCorreoModel.mjs +0 -10
  443. package/esm2022/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.mjs +0 -154
  444. package/esm2022/src/app/shared/servicios/cargar-archivos.service.mjs +0 -54
  445. package/esm2022/src/app/shared/servicios/cargar-mapas.service.mjs +0 -46
  446. package/esm2022/src/app/shared/servicios/encriptado-basico.service.mjs +0 -53
  447. package/esm2022/src/app/shared/servicios/general.service.mjs +0 -104
  448. package/esm2022/src/app/shared/servicios/parametros-navegacion.service.mjs +0 -21
  449. package/esm2022/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.mjs +0 -370
  450. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.mjs +0 -187
  451. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.mjs +0 -85
  452. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.mjs +0 -347
  453. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.mjs +0 -206
  454. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.mjs +0 -328
  455. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.mjs +0 -1569
  456. package/esm2022/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.mjs +0 -105
  457. package/esm2022/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.mjs +0 -114
  458. package/esm2022/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.mjs +0 -588
  459. package/esm2022/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.mjs +0 -177
  460. package/esm2022/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.mjs +0 -749
  461. package/esm2022/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.mjs +0 -331
  462. package/esm2022/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.mjs +0 -96
  463. package/esm2022/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.mjs +0 -675
  464. package/esm2022/src/app/webcommon/pipes/dashboard.pipe.mjs +0 -86
  465. package/esm2022/src/app/webcommon/pipes/fuente.pipe.mjs +0 -201
  466. package/esm2022/src/app/webcommon/pipes/general.pipe.mjs +0 -916
  467. package/esm2022/src/app/webcommon/pipes/reporte-columnario.pipe.mjs +0 -115
  468. package/esm2022/src/app/webcommon/pipes/reporte-fuente.pipe.mjs +0 -301
  469. package/esm2022/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.mjs +0 -267
  470. package/esm2022/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.mjs +0 -128
  471. package/esm2022/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.mjs +0 -293
  472. package/esm2022/src/app/webcommon/popups/popup-recurso/popup-recurso.component.mjs +0 -269
  473. package/esm2022/src/app/webcommon/popups/popup-reporte/popup-reporte.component.mjs +0 -515
  474. package/esm2022/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.mjs +0 -64
  475. package/esm2022/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.mjs +0 -159
  476. package/esm2022/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.mjs +0 -89
  477. package/esm2022/src/app/webcommon/services/carguelinea.service.mjs +0 -69
  478. package/esm2022/src/app/webcommon/services/dashboard.service.mjs +0 -253
  479. package/esm2022/src/app/webcommon/services/ejecucionreporte.service.mjs +0 -114
  480. package/esm2022/src/app/webcommon/services/fechaUtils.service.mjs +0 -88
  481. package/esm2022/src/app/webcommon/services/fuentegeneral.service.mjs +0 -68
  482. package/esm2022/src/app/webcommon/services/homologacion.service.mjs +0 -50
  483. package/esm2022/src/app/webcommon/services/plantillas.service.mjs +0 -129
  484. package/esm2022/src/app/webcommon/services/reportes.service.mjs +0 -95
  485. package/esm2022/src/app/webcommon/webcommon.module.mjs +0 -15
  486. package/esm2022/src/environments/environment.mjs +0 -24
  487. package/fesm2022/general-library-union.mjs +0 -15885
  488. package/fesm2022/general-library-union.mjs.map +0 -1
  489. package/index.d.ts +0 -5
  490. package/src/app/core/componentes/breadcrumb/breadcrumb.component.d.ts +0 -18
  491. package/src/app/core/componentes/carga-pantalla-completa/carga-pantalla-completa.component.d.ts +0 -14
  492. package/src/app/core/componentes/filtro-general/filtro-general.component.d.ts +0 -34
  493. package/src/app/core/componentes/footer/footer.component.d.ts +0 -9
  494. package/src/app/core/componentes/formulariodinamico/formulariodinamico.component.d.ts +0 -46
  495. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormulario.d.ts +0 -44
  496. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioCons.d.ts +0 -45
  497. package/src/app/core/componentes/formulariodinamico/objetosformulario/CampoFormularioNuevo.d.ts +0 -33
  498. package/src/app/core/componentes/formulariodinamico/objetosformulario/HashDirective.d.ts +0 -9
  499. package/src/app/core/componentes/inicio-component/inicio-component.component.d.ts +0 -24
  500. package/src/app/core/componentes/menu/menu.component.d.ts +0 -16
  501. package/src/app/core/componentes/tabla-general/tabla-general.component.d.ts +0 -32
  502. package/src/app/core/core.module.d.ts +0 -8
  503. package/src/app/core/errores/authentication.error.d.ts +0 -3
  504. package/src/app/core/modelos/error-response.model.d.ts +0 -9
  505. package/src/app/core/modelos/table-column.model.d.ts +0 -12
  506. package/src/app/core/modelos/user.model.d.ts +0 -6
  507. package/src/app/core/plantilla-general/plantilla-general.template.d.ts +0 -89
  508. package/src/app/core/servicios/auth.service.d.ts +0 -52
  509. package/src/app/core/servicios/cargar-control-funcionalidad.service.d.ts +0 -19
  510. package/src/app/core/servicios/data-exporter-table.utils.d.ts +0 -11
  511. package/src/app/core/servicios/error-interceptor.service.d.ts +0 -41
  512. package/src/app/core/servicios/guardias/auth.guard.d.ts +0 -17
  513. package/src/app/core/servicios/guardias/publico.guard.d.ts +0 -13
  514. package/src/app/core/servicios/interceptores/loading-interceptor.d.ts +0 -11
  515. package/src/app/core/servicios/interceptores/token-interceptor.service.d.ts +0 -26
  516. package/src/app/core/servicios/loading.service.d.ts +0 -22
  517. package/src/app/core/servicios/menu.service.d.ts +0 -35
  518. package/src/app/core/servicios/spinner-service.d.ts +0 -9
  519. package/src/app/core/servicios/storage.service.d.ts +0 -37
  520. package/src/app/core/servicios/template.service.d.ts +0 -20
  521. package/src/app/core/servicios/toast.service.d.ts +0 -48
  522. package/src/app/core/servicios/utils.service.d.ts +0 -42
  523. package/src/app/core/sharedlib.module.d.ts +0 -6
  524. package/src/app/core/utilidades/color.util.d.ts +0 -70
  525. package/src/app/layout/app.breadcrumb.component.d.ts +0 -28
  526. package/src/app/layout/app.footer.component.d.ts +0 -8
  527. package/src/app/layout/app.layout.component.d.ts +0 -39
  528. package/src/app/layout/app.layout.module.d.ts +0 -6
  529. package/src/app/layout/app.menu.component.d.ts +0 -19
  530. package/src/app/layout/app.menu.service.d.ts +0 -12
  531. package/src/app/layout/app.menuitem.component.d.ts +0 -41
  532. package/src/app/layout/app.menuprofile.component.d.ts +0 -18
  533. package/src/app/layout/app.rightmenu.component.d.ts +0 -10
  534. package/src/app/layout/app.sidebar.component.d.ts +0 -34
  535. package/src/app/layout/app.topbar.component.d.ts +0 -79
  536. package/src/app/layout/service/app.layout.service.d.ts +0 -57
  537. package/src/app/publico/pages/login/login.page.d.ts +0 -40
  538. package/src/app/publico/pages/not-found/not-found.page.d.ts +0 -17
  539. package/src/app/publico/pages/seleccion-rol/seleccion-rol.component.d.ts +0 -41
  540. package/src/app/publico/pages/timeout/timeout.page.d.ts +0 -10
  541. package/src/app/seguridad/constantes/ConstantesGenerales.d.ts +0 -25
  542. package/src/app/seguridad/constantes/ReporteEntradaConstantes.d.ts +0 -7
  543. package/src/app/seguridad/modelos/AplicacionModel.d.ts +0 -7
  544. package/src/app/seguridad/modelos/ArchivoPortalModel.d.ts +0 -13
  545. package/src/app/seguridad/modelos/AtributoPuntoModel.d.ts +0 -8
  546. package/src/app/seguridad/modelos/AtributoSSOportalModel.d.ts +0 -16
  547. package/src/app/seguridad/modelos/CargueLineaModel.d.ts +0 -12
  548. package/src/app/seguridad/modelos/ColoresRGB.d.ts +0 -17
  549. package/src/app/seguridad/modelos/ColumnaFuenteModel.d.ts +0 -8
  550. package/src/app/seguridad/modelos/ComplementoModel.d.ts +0 -6
  551. package/src/app/seguridad/modelos/ComponentePaginaModel.d.ts +0 -20
  552. package/src/app/seguridad/modelos/ConexionModel.d.ts +0 -13
  553. package/src/app/seguridad/modelos/ControlFuncionModel.d.ts +0 -7
  554. package/src/app/seguridad/modelos/CorreoModel.d.ts +0 -31
  555. package/src/app/seguridad/modelos/CorreoWSModel.d.ts +0 -33
  556. package/src/app/seguridad/modelos/CruceRecursoPuntoModel.d.ts +0 -13
  557. package/src/app/seguridad/modelos/EmpresaModel.d.ts +0 -23
  558. package/src/app/seguridad/modelos/EmpresaSeguridadModel.d.ts +0 -18
  559. package/src/app/seguridad/modelos/EtiquetaModel.d.ts +0 -4
  560. package/src/app/seguridad/modelos/Etiquetas.d.ts +0 -10
  561. package/src/app/seguridad/modelos/FuenteCampoAtributoModel.d.ts +0 -15
  562. package/src/app/seguridad/modelos/FuenteDato.d.ts +0 -18
  563. package/src/app/seguridad/modelos/FuenteEntradaModel.d.ts +0 -8
  564. package/src/app/seguridad/modelos/FuenteLineaServicioModel.d.ts +0 -16
  565. package/src/app/seguridad/modelos/FuenteProcesoGeneralModel.d.ts +0 -10
  566. package/src/app/seguridad/modelos/FuncionalidadModel.d.ts +0 -8
  567. package/src/app/seguridad/modelos/GeneralModel.d.ts +0 -8
  568. package/src/app/seguridad/modelos/GrupoControlFuncionModel.d.ts +0 -9
  569. package/src/app/seguridad/modelos/GrupoFuenteModel.d.ts +0 -13
  570. package/src/app/seguridad/modelos/GrupoPermisoModel.d.ts +0 -13
  571. package/src/app/seguridad/modelos/ListaServicioModel.d.ts +0 -16
  572. package/src/app/seguridad/modelos/LlaveForaneaModel.d.ts +0 -6
  573. package/src/app/seguridad/modelos/LoginModel.d.ts +0 -17
  574. package/src/app/seguridad/modelos/MensajeSistemaModel.d.ts +0 -7
  575. package/src/app/seguridad/modelos/ModulosModel.d.ts +0 -14
  576. package/src/app/seguridad/modelos/PaginaPortalModel.d.ts +0 -19
  577. package/src/app/seguridad/modelos/ParametroComponenteModel.d.ts +0 -8
  578. package/src/app/seguridad/modelos/ParametrosGeneralModel.d.ts +0 -8
  579. package/src/app/seguridad/modelos/PermisoFuncionModel.d.ts +0 -8
  580. package/src/app/seguridad/modelos/PermisocontenidoModel.d.ts +0 -18
  581. package/src/app/seguridad/modelos/PreguntaSeguridadModel.d.ts +0 -6
  582. package/src/app/seguridad/modelos/PropiedadModel.d.ts +0 -9
  583. package/src/app/seguridad/modelos/PublicacionWebModel.d.ts +0 -25
  584. package/src/app/seguridad/modelos/PuntoProcesoModel.d.ts +0 -6
  585. package/src/app/seguridad/modelos/RecursoPunto.d.ts +0 -12
  586. package/src/app/seguridad/modelos/RecursoPuntoModel.d.ts +0 -12
  587. package/src/app/seguridad/modelos/ReporteBanda.d.ts +0 -7
  588. package/src/app/seguridad/modelos/ReporteColumna.d.ts +0 -32
  589. package/src/app/seguridad/modelos/ReporteColumnario.d.ts +0 -68
  590. package/src/app/seguridad/modelos/ReporteColumnarioMarcador.d.ts +0 -23
  591. package/src/app/seguridad/modelos/ReporteMarcador.d.ts +0 -39
  592. package/src/app/seguridad/modelos/ReporteSoporte.d.ts +0 -9
  593. package/src/app/seguridad/modelos/ReporteTabla.d.ts +0 -12
  594. package/src/app/seguridad/modelos/RespuestaModel.d.ts +0 -8
  595. package/src/app/seguridad/modelos/ServidorCorreoModel.d.ts +0 -25
  596. package/src/app/seguridad/modelos/SistemaMensajeModel.d.ts +0 -8
  597. package/src/app/seguridad/modelos/SitioPortalModel.d.ts +0 -24
  598. package/src/app/seguridad/modelos/TablaFromModel.d.ts +0 -4
  599. package/src/app/seguridad/modelos/TareasModel.d.ts +0 -49
  600. package/src/app/seguridad/modelos/TextoModel.d.ts +0 -8
  601. package/src/app/seguridad/modelos/TipoEtiqueta.d.ts +0 -7
  602. package/src/app/seguridad/modelos/UnionModel.d.ts +0 -11
  603. package/src/app/seguridad/modelos/UsuariogrupoModel.d.ts +0 -22
  604. package/src/app/seguridad/modelos/aplicacion-propiedad-model.d.ts +0 -13
  605. package/src/app/seguridad/modelos/contenidoCorreoModel.d.ts +0 -9
  606. package/src/app/shared/componentes/input-helper-seleccion-plantilla/input-helper-seleccion-plantilla.component.d.ts +0 -47
  607. package/src/app/shared/servicios/cargar-archivos.service.d.ts +0 -15
  608. package/src/app/shared/servicios/cargar-mapas.service.d.ts +0 -18
  609. package/src/app/shared/servicios/encriptado-basico.service.d.ts +0 -10
  610. package/src/app/shared/servicios/general.service.d.ts +0 -24
  611. package/src/app/shared/servicios/parametros-navegacion.service.d.ts +0 -9
  612. package/src/app/webcommon/pages/cargue-plantilla/cargue-plantilla-general/cargue-plantilla-general.component.d.ts +0 -78
  613. package/src/app/webcommon/pages/ejecucion-reporte/detalle-campo-reporte/detalle-campo-reporte.component.d.ts +0 -79
  614. package/src/app/webcommon/pages/ejecucion-reporte/detalle-distribucion-reporte/detalle-distribucion-reporte.component.d.ts +0 -29
  615. package/src/app/webcommon/pages/ejecucion-reporte/detalle-ejecucion-reporte/detalle-ejecucion-reporte.page.d.ts +0 -69
  616. package/src/app/webcommon/pages/ejecucion-reporte/detalle-entrada-reporte/detalle-entrada-reporte.component.d.ts +0 -51
  617. package/src/app/webcommon/pages/ejecucion-reporte/detalle-punto-proceso-reporte/detalle-punto-proceso-reporte.component.d.ts +0 -77
  618. package/src/app/webcommon/pages/ejecucion-reporte/detalle-tipo-reporte/detalle-tipo-reporte.component.d.ts +0 -275
  619. package/src/app/webcommon/pages/ejecucion-reporte/listado-ejecucion-reporte/listado-ejecucion-reporte.page.d.ts +0 -42
  620. package/src/app/webcommon/pages/ejecucion-reporte-externo/listado-ejecucion-reporte-externo/listado-ejecucion-reporte-externo.component.d.ts +0 -35
  621. package/src/app/webcommon/pages/fuente/importar-fuente-con/importar-fuente-con.component.d.ts +0 -143
  622. package/src/app/webcommon/pages/fuente/importar-fuente-general/importar-fuente-general.component.d.ts +0 -49
  623. package/src/app/webcommon/pages/fuente-reporte/fuente-reporte.component.d.ts +0 -128
  624. package/src/app/webcommon/pages/fuenteGeneral/fuente-general-servicio/fuente-general-servicio.component.d.ts +0 -64
  625. package/src/app/webcommon/pages/fuenteGeneral/listado-fuente-general/listado-fuente-general.page.d.ts +0 -33
  626. package/src/app/webcommon/pages/fuenteGeneral/mantenimiento-fuente-general/mantenimiento-fuente-general.page.d.ts +0 -149
  627. package/src/app/webcommon/pipes/dashboard.pipe.d.ts +0 -48
  628. package/src/app/webcommon/pipes/fuente.pipe.d.ts +0 -136
  629. package/src/app/webcommon/pipes/general.pipe.d.ts +0 -646
  630. package/src/app/webcommon/pipes/reporte-columnario.pipe.d.ts +0 -59
  631. package/src/app/webcommon/pipes/reporte-fuente.pipe.d.ts +0 -193
  632. package/src/app/webcommon/popups/popup-campos-fuente-general/popup-campos-fuente-general.component.d.ts +0 -59
  633. package/src/app/webcommon/popups/popup-convertir-plantillas/popup-convertir-plantillas.component.d.ts +0 -27
  634. package/src/app/webcommon/popups/popup-punto-proceso/popup-punto-proceso.component.d.ts +0 -64
  635. package/src/app/webcommon/popups/popup-recurso/popup-recurso.component.d.ts +0 -63
  636. package/src/app/webcommon/popups/popup-reporte/popup-reporte.component.d.ts +0 -97
  637. package/src/app/webcommon/popups/popup-sentencia/popup-sentencia.component.d.ts +0 -21
  638. package/src/app/webcommon/popups/popup-tablas-fuente/popup-tablas-fuente.component.d.ts +0 -42
  639. package/src/app/webcommon/popups/punto-proceso-comp/punto-proceso-comp.component.d.ts +0 -30
  640. package/src/app/webcommon/services/carguelinea.service.d.ts +0 -19
  641. package/src/app/webcommon/services/dashboard.service.d.ts +0 -27
  642. package/src/app/webcommon/services/ejecucionreporte.service.d.ts +0 -34
  643. package/src/app/webcommon/services/fechaUtils.service.d.ts +0 -29
  644. package/src/app/webcommon/services/fuentegeneral.service.d.ts +0 -24
  645. package/src/app/webcommon/services/homologacion.service.d.ts +0 -17
  646. package/src/app/webcommon/services/plantillas.service.d.ts +0 -26
  647. package/src/app/webcommon/services/reportes.service.d.ts +0 -35
  648. package/src/app/webcommon/webcommon.module.d.ts +0 -6
  649. package/src/environments/environment.d.ts +0 -7
@@ -0,0 +1,1677 @@
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
+ }