general-library-union 3.0.43 → 3.0.45

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