sigesp 1.1.16-20241017 → 1.1.18-20241018
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.
- package/esm2020/lib/core/interfaces/CentroCosto.mjs +1 -1
- package/esm2020/lib/core/interfaces/EstructuraPresupuestaria.mjs +1 -1
- package/esm2020/lib/core/interfaces/FuenteFinanciamiento.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +7 -1
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +15 -10
- package/esm2020/lib/core/models/SPG/estructuraPresupuestaria.model.mjs +57 -33
- package/esm2020/lib/core/models/SPG/fuenteFinanciamiento.model.mjs +23 -5
- package/fesm2015/sigesp.mjs +97 -45
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +97 -45
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/CentroCosto.d.ts +2 -0
- package/lib/core/interfaces/EstructuraPresupuestaria.d.ts +2 -3
- package/lib/core/interfaces/FuenteFinanciamiento.d.ts +6 -0
- package/lib/core/interfaces/Presupuesto.d.ts +7 -5
- package/lib/core/models/SCG/centroCosto.model.d.ts +2 -0
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +2 -0
- package/lib/core/models/SPG/estructuraPresupuestaria.model.d.ts +12 -11
- package/lib/core/models/SPG/fuenteFinanciamiento.model.d.ts +7 -1
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -1932,65 +1932,88 @@ class MEstructuraPresupuestariaFive {
|
|
|
1932
1932
|
};
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
1935
|
-
class MEstructuraPresupuestariaFiveComplete {
|
|
1935
|
+
class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
|
|
1936
1936
|
constructor(ep, level = null) {
|
|
1937
|
-
|
|
1938
|
-
this.
|
|
1939
|
-
this.
|
|
1937
|
+
super();
|
|
1938
|
+
this.codigoEstructuraProgramaticaOne = '';
|
|
1939
|
+
this.codigoEstructuraProgramaticaTwo = '';
|
|
1940
|
+
this.codigoEstructuraProgramaticaThree = '';
|
|
1941
|
+
this.codigoEstructuraProgramaticaFour = '';
|
|
1942
|
+
this.codigoEstructuraProgramaticaFive = '';
|
|
1943
|
+
this.denominacionEstructuraProgramaticaOne = '';
|
|
1944
|
+
this.denominacionEstructuraProgramaticaTwo = '';
|
|
1945
|
+
this.denominacionEstructuraProgramaticaThree = '';
|
|
1946
|
+
this.denominacionEstructuraProgramaticaFour = '';
|
|
1947
|
+
this.denominacionEstructuraProgramaticaFive = '';
|
|
1948
|
+
this.estatusClasificacion = '';
|
|
1949
|
+
this.tipo = '';
|
|
1950
|
+
this.idEmpresa = 0;
|
|
1951
|
+
this.idEnterprise = 0;
|
|
1952
|
+
this.periodoFiscal = 0;
|
|
1953
|
+
this.idEstructuraOne = 0;
|
|
1954
|
+
this.idEstructuraTwo = 0;
|
|
1955
|
+
this.idEstructuraThree = 0;
|
|
1956
|
+
this.idEstructuraFor = 0;
|
|
1957
|
+
this.idEstructuraFive = 0;
|
|
1958
|
+
this.estructura = '';
|
|
1959
|
+
this.denominacion = '';
|
|
1960
|
+
this.level = 0;
|
|
1940
1961
|
this.isNew = false;
|
|
1941
1962
|
if (ep) {
|
|
1942
|
-
this.codigoCentroCosto = ep.codcencos;
|
|
1943
1963
|
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
1944
1964
|
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
1945
1965
|
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
1946
1966
|
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
1947
|
-
this.
|
|
1967
|
+
this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
1948
1968
|
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
1949
1969
|
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
1950
1970
|
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
1951
1971
|
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
1952
|
-
this.
|
|
1972
|
+
this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
1953
1973
|
this.estatusClasificacion = ep.estcla;
|
|
1954
1974
|
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
1955
|
-
this.idEmpresa = ep.id_empresa;
|
|
1956
|
-
this.idEstructuraOne = ep.id_ep1;
|
|
1957
|
-
this.idEstructuraTwo = ep.id_ep2;
|
|
1958
|
-
this.idEstructuraThree = ep.id_ep3;
|
|
1959
|
-
this.idEstructuraFor = ep.id_ep4
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
}
|
|
1967
|
-
else {
|
|
1968
|
-
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
1969
|
-
this.denominacion = this.denominacionEstructuraProgramatica;
|
|
1970
|
-
}
|
|
1975
|
+
this.idEmpresa = +ep.id_empresa;
|
|
1976
|
+
this.idEstructuraOne = +ep.id_ep1;
|
|
1977
|
+
this.idEstructuraTwo = +ep.id_ep2;
|
|
1978
|
+
this.idEstructuraThree = +ep.id_ep3;
|
|
1979
|
+
this.idEstructuraFor = +ep.id_ep4;
|
|
1980
|
+
;
|
|
1981
|
+
this.idEstructuraFive = +ep.id_ep5;
|
|
1982
|
+
this.level = level;
|
|
1983
|
+
if (level == 3) {
|
|
1984
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
|
|
1985
|
+
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
1971
1986
|
}
|
|
1987
|
+
else {
|
|
1988
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
1989
|
+
this.denominacion = this.denominacionEstructuraProgramaticaFive;
|
|
1990
|
+
}
|
|
1991
|
+
}
|
|
1992
|
+
else {
|
|
1993
|
+
this.isNew = true;
|
|
1972
1994
|
}
|
|
1973
1995
|
}
|
|
1974
1996
|
dataInterface() {
|
|
1975
1997
|
return {
|
|
1976
|
-
codcencos: this.codigoCentroCosto,
|
|
1977
1998
|
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
1978
1999
|
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
1979
2000
|
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
1980
2001
|
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
1981
|
-
codestpro5: this.
|
|
2002
|
+
codestpro5: this.codigoEstructuraProgramaticaFive,
|
|
1982
2003
|
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
1983
2004
|
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
1984
2005
|
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
1985
2006
|
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
1986
|
-
denestpro5: this.
|
|
2007
|
+
denestpro5: this.denominacionEstructuraProgramaticaFive,
|
|
1987
2008
|
estcla: this.estatusClasificacion,
|
|
1988
|
-
id_empresa: this.idEmpresa,
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
2009
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2010
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2011
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
2012
|
+
id_ep1: this.idEstructuraOne.toString(),
|
|
2013
|
+
id_ep2: this.idEstructuraTwo.toString(),
|
|
2014
|
+
id_ep3: this.idEstructuraThree.toString(),
|
|
2015
|
+
id_ep4: this.idEstructuraFor.toString(),
|
|
2016
|
+
id_ep5: this.idEstructuraFive.toString(),
|
|
1994
2017
|
};
|
|
1995
2018
|
}
|
|
1996
2019
|
}
|
|
@@ -2011,6 +2034,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2011
2034
|
this.idEnterprise = 0;
|
|
2012
2035
|
this.idCentroCosto = 0;
|
|
2013
2036
|
this.periodoFical = 0;
|
|
2037
|
+
this.idUnidadAdministradora = 0;
|
|
2038
|
+
this.idDetalle = 0;
|
|
2014
2039
|
if (centroCosto) {
|
|
2015
2040
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
2016
2041
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
@@ -2018,6 +2043,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2018
2043
|
this.centro = centroCosto.codcencos;
|
|
2019
2044
|
this.denominacion = centroCosto.denominacion;
|
|
2020
2045
|
this.periodoFical = +centroCosto.perfiscal;
|
|
2046
|
+
this.idUnidadAdministradora = +centroCosto.id_uniadmin;
|
|
2047
|
+
this.idDetalle = +centroCosto.id_dt;
|
|
2021
2048
|
}
|
|
2022
2049
|
else {
|
|
2023
2050
|
this.isNew = true;
|
|
@@ -2032,6 +2059,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2032
2059
|
id_cencos: this.idCentroCosto.toString(),
|
|
2033
2060
|
codcencos: this.centro,
|
|
2034
2061
|
denominacion: this.denominacion,
|
|
2062
|
+
id_dt: this.idDetalle.toString(),
|
|
2063
|
+
id_uniadmin: this.idUnidadAdministradora.toString(),
|
|
2035
2064
|
};
|
|
2036
2065
|
}
|
|
2037
2066
|
}
|
|
@@ -2078,16 +2107,28 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2078
2107
|
this.codigoFuenteFinanciamiento = '';
|
|
2079
2108
|
this.denominacionFuenteFinanciamiento = '';
|
|
2080
2109
|
this.explicacionFuenteFinanciamiento = '';
|
|
2081
|
-
this.idEmpresa =
|
|
2110
|
+
this.idEmpresa = 0;
|
|
2111
|
+
this.idEnterprise = 0;
|
|
2082
2112
|
this.idFuenteFinanciamiento = 0;
|
|
2083
2113
|
this.periodofiscal = 0;
|
|
2114
|
+
this.idEp1 = 0;
|
|
2115
|
+
this.idEp2 = 0;
|
|
2116
|
+
this.idEp3 = 0;
|
|
2117
|
+
this.idEp4 = 0;
|
|
2118
|
+
this.idEp5 = 0;
|
|
2084
2119
|
if (fuente) {
|
|
2085
2120
|
this.codigoFuenteFinanciamiento = fuente.codigoftefin;
|
|
2086
2121
|
this.denominacionFuenteFinanciamiento = fuente.denfuefin;
|
|
2087
2122
|
this.explicacionFuenteFinanciamiento = fuente.expfuefin;
|
|
2088
|
-
this.idEmpresa = fuente.id_empresa;
|
|
2123
|
+
this.idEmpresa = +fuente.id_empresa;
|
|
2089
2124
|
this.idFuenteFinanciamiento = +fuente.id_fuefin;
|
|
2090
2125
|
this.periodofiscal = +fuente.perfiscal;
|
|
2126
|
+
this.idEnterprise = +fuente.id_enterprise;
|
|
2127
|
+
this.idEp1 = +fuente.id_ep1;
|
|
2128
|
+
this.idEp2 = +fuente.id_ep2;
|
|
2129
|
+
this.idEp3 = +fuente.id_ep3;
|
|
2130
|
+
this.idEp4 = +fuente.id_ep4;
|
|
2131
|
+
this.idEp5 = +fuente.id_ep5;
|
|
2091
2132
|
}
|
|
2092
2133
|
else {
|
|
2093
2134
|
this.isNew = true;
|
|
@@ -2098,9 +2139,15 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2098
2139
|
codigoftefin: this.codigoFuenteFinanciamiento,
|
|
2099
2140
|
denfuefin: this.denominacionFuenteFinanciamiento,
|
|
2100
2141
|
expfuefin: this.explicacionFuenteFinanciamiento,
|
|
2101
|
-
id_empresa: this.idEmpresa,
|
|
2142
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2143
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2102
2144
|
id_fuefin: this.idFuenteFinanciamiento.toString(),
|
|
2103
|
-
perfiscal: this.periodofiscal.toString()
|
|
2145
|
+
perfiscal: this.periodofiscal.toString(),
|
|
2146
|
+
id_ep1: this.idEp1.toString(),
|
|
2147
|
+
id_ep2: this.idEp2.toString(),
|
|
2148
|
+
id_ep3: this.idEp3.toString(),
|
|
2149
|
+
id_ep4: this.idEp4.toString(),
|
|
2150
|
+
id_ep5: this.idEp5.toString(),
|
|
2104
2151
|
};
|
|
2105
2152
|
}
|
|
2106
2153
|
}
|
|
@@ -3734,7 +3781,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3734
3781
|
if (unidad) {
|
|
3735
3782
|
this.idEmpresa = +unidad.id_empresa;
|
|
3736
3783
|
this.idEnterprise = +unidad.id_enterprise;
|
|
3737
|
-
this.periodoFiscal = +
|
|
3784
|
+
this.periodoFiscal = +unidad.perfiscal;
|
|
3738
3785
|
this.id = +unidad.id_uniadm;
|
|
3739
3786
|
this.codigo = unidad.coduniadm;
|
|
3740
3787
|
this.denominacion = unidad.denuniadm;
|
|
@@ -3776,8 +3823,8 @@ class MEstructuras extends MBasicModel {
|
|
|
3776
3823
|
this.idEmpresa = 0;
|
|
3777
3824
|
this.fuentes = [];
|
|
3778
3825
|
if (dt) {
|
|
3779
|
-
this.cuentaContable = dt.
|
|
3780
|
-
this.cuentaPresupuestaria = dt.
|
|
3826
|
+
this.cuentaContable = dt.sc_cuenta;
|
|
3827
|
+
this.cuentaPresupuestaria = dt.spg_cuenta;
|
|
3781
3828
|
this.denominacion = dt.denominacion;
|
|
3782
3829
|
this.estructura = dt.estructura;
|
|
3783
3830
|
this.idEp1 = parseInt(dt.id_ep1);
|
|
@@ -3793,12 +3840,15 @@ class MEstructuras extends MBasicModel {
|
|
|
3793
3840
|
this.codigoEep4 = dt.codeep4;
|
|
3794
3841
|
this.codigoEep5 = dt.codeep5;
|
|
3795
3842
|
this.denominacionEstructura = dt.denestructura;
|
|
3796
|
-
this.denominacion5 = dt.
|
|
3797
|
-
this.denominacion3 = dt.
|
|
3843
|
+
this.denominacion5 = dt.denestpro5;
|
|
3844
|
+
this.denominacion3 = dt.denestpro3;
|
|
3845
|
+
this.estatus = dt.estcla;
|
|
3798
3846
|
this.idDtUni = parseInt(dt.id_dt_uniadm);
|
|
3799
3847
|
this.idEmpresa = +dt.id_empresa;
|
|
3800
3848
|
this.idEnterprise = +dt.id_enterprise;
|
|
3801
|
-
this.periodoFiscal = +dt.
|
|
3849
|
+
this.periodoFiscal = +dt.perfiscal;
|
|
3850
|
+
this.estatusClasificacion = dt.estcla;
|
|
3851
|
+
this.denominacionEstatusClasificacion = dt.denestcla;
|
|
3802
3852
|
this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
|
|
3803
3853
|
if (dt.fuentes) {
|
|
3804
3854
|
this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
|
|
@@ -3807,6 +3857,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3807
3857
|
}
|
|
3808
3858
|
dataInterface() {
|
|
3809
3859
|
return {
|
|
3860
|
+
id_empresa: this.idEmpresa.toString(),
|
|
3861
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
3862
|
+
perfiscal: this.idEnterprise.toString(),
|
|
3810
3863
|
id_ep1: this.idEp1.toString(),
|
|
3811
3864
|
id_ep2: this.idEp2.toString(),
|
|
3812
3865
|
id_ep3: this.idEp3.toString(),
|
|
@@ -3814,9 +3867,8 @@ class MEstructuras extends MBasicModel {
|
|
|
3814
3867
|
id_ep5: this.idEp5.toString(),
|
|
3815
3868
|
id_dt_uniadm: this.idDtUni.toString(),
|
|
3816
3869
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
id_perfiscal: this.idEnterprise.toString(),
|
|
3870
|
+
estcla: this.estatusClasificacion,
|
|
3871
|
+
estructura: this.estructura,
|
|
3820
3872
|
};
|
|
3821
3873
|
}
|
|
3822
3874
|
}
|