sigesp 0.9.11-20221211 → 0.9.13-20221217

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 (64) hide show
  1. package/bundles/sigesp.umd.js +394 -71
  2. package/bundles/sigesp.umd.js.map +1 -1
  3. package/bundles/sigesp.umd.min.js +2 -2
  4. package/bundles/sigesp.umd.min.js.map +1 -1
  5. package/esm2015/lib/core/interfaces/Banco.js +1 -1
  6. package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
  7. package/esm2015/lib/core/interfaces/ComprobantePresupuestario.js +1 -1
  8. package/esm2015/lib/core/interfaces/Configuracion.js +1 -1
  9. package/esm2015/lib/core/interfaces/Servicios.js +1 -1
  10. package/esm2015/lib/core/interfaces/Tributos.js +1 -1
  11. package/esm2015/lib/core/interfaces/UsuarioPrefijo.js +1 -1
  12. package/esm2015/lib/core/models/CFG/MPrefijo.model.js +61 -0
  13. package/esm2015/lib/core/models/CFG/Procede.model.js +31 -0
  14. package/esm2015/lib/core/models/CFG/TasaCambio.model.js +34 -0
  15. package/esm2015/lib/core/models/CFG/locations.model.js +12 -9
  16. package/esm2015/lib/core/models/CFG/userPrefix.model.js +43 -0
  17. package/esm2015/lib/core/models/SCB/bank.model.js +25 -19
  18. package/esm2015/lib/core/models/SCG/centroCosto.model.js +53 -4
  19. package/esm2015/lib/core/models/SOC/charge.model.js +4 -1
  20. package/esm2015/lib/core/models/SOC/clause.model.js +6 -3
  21. package/esm2015/lib/core/models/SOC/clauseModality.model.js +6 -3
  22. package/esm2015/lib/core/models/SOC/configuracionSOC.model.js +4 -1
  23. package/esm2015/lib/core/models/SOC/service.model.js +7 -4
  24. package/esm2015/lib/core/models/SOC/serviceCharge.model.js +7 -4
  25. package/esm2015/lib/core/models/SOC/serviceType.model.js +8 -2
  26. package/esm2015/lib/core/models/SPG/comprobantePresupuestario.model.js +5 -1
  27. package/esm2015/lib/core/models/SSS/sistema.js +21 -6
  28. package/esm2015/lib/core/models/STB/deduction.model.js +7 -1
  29. package/esm2015/lib/sigesp.service.js +53 -6
  30. package/esm2015/public-api.js +6 -3
  31. package/esm2015/sigesp.js +1 -1
  32. package/fesm2015/sigesp.js +362 -62
  33. package/fesm2015/sigesp.js.map +1 -1
  34. package/lib/core/interfaces/Banco.d.ts +20 -0
  35. package/lib/core/interfaces/CentroCosto.d.ts +10 -1
  36. package/lib/core/interfaces/ComprobantePresupuestario.d.ts +2 -0
  37. package/lib/core/interfaces/Configuracion.d.ts +32 -0
  38. package/lib/core/interfaces/Servicios.d.ts +7 -0
  39. package/lib/core/interfaces/Tributos.d.ts +3 -0
  40. package/lib/core/interfaces/UsuarioPrefijo.d.ts +8 -5
  41. package/lib/core/models/CFG/MPrefijo.model.d.ts +21 -0
  42. package/lib/core/models/CFG/Procede.model.d.ts +11 -0
  43. package/lib/core/models/CFG/TasaCambio.model.d.ts +12 -0
  44. package/lib/core/models/CFG/locations.model.d.ts +6 -6
  45. package/lib/core/models/CFG/userPrefix.model.d.ts +15 -0
  46. package/lib/core/models/SCB/bank.model.d.ts +3 -1
  47. package/lib/core/models/SCG/centroCosto.model.d.ts +15 -1
  48. package/lib/core/models/SOC/charge.model.d.ts +1 -0
  49. package/lib/core/models/SOC/clause.model.d.ts +1 -0
  50. package/lib/core/models/SOC/clauseModality.model.d.ts +1 -0
  51. package/lib/core/models/SOC/configuracionSOC.model.d.ts +1 -0
  52. package/lib/core/models/SOC/service.model.d.ts +1 -0
  53. package/lib/core/models/SOC/serviceCharge.model.d.ts +1 -0
  54. package/lib/core/models/SOC/serviceType.model.d.ts +2 -0
  55. package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +2 -0
  56. package/lib/core/models/SSS/sistema.d.ts +4 -2
  57. package/lib/core/models/STB/deduction.model.d.ts +2 -0
  58. package/lib/sigesp.service.d.ts +31 -3
  59. package/package.json +1 -1
  60. package/public-api.d.ts +8 -4
  61. package/sigesp.d.ts +10 -11
  62. package/sigesp.metadata.json +1 -1
  63. package/esm2015/lib/core/models/SSS/userPrefix.model.js +0 -15
  64. package/lib/core/models/SSS/userPrefix.model.d.ts +0 -11
@@ -326,6 +326,113 @@
326
326
  return MBasicModel;
327
327
  }());
328
328
 
