general-library-union 2.8.18 → 2.8.20

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