sigesp 1.1.56-20250722 → 1.1.57-20250722

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 (602) hide show
  1. package/esm2020/lib/app/app.component.mjs +14 -0
  2. package/esm2020/lib/app/app.module.mjs +34 -0
  3. package/esm2020/lib/core/interfaces/Auditoria.mjs +49 -0
  4. package/esm2020/lib/core/interfaces/Banco.mjs +2 -0
  5. package/esm2020/lib/core/interfaces/Catalogo.mjs +2 -0
  6. package/esm2020/lib/core/interfaces/CentroCosto.mjs +2 -0
  7. package/esm2020/lib/core/interfaces/Clasificacion.mjs +2 -0
  8. package/esm2020/lib/core/interfaces/Cliente.mjs +2 -0
  9. package/esm2020/lib/core/interfaces/ComprobantePresupuestario.mjs +2 -0
  10. package/esm2020/lib/core/interfaces/Comunidad.mjs +2 -0
  11. package/esm2020/lib/core/interfaces/Configuracion.mjs +2 -0
  12. package/esm2020/lib/core/interfaces/ConfiguracionRPC.mjs +2 -0
  13. package/esm2020/lib/core/interfaces/ConfiguracionSCG.mjs +2 -0
  14. package/esm2020/lib/core/interfaces/ConfigurationSPG.mjs +2 -0
  15. package/esm2020/lib/core/interfaces/Constantes.mjs +369 -0
  16. package/esm2020/lib/core/interfaces/CuentaEgresos.mjs +2 -0
  17. package/esm2020/lib/core/interfaces/CuentaIngreso.mjs +2 -0
  18. package/esm2020/lib/core/interfaces/CuentaIngresoEstructura.mjs +2 -0
  19. package/esm2020/lib/core/interfaces/CuentaInstitucional.mjs +2 -0
  20. package/esm2020/lib/core/interfaces/CuentaPresupuesto.mjs +2 -0
  21. package/esm2020/lib/core/interfaces/CuentasPorPagar.mjs +2 -0
  22. package/esm2020/lib/core/interfaces/Documento.mjs +2 -0
  23. package/esm2020/lib/core/interfaces/EntradaSuministro.mjs +2 -0
  24. package/esm2020/lib/core/interfaces/Especialidad.mjs +2 -0
  25. package/esm2020/lib/core/interfaces/EstructuraPresupuestaria.mjs +2 -0
  26. package/esm2020/lib/core/interfaces/FuenteFinanciamiento.mjs +2 -0
  27. package/esm2020/lib/core/interfaces/IBancoCuentasPorPagar.mjs +2 -0
  28. package/esm2020/lib/core/interfaces/ITipoDepositos.mjs +2 -0
  29. package/esm2020/lib/core/interfaces/Integracion.mjs +2 -0
  30. package/esm2020/lib/core/interfaces/Lugares.mjs +2 -0
  31. package/esm2020/lib/core/interfaces/Moneda.mjs +2 -0
  32. package/esm2020/lib/core/interfaces/Nomina.mjs +29 -0
  33. package/esm2020/lib/core/interfaces/PlanUnicoCuenta.mjs +2 -0
  34. package/esm2020/lib/core/interfaces/Presupuesto.mjs +2 -0
  35. package/esm2020/lib/core/interfaces/Proveedor.mjs +2 -0
  36. package/esm2020/lib/core/interfaces/RecursosHumanos.mjs +4 -0
  37. package/esm2020/lib/core/interfaces/Request.mjs +2 -0
  38. package/esm2020/lib/core/interfaces/Response.mjs +2 -0
  39. package/esm2020/lib/core/interfaces/Seguridad.mjs +2 -0
  40. package/esm2020/lib/core/interfaces/Servicios.mjs +2 -0
  41. package/esm2020/lib/core/interfaces/Sistema.mjs +2 -0
  42. package/esm2020/lib/core/interfaces/Tributos.mjs +2 -0
  43. package/esm2020/lib/core/interfaces/UnidadTributaria.mjs +2 -0
  44. package/esm2020/lib/core/interfaces/Usuario.mjs +2 -0
  45. package/esm2020/lib/core/interfaces/UsuarioPrefijo.mjs +2 -0
  46. package/esm2020/lib/core/models/CFG/Empresa.model.mjs +115 -0
  47. package/esm2020/lib/core/models/CFG/Enterprise.model.mjs +70 -0
  48. package/esm2020/lib/core/models/CFG/MPrefijo.model.mjs +67 -0
  49. package/esm2020/lib/core/models/CFG/Procede.model.mjs +31 -0
  50. package/esm2020/lib/core/models/CFG/TasaCambio.model.mjs +40 -0
  51. package/esm2020/lib/core/models/CFG/comunidad.model.mjs +22 -0
  52. package/esm2020/lib/core/models/CFG/locations.model.mjs +170 -0
  53. package/esm2020/lib/core/models/CFG/moneda.model.mjs +72 -0
  54. package/esm2020/lib/core/models/CFG/userPrefix.model.mjs +49 -0
  55. package/esm2020/lib/core/models/CXP/MConceptosCXP.model.mjs +34 -0
  56. package/esm2020/lib/core/models/CXP/MTipoDocumentoCXP.model.mjs +44 -0
  57. package/esm2020/lib/core/models/RPC/clasification.model.mjs +16 -0
  58. package/esm2020/lib/core/models/RPC/configuracionRPC.model.mjs +23 -0
  59. package/esm2020/lib/core/models/RPC/document.model.mjs +16 -0
  60. package/esm2020/lib/core/models/RPC/proveedores.model.mjs +9 -0
  61. package/esm2020/lib/core/models/RPC/providerBeneficiary.model.mjs +285 -0
  62. package/esm2020/lib/core/models/RPC/specialty.model.mjs +12 -0
  63. package/esm2020/lib/core/models/SCB/bank.model.mjs +181 -0
  64. package/esm2020/lib/core/models/SCG/IncomeAccount.mjs +127 -0
  65. package/esm2020/lib/core/models/SCG/accountMarriage.model.mjs +29 -0
  66. package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +75 -0
  67. package/esm2020/lib/core/models/SCG/configuracionSCG.model.mjs +161 -0
  68. package/esm2020/lib/core/models/SCG/cuentaInstitucional.model.mjs +95 -0
  69. package/esm2020/lib/core/models/SCG/planUnicoCuenta.model.mjs +17 -0
  70. package/esm2020/lib/core/models/SFV/MClienteModel.mjs +116 -0
  71. package/esm2020/lib/core/models/SIV/MDetaContable.model.mjs +62 -0
  72. package/esm2020/lib/core/models/SIV/MDetaEntrada.model.mjs +94 -0
  73. package/esm2020/lib/core/models/SIV/MEntradaSuministro.model.mjs +132 -0
  74. package/esm2020/lib/core/models/SIV/MTipoDepositos.model.mjs +103 -0
  75. package/esm2020/lib/core/models/SNO/MAnticipoPrestaciones.model.mjs +100 -0
  76. package/esm2020/lib/core/models/SNO/MArchivoTxtCampo.model.mjs +61 -0
  77. package/esm2020/lib/core/models/SNO/MArchivosTxt.model.mjs +41 -0
  78. package/esm2020/lib/core/models/SNO/MAsignacionCargo.model.mjs +221 -0
  79. package/esm2020/lib/core/models/SNO/MAspectoEvaluacion.model.mjs +90 -0
  80. package/esm2020/lib/core/models/SNO/MAuditoria.model.mjs +61 -0
  81. package/esm2020/lib/core/models/SNO/MBeneficiario.model.mjs +137 -0
  82. package/esm2020/lib/core/models/SNO/MCargaFamiliar.model.mjs +52 -0
  83. package/esm2020/lib/core/models/SNO/MCargaMasiva.model.mjs +34 -0
  84. package/esm2020/lib/core/models/SNO/MCargosPersonal.model.mjs +116 -0
  85. package/esm2020/lib/core/models/SNO/MClasificacionObrero.mdel.mjs +46 -0
  86. package/esm2020/lib/core/models/SNO/MCodigoUnicoRac.model.mjs +39 -0
  87. package/esm2020/lib/core/models/SNO/MComponete.model.mjs +38 -0
  88. package/esm2020/lib/core/models/SNO/MConceptoVacaciones.model.mjs +85 -0
  89. package/esm2020/lib/core/models/SNO/MConceptosNomina.model.mjs +241 -0
  90. package/esm2020/lib/core/models/SNO/MConceptosPersonalNomina.model.mjs +97 -0
  91. package/esm2020/lib/core/models/SNO/MConcursante.model.mjs +317 -0
  92. package/esm2020/lib/core/models/SNO/MConcurso.model.mjs +246 -0
  93. package/esm2020/lib/core/models/SNO/MConfiguracionSNO.model.mjs +416 -0
  94. package/esm2020/lib/core/models/SNO/MConstanteNomina.model.mjs +70 -0
  95. package/esm2020/lib/core/models/SNO/MConstantePersonalNomina.model.mjs +79 -0
  96. package/esm2020/lib/core/models/SNO/MDedicacion.model.mjs +35 -0
  97. package/esm2020/lib/core/models/SNO/MDefinicionNomina.model.mjs +304 -0
  98. package/esm2020/lib/core/models/SNO/MDefinicionesBasicas.model.mjs +72 -0
  99. package/esm2020/lib/core/models/SNO/MDeudaAnterior.model.mjs +40 -0
  100. package/esm2020/lib/core/models/SNO/MEncargaduria.model.mjs +138 -0
  101. package/esm2020/lib/core/models/SNO/MEscalaEvaluacion.model.mjs +38 -0
  102. package/esm2020/lib/core/models/SNO/MEscalaEvaluacionDt.model.mjs +37 -0
  103. package/esm2020/lib/core/models/SNO/MEstructuraOrganizativa.model.mjs +130 -0
  104. package/esm2020/lib/core/models/SNO/MFamiliares.model.mjs +86 -0
  105. package/esm2020/lib/core/models/SNO/MFeriados.model.mjs +43 -0
  106. package/esm2020/lib/core/models/SNO/MFideicomiso.model.mjs +406 -0
  107. package/esm2020/lib/core/models/SNO/MFormacionAcademica.model.mjs +49 -0
  108. package/esm2020/lib/core/models/SNO/MGrado.model.mjs +44 -0
  109. package/esm2020/lib/core/models/SNO/MHojaTiempo.model.mjs +117 -0
  110. package/esm2020/lib/core/models/SNO/MImpuestoSobreRenta.model.mjs +73 -0
  111. package/esm2020/lib/core/models/SNO/MMetodoBanco.model.mjs +105 -0
  112. package/esm2020/lib/core/models/SNO/MNominaSimple.model.mjs +79 -0
  113. package/esm2020/lib/core/models/SNO/MPeriodoNomina.model.mjs +201 -0
  114. package/esm2020/lib/core/models/SNO/MPermisos.model.mjs +68 -0
  115. package/esm2020/lib/core/models/SNO/MPersonal.model.mjs +638 -0
  116. package/esm2020/lib/core/models/SNO/MPersonalJubilado.model.mjs +64 -0
  117. package/esm2020/lib/core/models/SNO/MPersonalNomina.model.mjs +315 -0
  118. package/esm2020/lib/core/models/SNO/MPlanHorario.model.mjs +117 -0
  119. package/esm2020/lib/core/models/SNO/MPlantillaConstancia.model.mjs +31 -0
  120. package/esm2020/lib/core/models/SNO/MPrestamo.model.mjs +221 -0
  121. package/esm2020/lib/core/models/SNO/MPrimaGrados.model.mjs +43 -0
  122. package/esm2020/lib/core/models/SNO/MPrimasConcepto.model.mjs +43 -0
  123. package/esm2020/lib/core/models/SNO/MRango.model.mjs +43 -0
  124. package/esm2020/lib/core/models/SNO/MReportesRRHH.mjs +402 -0
  125. package/esm2020/lib/core/models/SNO/MRequisitosConcursante.model.mjs +46 -0
  126. package/esm2020/lib/core/models/SNO/MRequisitosConcursos.model.mjs +37 -0
  127. package/esm2020/lib/core/models/SNO/MRequisitosMinimos.model.mjs +113 -0
  128. package/esm2020/lib/core/models/SNO/MSalarioHistorico.model.mjs +70 -0
  129. package/esm2020/lib/core/models/SNO/MSolicitudEmpleo.model.mjs +121 -0
  130. package/esm2020/lib/core/models/SNO/MTablaVacaciones.model.mjs +57 -0
  131. package/esm2020/lib/core/models/SNO/MTablaVacacionesPeriodo.model.mjs +40 -0
  132. package/esm2020/lib/core/models/SNO/MTabulador.model.mjs +96 -0
  133. package/esm2020/lib/core/models/SNO/MTipoEvaluacion.model.mjs +75 -0
  134. package/esm2020/lib/core/models/SNO/MTipoPersonal.model.mjs +34 -0
  135. package/esm2020/lib/core/models/SNO/MTiposEnfermedad.model.mjs +37 -0
  136. package/esm2020/lib/core/models/SNO/MTrabajoAnterior.model.mjs +65 -0
  137. package/esm2020/lib/core/models/SNO/MUbicacionFisica.model.mjs +61 -0
  138. package/esm2020/lib/core/models/SNO/MVacacionesPersonal.model.mjs +115 -0
  139. package/esm2020/lib/core/models/SOC/charge.model.mjs +69 -0
  140. package/esm2020/lib/core/models/SOC/clause.model.mjs +34 -0
  141. package/esm2020/lib/core/models/SOC/clauseModality.model.mjs +38 -0
  142. package/esm2020/lib/core/models/SOC/configuracionSOC.model.mjs +65 -0
  143. package/esm2020/lib/core/models/SOC/service.model.mjs +49 -0
  144. package/esm2020/lib/core/models/SOC/serviceCharge.model.mjs +40 -0
  145. package/esm2020/lib/core/models/SOC/serviceType.model.mjs +34 -0
  146. package/esm2020/lib/core/models/SPG/UnidadAdministradoraCentral.mjs +46 -0
  147. package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +140 -0
  148. package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +101 -0
  149. package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +120 -0
  150. package/esm2020/lib/core/models/SPG/cuentaPresupuesto.model.mjs +184 -0
  151. package/esm2020/lib/core/models/SPG/estructuraPresupuestaria.model.mjs +186 -0
  152. package/esm2020/lib/core/models/SPG/expensiveAccount.model.mjs +100 -0
  153. package/esm2020/lib/core/models/SPG/fuenteFinanciamiento.model.mjs +52 -0
  154. package/esm2020/lib/core/models/SPG/incomeStructureAccount.model.mjs +85 -0
  155. package/esm2020/lib/core/models/SPG/organizationType.model.mjs +12 -0
  156. package/esm2020/lib/core/models/SSS/component.model.mjs +44 -0
  157. package/esm2020/lib/core/models/SSS/group.model.mjs +30 -0
  158. package/esm2020/lib/core/models/SSS/log.model.mjs +29 -0
  159. package/esm2020/lib/core/models/SSS/securityConfiguration.model.mjs +20 -0
  160. package/esm2020/lib/core/models/SSS/sistema.mjs +73 -0
  161. package/esm2020/lib/core/models/SSS/user.model.mjs +32 -0
  162. package/esm2020/lib/core/models/SSS/userDetail.model.mjs +79 -0
  163. package/esm2020/lib/core/models/SSS/userPermit.model.mjs +47 -0
  164. package/esm2020/lib/core/models/SSS/userRights.model.mjs +104 -0
  165. package/esm2020/lib/core/models/STB/MCargosAdicionales.mjs +87 -0
  166. package/esm2020/lib/core/models/STB/deduction.model.mjs +90 -0
  167. package/esm2020/lib/core/models/STB/deductionType.model.mjs +20 -0
  168. package/esm2020/lib/core/models/STB/unidadTributaria.model.mjs +14 -0
  169. package/esm2020/lib/core/models/basic-model.model.mjs +8 -0
  170. package/esm2020/lib/shared/components/catalogo/catalogo.component.mjs +76 -0
  171. package/esm2020/lib/shared/components/catalogo-doble-input/catalogo-doble-input.component.mjs +87 -0
  172. package/esm2020/lib/shared/components/catalogo-estructuras/catalogo-estructuras.component.mjs +74 -0
  173. package/esm2020/lib/shared/components/confirm/confirm.component.mjs +35 -0
  174. package/esm2020/lib/shared/components/icon/icon.component.mjs +22 -0
  175. package/esm2020/lib/shared/components/table-select/table-select.component.mjs +99 -0
  176. package/esm2020/lib/shared/material/customPaginator.mjs +24 -0
  177. package/esm2020/lib/shared/material/material.module.mjs +322 -0
  178. package/esm2020/lib/shared/pipes/iso-currency.pipe.mjs +43 -0
  179. package/esm2020/lib/shared/shared.module.mjs +66 -0
  180. package/esm2020/lib/sigesp.service.mjs +1829 -0
  181. package/esm2020/lib/validation.service.mjs +131 -0
  182. package/esm2020/public-api.mjs +156 -0
  183. package/esm2020/sigesp.mjs +5 -0
  184. package/fesm2015/sigesp.mjs +14898 -0
  185. package/fesm2015/sigesp.mjs.map +1 -0
  186. package/fesm2020/sigesp.mjs +14861 -0
  187. package/fesm2020/sigesp.mjs.map +1 -0
  188. package/index.d.ts +5 -0
  189. package/lib/app/app.component.d.ts +8 -0
  190. package/lib/app/app.module.d.ts +10 -0
  191. package/lib/core/interfaces/Auditoria.d.ts +19 -0
  192. package/lib/core/interfaces/Banco.d.ts +599 -0
  193. package/lib/core/interfaces/Catalogo.d.ts +13 -0
  194. package/lib/core/interfaces/CentroCosto.d.ts +21 -0
  195. package/lib/core/interfaces/Clasificacion.d.ts +6 -0
  196. package/lib/core/interfaces/Cliente.d.ts +36 -0
  197. package/lib/core/interfaces/ComprobantePresupuestario.d.ts +51 -0
  198. package/lib/core/interfaces/Comunidad.d.ts +12 -0
  199. package/lib/core/interfaces/Configuracion.d.ts +91 -0
  200. package/lib/core/interfaces/ConfiguracionRPC.d.ts +10 -0
  201. package/lib/core/interfaces/ConfiguracionSCG.d.ts +52 -0
  202. package/lib/core/interfaces/ConfigurationSPG.d.ts +49 -0
  203. package/lib/core/interfaces/Constantes.d.ts +85 -0
  204. package/lib/core/interfaces/CuentaEgresos.d.ts +158 -0
  205. package/lib/core/interfaces/CuentaIngreso.d.ts +38 -0
  206. package/lib/core/interfaces/CuentaIngresoEstructura.d.ts +26 -0
  207. package/lib/core/interfaces/CuentaInstitucional.d.ts +28 -0
  208. package/lib/core/interfaces/CuentaPresupuesto.d.ts +9 -0
  209. package/lib/core/interfaces/CuentasPorPagar.d.ts +37 -0
  210. package/lib/core/interfaces/Documento.d.ts +6 -0
  211. package/lib/core/interfaces/EntradaSuministro.d.ts +87 -0
  212. package/lib/core/interfaces/Especialidad.d.ts +4 -0
  213. package/lib/core/interfaces/EstructuraPresupuestaria.d.ts +83 -0
  214. package/lib/core/interfaces/FuenteFinanciamiento.d.ts +14 -0
  215. package/lib/core/interfaces/IBancoCuentasPorPagar.d.ts +190 -0
  216. package/lib/core/interfaces/ITipoDepositos.d.ts +31 -0
  217. package/lib/core/interfaces/Integracion.d.ts +6 -0
  218. package/lib/core/interfaces/Lugares.d.ts +40 -0
  219. package/lib/core/interfaces/Moneda.d.ts +20 -0
  220. package/lib/core/interfaces/Nomina.d.ts +554 -0
  221. package/lib/core/interfaces/PlanUnicoCuenta.d.ts +4 -0
  222. package/lib/core/interfaces/Presupuesto.d.ts +133 -0
  223. package/{projects/sigesp/src/lib/core/interfaces/Proveedor.ts → lib/core/interfaces/Proveedor.d.ts} +22 -26
  224. package/lib/core/interfaces/RecursosHumanos.d.ts +1627 -0
  225. package/{projects/sigesp/src/lib/core/interfaces/Request.ts → lib/core/interfaces/Request.d.ts} +3 -4
  226. package/lib/core/interfaces/Response.d.ts +7 -0
  227. package/lib/core/interfaces/Seguridad.d.ts +112 -0
  228. package/lib/core/interfaces/Servicios.d.ts +64 -0
  229. package/lib/core/interfaces/Sistema.d.ts +19 -0
  230. package/lib/core/interfaces/Tributos.d.ts +75 -0
  231. package/lib/core/interfaces/UnidadTributaria.d.ts +11 -0
  232. package/lib/core/interfaces/Usuario.d.ts +52 -0
  233. package/lib/core/interfaces/UsuarioPrefijo.d.ts +13 -0
  234. package/lib/core/models/CFG/Empresa.model.d.ts +39 -0
  235. package/lib/core/models/CFG/Enterprise.model.d.ts +24 -0
  236. package/lib/core/models/CFG/MPrefijo.model.d.ts +23 -0
  237. package/lib/core/models/CFG/Procede.model.d.ts +11 -0
  238. package/lib/core/models/CFG/TasaCambio.model.d.ts +14 -0
  239. package/lib/core/models/CFG/comunidad.model.d.ts +15 -0
  240. package/lib/core/models/CFG/locations.model.d.ts +54 -0
  241. package/lib/core/models/CFG/moneda.model.d.ts +26 -0
  242. package/lib/core/models/CFG/userPrefix.model.d.ts +17 -0
  243. package/lib/core/models/CXP/MConceptosCXP.model.d.ts +12 -0
  244. package/lib/core/models/CXP/MTipoDocumentoCXP.model.d.ts +16 -0
  245. package/lib/core/models/RPC/clasification.model.d.ts +11 -0
  246. package/lib/core/models/RPC/configuracionRPC.model.d.ts +12 -0
  247. package/lib/core/models/RPC/document.model.d.ts +11 -0
  248. package/lib/core/models/RPC/proveedores.model.d.ts +8 -0
  249. package/lib/core/models/RPC/providerBeneficiary.model.d.ts +116 -0
  250. package/lib/core/models/RPC/specialty.model.d.ts +9 -0
  251. package/lib/core/models/SCB/bank.model.d.ts +63 -0
  252. package/lib/core/models/SCG/IncomeAccount.d.ts +45 -0
  253. package/lib/core/models/SCG/accountMarriage.model.d.ts +11 -0
  254. package/lib/core/models/SCG/centroCosto.model.d.ts +27 -0
  255. package/lib/core/models/SCG/configuracionSCG.model.d.ts +56 -0
  256. package/lib/core/models/SCG/cuentaInstitucional.model.d.ts +34 -0
  257. package/lib/core/models/SCG/planUnicoCuenta.model.d.ts +8 -0
  258. package/lib/core/models/SFV/MClienteModel.d.ts +40 -0
  259. package/lib/core/models/SIV/MDetaContable.model.d.ts +21 -0
  260. package/lib/core/models/SIV/MDetaEntrada.model.d.ts +33 -0
  261. package/lib/core/models/SIV/MEntradaSuministro.model.d.ts +47 -0
  262. package/lib/core/models/SIV/MTipoDepositos.model.d.ts +35 -0
  263. package/lib/core/models/SNO/MAnticipoPrestaciones.model.d.ts +32 -0
  264. package/lib/core/models/SNO/MArchivoTxtCampo.model.d.ts +21 -0
  265. package/lib/core/models/SNO/MArchivosTxt.model.d.ts +15 -0
  266. package/lib/core/models/SNO/MAsignacionCargo.model.d.ts +87 -0
  267. package/lib/core/models/SNO/MAspectoEvaluacion.model.d.ts +30 -0
  268. package/lib/core/models/SNO/MAuditoria.model.d.ts +21 -0
  269. package/lib/core/models/SNO/MBeneficiario.model.d.ts +48 -0
  270. package/lib/core/models/SNO/MCargaFamiliar.model.d.ts +18 -0
  271. package/lib/core/models/SNO/MCargaMasiva.model.d.ts +12 -0
  272. package/lib/core/models/SNO/MCargosPersonal.model.d.ts +48 -0
  273. package/lib/core/models/SNO/MClasificacionObrero.mdel.d.ts +16 -0
  274. package/lib/core/models/SNO/MCodigoUnicoRac.model.d.ts +14 -0
  275. package/lib/core/models/SNO/MComponete.model.d.ts +14 -0
  276. package/lib/core/models/SNO/MConceptoVacaciones.model.d.ts +30 -0
  277. package/lib/core/models/SNO/MConceptosNomina.model.d.ts +84 -0
  278. package/lib/core/models/SNO/MConceptosPersonalNomina.model.d.ts +34 -0
  279. package/lib/core/models/SNO/MConcursante.model.d.ts +104 -0
  280. package/lib/core/models/SNO/MConcurso.model.d.ts +83 -0
  281. package/lib/core/models/SNO/MConfiguracionSNO.model.d.ts +140 -0
  282. package/lib/core/models/SNO/MConstanteNomina.model.d.ts +24 -0
  283. package/lib/core/models/SNO/MConstantePersonalNomina.model.d.ts +27 -0
  284. package/lib/core/models/SNO/MDedicacion.model.d.ts +13 -0
  285. package/lib/core/models/SNO/MDefinicionNomina.model.d.ts +115 -0
  286. package/lib/core/models/SNO/MDefinicionesBasicas.model.d.ts +25 -0
  287. package/lib/core/models/SNO/MDeudaAnterior.model.d.ts +14 -0
  288. package/lib/core/models/SNO/MEncargaduria.model.d.ts +47 -0
  289. package/lib/core/models/SNO/MEscalaEvaluacion.model.d.ts +15 -0
  290. package/lib/core/models/SNO/MEscalaEvaluacionDt.model.d.ts +14 -0
  291. package/lib/core/models/SNO/MEstructuraOrganizativa.model.d.ts +46 -0
  292. package/lib/core/models/SNO/MFamiliares.model.d.ts +31 -0
  293. package/lib/core/models/SNO/MFeriados.model.d.ts +16 -0
  294. package/lib/core/models/SNO/MFideicomiso.model.d.ts +143 -0
  295. package/lib/core/models/SNO/MFormacionAcademica.model.d.ts +18 -0
  296. package/lib/core/models/SNO/MGrado.model.d.ts +18 -0
  297. package/lib/core/models/SNO/MHojaTiempo.model.d.ts +40 -0
  298. package/lib/core/models/SNO/MImpuestoSobreRenta.model.d.ts +25 -0
  299. package/lib/core/models/SNO/MMetodoBanco.model.d.ts +35 -0
  300. package/lib/core/models/SNO/MNominaSimple.model.d.ts +34 -0
  301. package/lib/core/models/SNO/MPeriodoNomina.model.d.ts +57 -0
  302. package/lib/core/models/SNO/MPermisos.model.d.ts +24 -0
  303. package/lib/core/models/SNO/MPersonal.model.d.ts +219 -0
  304. package/lib/core/models/SNO/MPersonalJubilado.model.d.ts +23 -0
  305. package/lib/core/models/SNO/MPersonalNomina.model.d.ts +102 -0
  306. package/lib/core/models/SNO/MPlanHorario.model.d.ts +41 -0
  307. package/lib/core/models/SNO/MPlantillaConstancia.model.d.ts +11 -0
  308. package/lib/core/models/SNO/MPrestamo.model.d.ts +69 -0
  309. package/lib/core/models/SNO/MPrimaGrados.model.d.ts +15 -0
  310. package/lib/core/models/SNO/MPrimasConcepto.model.d.ts +15 -0
  311. package/lib/core/models/SNO/MRango.model.d.ts +15 -0
  312. package/lib/core/models/SNO/MReportesRRHH.d.ts +130 -0
  313. package/lib/core/models/SNO/MRequisitosConcursante.model.d.ts +16 -0
  314. package/lib/core/models/SNO/MRequisitosConcursos.model.d.ts +14 -0
  315. package/lib/core/models/SNO/MRequisitosMinimos.model.d.ts +39 -0
  316. package/lib/core/models/SNO/MSalarioHistorico.model.d.ts +25 -0
  317. package/lib/core/models/SNO/MSolicitudEmpleo.model.d.ts +42 -0
  318. package/lib/core/models/SNO/MTablaVacaciones.model.d.ts +15 -0
  319. package/lib/core/models/SNO/MTablaVacacionesPeriodo.model.d.ts +15 -0
  320. package/lib/core/models/SNO/MTabulador.model.d.ts +39 -0
  321. package/lib/core/models/SNO/MTipoEvaluacion.model.d.ts +28 -0
  322. package/lib/core/models/SNO/MTipoPersonal.model.d.ts +13 -0
  323. package/lib/core/models/SNO/MTiposEnfermedad.model.d.ts +14 -0
  324. package/lib/core/models/SNO/MTrabajoAnterior.model.d.ts +24 -0
  325. package/lib/core/models/SNO/MUbicacionFisica.model.d.ts +21 -0
  326. package/lib/core/models/SNO/MVacacionesPersonal.model.d.ts +40 -0
  327. package/lib/core/models/SOC/charge.model.d.ts +25 -0
  328. package/lib/core/models/SOC/clause.model.d.ts +12 -0
  329. package/lib/core/models/SOC/clauseModality.model.d.ts +14 -0
  330. package/lib/core/models/SOC/configuracionSOC.model.d.ts +21 -0
  331. package/lib/core/models/SOC/service.model.d.ts +17 -0
  332. package/lib/core/models/SOC/serviceCharge.model.d.ts +14 -0
  333. package/lib/core/models/SOC/serviceType.model.d.ts +12 -0
  334. package/lib/core/models/SPG/UnidadAdministradoraCentral.d.ts +16 -0
  335. package/lib/core/models/SPG/administrativeUnit.model.d.ts +68 -0
  336. package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +56 -0
  337. package/lib/core/models/SPG/configurationSPG.model.d.ts +46 -0
  338. package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +65 -0
  339. package/lib/core/models/SPG/estructuraPresupuestaria.model.d.ts +119 -0
  340. package/lib/core/models/SPG/expensiveAccount.model.d.ts +50 -0
  341. package/lib/core/models/SPG/fuenteFinanciamiento.model.d.ts +18 -0
  342. package/lib/core/models/SPG/incomeStructureAccount.model.d.ts +40 -0
  343. package/lib/core/models/SPG/organizationType.model.d.ts +9 -0
  344. package/lib/core/models/SSS/component.model.d.ts +16 -0
  345. package/lib/core/models/SSS/group.model.d.ts +16 -0
  346. package/lib/core/models/SSS/log.model.d.ts +15 -0
  347. package/lib/core/models/SSS/securityConfiguration.model.d.ts +9 -0
  348. package/lib/core/models/SSS/sistema.d.ts +25 -0
  349. package/lib/core/models/SSS/user.model.d.ts +22 -0
  350. package/lib/core/models/SSS/userDetail.model.d.ts +28 -0
  351. package/lib/core/models/SSS/userPermit.model.d.ts +18 -0
  352. package/lib/core/models/SSS/userRights.model.d.ts +35 -0
  353. package/lib/core/models/STB/MCargosAdicionales.d.ts +33 -0
  354. package/lib/core/models/STB/deduction.model.d.ts +30 -0
  355. package/lib/core/models/STB/deductionType.model.d.ts +9 -0
  356. package/lib/core/models/STB/unidadTributaria.model.d.ts +13 -0
  357. package/lib/core/models/basic-model.model.d.ts +6 -0
  358. package/lib/shared/components/catalogo/catalogo.component.d.ts +35 -0
  359. package/lib/shared/components/catalogo-doble-input/catalogo-doble-input.component.d.ts +39 -0
  360. package/lib/shared/components/catalogo-estructuras/catalogo-estructuras.component.d.ts +38 -0
  361. package/lib/shared/components/confirm/confirm.component.d.ts +21 -0
  362. package/lib/shared/components/icon/icon.component.d.ts +11 -0
  363. package/lib/shared/components/table-select/table-select.component.d.ts +39 -0
  364. package/lib/shared/material/customPaginator.d.ts +9 -0
  365. package/lib/shared/material/material.module.d.ts +48 -0
  366. package/lib/shared/pipes/iso-currency.pipe.d.ts +13 -0
  367. package/lib/shared/shared.module.d.ts +16 -0
  368. package/lib/sigesp.service.d.ts +901 -0
  369. package/lib/validation.service.d.ts +15 -0
  370. package/package.json +31 -73
  371. package/public-api.d.ts +164 -0
  372. package/.browserslistrc +0 -12
  373. package/.editorconfig +0 -13
  374. package/angular.json +0 -161
  375. package/e2e/protractor.conf.js +0 -32
  376. package/e2e/src/app.e2e-spec.ts +0 -23
  377. package/e2e/src/app.po.ts +0 -11
  378. package/e2e/tsconfig.json +0 -13
  379. package/karma.conf.js +0 -32
  380. package/lib +0 -0
  381. package/projects/sigesp/README.md +0 -24
  382. package/projects/sigesp/karma.conf.js +0 -32
  383. package/projects/sigesp/ng-package.json +0 -7
  384. package/projects/sigesp/package.json +0 -11
  385. package/projects/sigesp/src/lib/app/app.component.html +0 -1
  386. package/projects/sigesp/src/lib/app/app.component.scss +0 -0
  387. package/projects/sigesp/src/lib/app/app.component.ts +0 -15
  388. package/projects/sigesp/src/lib/app/app.module.ts +0 -21
  389. package/projects/sigesp/src/lib/core/interfaces/Auditoria.ts +0 -72
  390. package/projects/sigesp/src/lib/core/interfaces/Banco.ts +0 -639
  391. package/projects/sigesp/src/lib/core/interfaces/Catalogo.ts +0 -15
  392. package/projects/sigesp/src/lib/core/interfaces/CentroCosto.ts +0 -22
  393. package/projects/sigesp/src/lib/core/interfaces/Clasificacion.ts +0 -6
  394. package/projects/sigesp/src/lib/core/interfaces/Cliente.ts +0 -36
  395. package/projects/sigesp/src/lib/core/interfaces/ComprobantePresupuestario.ts +0 -52
  396. package/projects/sigesp/src/lib/core/interfaces/Comunidad.ts +0 -12
  397. package/projects/sigesp/src/lib/core/interfaces/Configuracion.ts +0 -100
  398. package/projects/sigesp/src/lib/core/interfaces/ConfiguracionRPC.ts +0 -10
  399. package/projects/sigesp/src/lib/core/interfaces/ConfiguracionSCG.ts +0 -53
  400. package/projects/sigesp/src/lib/core/interfaces/ConfigurationSPG.ts +0 -51
  401. package/projects/sigesp/src/lib/core/interfaces/Constantes.ts +0 -468
  402. package/projects/sigesp/src/lib/core/interfaces/CuentaEgresos.ts +0 -164
  403. package/projects/sigesp/src/lib/core/interfaces/CuentaIngreso.ts +0 -38
  404. package/projects/sigesp/src/lib/core/interfaces/CuentaIngresoEstructura.ts +0 -27
  405. package/projects/sigesp/src/lib/core/interfaces/CuentaInstitucional.ts +0 -28
  406. package/projects/sigesp/src/lib/core/interfaces/CuentaPresupuesto.ts +0 -10
  407. package/projects/sigesp/src/lib/core/interfaces/CuentasPorPagar.ts +0 -40
  408. package/projects/sigesp/src/lib/core/interfaces/Documento.ts +0 -6
  409. package/projects/sigesp/src/lib/core/interfaces/EntradaSuministro.ts +0 -93
  410. package/projects/sigesp/src/lib/core/interfaces/Especialidad.ts +0 -4
  411. package/projects/sigesp/src/lib/core/interfaces/EstructuraPresupuestaria.ts +0 -90
  412. package/projects/sigesp/src/lib/core/interfaces/FuenteFinanciamiento.ts +0 -14
  413. package/projects/sigesp/src/lib/core/interfaces/IBancoCuentasPorPagar.ts +0 -196
  414. package/projects/sigesp/src/lib/core/interfaces/ITipoDepositos.ts +0 -32
  415. package/projects/sigesp/src/lib/core/interfaces/Integracion.ts +0 -6
  416. package/projects/sigesp/src/lib/core/interfaces/Lugares.ts +0 -45
  417. package/projects/sigesp/src/lib/core/interfaces/Moneda.ts +0 -22
  418. package/projects/sigesp/src/lib/core/interfaces/Nomina.ts +0 -614
  419. package/projects/sigesp/src/lib/core/interfaces/PlanUnicoCuenta.ts +0 -4
  420. package/projects/sigesp/src/lib/core/interfaces/Presupuesto.ts +0 -145
  421. package/projects/sigesp/src/lib/core/interfaces/RecursosHumanos.ts +0 -1743
  422. package/projects/sigesp/src/lib/core/interfaces/Response.ts +0 -7
  423. package/projects/sigesp/src/lib/core/interfaces/Seguridad.ts +0 -120
  424. package/projects/sigesp/src/lib/core/interfaces/Servicios.ts +0 -70
  425. package/projects/sigesp/src/lib/core/interfaces/Sistema.ts +0 -21
  426. package/projects/sigesp/src/lib/core/interfaces/Tributos.ts +0 -80
  427. package/projects/sigesp/src/lib/core/interfaces/UnidadTributaria.ts +0 -11
  428. package/projects/sigesp/src/lib/core/interfaces/Usuario.ts +0 -57
  429. package/projects/sigesp/src/lib/core/interfaces/UsuarioPrefijo.ts +0 -13
  430. package/projects/sigesp/src/lib/core/models/CFG/Empresa.model.ts +0 -121
  431. package/projects/sigesp/src/lib/core/models/CFG/Enterprise.model.ts +0 -74
  432. package/projects/sigesp/src/lib/core/models/CFG/MPrefijo.model.ts +0 -69
  433. package/projects/sigesp/src/lib/core/models/CFG/Procede.model.ts +0 -34
  434. package/projects/sigesp/src/lib/core/models/CFG/TasaCambio.model.ts +0 -43
  435. package/projects/sigesp/src/lib/core/models/CFG/comunidad.model.ts +0 -34
  436. package/projects/sigesp/src/lib/core/models/CFG/locations.model.ts +0 -189
  437. package/projects/sigesp/src/lib/core/models/CFG/moneda.model.ts +0 -82
  438. package/projects/sigesp/src/lib/core/models/CFG/userPrefix.model.ts +0 -51
  439. package/projects/sigesp/src/lib/core/models/CXP/MConceptosCXP.model.ts +0 -36
  440. package/projects/sigesp/src/lib/core/models/CXP/MTipoDocumentoCXP.model.ts +0 -49
  441. package/projects/sigesp/src/lib/core/models/RPC/clasification.model.ts +0 -22
  442. package/projects/sigesp/src/lib/core/models/RPC/configuracionRPC.model.ts +0 -27
  443. package/projects/sigesp/src/lib/core/models/RPC/document.model.ts +0 -20
  444. package/projects/sigesp/src/lib/core/models/RPC/proveedores.model.ts +0 -15
  445. package/projects/sigesp/src/lib/core/models/RPC/providerBeneficiary.model.ts +0 -316
  446. package/projects/sigesp/src/lib/core/models/RPC/specialty.model.ts +0 -14
  447. package/projects/sigesp/src/lib/core/models/SCB/bank.model.ts +0 -205
  448. package/projects/sigesp/src/lib/core/models/SCG/IncomeAccount.ts +0 -134
  449. package/projects/sigesp/src/lib/core/models/SCG/accountMarriage.model.ts +0 -33
  450. package/projects/sigesp/src/lib/core/models/SCG/centroCosto.model.ts +0 -83
  451. package/projects/sigesp/src/lib/core/models/SCG/configuracionSCG.model.ts +0 -166
  452. package/projects/sigesp/src/lib/core/models/SCG/cuentaInstitucional.model.ts +0 -97
  453. package/projects/sigesp/src/lib/core/models/SCG/planUnicoCuenta.model.ts +0 -22
  454. package/projects/sigesp/src/lib/core/models/SFV/MClienteModel.ts +0 -119
  455. package/projects/sigesp/src/lib/core/models/SIV/MDetaContable.model.ts +0 -65
  456. package/projects/sigesp/src/lib/core/models/SIV/MDetaEntrada.model.ts +0 -98
  457. package/projects/sigesp/src/lib/core/models/SIV/MEntradaSuministro.model.ts +0 -135
  458. package/projects/sigesp/src/lib/core/models/SIV/MTipoDepositos.model.ts +0 -109
  459. package/projects/sigesp/src/lib/core/models/SNO/MAnticipoPrestaciones.model.ts +0 -112
  460. package/projects/sigesp/src/lib/core/models/SNO/MArchivoTxtCampo.model.ts +0 -63
  461. package/projects/sigesp/src/lib/core/models/SNO/MArchivosTxt.model.ts +0 -53
  462. package/projects/sigesp/src/lib/core/models/SNO/MAsignacionCargo.model.ts +0 -235
  463. package/projects/sigesp/src/lib/core/models/SNO/MAspectoEvaluacion.model.ts +0 -97
  464. package/projects/sigesp/src/lib/core/models/SNO/MAuditoria.model.ts +0 -67
  465. package/projects/sigesp/src/lib/core/models/SNO/MBeneficiario.model.ts +0 -139
  466. package/projects/sigesp/src/lib/core/models/SNO/MCargaFamiliar.model.ts +0 -54
  467. package/projects/sigesp/src/lib/core/models/SNO/MCargaMasiva.model.ts +0 -37
  468. package/projects/sigesp/src/lib/core/models/SNO/MCargosPersonal.model.ts +0 -123
  469. package/projects/sigesp/src/lib/core/models/SNO/MClasificacionObrero.mdel.ts +0 -48
  470. package/projects/sigesp/src/lib/core/models/SNO/MCodigoUnicoRac.model.ts +0 -41
  471. package/projects/sigesp/src/lib/core/models/SNO/MComponete.model.ts +0 -40
  472. package/projects/sigesp/src/lib/core/models/SNO/MConceptoVacaciones.model.ts +0 -94
  473. package/projects/sigesp/src/lib/core/models/SNO/MConceptosNomina.model.ts +0 -246
  474. package/projects/sigesp/src/lib/core/models/SNO/MConceptosPersonalNomina.model.ts +0 -103
  475. package/projects/sigesp/src/lib/core/models/SNO/MConcursante.model.ts +0 -333
  476. package/projects/sigesp/src/lib/core/models/SNO/MConcurso.model.ts +0 -267
  477. package/projects/sigesp/src/lib/core/models/SNO/MConfiguracionSNO.model.ts +0 -422
  478. package/projects/sigesp/src/lib/core/models/SNO/MConstanteNomina.model.ts +0 -76
  479. package/projects/sigesp/src/lib/core/models/SNO/MConstantePersonalNomina.model.ts +0 -85
  480. package/projects/sigesp/src/lib/core/models/SNO/MDedicacion.model.ts +0 -37
  481. package/projects/sigesp/src/lib/core/models/SNO/MDefinicionNomina.model.ts +0 -320
  482. package/projects/sigesp/src/lib/core/models/SNO/MDefinicionesBasicas.model.ts +0 -82
  483. package/projects/sigesp/src/lib/core/models/SNO/MDeudaAnterior.model.ts +0 -42
  484. package/projects/sigesp/src/lib/core/models/SNO/MEncargaduria.model.ts +0 -142
  485. package/projects/sigesp/src/lib/core/models/SNO/MEscalaEvaluacion.model.ts +0 -43
  486. package/projects/sigesp/src/lib/core/models/SNO/MEscalaEvaluacionDt.model.ts +0 -40
  487. package/projects/sigesp/src/lib/core/models/SNO/MEstructuraOrganizativa.model.ts +0 -136
  488. package/projects/sigesp/src/lib/core/models/SNO/MFamiliares.model.ts +0 -91
  489. package/projects/sigesp/src/lib/core/models/SNO/MFeriados.model.ts +0 -46
  490. package/projects/sigesp/src/lib/core/models/SNO/MFideicomiso.model.ts +0 -423
  491. package/projects/sigesp/src/lib/core/models/SNO/MFormacionAcademica.model.ts +0 -52
  492. package/projects/sigesp/src/lib/core/models/SNO/MGrado.model.ts +0 -50
  493. package/projects/sigesp/src/lib/core/models/SNO/MHojaTiempo.model.ts +0 -128
  494. package/projects/sigesp/src/lib/core/models/SNO/MImpuestoSobreRenta.model.ts +0 -77
  495. package/projects/sigesp/src/lib/core/models/SNO/MMetodoBanco.model.ts +0 -113
  496. package/projects/sigesp/src/lib/core/models/SNO/MNominaSimple.model.ts +0 -86
  497. package/projects/sigesp/src/lib/core/models/SNO/MPeriodoNomina.model.ts +0 -205
  498. package/projects/sigesp/src/lib/core/models/SNO/MPermisos.model.ts +0 -70
  499. package/projects/sigesp/src/lib/core/models/SNO/MPersonal.model.ts +0 -659
  500. package/projects/sigesp/src/lib/core/models/SNO/MPersonalJubilado.model.ts +0 -71
  501. package/projects/sigesp/src/lib/core/models/SNO/MPersonalNomina.model.ts +0 -323
  502. package/projects/sigesp/src/lib/core/models/SNO/MPlanHorario.model.ts +0 -134
  503. package/projects/sigesp/src/lib/core/models/SNO/MPlantillaConstancia.model.ts +0 -33
  504. package/projects/sigesp/src/lib/core/models/SNO/MPrestamo.model.ts +0 -242
  505. package/projects/sigesp/src/lib/core/models/SNO/MPrimaGrados.model.ts +0 -46
  506. package/projects/sigesp/src/lib/core/models/SNO/MPrimasConcepto.model.ts +0 -45
  507. package/projects/sigesp/src/lib/core/models/SNO/MRango.model.ts +0 -45
  508. package/projects/sigesp/src/lib/core/models/SNO/MReportesRRHH.ts +0 -425
  509. package/projects/sigesp/src/lib/core/models/SNO/MRequisitosConcursante.model.ts +0 -48
  510. package/projects/sigesp/src/lib/core/models/SNO/MRequisitosConcursos.model.ts +0 -41
  511. package/projects/sigesp/src/lib/core/models/SNO/MRequisitosMinimos.model.ts +0 -123
  512. package/projects/sigesp/src/lib/core/models/SNO/MSalarioHistorico.model.ts +0 -75
  513. package/projects/sigesp/src/lib/core/models/SNO/MSolicitudEmpleo.model.ts +0 -125
  514. package/projects/sigesp/src/lib/core/models/SNO/MTablaVacaciones.model.ts +0 -61
  515. package/projects/sigesp/src/lib/core/models/SNO/MTablaVacacionesPeriodo.model.ts +0 -45
  516. package/projects/sigesp/src/lib/core/models/SNO/MTabulador.model.ts +0 -108
  517. package/projects/sigesp/src/lib/core/models/SNO/MTipoEvaluacion.model.ts +0 -85
  518. package/projects/sigesp/src/lib/core/models/SNO/MTipoPersonal.model.ts +0 -37
  519. package/projects/sigesp/src/lib/core/models/SNO/MTiposEnfermedad.model.ts +0 -40
  520. package/projects/sigesp/src/lib/core/models/SNO/MTrabajoAnterior.model.ts +0 -70
  521. package/projects/sigesp/src/lib/core/models/SNO/MUbicacionFisica.model.ts +0 -63
  522. package/projects/sigesp/src/lib/core/models/SNO/MVacacionesPersonal.model.ts +0 -119
  523. package/projects/sigesp/src/lib/core/models/SOC/charge.model.ts +0 -81
  524. package/projects/sigesp/src/lib/core/models/SOC/clause.model.ts +0 -39
  525. package/projects/sigesp/src/lib/core/models/SOC/clauseModality.model.ts +0 -43
  526. package/projects/sigesp/src/lib/core/models/SOC/configuracionSOC.model.ts +0 -71
  527. package/projects/sigesp/src/lib/core/models/SOC/service.model.ts +0 -53
  528. package/projects/sigesp/src/lib/core/models/SOC/serviceCharge.model.ts +0 -42
  529. package/projects/sigesp/src/lib/core/models/SOC/serviceType.model.ts +0 -39
  530. package/projects/sigesp/src/lib/core/models/SPG/UnidadAdministradoraCentral.ts +0 -50
  531. package/projects/sigesp/src/lib/core/models/SPG/administrativeUnit.model.ts +0 -185
  532. package/projects/sigesp/src/lib/core/models/SPG/comprobantePresupuestario.model.ts +0 -148
  533. package/projects/sigesp/src/lib/core/models/SPG/configurationSPG.model.ts +0 -140
  534. package/projects/sigesp/src/lib/core/models/SPG/cuentaPresupuesto.model.ts +0 -194
  535. package/projects/sigesp/src/lib/core/models/SPG/estructuraPresupuestaria.model.ts +0 -261
  536. package/projects/sigesp/src/lib/core/models/SPG/expensiveAccount.model.ts +0 -104
  537. package/projects/sigesp/src/lib/core/models/SPG/fuenteFinanciamiento.model.ts +0 -54
  538. package/projects/sigesp/src/lib/core/models/SPG/incomeStructureAccount.model.ts +0 -88
  539. package/projects/sigesp/src/lib/core/models/SPG/organizationType.model.ts +0 -16
  540. package/projects/sigesp/src/lib/core/models/SSS/component.model.ts +0 -51
  541. package/projects/sigesp/src/lib/core/models/SSS/group.model.ts +0 -39
  542. package/projects/sigesp/src/lib/core/models/SSS/log.model.ts +0 -36
  543. package/projects/sigesp/src/lib/core/models/SSS/securityConfiguration.model.ts +0 -26
  544. package/projects/sigesp/src/lib/core/models/SSS/sistema.ts +0 -87
  545. package/projects/sigesp/src/lib/core/models/SSS/user.model.ts +0 -52
  546. package/projects/sigesp/src/lib/core/models/SSS/userDetail.model.ts +0 -84
  547. package/projects/sigesp/src/lib/core/models/SSS/userPermit.model.ts +0 -61
  548. package/projects/sigesp/src/lib/core/models/SSS/userRights.model.ts +0 -113
  549. package/projects/sigesp/src/lib/core/models/STB/MCargosAdicionales.ts +0 -97
  550. package/projects/sigesp/src/lib/core/models/STB/deduction.model.ts +0 -100
  551. package/projects/sigesp/src/lib/core/models/STB/deductionType.model.ts +0 -23
  552. package/projects/sigesp/src/lib/core/models/STB/unidadTributaria.model.ts +0 -25
  553. package/projects/sigesp/src/lib/core/models/basic-model.model.ts +0 -9
  554. package/projects/sigesp/src/lib/shared/components/catalogo/catalogo.component.html +0 -45
  555. package/projects/sigesp/src/lib/shared/components/catalogo/catalogo.component.scss +0 -82
  556. package/projects/sigesp/src/lib/shared/components/catalogo/catalogo.component.ts +0 -71
  557. package/projects/sigesp/src/lib/shared/components/catalogo-doble-input/catalogo-doble-input.component.html +0 -57
  558. package/projects/sigesp/src/lib/shared/components/catalogo-doble-input/catalogo-doble-input.component.scss +0 -82
  559. package/projects/sigesp/src/lib/shared/components/catalogo-doble-input/catalogo-doble-input.component.ts +0 -80
  560. package/projects/sigesp/src/lib/shared/components/catalogo-estructuras/catalogo-estructuras.component.html +0 -121
  561. package/projects/sigesp/src/lib/shared/components/catalogo-estructuras/catalogo-estructuras.component.scss +0 -81
  562. package/projects/sigesp/src/lib/shared/components/catalogo-estructuras/catalogo-estructuras.component.ts +0 -68
  563. package/projects/sigesp/src/lib/shared/components/confirm/confirm.component.html +0 -15
  564. package/projects/sigesp/src/lib/shared/components/confirm/confirm.component.scss +0 -37
  565. package/projects/sigesp/src/lib/shared/components/confirm/confirm.component.ts +0 -32
  566. package/projects/sigesp/src/lib/shared/components/icon/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 +0 -0
  567. package/projects/sigesp/src/lib/shared/components/icon/icon.component.html +0 -6
  568. package/projects/sigesp/src/lib/shared/components/icon/icon.component.scss +0 -22
  569. package/projects/sigesp/src/lib/shared/components/icon/icon.component.ts +0 -19
  570. package/projects/sigesp/src/lib/shared/components/table-select/table-select.component.html +0 -73
  571. package/projects/sigesp/src/lib/shared/components/table-select/table-select.component.scss +0 -86
  572. package/projects/sigesp/src/lib/shared/components/table-select/table-select.component.ts +0 -102
  573. package/projects/sigesp/src/lib/shared/material/customPaginator.ts +0 -22
  574. package/projects/sigesp/src/lib/shared/material/material.module.ts +0 -144
  575. package/projects/sigesp/src/lib/shared/pipes/iso-currency.pipe.ts +0 -44
  576. package/projects/sigesp/src/lib/shared/shared.module.ts +0 -41
  577. package/projects/sigesp/src/lib/sigesp.service.ts +0 -2446
  578. package/projects/sigesp/src/lib/validation.service.ts +0 -172
  579. package/projects/sigesp/src/public-api.ts +0 -488
  580. package/projects/sigesp/src/test.ts +0 -23
  581. package/projects/sigesp/tsconfig.lib.json +0 -27
  582. package/projects/sigesp/tsconfig.lib.prod.json +0 -6
  583. package/projects/sigesp/tsconfig.spec.json +0 -17
  584. package/projects/sigesp/tslint.json +0 -17
  585. package/src/app/app.component.html +0 -11
  586. package/src/app/app.component.scss +0 -0
  587. package/src/app/app.component.ts +0 -110
  588. package/src/app/app.module.ts +0 -22
  589. package/src/assets/.gitkeep +0 -0
  590. package/src/assets/icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 +0 -0
  591. package/src/environments/environment.prod.ts +0 -3
  592. package/src/environments/environment.ts +0 -16
  593. package/src/favicon.ico +0 -0
  594. package/src/index.html +0 -15
  595. package/src/main.ts +0 -13
  596. package/src/polyfills.ts +0 -53
  597. package/src/styles.scss +0 -101
  598. package/src/test.ts +0 -22
  599. package/tsconfig.app.json +0 -18
  600. package/tsconfig.json +0 -36
  601. package/tsconfig.spec.json +0 -18
  602. package/tslint.json +0 -155