329
+ var MUsuarioPrefijo = /** @class */ (function (_super) {
330
+ __extends(MUsuarioPrefijo, _super);
331
+ function MUsuarioPrefijo(e) {
332
+ var _this = _super.call(this) || this;
333
+ _this.idEmpresa = 0;
334
+ _this.id = 0;
335
+ _this.idUsuario = 0;
336
+ _this.idDtPrefijo = 0;
337
+ _this.prefijo = '';
338
+ _this.procede = '';
339
+ _this.codigoSistema = '';
340
+ _this.codigoUsuario = '';
341
+ _this.estatusActivo = true;
342
+ if (e) {
343
+ _this.idEmpresa = +e.id_empresa;
344
+ _this.id = +e.id;
345
+ _this.idUsuario = +e.id_usuario;
346
+ _this.idDtPrefijo = +e.id_dt_prefijo;
347
+ _this.prefijo = e.prefijo;
348
+ _this.procede = e.procede;
349
+ _this.codigoSistema = e.codsis;
350
+ _this.codigoUsuario = e.codusu;
351
+ _this.estatusActivo = e.estact == '1';
352
+ }
353
+ else {
354
+ _this.isNew = true;
355
+ }
356
+ return _this;
357
+ }
358
+ MUsuarioPrefijo.prototype.dataInterface = function () {
359
+ return {
360
+ id_empresa: this.idEmpresa.toString(),
361
+ id: this.id.toString(),
362
+ id_usuario: this.idUsuario.toString(),
363
+ id_dt_prefijo: this.idDtPrefijo.toString(),
364
+ prefijo: this.prefijo,
365
+ procede: this.procede,
366
+ codsis: this.codigoSistema,
367
+ codusu: this.codigoUsuario,
368
+ estact: this.estatusActivo ? '1' : '0',
369
+ };
370
+ };
371
+ return MUsuarioPrefijo;
372
+ }(MBasicModel));
373
+
374
+ var MPrefijo = /** @class */ (function (_super) {
375
+ __extends(MPrefijo, _super);
376
+ function MPrefijo(e) {
377
+ var _this = _super.call(this) || this;
378
+ _this.idEmpresa = 0;
379
+ _this.id = 0;
380
+ _this.prefijo = '';
381
+ _this.procede = '';
382
+ _this.codsis = '';
383
+ _this.numeroInicial = 0;
384
+ _this.numeroFinal = 0;
385
+ _this.maximaLogitud = 0;
386
+ _this.numeroActual = 0;
387
+ _this.estatusActivo = true;
388
+ _this.estatusInicializarComprobanteSCG = false;
389
+ _this.estatusPrefijoGeneral = false;
390
+ _this.estatusPrefijoFecha = false;
391
+ _this.usuarios = [];
392
+ if (e) {
393
+ _this.idEmpresa = +e.id_empresa;
394
+ _this.id = +e.id;
395
+ _this.prefijo = e.prefijo;
396
+ _this.procede = e.procede;
397
+ _this.codsis = e.codsis;
398
+ _this.numeroInicial = +e.nro_inicial;
399
+ _this.numeroFinal = +e.nro_final;
400
+ _this.maximaLogitud = +e.maxlen;
401
+ _this.numeroActual = +e.nro_actual;
402
+ _this.estatusActivo = e.estact == '1';
403
+ _this.estatusInicializarComprobanteSCG = e.estcompscg == '1';
404
+ _this.estatusPrefijoGeneral = e.estpregral == '1';
405
+ _this.estatusPrefijoFecha = e.estprefec == '1';
406
+ if (_this.usuarios) {
407
+ _this.usuarios = e.usuarios.map(function (e) { return new MUsuarioPrefijo(e); });
408
+ }
409
+ }
410
+ else {
411
+ _this.isNew = true;
412
+ }
413
+ return _this;
414
+ }
415
+ MPrefijo.prototype.dataInterface = function () {
416
+ return {
417
+ id_empresa: this.idEmpresa.toString(),
418
+ id: this.id.toString(),
419
+ prefijo: this.prefijo,
420
+ procede: this.procede,
421
+ codsis: this.codsis,
422
+ nro_inicial: this.numeroInicial.toString(),
423
+ nro_final: this.numeroFinal.toString(),
424
+ maxlen: this.maximaLogitud.toString(),
425
+ nro_actual: this.numeroActual.toString(),
426
+ estact: this.estatusActivo ? '1' : '0',
427
+ estcompscg: this.estatusInicializarComprobanteSCG ? '1' : '0',
428
+ estpregral: this.estatusPrefijoGeneral ? '1' : '0',
429
+ estprefec: this.estatusPrefijoFecha ? '1' : '0',
430
+ usuarios: this.usuarios.map(function (e) { return e.dataInterface(); }),
431
+ };
432
+ };
433
+ return MPrefijo;
434
+ }(MBasicModel));
435
+
329
436
  var MEnterprise = /** @class */ (function (_super) {
330
437
  __extends(MEnterprise, _super);
331
438
  function MEnterprise(e) {
@@ -870,23 +977,6 @@
870
977
  return MProveedor;
871
978
  }());
872
979
 
873
- var MUsuarioPrefijo = /** @class */ (function (_super) {
874
- __extends(MUsuarioPrefijo, _super);
875
- function MUsuarioPrefijo(prefijo) {
876
- var _this = _super.call(this) || this;
877
- if (prefijo) {
878
- _this.codsis = prefijo.codsis;
879
- _this.codusu = prefijo.codusu;
880
- _this.id = prefijo.id;
881
- _this.id_empresa = prefijo.id_empresa;
882
- _this.prefijo = prefijo.prefijo;
883
- _this.procede = prefijo.procede;
884
- }
885
- return _this;
886
- }
887
- return MUsuarioPrefijo;
888
- }(MBasicModel));
889
-
890
980
  var CatalogoComponent = /** @class */ (function () {
891
981
  function CatalogoComponent(dialogRef, dialogData) {
892
982
  this.dialogRef = dialogRef;
@@ -1511,13 +1601,66 @@
1511
1601
  return MAllStructure;
1512
1602
  }());
1513
1603
 
1514
- var MCentroCosto = /** @class */ (function () {
1604
+ var MCentroCosto = /** @class */ (function (_super) {
1605
+ __extends(MCentroCosto, _super);
1515
1606
  function MCentroCosto(centroCosto) {
1516
- this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
1517
- this.denominacion = centroCosto.denominacion;
1607
+ var _this = _super.call(this) || this;
1608
+ _this.idEmpresa = 0;
1609
+ _this.idEnterprise = 0;
1610
+ if (centroCosto) {
1611
+ _this.idEmpresa = +centroCosto.id_empresa;
1612
+ _this.idEnterprise = +centroCosto.id_enterprise;
1613
+ _this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
1614
+ _this.denominacion = centroCosto.denominacion;
1615
+ }
1616
+ else {
1617
+ _this.isNew = true;
1618
+ }
1619
+ return _this;
1518
1620
  }
1621
+ ;
1622
+ MCentroCosto.prototype.dataInterface = function () {
1623
+ return {
1624
+ id_empresa: this.idEmpresa.toString(),
1625
+ id_enterprise: this.idEnterprise.toString(),
1626
+ codcencos: this.centro,
1627
+ denominacion: this.denominacion,
1628
+ };
1629
+ };
1519
1630
  return MCentroCosto;
1520
- }());
1631
+ }(MBasicModel));
1632
+ var MUsuarioCentroCosto = /** @class */ (function (_super) {
1633
+ __extends(MUsuarioCentroCosto, _super);
1634
+ function MUsuarioCentroCosto(e) {
1635
+ var _this = _super.call(this) || this;
1636
+ _this.idEmpresa = 0;
1637
+ _this.idEnterprise = 0;
1638
+ _this.codigoCentroCosto = '';
1639
+ _this.usuario = '';
1640
+ _this.idDtCentro = 0;
1641
+ if (e) {
1642
+ _this.idEmpresa = +e.id_empresa;
1643
+ _this.idEnterprise = +e.id_enterprise;
1644
+ _this.codigoCentroCosto = e.codcencos;
1645
+ _this.usuario = e.codusu;
1646
+ _this.usuario = e.codusu;
1647
+ }
1648
+ else {
1649
+ _this.isNew = true;
1650
+ }
1651
+ return _this;
1652
+ }
1653
+ MUsuarioCentroCosto.prototype.dataInterface = function () {
1654
+ return {
1655
+ id_empresa: this.idEmpresa.toString(),
1656
+ id_enterprise: this.idEnterprise.toString(),
1657
+ codcencos: this.codigoCentroCosto,
1658
+ codusu: this.usuario,
1659
+ id_dt_cencos: this.idDtCentro.toString(),
1660
+ };
1661
+ };
1662
+ return MUsuarioCentroCosto;
1663
+ }(MBasicModel));
1521
1664
 
1522
1665
  var MFuenteFinanciamiento = /** @class */ (function () {
1523
1666
  function MFuenteFinanciamiento(fuente) {
@@ -1872,24 +2015,42 @@
1872
2015
  return MUserDetail;
1873
2016
  }(MBasicModel));
1874
2017
 
1875
- var MSistema = /** @class */ (function () {
2018
+ var MSistema = /** @class */ (function (_super) {
2019
+ __extends(MSistema, _super);
1876
2020
  function MSistema(sis) {
1877
- this.nombre = null;
1878
- this.codigo = null;
1879
- this.estado = null;
1880
- this.usuarios = [];
1881
- this.eliminados = [];
1882
- this.nombre = sis.nomsis;
1883
- this.codigo = sis.codsis;
1884
- this.estado = sis.estsis;
1885
- this.usuarios = sis.usuarios.map(function (e) { return new MUserDetail(e); });
2021
+ var _this = _super.call(this) || this;
2022
+ _this.nombre = null;
2023
+ _this.codigo = null;
2024
+ _this.estado = null;
2025
+ _this.usuarios = [];
2026
+ _this.eliminados = [];
2027
+ if (sis) {
2028
+ _this.nombre = sis.nomsis;
2029
+ _this.codigo = sis.codsis;
2030
+ _this.estado = sis.estsis;
2031
+ _this.usuarios = sis.usuarios.map(function (e) { return new MUserDetail(e); });
2032
+ }
2033
+ else {
2034
+ _this.isNew = true;
2035
+ }
2036
+ return _this;
1886
2037
  }
2038
+ MSistema.prototype.dataInterface = function () {
2039
+ return {
2040
+ codsis: this.nombre,
2041
+ nomsis: this.codigo,
2042
+ estsis: this.estado,
2043
+ usuarios: this.usuarios.map(function (e) { return e.turnToInterface(); }),
2044
+ };
2045
+ };
1887
2046
  return MSistema;
1888
- }());
2047
+ }(MBasicModel));
1889
2048
 
1890
2049
  var MComprobantePresupuestarioEgresos = /** @class */ (function () {
1891
2050
  function MComprobantePresupuestarioEgresos(comprobante) {
2051
+ this.idEnterprise = 0;
1892
2052
  this.idEmpresa = parseInt(comprobante.id_empresa);
2053
+ this.idEnterprise = +comprobante.id_enterprise;
1893
2054
  this.idComprobante = parseInt(comprobante.id_comprobante);
1894
2055
  this.idEp1 = parseInt(comprobante.id_ep1);
1895
2056
  this.idEp2 = parseInt(comprobante.id_ep2);
@@ -1913,7 +2074,9 @@
1913
2074
  }());
1914
2075
  var MComprobantePresupuestarioIngresos = /** @class */ (function () {
1915
2076
  function MComprobantePresupuestarioIngresos(comprobante) {
2077
+ this.idEnterprise = 0;
1916
2078
  this.idEmpresa = parseInt(comprobante.id_empresa);
2079
+ this.idEnterprise = +comprobante.id_enterprise;
1917
2080
  this.idComprobante = parseInt(comprobante.id_comprobante);
1918
2081
  this.idEp1 = parseInt(comprobante.id_ep1);
1919
2082
  this.idEp2 = parseInt(comprobante.id_ep2);
@@ -2176,6 +2339,9 @@
2176
2339
  _this.monofi = parseInt(country.monofi);
2177
2340
  _this.monsec = parseInt(country.monsec);
2178
2341
  }
2342
+ else {
2343
+ _this.isNew = true;
2344
+ }
2179
2345
  return _this;
2180
2346
  }
2181
2347
  MCountry.prototype.dataInterface = function () {
@@ -2312,7 +2478,7 @@
2312
2478
  }(MBasicModel));
2313
2479
  var MCommunity = /** @class */ (function (_super) {
2314
2480
  __extends(MCommunity, _super);
2315
- function MCommunity(parish) {
2481
+ function MCommunity(e) {
2316
2482
  var _this = _super.call(this) || this;
2317
2483
  _this.code = null;
2318
2484
  _this.countryCode = null;
@@ -2320,13 +2486,13 @@
2320
2486
  _this.municipalityCode = null;
2321
2487
  _this.parishCode = null;
2322
2488
  _this.name = null;
2323
- if (parish) {
2324
- _this.code = parish.codcom.trim();
2325
- _this.countryCode = parish.codpai.trim();
2326
- _this.stateCode = parish.codest.trim();
2327
- _this.municipalityCode = parish.codmun.trim();
2328
- _this.parishCode = parish.codpar.trim();
2329
- _this.name = parish.descom.trim();
2489
+ if (e) {
2490
+ _this.code = e.codcom.trim();
2491
+ _this.countryCode = e.codpai.trim();
2492
+ _this.stateCode = e.codest.trim();
2493
+ _this.municipalityCode = e.codmun.trim();
2494
+ _this.parishCode = e.codpar.trim();
2495
+ _this.name = e.descom.trim();
2330
2496
  }
2331
2497
  else {
2332
2498
  _this.isNew = true;
@@ -2528,8 +2694,9 @@
2528
2694
  __extends(MBank, _super);
2529
2695
  function MBank(bank) {
2530
2696
  var _this = _super.call(this) || this;
2531
- _this.idEmpresa = null;
2532
- _this.id = null;
2697
+ _this.idEmpresa = 0;
2698
+ _this.id = 0;
2699
+ _this.idEnterprise = 0;
2533
2700
  _this.name = null;
2534
2701
  _this.address = null;
2535
2702
  _this.manager = null;
@@ -2541,9 +2708,10 @@
2541
2708
  _this.swiftCode = null;
2542
2709
  _this.code = null;
2543
2710
  _this.email = null;
2544
- _this.enableBox = null;
2711
+ _this.enableBox = false;
2545
2712
  if (bank) {
2546
2713
  _this.idEmpresa = parseInt(bank.id_empresa);
2714
+ _this.idEnterprise = +bank.id_enterprise;
2547
2715
  _this.id = parseInt(bank.id_banco);
2548
2716
  _this.name = bank.nomban;
2549
2717
  _this.address = bank.dirban;
@@ -2563,6 +2731,7 @@
2563
2731
  MBank.prototype.dataInterface = function () {
2564
2732
  return {
2565
2733
  id_empresa: this.idEmpresa.toString(),
2734
+ id_enterprise: this.idEnterprise.toString(),
2566
2735
  id_banco: this.id.toString(),
2567
2736
  codban: this.code,
2568
2737
  nomban: this.name,
@@ -2636,23 +2805,25 @@
2636
2805
  __extends(MCuentaBanco, _super);
2637
2806
  function MCuentaBanco(cb) {
2638
2807
  var _this = _super.call(this) || this;
2639
- _this.idCuentaBanco = null;
2640
- _this.idEmpresa = null;
2641
- _this.idBanco = null;
2642
- _this.idTipoCuenta = null;
2643
- _this.cuentaBanco = null;
2644
- _this.cuentaExtendida = null;
2645
- _this.denominacionCuenta = null;
2646
- _this.cuentaContable = null;
2647
- _this.fechaApertura = null;
2648
- _this.fechaCierre = null;
2649
- _this.estatus = null;
2650
- _this.fechaUltimaConciliacion = null;
2651
- _this.denomCuentaContable = null;
2652
- _this.nombrebanco = null;
2653
- _this.nombretipocta = null;
2808
+ _this.idCuentaBanco = 0;
2809
+ _this.idEnterprise = 0;
2810
+ _this.idEmpresa = 0;
2811
+ _this.idBanco = 0;
2812
+ _this.idTipoCuenta = 0;
2813
+ _this.cuentaBanco = '';
2814
+ _this.cuentaExtendida = '';
2815
+ _this.denominacionCuenta = '';
2816
+ _this.cuentaContable = '';
2817
+ _this.fechaApertura = '1900-01-01';
2818
+ _this.fechaCierre = '1900-01-01';
2819
+ _this.estatus = 0;
2820
+ _this.fechaUltimaConciliacion = '1900-01-01';
2821
+ _this.denomCuentaContable = '';
2822
+ _this.nombrebanco = '';
2823
+ _this.nombretipocta = '';
2654
2824
  if (cb) {
2655
2825
  _this.idCuentaBanco = parseInt(cb.id_ctabanco);
2826
+ _this.idEnterprise = +cb.id_enterprise;
2656
2827
  _this.idEmpresa = parseInt(cb.id_empresa);
2657
2828
  _this.idBanco = parseInt(cb.id_banco);
2658
2829
  _this.idTipoCuenta = parseInt(cb.id_tipocta);
@@ -2671,6 +2842,7 @@
2671
2842
  }
2672
2843
  MCuentaBanco.prototype.dataInterface = function () {
2673
2844
  return {
2845
+ id_enterprise: this.idEnterprise.toString(),
2674
2846
  id_ctabanco: this.idCuentaBanco.toString(),
2675
2847
  id_empresa: this.idEmpresa.toString(),
2676
2848
  id_banco: this.idBanco.toString(),
@@ -2724,6 +2896,7 @@
2724
2896
  if (config === void 0) { config = null; }
2725
2897
  var _this = _super.call(this) || this;
2726
2898
  _this.id = 0;
2899
+ _this.idEnterprise = 0;
2727
2900
  _this.companyId = 0;
2728
2901
  _this.serviceOrder = 0;
2729
2902
  _this.purchaseOrder = 0;
@@ -2738,6 +2911,7 @@
2738
2911
  _this.statusMultiChargeStructure = false;
2739
2912
  if (config) {
2740
2913
  _this.id = parseInt(config.id_soc);
2914
+ _this.idEnterprise = +config.id_enterprise;
2741
2915
  _this.companyId = parseInt(config.id_empresa);
2742
2916
  _this.serviceOrder = parseInt(config.numordser);
2743
2917
  _this.purchaseOrder = parseInt(config.numordcom);
@@ -2761,6 +2935,7 @@
2761
2935
  return {
2762
2936
  id_soc: this.id.toString(),
2763
2937
  id_empresa: this.companyId.toString(),
2938
+ id_enterprise: this.idEnterprise.toString(),
2764
2939
  soc_bienes: this.goods.join(','),
2765
2940
  soc_servicios: this.services.join(','),
2766
2941
  estapesoc: this.opening ? '1' : '0',
@@ -2807,6 +2982,7 @@
2807
2982
  _this.isNew = false;
2808
2983
  _this.error = false;
2809
2984
  _this.idEmpresa = 0;
2985
+ _this.idEnterprise = 0;
2810
2986
  _this.id = null;
2811
2987
  _this.codigo = "";
2812
2988
  _this.denominacion = "";
@@ -2823,6 +2999,7 @@
2823
2999
  _this.estadoTipoPresupuesto = "E";
2824
3000
  if (charge) {
2825
3001
  _this.idEmpresa = parseInt(charge.id_empresa);
3002
+ _this.idEnterprise = +charge.id_enterprise;
2826
3003
  _this.id = parseInt(charge.id_cargo);
2827
3004
  _this.codigo = charge.codcar;
2828
3005
  _this.denominacion = charge.dencar;
@@ -2845,6 +3022,7 @@
2845
3022
  }
2846
3023
  MCargo.prototype.interface = function () {
2847
3024
  return {
3025
+ id_enterprise: this.idEnterprise.toString(),
2848
3026
  codcar: this.codigo,
2849
3027
  codestpro: this.codigoEstructuraEgreso,
2850
3028
  codestprospi: this.codigoEstructuraIngreso,
@@ -2870,6 +3048,7 @@
2870
3048
  function MDeduction(deduction) {
2871
3049
  var _this = _super.call(this) || this;
2872
3050
  _this.companyId = null;
3051
+ _this.idEnterprise = 0;
2873
3052
  _this.id = null;
2874
3053
  _this.deductionType = null;
2875
3054
  _this.codeDeduction = "";
@@ -2882,6 +3061,7 @@
2882
3061
  _this.id_conret = 0;
2883
3062
  if (deduction) {
2884
3063
  _this.id = parseInt(deduction.id_deduccion);
3064
+ _this.idEnterprise = +deduction.id_enterprise;
2885
3065
  _this.deductionType = parseInt(deduction.id_tipded);
2886
3066
  _this.description = deduction.dended;
2887
3067
  _this.formula = deduction.formula;
@@ -2901,6 +3081,7 @@
2901
3081
  MDeduction.prototype.dataInterface = function () {
2902
3082
  return {
2903
3083
  id_empresa: this.companyId.toString(),
3084
+ id_enterprise: this.idEnterprise.toString(),
2904
3085
  id_deduccion: this.id.toString(),
2905
3086
  codded: this.codeDeduction,
2906
3087
  id_tipded: this.id.toString(),
@@ -2920,12 +3101,14 @@
2920
3101
  function MConceptoRetencion(concepto) {
2921
3102
  var _this = _super.call(this) || this;
2922
3103
  _this.idEmpresa = 0;
3104
+ _this.idEnterprise = 0;
2923
3105
  _this.idConceptoRetencion = 0;
2924
3106
  _this.codigoConceptoRetencion = '';
2925
3107
  _this.descripcionActividad = '';
2926
3108
  _this.observacionConceptoRetencion = '';
2927
3109
  if (concepto) {
2928
3110
  _this.idEmpresa = parseInt(concepto.id_empresa);
3111
+ _this.idEnterprise = +concepto.id_enterprise;
2929
3112
  _this.idConceptoRetencion = parseInt(concepto.id_conret);
2930
3113
  _this.codigoConceptoRetencion = concepto.codconret;
2931
3114
  _this.descripcionActividad = concepto.desact;
@@ -2939,6 +3122,7 @@
2939
3122
  MConceptoRetencion.prototype.dataInterface = function () {
2940
3123
  return {
2941
3124
  id_empresa: this.idEmpresa.toString(),
3125
+ id_enterprise: this.idEnterprise.toString(),
2942
3126
  id_conret: this.idConceptoRetencion.toString(),
2943
3127
  codconret: this.codigoConceptoRetencion,
2944
3128
  desact: this.descripcionActividad,
@@ -3044,13 +3228,15 @@
3044
3228
  __extends(MServiceCharge, _super);
3045
3229
  function MServiceCharge(ser) {
3046
3230
  var _this = _super.call(this) || this;
3047
- _this.companyId = null;
3048
- _this.id = null;
3049
- _this.serviceId = null;
3231
+ _this.companyId = 0;
3232
+ _this.idEnterprise = 0;
3233
+ _this.id = 0;
3234
+ _this.serviceId = 0;
3050
3235
  _this.denomination = '';
3051
3236
  _this.code = '';
3052
3237
  _this.status = false;
3053
3238
  if (ser) {
3239
+ _this.idEnterprise = +ser.id_enterprise;
3054
3240
  _this.companyId = parseInt(ser.id_empresa);
3055
3241
  _this.id = parseInt(ser.id_cargo);
3056
3242
  _this.serviceId = parseInt(ser.id_servicio);
@@ -3065,6 +3251,7 @@
3065
3251
  }
3066
3252
  MServiceCharge.prototype.interface = function () {
3067
3253
  return {
3254
+ id_enterprise: this.idEnterprise.toString(),
3068
3255
  id_empresa: this.companyId.toString(),
3069
3256
  id_cargo: this.id.toString(),
3070
3257
  id_servicio: this.serviceId.toString(),
@@ -5735,6 +5922,42 @@
5735
5922
  return MComunidad;
5736
5923
  }());
5737
5924
 
5925
+ var MExchangeRate = /** @class */ (function (_super) {
5926
+ __extends(MExchangeRate, _super);
5927
+ function MExchangeRate(e) {
5928
+ var _this = _super.call(this) || this;
5929
+ _this.codigoMoneda = 0;
5930
+ _this.fechaDesde = '1900-01-01';
5931
+ _this.horaCambioTasa = '';
5932
+ _this.fechaHasta = '1900-01-01';
5933
+ _this.montoTasa = 0;
5934
+ _this.denominacionMoneda = '';
5935
+ if (e) {
5936
+ _this.codigoMoneda = +e.codmon;
5937
+ _this.fechaDesde = e.fectasdes;
5938
+ _this.horaCambioTasa = e.horcamtas;
5939
+ _this.fechaHasta = e.fectashas;
5940
+ _this.montoTasa = +e.montascam;
5941
+ _this.denominacionMoneda = e.denmon;
5942
+ }
5943
+ else {
5944
+ _this.isNew = true;
5945
+ }
5946
+ return _this;
5947
+ }
5948
+ MExchangeRate.prototype.dataInterface = function () {
5949
+ return {
5950
+ codmon: this.codigoMoneda.toString(),
5951
+ fectasdes: this.fechaDesde,
5952
+ horcamtas: this.horaCambioTasa,
5953
+ fectashas: this.fechaHasta,
5954
+ montascam: this.montoTasa.toString(),
5955
+ denmon: this.denominacionMoneda,
5956
+ };
5957
+ };
5958
+ return MExchangeRate;
5959
+ }(MBasicModel));
5960
+
5738
5961
  var SigespService = /** @class */ (function () {
5739
5962
  // public URL: string = "http://192.168.1.67/sigesp_php";
5740
5963
  // usuarioActivo: MUsuario = {
@@ -6249,6 +6472,14 @@
6249
6472
  return res;
6250
6473
  }));
6251
6474
  };
6475
+ SigespService.prototype.getUserCostCenters = function (codigo) {
6476
+ return this.http.get(this.URL + "/dao/scg/control_numero_usuario_dao.php?codigo=" + codigo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6477
+ if (res.success) {
6478
+ res.data = res.data.map(function (element) { return new MUsuarioCentroCosto(element); });
6479
+ }
6480
+ return res;
6481
+ }));
6482
+ };
6252
6483
  /**
6253
6484
  * @description Abre el dialog de checkks
6254
6485
  * @param columns Columnas que va a tener la tabla
@@ -6619,6 +6850,16 @@
6619
6850
  SigespService.prototype.getMonedas = function (tipo, id) {
6620
6851
  return this.http.get(this.URL + "/dao/cfg/monedas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MMoneda(element); }); }));
6621
6852
  };
6853
+ /**
6854
+ * @Description: Obtiene la tasa de cambio
6855
+ * @param tipo string
6856
+ * @param id codigo moneda
6857
+ * @returns array/null
6858
+ */
6859
+ SigespService.prototype.getCurrencyExchangeRate = function (tipo, id) {
6860
+ if (tipo === void 0) { tipo = null; }
6861
+ return this.http.get(this.URL + "/dao/cfg/sigesp_tasacambio_moneda.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.map(function (element) { return new MExchangeRate(element); }); }));
6862
+ };
6622
6863
  /**
6623
6864
  * @description Abre el dialog de las las cuentas contables (Cuentas Institucionales)
6624
6865
  * @return Promise<McuentaInstitucional>
@@ -6907,10 +7148,23 @@
6907
7148
  * @author Carlos Albornoz
6908
7149
  * @modificado 10-01-2022
6909
7150
  * @param pais: Codigo del pais
7151
+ * @param estado: Codigo del estado
7152
+
6910
7153
 
6911
7154
  */
6912
- SigespService.prototype.getCitys = function (pais) {
6913
- return this.http.get(this.URL + "/dao/cfg/ciudades_dao.php?pais=" + pais, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
7155
+ SigespService.prototype.getCity = function (pais, estado) {
7156
+ return this.http.get(this.URL + "/dao/cfg/ciudades_dao.php?pais=" + pais + "&estado=" + estado, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
7157
+ };
7158
+ /**
7159
+ * @description Obtiene las ciudades
7160
+ * @return Observable<MParish>
7161
+ * @author Dimaly Crespo
7162
+ * @modificado 10-01-2022
7163
+ * @param pais: Codigo del pais
7164
+
7165
+ */
7166
+ SigespService.prototype.getCommunities = function (pais, estado, municipio, parroquia) {
7167
+ return this.http.get(this.URL + "/dao/cfg/comunidades_dao.php?pais=" + pais + "&estado=" + estado + "&municipio=" + municipio + "&parroquia=" + parroquia, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCommunity(e); }); }));
6914
7168
  };
6915
7169
  /**
6916
7170
  * @description Obtiene los sistemas activas
@@ -7019,6 +7273,23 @@
7019
7273
  return res;
7020
7274
  }));
7021
7275
  };
7276
+ /**
7277
+ * @description Obtiene los pefijo
7278
+ * @param procede De que módulo procede
7279
+ * @param codsis Código del sistema
7280
+ * @return Observable<MUsuarioPrefijo[]>
7281
+ * @author DimalyCrespo 17-12-2022
7282
+ */
7283
+ SigespService.prototype.getPrefix = function (filter, code) {
7284
+ if (filter === void 0) { filter = null; }
7285
+ if (code === void 0) { code = null; }
7286
+ return this.http.get(this.URL + "/dao/cfg/control_numero_dao.php" + (filter ? "?filter=" + filter + "&code=" + code : ''), { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7287
+ if (res.success) {
7288
+ res.data = res.data.map(function (e) { return new MPrefijo(e); });
7289
+ }
7290
+ return res;
7291
+ }));
7292
+ };
7022
7293
  /**
7023
7294
  * @description Abre el dialog para buscar los proveedores
7024
7295
  * @return Promise<MProveedor>
@@ -8087,6 +8358,39 @@
8087
8358
  },] }
8088
8359
  ];
8089
8360
 
8361
+ var MProcedencia = /** @class */ (function (_super) {
8362
+ __extends(MProcedencia, _super);
8363
+ function MProcedencia(e) {
8364
+ var _this = _super.call(this) || this;
8365
+ _this.procede = '';
8366
+ _this.codigoSistema = '';
8367
+ _this.operacion = '';
8368
+ _this.descripcion = '';
8369
+ _this.estatus = 1;
8370
+ if (e) {
8371
+ _this.procede = e.procede;
8372
+ _this.codigoSistema = e.codsis;
8373
+ _this.operacion = e.opeproc;
8374
+ _this.descripcion = e.desproc;
8375
+ _this.estatus = +e.estdel;
8376
+ }
8377
+ else {
8378
+ _this.isNew = true;
8379
+ }
8380
+ return _this;
8381
+ }
8382
+ MProcedencia.prototype.dataInterface = function () {
8383
+ return {
8384
+ procede: this.procede,
8385
+ codsis: this.codigoSistema,
8386
+ opeproc: this.operacion,
8387
+ desproc: this.descripcion,
8388
+ estdel: this.estatus.toString(),
8389
+ };
8390
+ };
8391
+ return MProcedencia;
8392
+ }(MBasicModel));
8393
+
8090
8394
  var MAccountMarriage = /** @class */ (function () {
8091
8395
  function MAccountMarriage(marriage) {
8092
8396
  this.idEmpresa = null;
@@ -8104,10 +8408,14 @@
8104
8408
  function MServiceType(type) {
8105
8409
  if (type === void 0) { type = null; }
8106
8410
  var _this = _super.call(this) || this;
8107
- _this.id = null;
8411
+ _this.id = 0;
8412
+ _this.idEmpresa = 0;
8413
+ _this.idEnterprise = 0;
8108
8414
  _this.denomination = null;
8109
8415
  _this.observation = null;
8110
8416
  if (type) {
8417
+ _this.idEmpresa = parseInt(type.id_empresa);
8418
+ _this.idEnterprise = +type.id_enterprise;
8111
8419
  _this.id = parseInt(type.id_tiposervicio);
8112
8420
  _this.denomination = type.dentipser;
8113
8421
  _this.observation = type.obstipser;
@@ -8116,6 +8424,8 @@
8116
8424
  }
8117
8425
  MServiceType.prototype.dataAsInterface = function () {
8118
8426
  return {
8427
+ id_empresa: this.idEmpresa.toString(),
8428
+ id_enterprise: this.idEnterprise.toString(),
8119
8429
  dentipser: this.denomination,
8120
8430
  id_tiposervicio: this.id.toString(),
8121
8431
  obstipser: this.observation
@@ -8129,15 +8439,17 @@
8129
8439
  function MService(service) {
8130
8440
  if (service === void 0) { service = null; }
8131
8441
  var _this = _super.call(this) || this;
8132
- _this.id = null;
8442
+ _this.id = 0;
8443
+ _this.idEnterprise = 0;
8133
8444
  _this.code = '';
8134
- _this.companyId = null;
8135
- _this.serviceTypeId = null;
8445
+ _this.companyId = 0;
8446
+ _this.serviceTypeId = 0;
8136
8447
  _this.denomination = '';
8137
8448
  _this.amount = 0;
8138
8449
  _this.expensesAccount = '';
8139
8450
  _this.charges = [];
8140
8451
  if (service) {
8452
+ _this.idEnterprise = +service.id_enterprise;
8141
8453
  _this.id = parseInt(service.id_servicio);
8142
8454
  _this.companyId = parseInt(service.id_empresa);
8143
8455
  _this.serviceTypeId = parseInt(service.id_tiposervicio);
@@ -8153,6 +8465,7 @@
8153
8465
  }
8154
8466
  MService.prototype.dataAsInterface = function () {
8155
8467
  return {
8468
+ id_enterprise: this.idEnterprise.toString(),
8156
8469
  denser: this.denomination,
8157
8470
  id_empresa: this.companyId.toString(),
8158
8471
  id_servicio: this.id.toString(),
@@ -8171,12 +8484,14 @@
8171
8484
  function MClause(clause) {
8172
8485
  if (clause === void 0) { clause = null; }
8173
8486
  var _this = _super.call(this) || this;
8174
- _this.id = null;
8175
- _this.companyId = null;
8487
+ _this.id = 0;
8488
+ _this.companyId = 0;
8489
+ _this.idEnterprise = 0;
8176
8490
  _this.clause = '';
8177
8491
  _this.denomination = '';
8178
8492
  if (clause) {
8179
8493
  _this.companyId = parseInt(clause.id_empresa);
8494
+ _this.idEnterprise = +clause.id_enterprise;
8180
8495
  _this.clause = clause.codcla;
8181
8496
  _this.denomination = clause.dencla;
8182
8497
  _this.id = parseInt(clause.id_clausula);
@@ -8188,6 +8503,7 @@
8188
8503
  codcla: this.clause,
8189
8504
  dencla: this.denomination,
8190
8505
  id_empresa: this.companyId ? this.companyId.toString() : null,
8506
+ id_enterprise: this.idEnterprise.toString(),
8191
8507
  id_clausula: this.id ? this.id.toString() : null
8192
8508
  };
8193
8509
  };
@@ -8199,12 +8515,14 @@
8199
8515
  function MClauseModality(mod) {
8200
8516
  if (mod === void 0) { mod = null; }
8201
8517
  var _this = _super.call(this) || this;
8202
- _this.id = null;
8203
- _this.companyId = null;
8518
+ _this.id = 0;
8519
+ _this.companyId = 0;
8520
+ _this.idEnterprise = 0;
8204
8521
  _this.code = '';
8205
8522
  _this.denomination = '';
8206
8523
  _this.clauses = [];
8207
8524
  if (mod) {
8525
+ _this.idEnterprise = +mod.id_enterprise;
8208
8526
  _this.id = parseInt(mod.id_modcla);
8209
8527
  _this.companyId = parseInt(mod.id_empresa);
8210
8528
  _this.code = mod.codmodcla;
@@ -8215,6 +8533,7 @@
8215
8533
  }
8216
8534
  MClauseModality.prototype.dataAsInterface = function () {
8217
8535
  return {
8536
+ id_enterprise: this.idEnterprise.toString(),
8218
8537
  clausulas: this.clauses.map(function (e) { return e.dataAsInterface(); }),
8219
8538
  codmodcla: this.code,
8220
8539
  denmodcla: this.denomination,
@@ -13899,6 +14218,7 @@
13899
14218
  exports.MEstructuraPresupuestariaTwo = MEstructuraPresupuestariaTwo;
13900
14219
  exports.MEstudiosConcursantes = MEstudiosConcursantes;
13901
14220
  exports.MEstudiosRealizados = MEstudiosRealizados;
14221
+ exports.MExchangeRate = MExchangeRate;
13902
14222
  exports.MExperienciaLaboral = MExperienciaLaboral;
13903
14223
  exports.MFamiliaConcursante = MFamiliaConcursante;
13904
14224
  exports.MFamiliares = MFamiliares;
@@ -13936,6 +14256,7 @@
13936
14256
  exports.MPlanHorario = MPlanHorario;
13937
14257
  exports.MPlanUnicoCuenta = MPlanUnicoCuenta;
13938
14258
  exports.MPlantillasConstancia = MPlantillasConstancia;
14259
+ exports.MPrefijo = MPrefijo;
13939
14260
  exports.MPrestacionesAntiguedad = MPrestacionesAntiguedad;
13940
14261
  exports.MPrestamo = MPrestamo;
13941
14262
  exports.MPrestamoAmortizacion = MPrestamoAmortizacion;
@@ -13944,6 +14265,7 @@
13944
14265
  exports.MPrevioEvaluacionDt = MPrevioEvaluacionDt;
13945
14266
  exports.MPrimaGrados = MPrimaGrados;
13946
14267
  exports.MPrimasConcepto = MPrimasConcepto;
14268
+ exports.MProcedencia = MProcedencia;
13947
14269
  exports.MProveedor = MProveedor;
13948
14270
  exports.MProviderBankAccount = MProviderBankAccount;
13949
14271
  exports.MProviderBeneficiary = MProviderBeneficiary;
@@ -13984,6 +14306,7 @@
13984
14306
  exports.MUserDetail = MUserDetail;
13985
14307
  exports.MUserPermit = MUserPermit;
13986
14308
  exports.MUsuario = MUsuario;
14309
+ exports.MUsuarioCentroCosto = MUsuarioCentroCosto;
13987
14310
  exports.MUsuarioPrefijo = MUsuarioPrefijo;
13988
14311
  exports.MVacacionesPersonal = MVacacionesPersonal;
13989
14312
  exports.Meses = Meses;