sigesp 0.9.50-20230809 → 0.9.52-20230813

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.
@@ -1624,6 +1624,21 @@
1624
1624
  this.codigoCentroCosto = ep.codcencos;
1625
1625
  this.codigoFuenteFinanciamiento = ep.codfuefin;
1626
1626
  }
1627
+ MEstructuraPresupuestariaFive.prototype.dataInterface = function () {
1628
+ return {
1629
+ id_empresa: this.idEmpresa,
1630
+ id_ep1: this.idEstructuraOne,
1631
+ id_ep2: this.idEstructuraTwo,
1632
+ id_ep3: this.idEstructuraThree,
1633
+ id_ep4: this.idEstructuraFour,
1634
+ id_ep5: this.idEstructuraFive,
1635
+ codestpro5: this.codigoEstructuraProgramatica,
1636
+ denestpro5: this.denominacionEstructuraProgramatica,
1637
+ estcla: this.estatusClasificacion,
1638
+ codcencos: this.codigoCentroCosto,
1639
+ codfuefin: this.codigoFuenteFinanciamiento,
1640
+ };
1641
+ };
1627
1642
  return MEstructuraPresupuestariaFive;
1628
1643
  }());
1629
1644
  var MEstructuraPresupuestariaFiveComplete = /** @class */ (function () {
@@ -1633,40 +1648,67 @@
1633
1648
  this.denominacion = null;
1634
1649
  this.level = null;
1635
1650
  this.isNew = false;
1636
- this.codigoCentroCosto = ep.codcencos;
1637
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1638
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1639
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1640
- this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
1641
- this.codigoEstructuraProgramatica = ep.codestpro5 ? ep.codestpro5 : '---';
1642
- this.codigoFuenteFinanciera = ep.codfuefin;
1643
- this.codigoFuenteFinancieraParaMostrar = ep.codigoftefin;
1644
- this.denominacionFueteFinanaciamiento = ep.denfuefin;
1645
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1646
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1647
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1648
- this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
1649
- this.denominacionEstructuraProgramatica = ep.denestpro5 ? ep.denestpro5 : '---';
1650
- this.estatusClasificacion = ep.estcla;
1651
- this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
1652
- this.idEmpresa = ep.id_empresa;
1653
- this.idEstructuraOne = ep.id_ep1;
1654
- this.idEstructuraTwo = ep.id_ep2;
1655
- this.idEstructuraThree = ep.id_ep3;
1656
- this.idEstructuraFor = ep.id_ep4 ? ep.id_ep4 : '0';
1657
- this.idEstructuraFive = ep.id_ep5 ? ep.id_ep5 : '0';
1658
- if (level) {
1659
- this.level = level;
1660
- if (level == 3) {
1661
- this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3;
1662
- this.denominacion = this.denominacionEstructuraProgramaticaThree;
1663
- }
1664
- else {
1665
- this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3 + "-" + ep.codestpro4 + "-" + ep.codestpro5;
1666
- this.denominacion = this.denominacionEstructuraProgramatica;
1651
+ if (ep) {
1652
+ this.codigoCentroCosto = ep.codcencos;
1653
+ this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1654
+ this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1655
+ this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1656
+ this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
1657
+ this.codigoEstructuraProgramatica = ep.codestpro5 ? ep.codestpro5 : '---';
1658
+ this.codigoFuenteFinanciera = ep.codfuefin;
1659
+ this.codigoFuenteFinancieraParaMostrar = ep.codigoftefin;
1660
+ this.denominacionFueteFinanaciamiento = ep.denfuefin;
1661
+ this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1662
+ this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1663
+ this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1664
+ this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
1665
+ this.denominacionEstructuraProgramatica = ep.denestpro5 ? ep.denestpro5 : '---';
1666
+ this.estatusClasificacion = ep.estcla;
1667
+ this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
1668
+ this.idEmpresa = ep.id_empresa;
1669
+ this.idEstructuraOne = ep.id_ep1;
1670
+ this.idEstructuraTwo = ep.id_ep2;
1671
+ this.idEstructuraThree = ep.id_ep3;
1672
+ this.idEstructuraFor = ep.id_ep4 ? ep.id_ep4 : '0';
1673
+ this.idEstructuraFive = ep.id_ep5 ? ep.id_ep5 : '0';
1674
+ if (level) {
1675
+ this.level = level;
1676
+ if (level == 3) {
1677
+ this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3;
1678
+ this.denominacion = this.denominacionEstructuraProgramaticaThree;
1679
+ }
1680
+ else {
1681
+ this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3 + "-" + ep.codestpro4 + "-" + ep.codestpro5;
1682
+ this.denominacion = this.denominacionEstructuraProgramatica;
1683
+ }
1667
1684
  }
1668
1685
  }
1669
1686
  }
1687
+ MEstructuraPresupuestariaFiveComplete.prototype.dataInterface = function () {
1688
+ return {
1689
+ codcencos: this.codigoCentroCosto,
1690
+ codestpro1: this.codigoEstructuraProgramaticaOne,
1691
+ codestpro2: this.codigoEstructuraProgramaticaTwo,
1692
+ codestpro3: this.codigoEstructuraProgramaticaThree,
1693
+ codestpro4: this.codigoEstructuraProgramaticaFour,
1694
+ codestpro5: this.codigoEstructuraProgramatica,
1695
+ codfuefin: this.codigoFuenteFinanciera,
1696
+ denestpro1: this.denominacionEstructuraProgramaticaOne,
1697
+ denestpro2: this.denominacionEstructuraProgramaticaTwo,
1698
+ denestpro3: this.denominacionEstructuraProgramaticaThree,
1699
+ denestpro4: this.denominacionEstructuraProgramaticaFour,
1700
+ denestpro5: this.denominacionEstructuraProgramatica,
1701
+ estcla: this.estatusClasificacion,
1702
+ id_empresa: this.idEmpresa,
1703
+ id_ep1: this.idEstructuraOne,
1704
+ id_ep2: this.idEstructuraTwo,
1705
+ id_ep3: this.idEstructuraThree,
1706
+ id_ep4: this.idEstructuraFor,
1707
+ id_ep5: this.idEstructuraFive,
1708
+ codigoftefin: this.codigoFuenteFinancieraParaMostrar,
1709
+ denfuefin: this.denominacionFueteFinanaciamiento,
1710
+ };
1711
+ };
1670
1712
  return MEstructuraPresupuestariaFiveComplete;
1671
1713
  }());
1672
1714
  var MAllStructure = /** @class */ (function () {