sigesp 0.9.82-20231024 → 0.9.84-20231102

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.
@@ -1431,32 +1431,93 @@
1431
1431
  return MCuentaPresupuesto;
1432
1432
  }());
1433
1433
 
1434
- var MCuentaInstitucional = /** @class */ (function () {
1434
+ var MCuentaInstitucional = /** @class */ (function (_super) {
1435
+ __extends(MCuentaInstitucional, _super);
1435
1436
  function MCuentaInstitucional(institucional) {
1436
- this.cuenta = institucional.sc_cuenta;
1437
- this.cueproacu = institucional.cueproacu;
1438
- this.denominacion = institucional.denominacion;
1439
- this.enero = institucional.enero;
1440
- this.febrero = institucional.febrero;
1441
- this.marzo = institucional.marzo;
1442
- this.abril = institucional.abril;
1443
- this.mayo = institucional.mayo;
1444
- this.junio = institucional.junio;
1445
- this.julio = institucional.julio;
1446
- this.agosto = institucional.agosto;
1447
- this.septiembre = institucional.septiembre;
1448
- this.octubre = institucional.octubre;
1449
- this.noviembre = institucional.noviembre;
1450
- this.diciembre = institucional.diciembre;
1451
- this.asignado = institucional.asignado;
1452
- this.distribuir = institucional.distribuir;
1453
- this.status = institucional.estatus;
1454
- this.idEmpresa = institucional.id_empresa;
1455
- this.nivel = institucional.nivel;
1456
- this.referencia = institucional.referencia;
1437
+ var _this = _super.call(this) || this;
1438
+ _this.cuenta = '';
1439
+ _this.cueproacu = '';
1440
+ _this.denominacion = '';
1441
+ _this.enero = '';
1442
+ _this.febrero = '';
1443
+ _this.marzo = '';
1444
+ _this.abril = '';
1445
+ _this.mayo = '';
1446
+ _this.junio = '';
1447
+ _this.julio = '';
1448
+ _this.agosto = '';
1449
+ _this.septiembre = '';
1450
+ _this.octubre = '';
1451
+ _this.noviembre = '';
1452
+ _this.diciembre = '';
1453
+ _this.asignado = '';
1454
+ _this.distribuir = '';
1455
+ _this.status = '';
1456
+ _this.idEmpresa = '';
1457
+ _this.nivel = '';
1458
+ _this.referencia = '';
1459
+ _this.denominacionCuentaProvisionAcumulada = '';
1460
+ _this.denominacionCuentaReferencia = '';
1461
+ _this.denominacionEstatus = '';
1462
+ _this.isNew = false;
1463
+ if (institucional) {
1464
+ _this.cuenta = institucional.sc_cuenta;
1465
+ _this.cueproacu = institucional.cueproacu;
1466
+ _this.denominacion = institucional.denominacion;
1467
+ _this.enero = institucional.enero;
1468
+ _this.febrero = institucional.febrero;
1469
+ _this.marzo = institucional.marzo;
1470
+ _this.abril = institucional.abril;
1471
+ _this.mayo = institucional.mayo;
1472
+ _this.junio = institucional.junio;
1473
+ _this.julio = institucional.julio;
1474
+ _this.agosto = institucional.agosto;
1475
+ _this.septiembre = institucional.septiembre;
1476
+ _this.octubre = institucional.octubre;
1477
+ _this.noviembre = institucional.noviembre;
1478
+ _this.diciembre = institucional.diciembre;
1479
+ _this.asignado = institucional.asignado;
1480
+ _this.distribuir = institucional.distribuir;
1481
+ _this.status = institucional.estatus;
1482
+ _this.idEmpresa = institucional.id_empresa;
1483
+ _this.nivel = institucional.nivel;
1484
+ _this.referencia = institucional.referencia;
1485
+ _this.denominacionCuentaProvisionAcumulada = institucional.dencueproacu;
1486
+ _this.denominacionCuentaReferencia = institucional.denctareferecia;
1487
+ institucional.estatus == 'C' ? _this.denominacionEstatus = 'Movimiento' : _this.denominacionEstatus = 'Totalizadora';
1488
+ }
1489
+ else {
1490
+ _this.isNew = true;
1491
+ }
1492
+ return _this;
1457
1493
  }
1494
+ MCuentaInstitucional.prototype.dataInterface = function () {
1495
+ return {
1496
+ sc_cuenta: this.cuenta,
1497
+ cueproacu: this.cueproacu,
1498
+ denominacion: this.denominacion,
1499
+ dencueproacu: this.denominacionCuentaProvisionAcumulada,
1500
+ enero: this.enero,
1501
+ febrero: this.febrero,
1502
+ marzo: this.marzo,
1503
+ abril: this.abril,
1504
+ mayo: this.mayo,
1505
+ junio: this.junio,
1506
+ julio: this.julio,
1507
+ agosto: this.agosto,
1508
+ septiembre: this.septiembre,
1509
+ octubre: this.octubre,
1510
+ noviembre: this.noviembre,
1511
+ diciembre: this.diciembre,
1512
+ asignado: this.asignado,
1513
+ distribuir: this.distribuir,
1514
+ estatus: this.status,
1515
+ id_empresa: this.idEmpresa,
1516
+ nivel: this.nivel,
1517
+ };
1518
+ };
1458
1519
  return MCuentaInstitucional;
1459
- }());
1520
+ }(MBasicModel));
1460
1521
 
