general-library-union 2.3.38 → 2.3.40

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