sigesp 0.9.82-20231024 → 0.9.83-20230111

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,68 @@
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
  }
1458
1494
  return MCuentaInstitucional;
1459
- }());
1495
+ }(MBasicModel));
1460
1496
 
1461
1497
  var MMoneda = /** @class */ (function (_super) {
1462
1498
  __extends(MMoneda, _super);
@@ -2629,89 +2665,92 @@
2629
2665
  }());
2630
2666
  // TERMINAR EL MODELO
2631
2667
 
2632
- var MCuentaIngresos = /** @class */ (function () {
2668
+ var MCuentaIngresos = /** @class */ (function (_super) {
2669
+ __extends(MCuentaIngresos, _super);
2633
2670
  function MCuentaIngresos(cuenta, isNew) {
2634
2671
  if (cuenta === void 0) { cuenta = null; }
2635
2672
  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;
2673
+ var _this = _super.call(this) || this;
2674
+ _this.idEmpresa = null;
2675
+ _this.nivel = null;
2676
+ _this.denominacion = '';
2677
+ _this.cuenta = null;
2678
+ _this.cuentaContable = null;
2679
+ _this.cuentaONCOP = null;
2680
+ _this.clasificador = null;
2681
+ _this.referencia = null;
2682
+ _this.estado = null;
2683
+ _this.aumento = 0;
2684
+ _this.cobrado = 0;
2685
+ _this.anticipoCobrado = 0;
2686
+ _this.devengado = 0;
2687
+ _this.disminucion = 0;
2688
+ _this.distribuir = 0;
2689
+ _this.previsto = 0;
2690
+ _this.enero = 0;
2691
+ _this.febrero = 0;
2692
+ _this.marzo = 0;
2693
+ _this.abril = 0;
2694
+ _this.mayo = 0;
2695
+ _this.junio = 0;
2696
+ _this.julio = 0;
2697
+ _this.agosto = 0;
2698
+ _this.septiembre = 0;
2699
+ _this.octubre = 0;
2700
+ _this.noviembre = 0;
2701
+ _this.diciembre = 0;
2702
+ _this.selected = false;
2703
+ _this.isNew = false;
2704
+ _this.error = false;
2705
+ _this.idEP1 = 0;
2706
+ _this.idEP2 = 0;
2707
+ _this.idEP3 = 0;
2708
+ _this.idEP4 = 0;
2709
+ _this.idEP5 = 0;
2710
+ _this.id = null;
2711
+ _this.estructura = null;
2674
2712
  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 : "";
2713
+ _this.idEmpresa = parseInt(cuenta.id_empresa);
2714
+ _this.nivel = parseInt(cuenta.nivel);
2715
+ _this.denominacion = cuenta.denspi;
2716
+ _this.cuenta = cuenta.spi_cuenta;
2717
+ _this.cuentaContable = cuenta.sc_cuenta;
2718
+ _this.referencia = parseInt(cuenta.referencia);
2719
+ _this.estado = cuenta.stamov;
2720
+ _this.aumento = parseInt(cuenta.aumento);
2721
+ _this.cobrado = parseInt(cuenta.cobrado);
2722
+ _this.anticipoCobrado = parseInt(cuenta.cobrado_anticipado);
2723
+ _this.devengado = parseInt(cuenta.devengado);
2724
+ _this.distribuir = parseInt(cuenta.distribuir);
2725
+ _this.devengado = parseInt(cuenta.devengado);
2726
+ _this.previsto = parseInt(cuenta.previsto);
2727
+ _this.enero = parseInt(cuenta.enero);
2728
+ _this.febrero = parseInt(cuenta.febrero);
2729
+ _this.marzo = parseInt(cuenta.marzo);
2730
+ _this.abril = parseInt(cuenta.abril);
2731
+ _this.mayo = parseInt(cuenta.mayo);
2732
+ _this.junio = parseInt(cuenta.junio);
2733
+ _this.julio = parseInt(cuenta.julio);
2734
+ _this.agosto = parseInt(cuenta.agosto);
2735
+ _this.septiembre = parseInt(cuenta.septiembre);
2736
+ _this.octubre = parseInt(cuenta.octubre);
2737
+ _this.noviembre = parseInt(cuenta.noviembre);
2738
+ _this.diciembre = parseInt(cuenta.diciembre);
2739
+ _this.clasificador = cuenta.codcuecla;
2740
+ _this.cuentaONCOP = cuenta.cueoncop;
2741
+ _this.isNew = isNew;
2742
+ _this.idEP1 = parseInt(cuenta.id_ep1);
2743
+ _this.idEP2 = parseInt(cuenta.id_ep2);
2744
+ _this.idEP3 = parseInt(cuenta.id_ep3);
2745
+ _this.idEP4 = parseInt(cuenta.id_ep4);
2746
+ _this.idEP5 = parseInt(cuenta.id_ep5);
2747
+ _this.id = cuenta.id_del_spicta ? parseInt(cuenta.id_del_spicta) : 0;
2748
+ _this.estructura = cuenta.estructura ? cuenta.estructura : "";
2711
2749
  }
2750
+ return _this;
2712
2751
  }
2713
2752
  return MCuentaIngresos;
2714
- }());
2753
+ }(MBasicModel));
2715
2754
 
2716
2755
  var MIncomeStructureAccount = /** @class */ (function () {
2717
2756
  function MIncomeStructureAccount(account, level) {
@@ -6947,6 +6986,12 @@
6947
6986
  }
6948
6987
  return false;
6949
6988
  };
6989
+ SigespService.prototype.onlyNumbers2 = function (event) {
6990
+ if (!isNaN(+event.key) || event.keyCode == 32 || event.keyCode == 8 || event.keyCode == 46) {
6991
+ return true;
6992
+ }
6993
+ return false;
6994
+ };
6950
6995
  /**
6951
6996
  * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
6952
6997
  * @param event Evento del teclado