1461
1522
  var MMoneda = /** @class */ (function (_super) {
1462
1523
  __extends(MMoneda, _super);
@@ -1743,13 +1804,24 @@
1743
1804
  return MConfiguracionSCG;
1744
1805
  }(MBasicModel));
1745
1806
 
1746
- var MPlanUnicoCuenta = /** @class */ (function () {
1807
+ var MPlanUnicoCuenta = /** @class */ (function (_super) {
1808
+ __extends(MPlanUnicoCuenta, _super);
1747
1809
  function MPlanUnicoCuenta(plan) {
1748
- this.denominacion = plan.denominacion;
1749
- this.cuenta = plan.sc_cuenta;
1810
+ var _this = _super.call(this) || this;
1811
+ if (plan) {
1812
+ _this.denominacion = plan.denominacion;
1813
+ _this.cuenta = plan.sc_cuenta;
1814
+ }
1815
+ return _this;
1750
1816
  }
1817
+ MPlanUnicoCuenta.prototype.dataInterface = function () {
1818
+ return {
1819
+ denominacion: this.denominacion,
1820
+ sc_cuenta: this.cuenta,
1821
+ };
1822
+ };
1751
1823
  return MPlanUnicoCuenta;
1752
- }());
1824
+ }(MBasicModel));
1753
1825
 
1754
1826
  var TableSelectComponent = /** @class */ (function () {
1755
1827
  //disableMasterToggle: boolean = false;
@@ -2629,89 +2701,92 @@
2629
2701
  }());
2630
2702
  // TERMINAR EL MODELO
2631
2703
 
