general-library-union 2.3.36 → 2.3.37

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