@@ -1,2446 +0,0 @@
1
- import { MPrefijo } from './core/models/CFG/MPrefijo.model';
2
- import { MEnterprise } from './core/models/CFG/Enterprise.model';
3
- import { MPersonalNomina } from './core/models/SNO/MPersonalNomina.model';
4
- import { MHojaTiempo } from './core/models/SNO/MHojaTiempo.model';
5
- import { Injectable } from '@angular/core';
6
- import { MUsuario } from './core/models/SSS/user.model';
7
- import { HttpClient, HttpErrorResponse, HttpHeaders} from '@angular/common/http';
8
- import { IRequest } from './core/interfaces/Request';
9
- import { Observable, throwError } from 'rxjs';
10
- import { MProveedor } from './core/models/RPC/proveedores.model';
11
- import { map, catchError, retry } from 'rxjs/operators';
12
- import { MatDialog } from '@angular/material/dialog';
13
- import { MUsuarioPrefijo } from './core/models/CFG/userPrefix.model';
14
- import { ICatalogo, filterData } from './core/interfaces/Catalogo';
15
- import { CatalogoComponent } from './shared/components/catalogo/catalogo.component';
16
- import { MCuentaPresupuesto } from './core/models/SPG/cuentaPresupuesto.model';
17
- import { MCuentaInstitucional } from './core/models/SCG/cuentaInstitucional.model';
18
- import { MMoneda, MMonedaConfig } from './core/models/CFG/moneda.model';
19
- import { ToastrService } from 'ngx-toastr';
20
- import { MUnidadTributaria } from './core/models/STB/unidadTributaria.model';
21
- import { AbstractControl, UntypedFormGroup } from '@angular/forms';
22
- import { ConfirmComponent } from './shared/components/confirm/confirm.component';
23
- import { MConfiguracionSCG } from './core/models/SCG/configuracionSCG.model';
24
- import { IConexion } from './core/interfaces/Usuario';
25
- import { TableSelectComponent } from './shared/components/table-select/table-select.component';
26
- import { MConfigurationSPG } from './core/models/SPG/configurationSPG.model';
27
- import { MCentroCosto } from './core/models/SCG/centroCosto.model';
28
- import { MFuenteFinanciamiento } from './core/models/SPG/fuenteFinanciamiento.model';
29
- import { MCuentaEgresos } from './core/models/SPG/expensiveAccount.model';
30
- import { CatalogoEstructurasComponent } from './shared/components/catalogo-estructuras/catalogo-estructuras.component';
31
- import { IUpdateDistribution, IUpdateDistribution2, IUpdateDistributionIngresos, IUpdateDistributionIngresos2 } from './core/interfaces/CuentaEgresos';
32
- import { CatalogoDobleInputComponent } from './shared/components/catalogo-doble-input/catalogo-doble-input.component';
33
- import { MSistema, MUsuarioSistema } from './core/models/SSS/sistema';
34
- import { IComprobantePresupuestarioEgresos, IComprobantePresupuestarioIngresos } from './core/interfaces/ComprobantePresupuestario';
35
- import { MComprobantePresupuestarioEgresos, MComprobantePresupuestarioIngresos } from './core/models/SPG/comprobantePresupuestario.model';
36
- import { MCuentaIngresos } from './core/models/SCG/IncomeAccount';
37
- import { MIncomeStructureAccount } from './core/models/SPG/incomeStructureAccount.model';
38
- import { MOrganizationType } from './core/models/SPG/organizationType.model';
39
- import { MSpecialty } from './core/models/RPC/specialty.model';
40
- import { MDocument } from './core/models/RPC/document.model';
41
- import { MClasification } from './core/models/RPC/clasification.model';
42
- import { MCountry, MState, MMunicipality, MParish, MCity, MCommunity } from './core/models/CFG/locations.model';
43
- import { MProviderBeneficiary } from './core/models/RPC/providerBeneficiary.model';
44
- import { MSigecofBank, MBank, MBankAccountType, MAgenciaBanco, MCuentaBanco } from './core/models/SCB/bank.model';
45
- import { IResponse } from './core/interfaces/Response';
46
- import { MConfigurationRPC } from './core/models/RPC/configuracionRPC.model';
47
- import { MConfigSOC } from './core/models/SOC/configuracionSOC.model';
48
- import { MDeductionType } from './core/models/STB/deductionType.model';
49
- import { MCargo } from './core/models/SOC/charge.model';
50
- import { MConceptoRetencion, MDeduction } from './core/models/STB/deduction.model';
51
- import { MConfigSSS } from './core/models/SSS/securityConfiguration.model';
52
- import { MAdministrativeUnit, MEstructuras } from './core/models/SPG/administrativeUnit.model';
53
- import { MComponent } from './core/models/SSS/component.model';
54
- import { MLog } from './core/models/SSS/log.model';
55
- import { MServiceCharge } from './core/models/SOC/serviceCharge.model';
56
- import { MEmpresa } from './core/models/CFG/Empresa.model';
57
- import { MConceptosCXP } from './core/models/CXP/MConceptosCXP.model';
58
- import { MTipoDocumentoCXP } from './core/models/CXP/MTipoDocumentoCXP.model';
59
- import { MConfiguracionSNO } from './core/models/SNO/MConfiguracionSNO.model';
60
- import { MDefinicionNomina } from './core/models/SNO/MDefinicionNomina.model';
61
- import { MAsignacionCargo } from './core/models/SNO/MAsignacionCargo.model';
62
- import { MNominaSimple } from './core/models/SNO/MNominaSimple.model';
63
- import { MPersonal } from './core/models/SNO/MPersonal.model';
64
- import { MEntradaSuministros } from './core/models/SIV/MEntradaSuministro.model';
65
- import Swal from 'sweetalert2'
66
- import * as CryptoJS from 'crypto-js';
67
- import { MSnoLog } from './core/models/SNO/MAuditoria.model';
68
- import { MTipoDepositos } from './core/models/SIV/MTipoDepositos.model';
69
- import { MComunidad } from './core/models/CFG/comunidad.model';
70
- import { MExchangeRate } from './core/models/CFG/TasaCambio.model';
71
- import { MCargosAdicionales} from './core/models/STB/MCargosAdicionales';
72
- import { MClient } from './core/models/SFV/MClienteModel';
73
-
74
-
75
- @Injectable({
76
- providedIn: 'root'
77
- })
78
- export class SigespService {
79
-
80
- public usuarioActivo: MUsuario = null;
81
- public URL: string;
82
- public currentComponent: MComponent = null;
83
- public userMenu = null;
84
- public ip_adress = '127.0.0.1';
85
- // public URL: string = "http://192.168.1.67/sigesp_php";
86
- // usuarioActivo: MUsuario = {
87
- // conexionDB: {
88
- // baseDeDatos: "db_sigesp_demov3",
89
- // gestor: "postgres",
90
- // login: "postgres",
91
- // nombre: "SIGESP C.A, servidor 85 (SE PUEDE USAR)",
92
- // password: "adminsigesp",
93
- // puerto: "5432",
94
- // servidor: "192.168.1.67",
95
- // },
96
- // empresa: {
97
- // id: 1,
98
- // periodoFiscal: "2019-01-01",
99
- // titulo: "SIGESP C.A."
100
- // },
101
- // nombre: "SIGESP",
102
- // token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzM4NCJ9.eyJwYXNzd29yZF91c3UiOiIxMjM0NTY3OCIsImlkX2VtcHJlc2EiOiIxIiwidGl0ZW1wIjoiU0lHRVNQIEMuQS4iLCJwZXJmaXNjYWwiOiIyMDE5LTAxLTAxIiwibF91c3VhcmlvIjoiU0lHRVNQIiwic2Vydmlkb3IiOiIxOTIuMTY4LjEuNjciLCJwdWVydG8iOiI1NDMyIiwiYmFzZWRlZGF0b3MiOiJkYl9zaWdlc3BfZGVtb3YzIiwibG9naW4iOiJwb3N0Z3JlcyIsInBhc3N3b3JkIjoiYWRtaW5zaWdlc3AifQ.PISBSfueRAdsWsJ1AaGcVCgW-2aJkgtvLdsW0Bgo5ltyYowD8oy_nqK5sjE2URGk"
103
- // }
104
- // procede: string = 'SCGCMP';
105
- // codsis: string = 'SCG';
106
-
107
-
108
- constructor(private http: HttpClient, private dialog: MatDialog, private toast: ToastrService) { }
109
-
110
- /**
111
- * @description Valida que selo se escriban guiones y 9
112
- * @param event
113
- */
114
- public onlyGuionesAndNine(event: any) {
115
- if (event.key === '-' || event.key === '9') {
116
- return true;
117
- }
118
- return false;
119
- }
120
- /**
121
- * @description Actualiza el moncmp de sigesp_comprobante
122
- */
123
- public updateComprobanteAmount(amount: number, idComprobante: number): Observable<any> {
124
- return this.http.put<any>(`${this.URL}/dao/sig/comprobante_dao.php?monto=true`, {
125
- moncmp: amount,
126
- id_comprobante: idComprobante
127
- }, {
128
- headers: this.getHttpHeaders()
129
- });
130
- }
131
-
132
- /**
133
- * @description Actualiza el comprobante prsupuestario de Egresos
134
- * @param comprobante
135
- */
136
- public updateComprobantePresupuestarioEgresos(comprobante: IComprobantePresupuestarioEgresos): Observable<any> {
137
- return this.http.put<any>(`${this.URL}/dao/spg/comprobante_presupuestario_egresos_dao.php`,
138
- { ...comprobante, id: comprobante.id_dt_spgcmp }, { headers: this.getHttpHeaders() });
139
- }
140
-
141
- /**
142
- * @description Obtiene el comprobante presupuestario de Egresos
143
- */
144
- public getComprobantePresupuestarioEgresos(): Observable<MComprobantePresupuestarioEgresos[]> {
145
- return this.http.get<MComprobantePresupuestarioEgresos[]>(`${this.URL}/dao/spg/comprobante_presupuestario_egresos_dao.php`, {
146
- headers: this.getHttpHeaders()
147
- }).pipe(
148
- retry(3),
149
- catchError(this.handlerError),
150
- map((res: any) => res.data.map(element => new MComprobantePresupuestarioEgresos(element)))
151
- );
152
- }
153
-
154
- /**
155
- * @description Actualiza el comprobante prsupuestario de Ingresos
156
- * @param comprobante
157
- */
158
- public updateComprobantePresupuestarioIngresos(comprobante: IComprobantePresupuestarioIngresos): Observable<any> {
159
- return this.http.put<any>(`${this.URL}/dao/spg/comprobante_presupuestario_egresos_dao.php`,
160
- { ...comprobante, id: comprobante.id_dt_spicmp }, { headers: this.getHttpHeaders() });
161
- }
162
-
163
- /**
164
- * @description Obtiene el comprobante presupuestario de Ingresos
165
- */
166
- public getComprobantePresupuestarioIngresos(): Observable<MComprobantePresupuestarioIngresos[]> {
167
- return this.http.get<MComprobantePresupuestarioIngresos[]>(`${this.URL}/dao/spi/comprobante_presupuestario_ingresos_dao.php`, {
168
- headers: this.getHttpHeaders()
169
- }).pipe(
170
- retry(3),
171
- catchError(this.handlerError),
172
- map((res: any) => res.data.map(element => new MComprobantePresupuestarioIngresos(element)))
173
- );
174
- }
175
-
176
- /**
177
- * @Actualiza la distribución de la cuenta de egreso
178
- * @param distribution
179
- */
180
- public updateDistributionExpenseAccount(distribution: IUpdateDistribution): Observable<any> {
181
- return this.http.put(`${this.URL}/dao/spg/cuentas_egresos_dao.php`, distribution,
182
- {headers: this.getHttpHeaders()});
183
- }
184
-
185
- /**
186
- * @Actualiza la distribución de la cuenta de egreso
187
- * @param distribution
188
- */
189
- public updateDistributionExpenseAccount2(distribution: IUpdateDistribution2[]): Observable<any> {
190
- return this.http.put(`${this.URL}/dao/spg/cuentas_egresos_dao.php`, distribution,
191
- {headers: this.getHttpHeaders()});
192
- }
193
-
194
- /**
195
- * @Actualiza la distribución de la cuenta de Ingreso
196
- * @param distribution
197
- */
198
- public updateDistributionIncomeAccount(distribution: IUpdateDistributionIngresos): Observable<IResponse> {
199
- return this.http.put<IResponse>(`${this.URL}/dao/spi/cuentas_ingresos_dao.php`, distribution,
200
- {headers: this.getHttpHeaders()})
201
- .pipe(
202
- map((res: any) => {
203
- if (res.success){
204
- res.data = new MCuentaIngresos(res.data);
205
- }
206
- return res;
207
- })
208
- );
209
- }
210
-
211
- public updateDistributionIncomeAccount2(distribution: IUpdateDistributionIngresos2[]): Observable<IResponse> {
212
- return this.http.put<IResponse>(`${this.URL}/dao/spi/cuentas_ingresos_dao.php`, distribution,
213
- {headers: this.getHttpHeaders()})
214
- .pipe(
215
- map((res: any) => {
216
- if (res.success){
217
- res.data = new MCuentaIngresos(res.data);
218
- }
219
- return res;
220
- })
221
- );
222
- }
223
-
224
- /**
225
- * @Actualiza la distribución de la cuenta de Ingreso de Estructura
226
- * @param distribution
227
- */
228
- public updateDistributionIncomeStructureAccount(distribution: IUpdateDistributionIngresos, level: number): Observable<IResponse> {
229
- return this.http.put<IResponse>(`${this.URL}/dao/spi/cuenta_estructura_ingresos_dao.php`, distribution,
230
- {headers: this.getHttpHeaders()})
231
- .pipe(
232
- map((res: any) => {
233
- if (res.success){
234
- res.data = new MIncomeStructureAccount(res.data, level);
235
- }
236
- return res;
237
- })
238
- );
239
- }
240
-
241
- /**
242
- * @description Obtiene el plan de cuentas
243
- * @param level Número de niveles de la configuración
244
- * @param id de la estructura el idEp3 o idEp5
245
- * @return Observable<MCuentaEgresos[]>
246
- */
247
- public planInstitucionalSPG(tipo:string='plan',idEnterprise:number,periodoFiscal:number, idEP3o5:number,nivel:number,estatus:string=''): Observable<MCuentaEgresos[]>{
248
- return this.http.get<MCuentaEgresos[]>(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}&est=${estatus}`,
249
- {headers: this.getHttpHeaders()})
250
- .pipe(
251
- map((res:any) => res.data.map(element => new MCuentaEgresos(element)))
252
- )
253
- }
254
-
255
-
256
- /**
257
- * @description Abre el catálogo de estructura presupuesaria
258
- * @param data Data que se va a mostrar
259
- * @param configuration Configuración de la estructura
260
- * @return Promise<any>
261
- * @author Miguel Ramírez
262
- */
263
- public openCatalogoEstructuraPresupuestaria(data: any[], configuration: MConfigurationSPG): Promise<any> {
264
- const catalogo = this.dialog.open(CatalogoEstructurasComponent, {
265
- data: {
266
- data,
267
- configuration
268
- },
269
- width: '1000px',
270
- maxHeight: '90vh'
271
- });
272
- return catalogo.afterClosed().toPromise();
273
- }
274
-
275
-
276
- /**
277
- *
278
- * @param tipo {1,2,3,4,completa}
279
- * @param idEnterprise
280
- * @param periodoFiscal
281
- * @param codigo {codigo de la estructura }
282
- * @returns
283
- */
284
- public getBudgetStructureComplete(tipo:string='completa',idEnterprise:number, periodoFiscal:number,codigo:string='' ): Observable<MEstructuras[]> {
285
- return this.http.get<MEstructuras[]>(
286
- `${this.URL}/dao/spg/estructura_presupuestaria_dao.php?tipo=${tipo}&e=${idEnterprise}&per=${periodoFiscal}&cod=${codigo}`,
287
- { headers: this.getHttpHeaders() }).pipe(
288
- map((resp: any) => resp.data.map(e => new MEstructuras(e)))
289
- );
290
- }
291
-
292
- /**
293
- * @description Obtiene las configuraciones de la estructura presupuestaria
294
- * @return Observable<MConfigurationSPG[]>
295
- * @author Miguel Ramírez
296
- */
297
- public getConfigurationSPG(idEnterprise:number, periodoFiscal:number): Observable<MConfigurationSPG> {
298
-
299
- return this.http.get<MConfigurationSPG>(`${this.URL}/dao/spg/configuracion_presupuestaria_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}`,
300
- { headers: this.getHttpHeaders() }).pipe(
301
- retry(3),
302
- catchError(this.handlerError),
303
- map((resp: any) => new MConfigurationSPG(resp.data[0]))
304
- );
305
- }
306
- /**
307
- * @description Obtiene las configuraciones de los proveedores
308
- * @return Observable<MConfigurationRPC[]>
309
- * @author Carlos Albornoz
310
- */
311
- public getConfigurationRPC(): Observable<IResponse> {
312
-
313
- return this.http.get<MConfigurationRPC>(`${this.URL}/dao/rpc/proveedor_config_dao.php`,
314
- { headers: this.getHttpHeaders() }).pipe(
315
- retry(3),
316
- catchError(this.handlerError),
317
- map((resp: IResponse) => {
318
- if (resp.success) {
319
- resp.data = new MConfigurationRPC(resp.data)
320
- }
321
- return resp
322
- })
323
- );
324
- }
325
-
326
- /**
327
- * @description Obtiene las MConfiguracionSNO de la nomina
328
- * @return Observable<MConfiguracionSNO[]>
329
- * @date 27-07-2021
330
- */
331
- public getConfigurationSNO(idEnterprise:number): Observable<IResponse> {
332
-
333
- return this.http.get<IResponse>(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}&e=${idEnterprise}`,
334
- { headers: this.getHttpHeaders() }).pipe(
335
- retry(3),
336
- catchError(this.handlerError),
337
- map((resp: IResponse) => {
338
- if (resp.success) {
339
- if(resp.data !=null){
340
- resp.data = resp.data.map(e => new MConfiguracionSNO(e));
341
- }
342
- }
343
- return resp
344
- })
345
- );
346
- }
347
-
348
-
349
- public dateToString(date: Date): string{
350
- return `${date.getFullYear()}-${
351
- date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`
352
- }-${
353
- date.getDate() >= 10 ? date.getDate() : `0${date.getDate()}`
354
- }`
355
- }
356
-
357
- /**
358
- * @description Obtiene las configuraciones de Seguridad
359
- * @return Observable<IResponse>
360
- * @author Carlos Albornoz
361
- */
362
- public getConfigSSS(idEnterprise:number=0): Observable<IResponse> {
363
-
364
- return this.http.get<IResponse>(`${this.URL}/dao/sss/seguridad_config_dao.php?e=${idEnterprise}`,
365
- { headers: this.getHttpHeaders() }).pipe(
366
- retry(3),
367
- catchError(this.handlerError),
368
- map((resp: IResponse) => {
369
- if (resp.success) {
370
- resp.data = new MConfigSSS(resp.data)
371
- }
372
- return resp
373
- })
374
- );
375
- }
376
-
377
- public getComponents(systemCode: string = null, permit: boolean): Observable<IResponse>{
378
-
379
- return this.http.get<IResponse>(
380
- `${this.URL}/dao/sss/componentes_dao.php?${systemCode ? `codsis=${systemCode}${
381
- permit ? `&permit=true` : ''
382
- }` : ''}`,
383
- { headers: this.getHttpHeaders() }
384
- ).pipe(
385
-
386
- map(res => {
387
- if (res.success) {
388
- res.data = res.data.map(e => new MComponent(e));
389
- }
390
- return res;
391
- })
392
- )
393
-
394
- }
395
-
396
- /**
397
- * @description Obtiene las fuentes de financiamiento
398
- * @return Observable<MFuenteFinanciamiento[]>
399
- * @author Miguel Ramírez
400
- */
401
- public getFuenteFinanciamiento(idEnterprise:number,periodoFiscal:number): Observable<MFuenteFinanciamiento[]> {
402
- return this.http.get<MFuenteFinanciamiento[]>(`${this.URL}/dao/spg/fuente_financiamiento_dao.php?e=${idEnterprise}&per=${periodoFiscal}`,
403
- { headers: this.getHttpHeaders() }).pipe(
404
- retry(3),
405
- catchError(this.handlerError),
406
- map((resp: any) => resp.data.map(element => new MFuenteFinanciamiento(element)))
407
- );
408
- }
409
-
410
- /**
411
- * @description Obtiene los centros de costo
412
- * @return Observable<IResponse>
413
- * modificado 28-12-2022
414
- */
415
- public getCentroCosto(tipo:string,idEnterprise:number,periodoFiscal:number): Observable<IResponse> {
416
- return this.http.get<IResponse>(`${this.URL}/dao/scg/centro_costo_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}`,
417
- {headers: this.getHttpHeaders()}
418
- ).pipe(
419
- map((res: IResponse) => {
420
- if (res.success) {
421
- res.data = res.data.map(element => new MCentroCosto(element))
422
- }
423
- return res
424
- })
425
- );
426
- }
427
-
428
- public getCentroCostoUnidadOrganizativa(tipo:string,idEnterprise:number,periodoFiscal:number,idUnidadAdministrativa:number): Observable<IResponse> {
429
- return this.http.get<IResponse>(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idUnidadAdministrativa}`,
430
- {headers: this.getHttpHeaders()}
431
- ).pipe(
432
- map((res: IResponse) => {
433
- if (res.success) {
434
- res.data = res.data.map(element => new MCentroCosto(element))
435
- }
436
- return res
437
- })
438
- );
439
- }
440
-
441
- public getEstructurasUnidadOrganizativa(tipo:string,idEnterprise:number,periodoFiscal:number,idUnidadAdministrativa:number): Observable<IResponse> {
442
- return this.http.get<IResponse>(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idUnidadAdministrativa}`,
443
- {headers: this.getHttpHeaders()}
444
- ).pipe(
445
- map((res: IResponse) => {
446
- if (res.success) {
447
- res.data = res.data.map(element => new MEstructuras(element))
448
- }
449
- return res
450
- })
451
- );
452
- }
453
-
454
-
455
-
456
-
457
-
458
- /**
459
- * @description Abre el dialog de checkks
460
- * @param columns Columnas que va a tener la tabla
461
- * @param title Título de la modal
462
- * @param dataSource Data que s eva a mostrar en la tabla
463
- */
464
- public openDialogMultiSelect(
465
- // columns: string[],
466
- // title: string,
467
- // dataSource: any[],
468
- // columnNames?: string[]
469
- columns: string[],
470
- title: string,
471
- dataSource: any[],
472
- columnNames: string[] = null,
473
- width: string = '1000px',
474
- options: {
475
- hasBackdrop?: boolean,
476
- disableClose?: boolean,
477
- // disableMasterToggle?: boolean
478
- } = {
479
- disableClose: false,
480
- hasBackdrop: false,
481
- // disableMasterToggle: false
482
- }
483
- ): Promise<any[]> {
484
- let dialogRef = this.dialog.open(TableSelectComponent, {
485
- data: {
486
- title: title,
487
- columns: columns,
488
- dataSource: dataSource,
489
- columnNames,
490
- // disableMasterToggle: options.disableMasterToggle
491
- },
492
- width: width,
493
- maxHeight: '90vh',
494
- hasBackdrop: options.hasBackdrop,
495
- disableClose: options.disableClose
496
- });
497
-
498
- return dialogRef.afterClosed().toPromise();
499
- }
500
-
501
-
502
-
503
- /**
504
- * @description Obtiene la configuración de SCG
505
- * @return Observable<MConfiguracionSCG[]>
506
- * @author Miguel Ramírez
507
- * @modifit 25-07-2021
508
- */
509
- public getConfigurationSCG(lineaEmpresa:number,periodoFiscal:number): Observable<MConfiguracionSCG[]> {
510
- return this.http.get<MConfiguracionSCG[]>(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'default'}&e=${lineaEmpresa}&periodo=${periodoFiscal}`,
511
- {headers: this.getHttpHeaders()}
512
- ).pipe(
513
- retry(3),
514
- catchError(this.handlerError),
515
- map((resp: any) => resp.data.map(element => new MConfiguracionSCG(element)))
516
- )
517
- }
518
-
519
- /**
520
- * @description Abre un dialog de confirmación
521
- * @param title Título de la modal de confirm
522
- * @param message Mensaje (opcional) para el ususario
523
- * @return Promise<boolean>
524
- * @author Miguel Ramírez
525
- */
526
- public openDialogConfirm(title: string, message?: string): Promise<boolean> {
527
- let dialogRef = this.dialog.open(ConfirmComponent, {
528
- data: {
529
- title: title,
530
- message: (message) ? message : null
531
- },
532
- width: '1000px',
533
- maxHeight: '90vh'
534
- });
535
-
536
- return dialogRef.afterClosed().toPromise();
537
- }
538
-
539
- /**
540
- * @description Convierte el contenido de un AbstractControl en mayúscula (Usar en evento keyup)
541
- * @param formGroup Formulario dónde se va a buscar el AbstractControl
542
- * @param name Nombre del AbstractControl
543
- * @return void
544
- * @author Miguel Ramírez
545
- */
546
- public changeToUpperCase(formGroup: UntypedFormGroup, name: string): void {
547
- this.getAbstractControl(formGroup, name).setValue(this.getAbstractControl(formGroup, name).value.toUpperCase());
548
- }
549
-
550
- /**
551
- * @description Obtiene el AbstractControl de un formulario
552
- * @param formGroup Formulario donde se va a buscar el AbstractControl
553
- * @param name Nombre del AbstractControl
554
- * @return AbstractControl
555
- * @author Miguel Ramírez
556
- */
557
- public getAbstractControl(formGroup: UntypedFormGroup, name: string): AbstractControl {
558
- return formGroup.get(name);
559
- }
560
-
561
- /**
562
- * @description Previene que se escriban letras en el input (Usar en keypress)
563
- * @param event Evento del teclado
564
- * @return boolean
565
- * @author Miguel Ramírez
566
- * @modificado como onlyNumero para corregir codigo, usar currency-input si quiere usar decimales
567
- */
568
- public onlyDecimal(event?: any): boolean {
569
- if (!isNaN(+event.key) && event.keyCode != 32) {
570
- return true;
571
- }
572
- return false;
573
- }
574
-
575
- /**
576
- * @description Previene que se escriban letras en el input (Usar en keypress)
577
- * @param event Evento del teclado
578
- * @return boolean
579
- * @author Miguel Ramírez
580
- */
581
- public onlyNumbers(event?: any): boolean {
582
- // console.log(event);
583
- if (!isNaN(+event.key) && event.keyCode != 32) {
584
- return true;
585
- }
586
- return false;
587
- }
588
-
589
- /**
590
- * @description Acepta solo numero, delete y backspace
591
- * @param event Evento del teclado
592
- * @return boolean
593
- * @author Dimaly Crespo
594
- */
595
- public onlyNumbers2(event?: any): boolean {
596
- if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 46) {
597
- return true;
598
- }
599
- return false;
600
- }
601
-
602
- /**
603
- * @description Acepta solo numero,guiones, parentesis,espacios
604
- * @param event Evento del teclado
605
- * @return boolean
606
- * @author Dimaly Crespo
607
- */
608
- public typeNumbersHyphen(event?: any): boolean {
609
- if (!isNaN(+event.key) || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46
610
- || event.keyCode == 58 || event.keyCode == 57 || event.keyCode == 189) {
611
- return true;
612
- }
613
- return false;
614
- }
615
-
616
- /**
617
- * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
618
- * @param event Evento del teclado
619
- * @return boolean
620
- * @date 14-05-2022
621
- *
622
- */
623
- public typeName(event?: any): boolean {
624
- if ((event.key>='a' && event.key<='z') || (event.key>='A' && event.key<='Z') || event.key=="ñ" || event.key=="Ñ"
625
- || (event.key>='á' && event.key<='ú') || event.key>='ü' || event.key>='Ü' || event.key=="'" || event.keyCode==32
626
- || event.key=="." || event.key=="," || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46 ){
627
- return true;
628
- }
629
- return false;
630
- }
631
- /**
632
- * @description Permite (0-9 a-z A-Z á-ú ñÑ üÜ ',.-_/:()%#º&$€£¥) que se escriban en el input (Usar en keypress)
633
- * @param event Evento del teclado
634
- * @return boolean
635
- * @date 14-05-2022
636
- *
637
- */
638
- public typeText(event?: any): boolean {
639
- if ((event.key>='a' && event.key<='z') || (event.key>='A' && event.key<='Z') || event.key=="ñ" || event.key=="Ñ"
640
- || (event.key>='á' && event.key<='ú') || event.key=='ü' || event.key=='Ü' || event.key=="'" || isNaN(+event.key)
641
- || event.key=="." || event.key=="," || event.key=="&" || event.key=="_"|| event.key=="-" || event.key=="#"
642
- || event.key=="º" || event.key=="$" || event.key=="(" || event.key==")" || event.key=="%" || event.key==' '
643
- || event.key==':' ||event.key=='/'|| event.keyCode==8364 || event.keyCode==165 ||event.keyCode==163
644
- || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46 ){
645
- return true;
646
- }
647
- return false;
648
- }
649
-
650
- /**
651
- * @description Permite (0-9 a-z A-Z ñÑ .-_) que se escriban en el input (Usar en keypress)
652
- * @param event Evento del teclado
653
- * @return boolean
654
- * @date 14-05-2022
655
- */
656
- public typeCode(event?: any): boolean {
657
- if ((event.key>='a' && event.key<='z') || (event.key>='A' && event.key<='Z') || event.key=="ñ" || event.key=="Ñ"
658
- ||isNaN(+event.key) || event.key=="." || event.key=="_" || event.key=="-" || event.keyCode == 8 || event.keyCode == 32 || event.keyCode == 46 ){
659
- return true;
660
- }
661
- return false;
662
- }
663
-
664
- /**
665
- * @description Abre el dialog de las comunidades
666
- * @return Promise<MComunidad>
667
- * @author Miguel Ramírez
668
- */
669
- public async openDialogUnidadesTributarias(): Promise<any> {
670
- let udTributarias: MUnidadTributaria[] = await this.getUnidadesTributarias().toPromise();
671
- let dialogRef = this.dialog.open(CatalogoComponent, {
672
- data: {
673
- columns: ['año', 'nro_decreto', 'fecha_decreto', 'entrada_videncia', 'publicacion_gaceta', 'nro_gaceta', 'valorut'],
674
- title: 'Catálogo de Unidades Tributarias',
675
- dataSource: udTributarias
676
- } as ICatalogo,
677
- width: '1000x',
678
- maxHeight: '90vh'
679
- });
680
- return dialogRef.afterClosed().toPromise();
681
- }
682
-
683
- /**
684
- * @description Obtiene las unidades tributarias
685
- * @return Observable<any>
686
- * @author Miguel Ramírez
687
- */
688
- public getUnidadesTributarias(): Observable<MUnidadTributaria[]> {
689
- const request: IRequest = {
690
- operacion: 'obtenerData',
691
- sigesp_conexion: {
692
- servidor: this.URL,
693
- usuario: this.usuarioActivo.getInterface()
694
- }
695
- }
696
- return this.http.post<MUnidadTributaria[]>(`${this.URL}/dao/cfg/undtributaria_dao.php`, request).pipe(
697
- retry(3),
698
- catchError(this.handlerError),
699
- map((resp: any[]) => resp.map(element => new MUnidadTributaria(element)))
700
- );
701
- }
702
-
703
- /**
704
- * @description Abre una modal génerica
705
- * @param columns Columnas que va a tener la tabla
706
- * @param title Título del dialog
707
- * @param dataSource Data que se va a mostrar en la tabla
708
- * @return Promise<any>
709
- * @author Miguel Ramírez
710
- */
711
- public async openCatalogoGenerico(
712
- columns: string[],
713
- title: string,
714
- dataSource: any[],
715
- columnNames: string[] = null,
716
- width: string = '1000px',
717
- options: {
718
- hasBackdrop?: boolean,
719
- disableClose?: boolean
720
- } = {disableClose: false, hasBackdrop: false}
721
- ): Promise<any> {
722
- let dialogRef = this.dialog.open(CatalogoComponent, {
723
- data: {
724
- columns,
725
- title,
726
- dataSource,
727
- columnNames
728
- } as ICatalogo,
729
- width: width,
730
- maxHeight: '90vh',
731
- hasBackdrop: options.hasBackdrop ? options.hasBackdrop : false,
732
- disableClose: options.disableClose ? options.disableClose : false,
733
- });
734
- return dialogRef.afterClosed().toPromise();
735
- }
736
-
737
- /**
738
- * @description Abre una modal génerica con 2 inputs
739
- * @param columns Columnas que va a tener la tabla
740
- * @param title Título del dialog
741
- * @param dataSource Data que se va a mostrar en la tabla
742
- * @return Promise<any>
743
- * @author Carlos Albornoz
744
- */
745
- public async openCatalogoDosInputs(
746
- columns: string[],
747
- title: string,
748
- dataSource: any[],
749
- filterData: filterData[],
750
- columnNames: string[] = null,
751
- width: string = "1000px"
752
- ): Promise<any> {
753
- let dialogRef = this.dialog.open(CatalogoDobleInputComponent, {
754
- data: {
755
- columns,
756
- title,
757
- dataSource,
758
- columnNames,
759
- filterData
760
- } as ICatalogo,
761
- width: width,
762
- maxHeight: '90vh'
763
- });
764
- return dialogRef.afterClosed().toPromise();
765
- }
766
-
767
- /**
768
- * @description Abre el dialog de las comunidades
769
- * @return Promise<MComunidad>
770
- * @author Miguel Ramírez
771
- */
772
- public async openDialogComunidad(): Promise<MComunidad> {
773
- let comunidades: MComunidad[] = await this.getComunidades().toPromise();
774
- let dialogRef = this.dialog.open(CatalogoComponent, {
775
- data: {
776
- columns: ['prefijo', 'pais', 'estado', 'municipio', 'parroquia', 'codigo', 'comunidad'],
777
- title: 'Catálogo de Comunidades',
778
- dataSource: comunidades
779
- } as ICatalogo,
780
- width: '1000px',
781
- maxHeight: '90vh'
782
- });
783
- return dialogRef.afterClosed().toPromise();
784
- }
785
-
786
- /**
787
- * @description Obtiene las comunidades
788
- * @return Observable<MComunidad[]>
789
- * @author Miguel Ramírez
790
- */
791
- public getComunidades(): Observable<MComunidad[]> {
792
- const request: IRequest = {
793
- operacion: 'obtenerData',
794
- sigesp_conexion: {
795
- servidor: this.URL,
796
- usuario: this.usuarioActivo.getInterface()
797
- }
798
- }
799
- return this.http.post<MComunidad[]>(`${this.URL}/dao/cfg/comunidades_dao.php`, request).pipe(
800
- map((resp: any[]) => resp.map(element => new MComunidad(element)))
801
- );
802
- }
803
-
804
- /**
805
- * @description Abre el dialog de las las monedas
806
- * @return Promise<MMoneda>
807
- * @author Miguel Ramírez
808
- */
809
- public async openDialogMonedas(): Promise<MMoneda> {
810
- let coins: MMoneda[] = await this.getMonedas('todas').toPromise();
811
- let dialogRef = this.dialog.open(CatalogoComponent, {
812
- data: {
813
- columns: ['codigo', 'denominacion', 'codigoIso', 'simbolo'],
814
- title: 'Catálogo de Monedas',
815
- columnNames: ['código', 'denominación', 'iso', 'simbolo'],
816
- dataSource: coins
817
- } as ICatalogo,
818
- width: '1000px',
819
- maxHeight: '90vh'
820
- });
821
- return dialogRef.afterClosed().toPromise();
822
- }
823
-
824
- /**
825
- * @description Obtiene las monedas
826
- * @return Observable<MMoneda[]>
827
- * @author Miguel Ramírez
828
- * actualizado 4-12-2022
829
- * @param tipo :string {'todas','uno','actual}
830
- * @param id : number
831
- * @returns
832
- */
833
-
834
-
835
- public getMonedas(tipo:string,id?:number): Observable<MMoneda[]> {
836
- return this.http.get<MMoneda[]>(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`,
837
- { headers: this.getHttpHeaders()}).pipe(
838
- map((resp: any) => resp.data.map(element => new MMoneda(element)))
839
- );
840
- }
841
-
842
-
843
- /**
844
- * @Description: Obtiene la tasa de cambio asociadas a uno o varias monedas
845
- * @param tipo string
846
- * @param id codigo moneda
847
- * @returns array/null
848
- * @tipo:all->todas, (moneda->una moneda id->id de moneda)
849
- */
850
- public getCurrencyExchangeRate(tipo: 'all'| 'moneda'= null, id?:number): Observable<MExchangeRate[]> {
851
- return this.http.get<MExchangeRate[]>(`${this.URL}/dao/cfg/tasa_cambio_dao.php?tipo=${tipo}&id=${id}`,
852
- { headers: this.getHttpHeaders()}).pipe(
853
- map((resp: any) => resp.data.map(element => new MExchangeRate(element)))
854
- );
855
- }
856
-
857
-
858
-
859
-
860
-
861
- /**
862
- * @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
863
- * @return Promise<McuentaInstitucional>
864
- * @author Miguel Ramírez
865
- */
866
- public async openDialogCuentasInstitucionales(idEnterprise:number, periodoFiscal:number): Promise<MCuentaInstitucional> {
867
- let accounts: MCuentaInstitucional[] = await this.getCuentasInstitucionales(idEnterprise, periodoFiscal).toPromise();
868
- let dialogRef = this.dialog.open(CatalogoComponent, {
869
- data: {
870
- columns: ['cuenta', 'denominacion'],
871
- columnNames: ['cuenta', 'denominación'],
872
- title: 'Catálogo de Plan de Cuenta Institucional',
873
- dataSource: accounts
874
- } as ICatalogo,
875
- width: '1000px',
876
- maxHeight: '90vh'
877
- });
878
- return dialogRef.afterClosed().toPromise();
879
- }
880
-
881
- /**
882
- * @description Obtiene las cuentas contables (Cuentas Institucionales)
883
- * @return Observable<MCuentaInstitucional[]>
884
- * @author Miguel Ramírez
885
- */
886
- public getCuentasInstitucionales(idEnterprise:number, periodoFiscal:number, inventory?: boolean): Observable<MCuentaInstitucional[]> {
887
- return this.http.get<MCuentaInstitucional[]>(`${this.URL}/dao/scg/cuentas_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}${(inventory)? '&inventory=true' : ''}`,
888
- { headers: this.getHttpHeaders() }).pipe(
889
- map((resp: any) => resp.data.map(element => new MCuentaInstitucional(element)))
890
- );
891
- }
892
-
893
- /**
894
- * @description Abre el dialog de las cuentas de presupuesto (Recursos y Egresos)
895
- * @return Promise<MCuentaPresupuesto>
896
- * @author Miguel Ramírez
897
- */
898
- public async openDialogCuentasPresupuesto(idEnterprise:number,periodoFiscal:number): Promise<MCuentaPresupuesto> {
899
- let accounts: MCuentaPresupuesto[] = await this.getCuentasPresupuesto(idEnterprise,periodoFiscal).toPromise();
900
- let dialogRef = this.dialog.open(CatalogoComponent, {
901
- data: {
902
- columnNames: ['cuenta', 'denominación'],
903
- columns: ['cuenta', 'denominacion'],
904
- title: 'Catálogo de Cuentas de Presupuesto',
905
- dataSource: accounts
906
- } as ICatalogo,
907
- width: '1000px',
908
- maxHeight: '90vh'
909
- });
910
- return dialogRef.afterClosed().toPromise();
911
-
912
- }
913
-
914
- /**
915
- * @description Obtiene las cuentas de recursos y egresos
916
- * @return Observable<MCuentaPresupuesto>
917
- * @author Miguel Ramírez
918
- * @param filter {numero,sno,C,egreso,ingreso}
919
- * @param idEnterprise
920
- * @param peridoFiscal
921
- * @returns
922
- */
923
- public getCuentasPresupuesto(idEnterprise:number,peridoFiscal:number,filter:string='default'): Observable<MCuentaPresupuesto[]> {
924
- return this.http.get<MCuentaPresupuesto>(`${this.URL}/dao/spg/plan_cuentas_recursos_egresos_dao.php?filter=${filter}&e=${idEnterprise}&per=${peridoFiscal}`,
925
- { headers: this.getHttpHeaders() }).pipe( map((res: any) => res.data.map(element => new MCuentaPresupuesto(element))));
926
- }
927
-
928
-
929
- /**
930
- * @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
931
- * @returns Promise<MCuentaEgresos>
932
- * @author Carlos Albornoz
933
- * @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
934
- */
935
- public async openCatalogoCuentasEgreso(idEnterprise:number, periodoFiscal:number,titulo: string, presupuesto: boolean = true,ancho: string = "1000px"): Promise<MCuentaEgresos>{
936
- let cuentas: MCuentaEgresos[] = [];
937
- await this.getExpenseAccounts(idEnterprise,periodoFiscal).toPromise().then(res => {
938
- cuentas = res
939
- cuentas = cuentas.filter(e => {
940
- return e.status == "C"
941
- }).map(e => {
942
- e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora"
943
- return e;
944
- })
945
- })
946
- if (presupuesto) {
947
- return this.openCatalogoDosInputs(
948
- ["cuenta","denominacion","estructura","provStatus"],
949
- titulo,
950
- cuentas,
951
- [{
952
- placeholder: "Cuenta",
953
- property: "cuenta"
954
- }, {
955
- placeholder: "Estructura",
956
- property: "estructura"
957
- }],
958
- ["Cuenta", "Denominación", "Estructura", "Estado"],
959
- ancho
960
- )
961
- } else {
962
- let filteredAccounts: MCuentaEgresos[] = [];
963
- cuentas.forEach(c => {
964
- if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
965
- filteredAccounts.push(c)
966
- }
967
- })
968
- return this.openCatalogoGenerico(
969
- ["cuenta","denominacion","provStatus"],
970
- titulo,
971
- filteredAccounts,
972
- ["Cuenta", "Denominación", "Estado"],
973
- ancho
974
- )
975
- }
976
- }
977
-
978
- public getExpenseAccounts(idEnterprise:number,periodoFiscal:number,estatus?:string): Observable<MCuentaEgresos[]>{
979
- return this.http.get<MCuentaEgresos[]>(`${this.URL}/dao/spg/cuentas_egresos_dao.php?e=${idEnterprise}&periodo=${periodoFiscal}&est=${estatus}`,
980
- {headers: this.getHttpHeaders()})
981
- .pipe(
982
- map((res:any) => res.data.map(element => new MCuentaEgresos(element)))
983
- )
984
- }
985
-
986
-
987
-
988
- /**
989
- * @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
990
- * @returns Promise<MCuentaPresupuesto>
991
- * @author Carlos Albornoz
992
- * @params filtro: Indica bajo que parametros se va a filtrar el catalogo
993
- */
994
- public async openCatalogoCuentasPresuspuesto(
995
- titulo: string,
996
- idEnterprise:number,
997
- periodoFiscal:number,
998
- filtro: filtroCuentasPresupuesto = null,
999
- ancho: string = '1000px',
1000
- ): Promise<MCuentaPresupuesto> {
1001
- let cuentas: MCuentaPresupuesto[] = [];
1002
-
1003
- await this.getCuentasPresupuesto(idEnterprise,periodoFiscal).toPromise().then((res) => {
1004
- cuentas = res;
1005
- if (filtro) {
1006
- if (filtro.estado) {
1007
- cuentas = cuentas.filter(c => {
1008
- return c.status == filtro.estado
1009
- })
1010
- }
1011
- if (filtro.tipo) {
1012
- cuentas = cuentas.filter(c => {
1013
- return c.tipo == filtro.tipo
1014
- })
1015
- }
1016
- }
1017
- cuentas = cuentas.map(e => {
1018
- e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora"
1019
- e['provType'] = e.status == "R" ? "Recursos" : "Ingresos"
1020
- return e
1021
- })
1022
- })
1023
- return this.openCatalogoGenerico(
1024
- ["cuenta","denominacion","provStatus","provType"],
1025
- titulo,
1026
- cuentas,
1027
- ["Cuenta","Denominación","Estado","Tipo"],
1028
- ancho
1029
- )
1030
- }
1031
-
1032
-
1033
-
1034
-
1035
- /**
1036
- * @description Abre el cátalogo de cuentas de la tabla "spi_cuentas"
1037
- * @returns Promise<MCuentaIngresos>
1038
- * @author Carlos Albornoz
1039
- * @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
1040
- */
1041
- public async openCatalogoCuentasIngreso(idEnterprise:number,periodoFiscal:number,nivel:number,idEP:number,titulo: string,ancho: string = "1000px", presupuesto:boolean=false
1042
- ): Promise<MCuentaIngresos>{
1043
- let cuentas: MCuentaIngresos[] = [];
1044
- await this.getIncomeAccounts('default',idEnterprise,periodoFiscal,nivel,idEP).toPromise().then((res: IResponse) => {
1045
- cuentas = res.data
1046
- cuentas = cuentas.filter(e => {
1047
- return e.estado == "C"
1048
- }).map(e => {
1049
- e['provStatus'] = e.estado == "C" ? "Movimientos" : "Totalizadora"
1050
- return e;
1051
- })
1052
- })
1053
- if (presupuesto) {
1054
- return this.openCatalogoDosInputs(
1055
- ["cuenta","denominacion","estructura","provStatus"],
1056
- titulo,
1057
- cuentas,
1058
- [{
1059
- placeholder: "Cuenta",
1060
- property: "cuenta"
1061
- }, {
1062
- placeholder: "Estructura",
1063
- property: "estructura"
1064
- }],
1065
- ["Cuenta", "Denominación", "Estructura", "Estado"],
1066
- ancho
1067
- )
1068
- } else {
1069
- let filteredAccounts: MCuentaIngresos[] = [];
1070
- cuentas.forEach(c => {
1071
- if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
1072
- filteredAccounts.push(c)
1073
- }
1074
- })
1075
- return this.openCatalogoGenerico(
1076
- ["cuenta","denominacion","provStatus"],
1077
- titulo,
1078
- filteredAccounts,
1079
- ["Cuenta", "Denominación", "Estado"],
1080
- ancho
1081
- )
1082
- }
1083
- }
1084
-
1085
- public getUnidadAdministrativa(tipo?:string,idEnterprise?:number,periodoFiscal?:number,idUnidadOrganizativa?:number){
1086
- return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idUnidadOrganizativa}`,
1087
- {headers: this.getHttpHeaders()})
1088
- .pipe(
1089
- map((res:any) => {
1090
- if (res.success) {
1091
- res.data = res.data.map(e => new MAdministrativeUnit(e));
1092
- }
1093
- return res;
1094
- })
1095
- )
1096
- }
1097
-
1098
- /**
1099
- * @description Obtiene los cargos de servicios
1100
- * @return Observable<IResponse>
1101
- * @author Carlos Albornoz
1102
- */
1103
- public getServiceCharges(serviceId:number = null): Observable<IResponse> {
1104
- return this.http.get<IResponse>(`${this.URL}/dao/soc/servicio_cargo_dao.php${
1105
- serviceId ? `?service_id=${serviceId}` : ''
1106
- }`,
1107
- { headers: this.getHttpHeaders() }).pipe(
1108
- retry(3),
1109
- catchError(this.handlerError),
1110
- map((res: any) => {
1111
- if (res.success) {
1112
- res.data = res.data.map(e => new MServiceCharge(e));
1113
- }
1114
- return res;
1115
- })
1116
- );
1117
- }
1118
-
1119
- /**
1120
- * @description Obtiene los paises
1121
- * @return Observable<MCountry>
1122
- * @author Carlos Albornoz
1123
- * @modified 10-01-2022
1124
- * @param codigo: Codigo del pais
1125
-
1126
- */
1127
- public getCountries(codigo?:string): Observable<MCountry[]> {
1128
-
1129
- return this.http.get<MCountry>(`${this.URL}/dao/cfg/paises_dao.php?codigo=${codigo}`,
1130
- { headers: this.getHttpHeaders() }).pipe(
1131
- retry(3),
1132
- catchError(this.handlerError),
1133
- map((res: any) => res.data.map(e => new MCountry(e)))
1134
- );
1135
- }
1136
-
1137
- /**
1138
- * @description Obtiene los estados
1139
- * @return Observable<MState>
1140
- * @author Carlos Albornoz
1141
- * @modificado 4-12-2022
1142
- * @param codigo: Codigo del pais
1143
- */
1144
- public getStates(codigo?:string): Observable<MState[]> {
1145
- return this.http.get<MState>(`${this.URL}/dao/cfg/estados_dao.php?codigo=${codigo}`,
1146
- { headers: this.getHttpHeaders() }).pipe(
1147
- retry(3),
1148
- catchError(this.handlerError),
1149
- map((res: any) => res.data.map(e => new MState(e)))
1150
- );
1151
- }
1152
-
1153
- /**
1154
- * @description Obtiene los municipios
1155
- * @return Observable<MMunicipality>
1156
- * @author Carlos Albornoz
1157
- * @modificado 10-01-2022
1158
- * @param pais: Codigo del pais ,
1159
- * @param estado: Codigo del estado
1160
- * @actualizado 4-12-2022
1161
- */
1162
- public getMunicipalities(pais?:string,estado?:string): Observable<MMunicipality[]> {
1163
- return this.http.get<MMunicipality>(`${this.URL}/dao/cfg/municipios_dao.php?pais=${pais}&estado=${estado}`,
1164
- { headers: this.getHttpHeaders() }).pipe(
1165
- retry(3),
1166
- catchError(this.handlerError),
1167
- map((res: any) => res.data.map(e => new MMunicipality(e)))
1168
- );
1169
- }
1170
-
1171
- /**
1172
- * @description Obtiene las parroquias
1173
- * @return Observable<MParish>
1174
- * @author Carlos Albornoz
1175
- * @modificado 10-01-2022
1176
- * @param pais: Codigo del pais
1177
- * @param estado: Codigo del estado
1178
- * @param municipio:codigo Municipio
1179
- * @actualizado 4-12-2022
1180
-
1181
- */
1182
- public getParishes(pais?:string,estado?:string,municipio?:string): Observable<MParish[]> {
1183
- return this.http.get<MParish>(`${this.URL}/dao/cfg/parroquias_dao.php?pais=${pais}&estado=${estado}&municipio=${municipio}`,
1184
- { headers: this.getHttpHeaders() }).pipe(
1185
- retry(3),
1186
- catchError(this.handlerError),
1187
- map((res: any) => res.data.map(e => new MParish(e)))
1188
- );
1189
- }
1190
-
1191
- /**
1192
- * @description Obtiene las ciudades
1193
- * @return Observable<MParish>
1194
- * @author Carlos Albornoz
1195
- * @modificado 10-01-2022
1196
- * @param pais: Codigo del pais
1197
- * @param estado: Codigo del estado
1198
-
1199
-
1200
- */
1201
- public getCity(pais?:string,estado?:string): Observable<MCity[]> {
1202
- return this.http.get<MCity>(`${this.URL}/dao/cfg/ciudades_dao.php?pais=${pais}&estado=${estado}`,
1203
- { headers: this.getHttpHeaders() }).pipe(
1204
- retry(3),
1205
- catchError(this.handlerError),
1206
- map((res: any) => res.data.map(e => new MCity(e)))
1207
- );
1208
- }
1209
-
1210
- /**
1211
- * @description Obtiene las ciudades
1212
- * @return Observable<MParish>
1213
- * @author Dimaly Crespo
1214
- * @modificado 10-01-2022
1215
- * @param pais: Codigo del pais
1216
-
1217
- */
1218
- public getCommunities(pais?:string,estado?:string, municipio?:string,parroquia?:string): Observable<MCommunity[]> {
1219
- return this.http.get<MCommunity>(`${this.URL}/dao/cfg/comunidades_dao.php?pais=${pais}&estado=${estado}&municipio=${municipio}&parroquia=${parroquia}`,
1220
- { headers: this.getHttpHeaders() }).pipe(
1221
- retry(3),
1222
- catchError(this.handlerError),
1223
- map((res: any) => res.data.map(e => new MCommunity(e)))
1224
- );
1225
- }
1226
-
1227
- /**
1228
- * @description Obtiene los sistemas activas
1229
- * @return Observable<MSistema>
1230
- * @author Carlos Albornoz
1231
- */
1232
- public getSistemas(): Observable<MSistema[]> {
1233
- return this.http.get<MSistema>(`${this.URL}/dao/sss/sistemas_dao.php`,
1234
- { headers: this.getHttpHeaders() }).pipe(
1235
- retry(3),
1236
- catchError(this.handlerError),
1237
- map((res: any) => res.data.map(e => new MSistema(e)))
1238
- );
1239
- }
1240
-
1241
- /**
1242
- * @description Obtiene la moneda actual
1243
- * @return Observable<IResponse>
1244
- * @author Carlos Albornoz
1245
- * @actualizado: 4-12-20222
1246
- * @params id: id de la moneda,
1247
- * @params tipo: todas->obtiene todas las moneda, (uno-> obtiene una moneda + id)
1248
- * (mon:formato para inputCurrency + id )
1249
- */
1250
- public getCurrentCurrency(tipo:'todas'|'uno'|'mon'=null,id?:number): Observable<IResponse> {
1251
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`,
1252
- { headers: this.getHttpHeaders() }).pipe(
1253
- map((res: any) => {
1254
- if (res.success) {
1255
- if(tipo=='todas'){
1256
- res.data = res.data.map(e => new MMonedaConfig(e));
1257
- } else {
1258
- res.data = new MMonedaConfig(res.data);
1259
- }
1260
-
1261
- }
1262
- return res;
1263
- })
1264
- );
1265
- }
1266
-
1267
- /**
1268
- * @description Obtiene la linea empresa
1269
- * @return Observable<IResponse>
1270
- * @author Dimaly Crespo
1271
- * @actualizado: 5-12-20222
1272
- */
1273
- public getEnterprise(tipo:'linea' |'proceso'|'default'=null ,id?:number): Observable<IResponse> {
1274
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/enterprise_dao.php?tipo=${tipo}`,
1275
- { headers: this.getHttpHeaders() }).pipe(
1276
- retry(3),
1277
- catchError(this.handlerError),
1278
- map((res: any) => {
1279
- if (res.success) {
1280
- res.data = res.data.map(e => new MEnterprise(e));
1281
- }
1282
- return res;
1283
- })
1284
- );
1285
- }
1286
-
1287
-
1288
- /**
1289
- * @description Obtiene los tipos de organizacion
1290
- * @return Observable<IResponse>
1291
- * @author Carlos Albornoz
1292
- */
1293
- public getOrganizationTypes(): Observable<IResponse> {
1294
- return this.http.get<IResponse>(`${this.URL}/dao/rpc/tipo_organizacion_dao.php`,
1295
- { headers: this.getHttpHeaders() }).pipe(
1296
- retry(3),
1297
- catchError(this.handlerError),
1298
- map((res: any) => {
1299
- if (res.success) {
1300
- res.data = res.data.map(e => new MOrganizationType(e));
1301
- }
1302
- return res;
1303
- })
1304
- );
1305
- }
1306
-
1307
- /**
1308
- * @description Obtiene los tipos de organizacion
1309
- * @return Observable<IResponse>
1310
- * @author Carlos Albornoz
1311
- */
1312
- public getSpecialties(): Observable<IResponse> {
1313
- return this.http.get<IResponse>(`${this.URL}/dao/rpc/especialidad_dao.php`,
1314
- { headers: this.getHttpHeaders() }).pipe(
1315
- retry(3),
1316
- catchError(this.handlerError),
1317
- map((res: any) => {
1318
- if (res.success) {
1319
- res.data = res.data.map(e => new MSpecialty(e));
1320
- }
1321
- return res;
1322
- })
1323
- );
1324
- }
1325
-
1326
- /**
1327
- * @description Obtiene los documentos
1328
- * @return Observable<IResponse>
1329
- * @author Carlos Albornoz
1330
- */
1331
- public getDocuments(): Observable<IResponse> {
1332
- return this.http.get<IResponse>(`${this.URL}/dao/rpc/documento_dao.php`,
1333
- { headers: this.getHttpHeaders() }).pipe(
1334
- retry(3),
1335
- catchError(this.handlerError),
1336
- map((res: any) => {
1337
- if (res.success) {
1338
- res.data = res.data.map(e => new MDocument(e));
1339
- }
1340
- return res;
1341
- })
1342
- );
1343
- }
1344
-
1345
- /**
1346
- * @description Obtiene las clasificaciones
1347
- * @return Observable<IResponse>
1348
- * @author Carlos Albornoz
1349
- */
1350
- public getClasifications(): Observable<IResponse> {
1351
- return this.http.get<IResponse>(`${this.URL}/dao/rpc/clasificacion_dao.php`,
1352
- { headers: this.getHttpHeaders() }).pipe(
1353
- retry(3),
1354
- catchError(this.handlerError),
1355
- map((res: any) => {
1356
- if (res.success) {
1357
- res.data = res.data.map(e => new MClasification(e));
1358
- }
1359
- return res;
1360
- })
1361
- );
1362
- }
1363
-
1364
- /**
1365
- * @description Obtiene el prefijo de los usuarios
1366
- * @param procede De que módulo procede
1367
- * @param codsis Código del sistema
1368
- * @return Observable<MUsuarioPrefijo[]>
1369
- * @author Carlos Albornoz
1370
- */
1371
- public getUserPrefix(filter: 'detail' = null, code: string = null, idEnterprise:number, periodo:number): Observable<IResponse> {
1372
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/control_numero_dao.php${
1373
- filter ? `?filter=${filter}&code=${code}&e=${idEnterprise}&periodo=${periodo}` : ''
1374
- }`,
1375
- { headers: this.getHttpHeaders() }).pipe(
1376
- retry(3),
1377
- catchError(this.handlerError),
1378
- map((res: any) => {
1379
- if (res.success) {
1380
- res.data = res.data.map(e => new MUsuarioPrefijo(e));
1381
- }
1382
- return res;
1383
- })
1384
- );
1385
- }
1386
-
1387
-
1388
- /**
1389
- * @description Obtiene los pefijo
1390
- * @param procede De que módulo procede
1391
- * @param codsis Código del sistema
1392
- * @return Observable<MUsuarioPrefijo[]>
1393
- * @author DimalyCrespo 17-12-2022
1394
- */
1395
- public getPrefix(filter: 'all' | 'one' = null, code: string = null): Observable<IResponse> {
1396
-
1397
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/control_numero_dao.php${
1398
- filter ? `?filter=${filter}&code=${code}` : ''
1399
- }`,
1400
- { headers: this.getHttpHeaders() }).pipe(
1401
- retry(3),
1402
- catchError(this.handlerError),
1403
- map((res: any) => {
1404
- if (res.success) {
1405
- res.data = res.data.map(e => new MPrefijo(e));
1406
- }
1407
- return res;
1408
- })
1409
- );
1410
- }
1411
-
1412
- /**
1413
- * @description Abre el dialog para buscar los proveedores
1414
- * @return Promise<MProveedor>
1415
- * @author Miguel Ramírez
1416
- */
1417
- public async openDialogProveedores(idEnterprise:number): Promise<MProveedor> {
1418
- let proveedores: MProveedor[] = await this.getProveedores(idEnterprise).toPromise();
1419
- let dialogRef = this.dialog.open(CatalogoComponent, {
1420
- data: {
1421
- columns: ['tipo', 'rif', 'nombre'],
1422
- title: 'Catálogo de Proveedores y Beneficiarios',
1423
- dataSource: proveedores
1424
- } as ICatalogo,
1425
- width: '450px',
1426
- maxHeight: '90vh'
1427
- });
1428
-
1429
- return dialogRef.afterClosed().toPromise();
1430
- }
1431
-
1432
- /**
1433
- * @description Obtiene los proveedores
1434
- * @return Observable<MProveedor[]>
1435
- * @author Miguel Ramírez
1436
- */
1437
- public getProveedores(idEnterprise:number): Observable<MProveedor[]> {
1438
- let request: IRequest = {
1439
- operacion: 'obtenerData',
1440
- sigesp_conexion: {
1441
- servidor: this.URL,
1442
- usuario: this.usuarioActivo.getInterface()
1443
- }
1444
- }
1445
- return this.http.post<MProveedor[]>(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php?e=${idEnterprise}`, request).pipe(
1446
- map((res: any) => res.map(element => new MProveedor(element)))
1447
- );
1448
- }
1449
-
1450
- /**
1451
- * @description Obtiene los proveedores y beneficiarios
1452
- * @Note Si quiere solo los datos basicos use los parametros ('S','P','N')
1453
- * @return Observable<IResponse>
1454
- * @author Carlos Albornoz
1455
- * @type ={'P','B','S'}
1456
- * @destination ={'P','B','C','A','N'}≈{Proveedor,Beneficiario,Contatista,Ambos,Ninguno}
1457
- * @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
1458
- * @modificado 17-07-2023
1459
- */
1460
-
1461
- public getProvidersAndBeneficiaries(type: string ='default', idEnterprise:number,destination:string=null, account:string='N'): Observable<IResponse> {
1462
- return this.http.get<IResponse>(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&e=${idEnterprise}&destination=${destination}&account=${account}`,
1463
- { headers: this.getHttpHeaders() }).pipe(
1464
- retry(3),
1465
- catchError(this.handlerError),
1466
- map((res: any) => {
1467
- if (res.success) {
1468
- res.data = res.data.map(e => new MProviderBeneficiary(e));
1469
- }
1470
- return res;
1471
- })
1472
- );
1473
- }
1474
-
1475
-
1476
- /**
1477
- * @description Obtiene un Usuario segun su ID
1478
- * @return Observable<IResponse>
1479
- * @author Carlos Albornoz
1480
- */
1481
- public getUserById(id: number): Observable<IResponse> {
1482
- return this.http.get<IResponse>(`${this.URL}/dao/sss/usuario_dao.php?id=${id}`,
1483
- { headers: this.getHttpHeaders() }).pipe(
1484
- retry(3),
1485
- catchError(this.handlerError),
1486
- map((res: any) => {
1487
- if (res.success) {
1488
- res.data = new MUsuario(res.data);
1489
- }
1490
- return res;
1491
- })
1492
- );
1493
- }
1494
-
1495
- /**
1496
- * @description Obtiene los bancos
1497
- * @return Observable<IResponse>
1498
- * @author Carlos Albornoz
1499
- */
1500
- public getBanks(idEnterprise?:number): Observable<IResponse> {
1501
- return this.http.get<IResponse>(`${this.URL}/dao/scb/banco_dao.php?e=${idEnterprise}`,
1502
- { headers: this.getHttpHeaders() }).pipe(
1503
- retry(3),
1504
- catchError(this.handlerError),
1505
- map((res: any) => {
1506
- if (res.success) {
1507
- res.data = res.data.map(e => new MBank(e));
1508
- }
1509
- return res;
1510
- })
1511
- );
1512
- }
1513
-
1514
- /**
1515
- * @description Obtiene los tipos de cuenta bancarias
1516
- * @return Observable<IResponse>
1517
- * @author Carlos Albornoz
1518
- */
1519
- public getBankAccountTypes(): Observable<IResponse> {
1520
- return this.http.get<IResponse>(`${this.URL}/dao/scb/banco_tipo_cuenta_dao.php`,
1521
- { headers: this.getHttpHeaders() }).pipe(
1522
- retry(3),
1523
- catchError(this.handlerError),
1524
- map((res: any) => {
1525
- if (res.success) {
1526
- res.data = res.data.map(e => new MBankAccountType(e));
1527
- }
1528
- return res;
1529
- })
1530
- );
1531
- }
1532
-
1533
-
1534
- /**
1535
- * @description obtiene las cuenta segun el id
1536
- * @param tipo {'banco', 'default'}
1537
- * @param id para la opcion banco usar id=idBanco, opcion defaulf id=idEnterprise
1538
- * @returns
1539
- */
1540
- public getAllBankAccount(tipo:string,id:number){
1541
- return this.http.get(`${this.URL}/dao/scb/cuenta_banco_dao.php?tipo=${tipo}&e=${id}`,
1542
- {headers: this.getHttpHeaders()})
1543
- .pipe(
1544
- map((res:any) => {
1545
- if (res.success) {
1546
- res.data = res.data.map(element => new MCuentaBanco(element));
1547
- } else {
1548
- res.data = [];
1549
- }
1550
- return res
1551
- })
1552
- )
1553
- }
1554
-
1555
- /**
1556
- * @description Obtiene los bancos sigecof
1557
- * @return Observable<IResponse>
1558
- * @author Carlos Albornoz
1559
- */
1560
- public getSigecofBanks(): Observable<IResponse> {
1561
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/banco_sigecof_dao.php`,
1562
- { headers: this.getHttpHeaders() }).pipe(
1563
- retry(3),
1564
- catchError(this.handlerError),
1565
- map((res: any) => {
1566
- if (res.success) {
1567
- res.data = res.data.map(e => new MSigecofBank(e));
1568
- }
1569
- return res;
1570
- })
1571
- );
1572
- }
1573
-
1574
- /**
1575
- * @description Obtiene la configuracion de SOC
1576
- * @return Observable<IResponse>
1577
- * @author Carlos Albornoz
1578
- */
1579
- public getConfigSOC(idEnterprise:number): Observable<IResponse> {
1580
- return this.http.get<IResponse>(`${this.URL}/dao/soc/configuracion_dao.php?e=${idEnterprise}`,
1581
- { headers: this.getHttpHeaders() }).pipe(
1582
- retry(3),
1583
- catchError(this.handlerError),
1584
- map((res: any) => {
1585
- if (res.success) {
1586
- res.data = new MConfigSOC(res.data);
1587
- }
1588
- return res;
1589
- })
1590
- );
1591
- }
1592
-
1593
- /**
1594
- * @description Obtiene los tipos de deduccion
1595
- * @return Observable<IResponse>
1596
- * @author Carlos Albornoz
1597
- */
1598
- public getDeductionTypes(): Observable<IResponse> {
1599
- return this.http.get<IResponse>(`${this.URL}/dao/stb/tipo_deduccion_dao.php`,
1600
- { headers: this.getHttpHeaders() }).pipe(
1601
- retry(3),
1602
- catchError(this.handlerError),
1603
- map((res: any) => {
1604
- if (res.success) {
1605
- res.data = res.data.map(e => new MDeductionType(e));
1606
- }
1607
- return res;
1608
- })
1609
- );
1610
- }
1611
-
1612
-
1613
-
1614
- public getIncomeAccounts(tipo:string,idEnterprise:number,periodoFiscal:number,nivel=0,idEP?:number,estatus:string=''): Observable<any>{
1615
- return this.http.get(`${this.URL}/dao/spi/cuentas_ingresos_dao.php?tipo=${tipo}&e=${idEnterprise}&per=${periodoFiscal}&niv=${nivel}&ep=${idEP}&est=${estatus}`,
1616
- {headers: this.getHttpHeaders()}).pipe(
1617
- map((res:any) => {
1618
- if (res.success) {
1619
- res.data = res.data.map(e => new MCuentaIngresos(e))
1620
- }
1621
- return res;
1622
- })
1623
- )
1624
- }
1625
-
1626
- public getCharges(idEnterprise:number){
1627
-
1628
- return this.http.get<IResponse>(
1629
- `${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`,
1630
- { headers: this.getHttpHeaders() }
1631
- ).pipe(
1632
- map((res: IResponse) => {
1633
- if (res.success) {
1634
- res.data = res.data.map(e => new MCargo(e))
1635
- }
1636
- return res;
1637
- })
1638
- )
1639
-
1640
- }
1641
-
1642
- public getDeductions(idEnterprise:number){
1643
- return this.http.get<IResponse>(
1644
- `${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`,
1645
- { headers: this.getHttpHeaders() }
1646
- ).pipe(
1647
- map((res: IResponse) => {
1648
- if (res.success) {
1649
- res.data = res.data.map(e => new MDeduction(e))
1650
- }
1651
- return res;
1652
- })
1653
- )
1654
- }
1655
-
1656
- /**
1657
- * @description Obtiene la los datos de Empresa
1658
- * @return Observable<IResponse>
1659
- * @author Dimaly Crespo
1660
- *
1661
- */
1662
- public getCompany(tipo?:string,id?:number): Observable<IResponse> {
1663
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`,
1664
- { headers: this.getHttpHeaders() }).pipe(
1665
- map((res: any) => {
1666
- if (res.success) {
1667
- res.data = res.data.map(e => new MEmpresa(e));
1668
- }
1669
- return res;
1670
- })
1671
- );
1672
- }
1673
-
1674
- /**
1675
- * @description Obtiene los tipos de documentos registrados en CXP
1676
- * @return Observable<IResponse>
1677
- * @author Dimaly Crespo
1678
- * @date 20-07-2021
1679
- */
1680
- public getTiposDocumetos(idEnterprise:number): Observable<IResponse> {
1681
- return this.http.get<IResponse>(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&i=${idEnterprise}`,
1682
- { headers: this.getHttpHeaders() }).pipe(
1683
- retry(3),
1684
- catchError(this.handlerError),
1685
- map((res: any) => {
1686
- if (res.success) {
1687
- res.data = res.data.map(e => new MTipoDocumentoCXP(e));
1688
- }
1689
- return res;
1690
- })
1691
- );
1692
- }
1693
-
1694
- /**
1695
- * @param get toma los valores: [ idOrdenCompra ,'recepcion','existen','codigo', 'ordenesSOC', 'op', 'art' ]
1696
- * @param n codigo Documento Orden, se usa para obtener los detalles de la orden de compra, es obligatorio al combinar con la opcion get: idOrdenCompra
1697
- * @description 'recepcion': Obtine las ordenes de suministro,
1698
- * existe y codigo: Obtiene los codigos registrados,
1699
- * ordenesSOC: obtiene las ordenes de compra,
1700
- * op: obtiene las ordenes pendientes
1701
- * art: obtiene los articulos
1702
- * @return Observable<IResponse>
1703
- * @date 3-10-2021
1704
- * @returns
1705
- */
1706
- public getEntradaSuministros(get:any, n?:string): Observable<IResponse> {
1707
- return this.http.get<IResponse>(`${this.URL}/dao/siv/entrada_suministro_dao.php?get=${get}&n=${n}`,
1708
- { headers: this.getHttpHeaders() }).pipe(
1709
- retry(3),
1710
- catchError(this.handlerError),
1711
- map((res: any) => {
1712
- if (res.success) {
1713
- res.data = res.data.map(e => new MEntradaSuministros(e))
1714
- }
1715
- return res;
1716
- })
1717
- );
1718
- }
1719
- /**
1720
- * @description Obtiene los tipos de documentos registrados en CXP
1721
- * @return Observable<IResponse>
1722
- * @author Dimaly Crespo
1723
- * @date 20-07-2021
1724
- */
1725
-
1726
- public getConceptosCxP(idEnterprise:number){
1727
- return this.http.get<IResponse>(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}&i=${idEnterprise}`,
1728
- { headers: this.getHttpHeaders() }).pipe(
1729
- retry(3),
1730
- catchError(this.handlerError),
1731
- map((res: any) => {
1732
- if (res.success) {
1733
- res.data = res.data.map(e => new MConceptosCXP(e));
1734
- }
1735
- return res;
1736
- })
1737
- );
1738
- }
1739
-
1740
- /**
1741
- * @description Obtiene los los conceptos Retencion ISRL
1742
- * @return Observable<IResponse>
1743
- * @author Dimaly Crespo
1744
- * @date 26-07-2021
1745
- */
1746
-
1747
- public getConceptosRetencion(tipo:string,idTipoDeduccion:number){
1748
- return this.http.get<IResponse>(`${this.URL}/dao/stb/deducciones_dao.php?tipo=${tipo}&code=${idTipoDeduccion}`,
1749
- { headers: this.getHttpHeaders() }).pipe(
1750
- retry(3),
1751
- catchError(this.handlerError),
1752
- map((res: any) => {
1753
- if (res.success) {
1754
- res.data = res.data.map(e => new MConceptoRetencion(e));
1755
- }
1756
- return res;
1757
- })
1758
- );
1759
- }
1760
-
1761
- /**
1762
- * @description Obtiene la configuración de RRHH y de SNO
1763
- * @return Observable<IResponse>
1764
- * @author Dimaly Crespo
1765
- */
1766
- public obtenerConfiguracionSNO(idEnterprise:number){
1767
-
1768
- return this.http.get<IResponse>(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}e=${idEnterprise}`,
1769
- { headers: this.getHttpHeaders() }).pipe(
1770
- retry(3),
1771
- catchError(this.handlerError),
1772
- map((res: any) => {
1773
- if (res.success) {
1774
- if (res.data.length>0){
1775
- res.data = res.data.map(e => new MConfiguracionSNO(e));
1776
- }
1777
- }
1778
- return res;
1779
- })
1780
- );
1781
-
1782
- }
1783
-
1784
- /**
1785
- *
1786
- * @param tipo ['default', 'uno', 'cargos','linea'] dafault:Todas las nominas, uno: una nomina,
1787
- * 'cargos': nominas por cargos, 'linea': nominas activas por lineas
1788
- * @param id : Para los tipo: uno y cargos el id es idNomina. Para linea: id es el idEnterprise
1789
- * @returns array()
1790
- * @description Obtiene las nominas registradas
1791
- * @return Observable<IResponse>
1792
- * @date 20-10-21
1793
- * @actualizado 26-05-2024
1794
- *
1795
- */
1796
-
1797
- public getNomina(tipo:string,idEnterprise:number,id?:number,act?:number){
1798
- return this.http.get<IResponse>(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`,
1799
- { headers: this.getHttpHeaders() }).pipe(
1800
- map((res: any) => {
1801
- if (res.success) {
1802
- res.data = res.data.map(e => new MDefinicionNomina(e));
1803
- }
1804
- return res;
1805
- })
1806
- );
1807
- }
1808
-
1809
- /**
1810
- * @description Obtiene los cargos de las nomina
1811
- * @param tipo ['codigo','default'] ->codigo: obtiene el proximo codigo. ->default: obtiene todos los cargos de la nomina
1812
- * @param id id de la nomina
1813
- * @returns array()
1814
- */
1815
- public getCargosNomina(tipo:string,id?:number){
1816
- return this.http.get<IResponse>(`${this.URL}/dao/sno/asignacion_cargos_dao.php?tipo=${tipo}&id=${id}`,
1817
- { headers: this.getHttpHeaders() }).pipe(
1818
- retry(3),
1819
- catchError(this.handlerError),
1820
- map((res: any) => {
1821
- if (res.success) {
1822
- res.data = res.data.map(e => new MAsignacionCargo(e));
1823
- }
1824
- return res;
1825
- })
1826
- );
1827
- }
1828
-
1829
- /**
1830
- * @description Obtiene un personal de la nómina
1831
- * @return Observable<IResponse>
1832
- * @author Dimaly Crespo
1833
- */
1834
- public getPersonalSRH(tipo:string,idEnterprise:number,id?:number){
1835
- return this.http.get<IResponse>(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`,
1836
- { headers: this.getHttpHeaders() }).pipe(
1837
- retry(3),
1838
- catchError(this.handlerError),
1839
- map((res: any) => {
1840
- if (res.success) {
1841
- res.data = res.data.map(e => new MPersonal(e));
1842
- }
1843
- return res;
1844
- })
1845
- );
1846
- }
1847
-
1848
- /**
1849
- * @description Obtiene las agencia de banco
1850
- * @return Observable<IResponse>
1851
- * @author Dimaly Crespo
1852
- */
1853
- public getAgenciaBanco(tipo:string,idEnterprise?:number, id?:number){
1854
- return this.http.get<IResponse>(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}e=${idEnterprise}`,
1855
- { headers: this.getHttpHeaders() }).pipe(
1856
- retry(3),
1857
- catchError(this.handlerError),
1858
- map((res: any) => {
1859
- if (res.success) {
1860
- res.data = res.data.map(e => new MAgenciaBanco(e));
1861
- }
1862
- return res;
1863
- })
1864
- );
1865
- }
1866
-
1867
- /**
1868
- * @description Obtiene la hojas de tiempo
1869
- * @return Observable<IResponse>
1870
- * @author Dimaly Crespo
1871
- */
1872
- public getHojaTiempo(tipo:string,idPersonal?:number,idNomina?:number){
1873
- return this.http.get<IResponse>(`${this.URL}/dao/sno/hoja_tiempo_dao.php?idPersonal=${idPersonal}&idNomina=${idNomina}`,
1874
- { headers: this.getHttpHeaders() }).pipe(
1875
- retry(3),
1876
- catchError(this.handlerError),
1877
- map((res: any) => {
1878
- if (res.success) {
1879
- res.data = res.data.map(e => new MHojaTiempo(e));
1880
- }
1881
- return res;
1882
- })
1883
- );
1884
- }
1885
-
1886
- /**
1887
- * @description Obtiene los clientes
1888
- * @return Observable<IResponse>
1889
- * @author Dimaly Crespo
1890
- * @tipo [basico,codigo,cedula]
1891
- *
1892
- */
1893
-
1894
- public getCliente(tipo: string ='default', id:number=0, codigo:string='', cedula:string=''): Observable<IResponse> {
1895
- return this.http.get<IResponse>(`${this.URL}/dao/sfv/client_dao.php?tipo=${tipo}&id=${id}&codigo=${codigo}&cedrifcli=${cedula}`,
1896
- { headers: this.getHttpHeaders() }).pipe(
1897
- map((res: any) => {
1898
- if (res.success) {
1899
- res.data = res.data.map(e => new MClient(e));
1900
- }
1901
- return res;
1902
- })
1903
- );
1904
- }
1905
-
1906
- /**
1907
- * @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
1908
- * @return Observable<IResponse>
1909
- * @param fecha: fecha a comparar
1910
- * @param lineaEmpresa: linea empresa del documento
1911
- * @param periodoFiscal : fecha del periodo a evaluar '1900-01-01'
1912
- * @author Dimaly Crespo
1913
- * @fecha 11-10-2023
1914
- *
1915
- */
1916
- public getValidarPeriodo(fecha:string, periodoFiscal:string, lineaEmpresa:number){
1917
- return this.http.get<IResponse>(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'validaFecha'}&fecha=${fecha}&periodo=${periodoFiscal}&e=${lineaEmpresa}`,
1918
- { headers: this.getHttpHeaders() }).pipe(map((res: any) => { return res;}));
1919
- }
1920
-
1921
- /**
1922
- * @description Obtiene los periodo fiscales configurados en SCG y SPG menores o iguales al periodo fiscal actual.
1923
- * @return Observable<IResponse>
1924
- * @param lineaEmpresa: linea empresa del documento
1925
- * @author Dimaly Crespo
1926
- * @fecha 01-10-2024
1927
- */
1928
- public getPeriodosConfigurados(lineaEmpresa:number){
1929
- return this.http.get<IResponse>(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoConfig'}&e=${lineaEmpresa}`,
1930
- { headers: this.getHttpHeaders() }).pipe(map((res: any) => { return res;}));
1931
- }
1932
-
1933
-
1934
- /**
1935
- * @description Obtiene los periodo fiscales configurados en SCG y SPG menores al periodo fiscal actual y el inmediato.
1936
- * @return Observable<IResponse>
1937
- * @param lineaEmpresa: linea empresa del documento
1938
- * @author Dimaly Crespo
1939
- * @fecha 01-10-2024
1940
- */
1941
- public getPeriodosConfiguradosSCGSPG(lineaEmpresa:number){
1942
- return this.http.get<IResponse>(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoSCGSPG'}&e=${lineaEmpresa}`,
1943
- { headers: this.getHttpHeaders() }).pipe(map((res: any) => { return res;}));
1944
- }
1945
-
1946
-
1947
- public userHasRights(column:'administrador' | 'insertar' | 'actualizar' | 'consultar'
1948
- | 'eliminar' | 'anular' |'descargar' | 'ejecutar__procesar_' | 'imprimir'
1949
- | 'enviar__correo_' | 'visible'){
1950
-
1951
- return this.http.get<IResponse>(
1952
- `${this.URL}/dao/sss/derechos_usuario_dao.php?idComponent=${
1953
- this.currentComponent.id
1954
- }&column=${column}`,
1955
- { headers: this.getHttpHeaders() }
1956
- )
1957
-
1958
- }
1959
-
1960
- /**
1961
- * @description Retorna los headers para hacer las peticiones
1962
- * @params type: Tipo MIME permitido por defecto se toma application/json
1963
- * @return HttpHeaders
1964
- * @author Miguel Ramírez
1965
- * @date-update: 15-06-2022
1966
- */
1967
- public getHttpHeaders(type?:string): HttpHeaders {
1968
- !type? type='application/json':'';
1969
- const headers = new HttpHeaders({
1970
- 'Content-Type': type,
1971
- 'Authorization': `${this.usuarioActivo.token}`
1972
- });
1973
- return headers;
1974
- }
1975
-
1976
- /**
1977
- * @description Obtiene el servidor guardado en el sessionStorage
1978
- * @return string
1979
- * @author Miguel Ramírez
1980
- */
1981
- public getServer(): string {
1982
- return this.URL;
1983
- }
1984
-
1985
- /**
1986
- * @description Obtiene el usuario guardado en el sessionStorage
1987
- * @return MUsuario
1988
- * @author Miguel Ramírez
1989
- */
1990
- public async getUser() {
1991
- let conexion: IConexion = await (sessionStorage.getItem('user')) ? JSON.parse(atob(sessionStorage.getItem('user'))) : null;
1992
- //console.log(conexion)
1993
- // debugger
1994
- if (conexion) {
1995
- this.usuarioActivo = new MUsuario(conexion.usuario);
1996
- this.URL = conexion.servidor;
1997
- }
1998
-
1999
- }
2000
-
2001
- /**
2002
- * @description Muestra un toast de success
2003
- * @param message Mensaje que se va a mostrar
2004
- * @return void
2005
- * @author Miguel Ramírez
2006
- */
2007
- public showToastSuccess(message: string): void {
2008
- this.toast.success(message);
2009
- }
2010
-
2011
- /**
2012
- * @description Muestra un toast de error
2013
- * @param message Mensaje que se va a mostrar
2014
- * @return void
2015
- * @author Miguel Ramírez
2016
- */
2017
- public showToastError(message: string): void {
2018
- this.toast.error(message);
2019
- }
2020
-
2021
- /**
2022
- * @description Muestra un sweetalert2 de éxito
2023
- * @param message Mensaje que se va a mostrar
2024
- * @return void
2025
- * @date 22-11-2021
2026
- */
2027
- public showToastSuccessSwal(message: string): void {
2028
- Swal.fire({
2029
- icon: 'success',
2030
- title: 'Éxito',
2031
- text: message,
2032
- })
2033
- }
2034
-
2035
-
2036
-
2037
- /**
2038
- * @description Muestra un sweetalert2 de error
2039
- * @param message Mensaje que se va a mostrar
2040
- * @return void
2041
- * @date 22-11-2021
2042
- */
2043
- public showToastErrorSwal(message: string): void {
2044
- Swal.fire({
2045
- icon: 'error',
2046
- title: '¡Error!',
2047
- text: message,
2048
-
2049
- })
2050
- }
2051
-
2052
- /**
2053
- * @description Guarda el usuario logueado en el SessionStorage
2054
- * @param user Usuario que se va a guardar en el SessionStorage
2055
- * @return void
2056
- * @author Miguel Ramírez
2057
- */
2058
- public saveUser(data: IConexion): void {
2059
- this.usuarioActivo = new MUsuario(data.usuario);
2060
- this.URL = data.servidor;
2061
- let encryptedUser: string = btoa(JSON.stringify(data));
2062
- sessionStorage.setItem('user', encryptedUser);
2063
- }
2064
-
2065
- /**
2066
- * @description Sete a la url a la cual se le van a realizar peticiones al backEnd
2067
- * @param url URl donde se van a realizar las peticiones
2068
- * @return void
2069
- * @author Miguel Ramírez
2070
- */
2071
- public setUrl(url: string): void {
2072
- this.URL = url;
2073
- }
2074
-
2075
- /**
2076
- * @description Inicializa el servicio de sigesp
2077
- * @return void
2078
- * @author Miguel Ramírez
2079
- */
2080
- public init(): void {
2081
- // Verificamos si hay un usuario en la sessionStorage, esto es necesario para recargar la página
2082
- if (sessionStorage.getItem('user')) {
2083
- // console.log(sessionStorage.getItem('user'))
2084
- this.getUser();
2085
- }
2086
- }
2087
-
2088
- /**
2089
- * @description Verifica si un usuario está logueado
2090
- * @return Promise<boolean>
2091
- * @author Miguel Ramírez
2092
- */
2093
- public async isLogged(): Promise<boolean> {
2094
- return new Promise((resolve, reject) => {
2095
- if (sessionStorage.getItem('user')) {
2096
- resolve(true)
2097
- } else {
2098
- resolve(false)
2099
- }
2100
- })
2101
- }
2102
-
2103
- private handlerError(error: HttpErrorResponse): any {
2104
- return throwError('Ocurrió un error')
2105
- }
2106
-
2107
- /**
2108
- * @description obtiene el personal segun filtro
2109
- * @return Observable<IResponse>
2110
- * @date 15-11-2021
2111
- * @param tipo: valores ['catalogo','catalogoSno','default','nomina','responsables']
2112
- * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo' o 'catalogoSno'
2113
- */
2114
- public getPersonal(tipo:string, dato?:any){
2115
- let cedula='';
2116
- let nombre='';
2117
- let apellido='';
2118
- let idEnterprise=0;
2119
- if(dato){
2120
- cedula=dato.cedula
2121
- nombre=dato.nombre
2122
- apellido=dato.apellido
2123
- idEnterprise=dato.idEnterprise
2124
- }
2125
- return this.http.get<IResponse>(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&cedula=${cedula}&nombre=${nombre}&apellido=${apellido}&e=${idEnterprise}`,
2126
- { headers: this.getHttpHeaders() }).pipe(
2127
- retry(3),
2128
- catchError(this.handlerError),
2129
- map((res: any) => {
2130
- if (res.success) {
2131
- res.data = res.data.map(e => new MPersonal(e));
2132
- }
2133
- return res;
2134
- })
2135
- );
2136
- }
2137
-
2138
- /**
2139
- * @description obtener personal Nomina segun filtro
2140
- * @return Observable<IResponse>
2141
- * @date 15-11-2021
2142
- * * @param tipo: valores ['catalogo','default','nomina']
2143
- * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
2144
-
2145
- */
2146
- public getPersonalNomina(tipo:string,dato?:any){
2147
- let cedula='';
2148
- let nombre='';
2149
- let apellido='';
2150
- let idEnterprise=0;
2151
- let idNomina=0;
2152
- if(dato){
2153
- cedula=dato.cedula
2154
- nombre=dato.nombre
2155
- apellido=dato.apellido
2156
- idEnterprise=dato.idEnterprise
2157
- idNomina=dato.idNomina
2158
- }
2159
- return this.http.get<IResponse>(`${this.URL}/dao/sno/asignacion_personal_nomina_dao.php?
2160
- tipo=${tipo}&cedula=${cedula}&nombre=${nombre}&apellido=${apellido}&idNomina=${idNomina}&idEnterprise=${idEnterprise}`,
2161
- { headers: this.getHttpHeaders() }).pipe(
2162
- map((res: any) => {
2163
- if (res.success) {
2164
- res.data = res.data.map(e => new MPersonalNomina(e));
2165
- }
2166
- return res;
2167
- })
2168
- );
2169
- }
2170
-
2171
-
2172
- /**
2173
- * @param idPersonal: id del personal
2174
- * @param tipo: valores['nomina_personal']
2175
- * @description Obtiene las nominas del personal resumida
2176
- * @deprecated; 20-01-22
2177
- * @returns
2178
- */
2179
-
2180
- public getPersonalNominaResumida(idPersonal:number,tipo:string){
2181
- return this.http.get<IResponse>(`${this.URL}/dao/sno/personal_dao.php?idPersonal=${idPersonal}&tipo=${tipo}`,
2182
- { headers: this.getHttpHeaders() }).pipe(
2183
- map((res: any) => {
2184
- if (res.success) {
2185
- res.data = res.data.map(e => new MNominaSimple(e));
2186
- }
2187
- return res;
2188
- })
2189
- );
2190
- }
2191
-
2192
- /**
2193
- * @description Obtiene el Json Sistemas para el usuario definido segun su permisologia del Sistema
2194
- * @return Json data
2195
- * @author Ing. Dimaly Crespo
2196
- */
2197
- public getPerfilSistema(id_usuario:number ){
2198
- return this.http.get(`${this.URL}/dao/sss/usuarios_sistemas_dao.php?id_usuario=${id_usuario}`,
2199
- { headers: this.getHttpHeaders() }).pipe(
2200
- map((res: any) => {
2201
- if(res.data.length>0){
2202
- res.data = res.data.map(e => new MUsuarioSistema(e));
2203
- }
2204
- return res;
2205
- })
2206
-
2207
- );
2208
-
2209
- }
2210
-
2211
-
2212
- /**
2213
- * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
2214
- * @return Json data
2215
- * @author Ing. Wilmer Briceno
2216
- */
2217
- public getPerfilNoComponent(id_usuario:number,sistema:string, nameComponent: string ){
2218
- return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?id_usuario=${id_usuario}&sistema=${sistema}&namecomponent=${nameComponent}`,
2219
- { headers: this.getHttpHeaders() }).pipe(
2220
- map((res: any) => {
2221
- return res;
2222
- })
2223
- );
2224
-
2225
- }
2226
-
2227
- /**
2228
- * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
2229
- * @return Json data
2230
- * @author Ing. Wilmer Briceno
2231
- */
2232
- public getJsonMenu(id_usuario:number,sistema:string){
2233
- return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`,
2234
- { headers: this.getHttpHeaders() }).pipe(
2235
- map((res: any) => {
2236
- this.userMenu = res.data;
2237
- return this.userMenu;
2238
- })
2239
- );
2240
-
2241
- }
2242
-
2243
- /**
2244
- * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
2245
- * @return Json data
2246
- * @author Ing. Wilmer Briceno
2247
- */
2248
- public log(body: MLog ){
2249
-
2250
- return this.http.post(`${this.URL}/dao/sss/log_dao.php`, body , {
2251
- headers: this.getHttpHeaders()
2252
- }).pipe(
2253
- map((res: any) => {
2254
-
2255
- return res;
2256
- })
2257
- )
2258
-
2259
- }
2260
-
2261
-
2262
-
2263
- /**
2264
- * @name EncryptData
2265
- * @description Enscripta una expresion data
2266
- * @author Ing. Wilmer Briceño
2267
- */
2268
- public EncryptData( expresion : string){
2269
- const key = CryptoJS.enc.Utf8.parse ("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
2270
- const iv = CryptoJS.enc.Utf8.parse ('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
2271
- let srcs = CryptoJS.enc.Utf8.parse(expresion);
2272
- let encrypted = CryptoJS.AES.encrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
2273
- return encrypted.ciphertext.toString().toUpperCase();
2274
- }
2275
-
2276
- /**
2277
- * @name DecryptData
2278
- * @description Desencripta una expresion data
2279
- * @author Ing. Wilmer Briceño
2280
- */
2281
- public DecryptData( expresion : string){
2282
- const key = CryptoJS.enc.Utf8.parse ("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
2283
- const iv = CryptoJS.enc.Utf8.parse ('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
2284
- let encryptedHexStr = CryptoJS.enc.Hex.parse(expresion);
2285
- let srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr);
2286
- let decrypt = CryptoJS.AES.decrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
2287
- let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
2288
- return decryptedStr.toString();
2289
- }
2290
-
2291
-
2292
- /**
2293
- * @name getResponsePerfilToolbar
2294
- * @description Metodo que obtiene una respuesta true o false basado en una estructura sring binanria segun
2295
- * la posicion dada del toolbar. se pasa string binario que contiene 1 y 0 en representacion
2296
- * de las propiestades administrador,consultar,ejecutar,imprimir etc ... cada posicion secuencial
2297
- * si esta en 1 es true y 0 en false y devuleve el valor segun lo requiera el usuario:
2298
- * stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
2299
- * Estructura string binario:
2300
- * Posición :
2301
- * 0. Administrador 6. Descargar 12. Reversar aprobar 18. Reversar anular contabilizado
2302
- * 1. insertar 7. Ejecutar 13. Anular.
2303
- * 2. Actualizar 8. Enviar 14. reversar anular
2304
- * 3. consultar 9. Imprimir 15. contabilizar
2305
- * 4. Eliminar 10. Visible 16. reversar contabilizar
2306
- * 5. Anular 11. Aprobar 17. anular contabilizado
2307
- *
2308
- * @author Ing. Wilmer Briceño
2309
- */
2310
- public getResponsePerfilToolbar( stringbinario : string, position : number ){
2311
- let binario = stringbinario.substring(position,position+1) ;
2312
- if (binario=="1"){
2313
- return true;
2314
- }
2315
- return false;
2316
- }
2317
-
2318
- /**
2319
- * @description Obtiene el Ip del cliente
2320
- * @return Json data
2321
- * @author Ing. Wilmer Briceno
2322
- */
2323
- public getIPAddress(){
2324
-
2325
- return this.http.get("http://api.ipify.org/?format=json")
2326
- .pipe(
2327
- catchError((err) => {
2328
- console.log('error caught in service')
2329
- console.error(err);
2330
- sessionStorage.setItem('ip_adress', '127.0.0.1');
2331
- //Handle the error here
2332
-
2333
- return throwError(err); //Rethrow it back to component
2334
- })
2335
- );
2336
-
2337
- }
2338
- /**
2339
- * @description Obtiene el Ip del cliente
2340
- * @return Json data
2341
- * @author Ing. Wilmer Briceno
2342
- */
2343
- public setIpAdress(){
2344
- this.getIPAddress().subscribe( (resp: any) => {
2345
- sessionStorage.setItem('ip_adress', resp.ip);
2346
- this.ip_adress = resp.ip;
2347
- });
2348
- }
2349
- /**
2350
- * @description Obtiene el Ip del cliente
2351
- * @return Json data
2352
- * @author Ing. Wilmer Briceno
2353
- */
2354
- public getIpAdress(){
2355
- this.ip_adress = sessionStorage.getItem('ip_adress');
2356
- }
2357
-
2358
- /**
2359
- * @description Obtiene el Ip del cliente
2360
- * @return Json data
2361
- * @dia 19-05-2022
2362
- */
2363
-
2364
- public createAuditoria(sno:MSnoLog[]){
2365
- let body=[];
2366
- sno.forEach(e=> {body.push(e.dataInteface())});
2367
- return this.http.post<IResponse>(`${this.URL}/dao/sno/seguridad_dao.php?`,body,
2368
- { headers: this.getHttpHeaders()})
2369
- .pipe(
2370
- map((res: any) => {return res;})
2371
- );
2372
- }
2373
-
2374
- /**
2375
- * @description Obtiene los tipos de depositos *
2376
- * @param procede : procede del modulo
2377
- * @param idMaterial : id del articulo
2378
- * @param idUsuario : id usuario permitido
2379
- * @returns
2380
- * @author Dimaly Crespo
2381
- * @date 23-01-2025
2382
- */
2383
- public getDepositType(procede:string,idMaterial:number,idEnterprise:number){
2384
- return this.http.get<IResponse>(`${this.URL}/dao/siv/catalogo_parametrizado_dao.php?get=${procede}&id=${idMaterial}&i=${idEnterprise}`,
2385
- { headers: this.getHttpHeaders() }).pipe(
2386
- map((res: any) => {
2387
- if (res.success) {
2388
- res.data = res.data.map(e => new MTipoDepositos(e));
2389
- }
2390
- return res;
2391
- })
2392
- );
2393
- }
2394
-
2395
- /**
2396
- * @description Obtiene Cargos Adicionales *
2397
- * @param tipo : one,default
2398
- * @param id : id del cargo
2399
- * @returns
2400
- * @author Dimaly Crespo
2401
- * @date 13-11-2022
2402
- */
2403
- public getCargosAdicionales(tipo:string,id?:number){
2404
- return this.http.get<IResponse>(`${this.URL}/dao/stb/cargos_adicionales_dao.php?tipo=${tipo}&id=${id}`,
2405
- { headers: this.getHttpHeaders() }).pipe(
2406
- map((res: any) => {
2407
- if (res.success) {
2408
- res.data = res.data.map(e => new MCargosAdicionales(e));
2409
- }
2410
- return res;
2411
- })
2412
- );
2413
- }
2414
-
2415
-
2416
- /**
2417
- * @description Obtiene los release
2418
- * @param tipo : release (obtiene el ultimo release del sistema),verificar(verifica si se ejecuto el ultimo release)
2419
- * @param sistema : sistema
2420
- * @param seccion : tipo 'RELEASE'
2421
- * @returns string
2422
- * @author Dimaly Crespo
2423
- * @date 21-06-2024
2424
- */
2425
- public getVerificarRelease(tipo:string,sistema:string,seccion:string=null){
2426
- return this.http.get<IResponse>(`${this.URL}/dao/ins/instala_dao.php?tipo=${tipo}&sistema=${sistema}&seccion=${seccion}`,
2427
- { headers: this.getHttpHeaders() }).pipe(
2428
- map((res: any) => {return res;})
2429
- );
2430
- }
2431
-
2432
-
2433
- public getReportePersonalizado(tipo:string='default',idEnterprise:number,sistema:string,caso:string){
2434
- return this.http.get<IResponse>(`${this.URL}/dao/cfg/configuracionErp_dao.php?tipo=${tipo}&e=${idEnterprise}&sis=${sistema}&cas=${caso}`,
2435
- { headers: this.getHttpHeaders() }).pipe( map((res: any) => {return res.data;}) );
2436
- }
2437
- }
2438
-
2439
-
2440
-
2441
- interface filtroCuentasPresupuesto {
2442
- tipo?: 'E' | 'R',
2443
- estado?: 'C' | 'S'
2444
- }
2445
-
2446
-