2632
- var MCuentaIngresos = /** @class */ (function () {
2704
+ var MCuentaIngresos = /** @class */ (function (_super) {
2705
+ __extends(MCuentaIngresos, _super);
2633
2706
  function MCuentaIngresos(cuenta, isNew) {
2634
2707
  if (cuenta === void 0) { cuenta = null; }
2635
2708
  if (isNew === void 0) { isNew = false; }
2636
- this.idEmpresa = null;
2637
- this.nivel = null;
2638
- this.denominacion = '';
2639
- this.cuenta = null;
2640
- this.cuentaContable = null;
2641
- this.cuentaONCOP = null;
2642
- this.clasificador = null;
2643
- this.referencia = null;
2644
- this.estado = null;
2645
- this.aumento = 0;
2646
- this.cobrado = 0;
2647
- this.anticipoCobrado = 0;
2648
- this.devengado = 0;
2649
- this.disminucion = 0;
2650
- this.distribuir = 0;
2651
- this.previsto = 0;
2652
- this.enero = 0;
2653
- this.febrero = 0;
2654
- this.marzo = 0;
2655
- this.abril = 0;
2656
- this.mayo = 0;
2657
- this.junio = 0;
2658
- this.julio = 0;
2659
- this.agosto = 0;
2660
- this.septiembre = 0;
2661
- this.octubre = 0;
2662
- this.noviembre = 0;
2663
- this.diciembre = 0;
2664
- this.selected = false;
2665
- this.isNew = false;
2666
- this.error = false;
2667
- this.idEP1 = 0;
2668
- this.idEP2 = 0;
2669
- this.idEP3 = 0;
2670
- this.idEP4 = 0;
2671
- this.idEP5 = 0;
2672
- this.id = null;
2673
- this.estructura = null;
2709
+ var _this = _super.call(this) || this;
2710
+ _this.idEmpresa = null;
2711
+ _this.nivel = null;
2712
+ _this.denominacion = '';
2713
+ _this.cuenta = null;
2714
+ _this.cuentaContable = null;
2715
+ _this.cuentaONCOP = null;
2716
+ _this.clasificador = null;
2717
+ _this.referencia = null;
2718
+ _this.estado = null;
2719
+ _this.aumento = 0;
2720
+ _this.cobrado = 0;
2721
+ _this.anticipoCobrado = 0;
2722
+ _this.devengado = 0;
2723
+ _this.disminucion = 0;
2724
+ _this.distribuir = 0;
2725
+ _this.previsto = 0;
2726
+ _this.enero = 0;
2727
+ _this.febrero = 0;
2728
+ _this.marzo = 0;
2729
+ _this.abril = 0;
2730
+ _this.mayo = 0;
2731
+ _this.junio = 0;
2732
+ _this.julio = 0;
2733
+ _this.agosto = 0;
2734
+ _this.septiembre = 0;
2735
+ _this.octubre = 0;
2736
+ _this.noviembre = 0;
2737
+ _this.diciembre = 0;
2738
+ _this.selected = false;
2739
+ _this.isNew = false;
2740
+ _this.error = false;
2741
+ _this.idEP1 = 0;
2742
+ _this.idEP2 = 0;
2743
+ _this.idEP3 = 0;
2744
+ _this.idEP4 = 0;
2745
+ _this.idEP5 = 0;
2746
+ _this.id = null;
2747
+ _this.estructura = null;
2674
2748
  if (cuenta) {
2675
- this.idEmpresa = parseInt(cuenta.id_empresa);
2676
- this.nivel = parseInt(cuenta.nivel);
2677
- this.denominacion = cuenta.denspi;
2678
- this.cuenta = cuenta.spi_cuenta;
2679
- this.cuentaContable = cuenta.sc_cuenta;
2680
- this.referencia = parseInt(cuenta.referencia);
2681
- this.estado = cuenta.stamov;
2682
- this.aumento = parseInt(cuenta.aumento);
2683
- this.cobrado = parseInt(cuenta.cobrado);
2684
- this.anticipoCobrado = parseInt(cuenta.cobrado_anticipado);
2685
- this.devengado = parseInt(cuenta.devengado);
2686
- this.distribuir = parseInt(cuenta.distribuir);
2687
- this.devengado = parseInt(cuenta.devengado);
2688
- this.previsto = parseInt(cuenta.previsto);
2689
- this.enero = parseInt(cuenta.enero);
2690
- this.febrero = parseInt(cuenta.febrero);
2691
- this.marzo = parseInt(cuenta.marzo);
2692
- this.abril = parseInt(cuenta.abril);
2693
- this.mayo = parseInt(cuenta.mayo);
2694
- this.junio = parseInt(cuenta.junio);
2695
- this.julio = parseInt(cuenta.julio);
2696
- this.agosto = parseInt(cuenta.agosto);
2697
- this.septiembre = parseInt(cuenta.septiembre);
2698
- this.octubre = parseInt(cuenta.octubre);
2699
- this.noviembre = parseInt(cuenta.noviembre);
2700
- this.diciembre = parseInt(cuenta.diciembre);
2701
- this.clasificador = cuenta.codcuecla;
2702
- this.cuentaONCOP = cuenta.cueoncop;
2703
- this.isNew = isNew;
2704
- this.idEP1 = parseInt(cuenta.id_ep1);
2705
- this.idEP2 = parseInt(cuenta.id_ep2);
2706
- this.idEP3 = parseInt(cuenta.id_ep3);
2707
- this.idEP4 = parseInt(cuenta.id_ep4);
2708
- this.idEP5 = parseInt(cuenta.id_ep5);
2709
- this.id = cuenta.id_del_spicta ? parseInt(cuenta.id_del_spicta) : 0;
2710
- this.estructura = cuenta.estructura ? cuenta.estructura : "";
2749
+ _this.idEmpresa = parseInt(cuenta.id_empresa);
2750
+ _this.nivel = parseInt(cuenta.nivel);
2751
+ _this.denominacion = cuenta.denspi;
2752
+ _this.cuenta = cuenta.spi_cuenta;
2753
+ _this.cuentaContable = cuenta.sc_cuenta;
2754
+ _this.referencia = parseInt(cuenta.referencia);
2755
+ _this.estado = cuenta.stamov;
2756
+ _this.aumento = parseInt(cuenta.aumento);
2757
+ _this.cobrado = parseInt(cuenta.cobrado);
2758
+ _this.anticipoCobrado = parseInt(cuenta.cobrado_anticipado);
2759
+ _this.devengado = parseInt(cuenta.devengado);
2760
+ _this.distribuir = parseInt(cuenta.distribuir);
2761
+ _this.devengado = parseInt(cuenta.devengado);
2762
+ _this.previsto = parseInt(cuenta.previsto);
2763
+ _this.enero = parseInt(cuenta.enero);
2764
+ _this.febrero = parseInt(cuenta.febrero);
2765
+ _this.marzo = parseInt(cuenta.marzo);
2766
+ _this.abril = parseInt(cuenta.abril);
2767
+ _this.mayo = parseInt(cuenta.mayo);
2768
+ _this.junio = parseInt(cuenta.junio);
2769
+ _this.julio = parseInt(cuenta.julio);
2770
+ _this.agosto = parseInt(cuenta.agosto);
2771
+ _this.septiembre = parseInt(cuenta.septiembre);
2772
+ _this.octubre = parseInt(cuenta.octubre);
2773
+ _this.noviembre = parseInt(cuenta.noviembre);
2774
+ _this.diciembre = parseInt(cuenta.diciembre);
2775
+ _this.clasificador = cuenta.codcuecla;
2776
+ _this.cuentaONCOP = cuenta.cueoncop;
2777
+ _this.isNew = isNew;
2778
+ _this.idEP1 = parseInt(cuenta.id_ep1);
2779
+ _this.idEP2 = parseInt(cuenta.id_ep2);
2780
+ _this.idEP3 = parseInt(cuenta.id_ep3);
2781
+ _this.idEP4 = parseInt(cuenta.id_ep4);
2782
+ _this.idEP5 = parseInt(cuenta.id_ep5);
2783
+ _this.id = cuenta.id_del_spicta ? parseInt(cuenta.id_del_spicta) : 0;
2784
+ _this.estructura = cuenta.estructura ? cuenta.estructura : "";
2711
2785
  }
2786
+ return _this;
2712
2787
  }
2713
2788
  return MCuentaIngresos;
2714
- }());
2789
+ }(MBasicModel));
2715
2790
 
2716
2791
  var MIncomeStructureAccount = /** @class */ (function () {
2717
2792
  function MIncomeStructureAccount(account, level) {
@@ -6947,6 +7022,12 @@
6947
7022
  }
6948
7023
  return false;
6949
7024
  };
7025
+ SigespService.prototype.onlyNumbers2 = function (event) {
7026
+ if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
7027
+ return true;
7028
+ }
7029
+ return false;
7030
+ };
6950
7031
  /**
6951
7032
  * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
6952
7033
  * @param event Evento del teclado
@@ -8779,17 +8860,29 @@
8779
8860
  return MProcedencia;
8780
8861
  }(MBasicModel));
8781
8862
 
8782
- var MAccountMarriage = /** @class */ (function () {
8863
+ var MAccountMarriage = /** @class */ (function (_super) {
8864
+ __extends(MAccountMarriage, _super);
8783
8865
  function MAccountMarriage(marriage) {
8784
- this.idEmpresa = null;
8785
- this.cuentaContable = null;
8786
- this.cuentaInstitucional = null;
8787
- this.idEmpresa = parseInt(marriage.id_empresa);
8788
- this.cuentaContable = parseInt(marriage.sig_cuenta);
8789
- this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8866
+ var _this = _super.call(this) || this;
8867
+ _this.idEmpresa = null;
8868
+ _this.cuentaContable = null;
8869
+ _this.cuentaInstitucional = null;
8870
+ if (marriage) {
8871
+ _this.idEmpresa = parseInt(marriage.id_empresa);
8872
+ _this.cuentaContable = parseInt(marriage.sig_cuenta);
8873
+ _this.cuentaInstitucional = parseInt(marriage.sc_cuenta);
8874
+ }
8875
+ return _this;
8790
8876
  }
8877
+ MAccountMarriage.prototype.dataInterface = function () {
8878
+ return {
8879
+ id_empresa: this.idEmpresa.toString(),
8880
+ sc_cuenta: this.cuentaContable.toString(),
8881
+ sig_cuenta: this.cuentaInstitucional.toString(),
8882
+ };
8883
+ };
8791
8884
  return MAccountMarriage;
8792
- }());
8885
+ }(MBasicModel));
8793
8886
 
8794
8887
  var MServiceType = /** @class */ (function (_super) {
8795
8888
  __extends(MServiceType, _super);