sigesp 1.1.15-20241017 → 1.1.17-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/esm2020/lib/sigesp.service.mjs +30 -4
- package/fesm2015/sigesp.mjs +125 -47
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +125 -47
- 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/lib/sigesp.service.d.ts +10 -1
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -1925,65 +1925,88 @@ class MEstructuraPresupuestariaFive {
|
|
|
1925
1925
|
};
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
class MEstructuraPresupuestariaFiveComplete {
|
|
1928
|
+
class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
|
|
1929
1929
|
constructor(ep, level = null) {
|
|
1930
|
-
|
|
1931
|
-
this.
|
|
1932
|
-
this.
|
|
1930
|
+
super();
|
|
1931
|
+
this.codigoEstructuraProgramaticaOne = '';
|
|
1932
|
+
this.codigoEstructuraProgramaticaTwo = '';
|
|
1933
|
+
this.codigoEstructuraProgramaticaThree = '';
|
|
1934
|
+
this.codigoEstructuraProgramaticaFour = '';
|
|
1935
|
+
this.codigoEstructuraProgramaticaFive = '';
|
|
1936
|
+
this.denominacionEstructuraProgramaticaOne = '';
|
|
1937
|
+
this.denominacionEstructuraProgramaticaTwo = '';
|
|
1938
|
+
this.denominacionEstructuraProgramaticaThree = '';
|
|
1939
|
+
this.denominacionEstructuraProgramaticaFour = '';
|
|
1940
|
+
this.denominacionEstructuraProgramaticaFive = '';
|
|
1941
|
+
this.estatusClasificacion = '';
|
|
1942
|
+
this.tipo = '';
|
|
1943
|
+
this.idEmpresa = 0;
|
|
1944
|
+
this.idEnterprise = 0;
|
|
1945
|
+
this.periodoFiscal = 0;
|
|
1946
|
+
this.idEstructuraOne = 0;
|
|
1947
|
+
this.idEstructuraTwo = 0;
|
|
1948
|
+
this.idEstructuraThree = 0;
|
|
1949
|
+
this.idEstructuraFor = 0;
|
|
1950
|
+
this.idEstructuraFive = 0;
|
|
1951
|
+
this.estructura = '';
|
|
1952
|
+
this.denominacion = '';
|
|
1953
|
+
this.level = 0;
|
|
1933
1954
|
this.isNew = false;
|
|
1934
1955
|
if (ep) {
|
|
1935
|
-
this.codigoCentroCosto = ep.codcencos;
|
|
1936
1956
|
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
1937
1957
|
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
1938
1958
|
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
1939
1959
|
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
1940
|
-
this.
|
|
1960
|
+
this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
1941
1961
|
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
1942
1962
|
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
1943
1963
|
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
1944
1964
|
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
1945
|
-
this.
|
|
1965
|
+
this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
1946
1966
|
this.estatusClasificacion = ep.estcla;
|
|
1947
1967
|
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
1948
|
-
this.idEmpresa = ep.id_empresa;
|
|
1949
|
-
this.idEstructuraOne = ep.id_ep1;
|
|
1950
|
-
this.idEstructuraTwo = ep.id_ep2;
|
|
1951
|
-
this.idEstructuraThree = ep.id_ep3;
|
|
1952
|
-
this.idEstructuraFor = ep.id_ep4
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
}
|
|
1960
|
-
else {
|
|
1961
|
-
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
1962
|
-
this.denominacion = this.denominacionEstructuraProgramatica;
|
|
1963
|
-
}
|
|
1968
|
+
this.idEmpresa = +ep.id_empresa;
|
|
1969
|
+
this.idEstructuraOne = +ep.id_ep1;
|
|
1970
|
+
this.idEstructuraTwo = +ep.id_ep2;
|
|
1971
|
+
this.idEstructuraThree = +ep.id_ep3;
|
|
1972
|
+
this.idEstructuraFor = +ep.id_ep4;
|
|
1973
|
+
;
|
|
1974
|
+
this.idEstructuraFive = +ep.id_ep5;
|
|
1975
|
+
this.level = level;
|
|
1976
|
+
if (level == 3) {
|
|
1977
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
|
|
1978
|
+
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
1964
1979
|
}
|
|
1980
|
+
else {
|
|
1981
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
1982
|
+
this.denominacion = this.denominacionEstructuraProgramaticaFive;
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
else {
|
|
1986
|
+
this.isNew = true;
|
|
1965
1987
|
}
|
|
1966
1988
|
}
|
|
1967
1989
|
dataInterface() {
|
|
1968
1990
|
return {
|
|
1969
|
-
codcencos: this.codigoCentroCosto,
|
|
1970
1991
|
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
1971
1992
|
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
1972
1993
|
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
1973
1994
|
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
1974
|
-
codestpro5: this.
|
|
1995
|
+
codestpro5: this.codigoEstructuraProgramaticaFive,
|
|
1975
1996
|
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
1976
1997
|
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
1977
1998
|
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
1978
1999
|
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
1979
|
-
denestpro5: this.
|
|
2000
|
+
denestpro5: this.denominacionEstructuraProgramaticaFive,
|
|
1980
2001
|
estcla: this.estatusClasificacion,
|
|
1981
|
-
id_empresa: this.idEmpresa,
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
2002
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2003
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2004
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
2005
|
+
id_ep1: this.idEstructuraOne.toString(),
|
|
2006
|
+
id_ep2: this.idEstructuraTwo.toString(),
|
|
2007
|
+
id_ep3: this.idEstructuraThree.toString(),
|
|
2008
|
+
id_ep4: this.idEstructuraFor.toString(),
|
|
2009
|
+
id_ep5: this.idEstructuraFive.toString(),
|
|
1987
2010
|
};
|
|
1988
2011
|
}
|
|
1989
2012
|
}
|
|
@@ -2004,6 +2027,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2004
2027
|
this.idEnterprise = 0;
|
|
2005
2028
|
this.idCentroCosto = 0;
|
|
2006
2029
|
this.periodoFical = 0;
|
|
2030
|
+
this.idUnidadAdministradora = 0;
|
|
2031
|
+
this.idDetalle = 0;
|
|
2007
2032
|
if (centroCosto) {
|
|
2008
2033
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
2009
2034
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
@@ -2011,6 +2036,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2011
2036
|
this.centro = centroCosto.codcencos;
|
|
2012
2037
|
this.denominacion = centroCosto.denominacion;
|
|
2013
2038
|
this.periodoFical = +centroCosto.perfiscal;
|
|
2039
|
+
this.idUnidadAdministradora = +centroCosto.id_uniadmin;
|
|
2040
|
+
this.idDetalle = +centroCosto.id_dt;
|
|
2014
2041
|
}
|
|
2015
2042
|
else {
|
|
2016
2043
|
this.isNew = true;
|
|
@@ -2025,6 +2052,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2025
2052
|
id_cencos: this.idCentroCosto.toString(),
|
|
2026
2053
|
codcencos: this.centro,
|
|
2027
2054
|
denominacion: this.denominacion,
|
|
2055
|
+
id_dt: this.idDetalle.toString(),
|
|
2056
|
+
id_uniadmin: this.idUnidadAdministradora.toString(),
|
|
2028
2057
|
};
|
|
2029
2058
|
}
|
|
2030
2059
|
}
|
|
@@ -2071,16 +2100,28 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2071
2100
|
this.codigoFuenteFinanciamiento = '';
|
|
2072
2101
|
this.denominacionFuenteFinanciamiento = '';
|
|
2073
2102
|
this.explicacionFuenteFinanciamiento = '';
|
|
2074
|
-
this.idEmpresa =
|
|
2103
|
+
this.idEmpresa = 0;
|
|
2104
|
+
this.idEnterprise = 0;
|
|
2075
2105
|
this.idFuenteFinanciamiento = 0;
|
|
2076
2106
|
this.periodofiscal = 0;
|
|
2107
|
+
this.idEp1 = 0;
|
|
2108
|
+
this.idEp2 = 0;
|
|
2109
|
+
this.idEp3 = 0;
|
|
2110
|
+
this.idEp4 = 0;
|
|
2111
|
+
this.idEp5 = 0;
|
|
2077
2112
|
if (fuente) {
|
|
2078
2113
|
this.codigoFuenteFinanciamiento = fuente.codigoftefin;
|
|
2079
2114
|
this.denominacionFuenteFinanciamiento = fuente.denfuefin;
|
|
2080
2115
|
this.explicacionFuenteFinanciamiento = fuente.expfuefin;
|
|
2081
|
-
this.idEmpresa = fuente.id_empresa;
|
|
2116
|
+
this.idEmpresa = +fuente.id_empresa;
|
|
2082
2117
|
this.idFuenteFinanciamiento = +fuente.id_fuefin;
|
|
2083
2118
|
this.periodofiscal = +fuente.perfiscal;
|
|
2119
|
+
this.idEnterprise = +fuente.id_enterprise;
|
|
2120
|
+
this.idEp1 = +fuente.id_ep1;
|
|
2121
|
+
this.idEp2 = +fuente.id_ep2;
|
|
2122
|
+
this.idEp3 = +fuente.id_ep3;
|
|
2123
|
+
this.idEp4 = +fuente.id_ep4;
|
|
2124
|
+
this.idEp5 = +fuente.id_ep5;
|
|
2084
2125
|
}
|
|
2085
2126
|
else {
|
|
2086
2127
|
this.isNew = true;
|
|
@@ -2091,9 +2132,15 @@ class MFuenteFinanciamiento extends MBasicModel {
|
|
|
2091
2132
|
codigoftefin: this.codigoFuenteFinanciamiento,
|
|
2092
2133
|
denfuefin: this.denominacionFuenteFinanciamiento,
|
|
2093
2134
|
expfuefin: this.explicacionFuenteFinanciamiento,
|
|
2094
|
-
id_empresa: this.idEmpresa,
|
|
2135
|
+
id_empresa: this.idEmpresa.toString(),
|
|
2136
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
2095
2137
|
id_fuefin: this.idFuenteFinanciamiento.toString(),
|
|
2096
|
-
perfiscal: this.periodofiscal.toString()
|
|
2138
|
+
perfiscal: this.periodofiscal.toString(),
|
|
2139
|
+
id_ep1: this.idEp1.toString(),
|
|
2140
|
+
id_ep2: this.idEp2.toString(),
|
|
2141
|
+
id_ep3: this.idEp3.toString(),
|
|
2142
|
+
id_ep4: this.idEp4.toString(),
|
|
2143
|
+
id_ep5: this.idEp5.toString(),
|
|
2097
2144
|
};
|
|
2098
2145
|
}
|
|
2099
2146
|
}
|
|
@@ -3734,7 +3781,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3734
3781
|
if (unidad.estructuras) {
|
|
3735
3782
|
this.estructuras = unidad.estructuras.map(e => new MEstructuras(e));
|
|
3736
3783
|
}
|
|
3737
|
-
if (unidad.
|
|
3784
|
+
if (unidad.estructuras) {
|
|
3738
3785
|
this.centroCosto = unidad.centros.map(e => new MCentroCosto(e));
|
|
3739
3786
|
}
|
|
3740
3787
|
}
|
|
@@ -3765,8 +3812,8 @@ class MEstructuras extends MBasicModel {
|
|
|
3765
3812
|
this.idEmpresa = 0;
|
|
3766
3813
|
this.fuentes = [];
|
|
3767
3814
|
if (dt) {
|
|
3768
|
-
this.cuentaContable = dt.
|
|
3769
|
-
this.cuentaPresupuestaria = dt.
|
|
3815
|
+
this.cuentaContable = dt.sc_cuenta;
|
|
3816
|
+
this.cuentaPresupuestaria = dt.spg_cuenta;
|
|
3770
3817
|
this.denominacion = dt.denominacion;
|
|
3771
3818
|
this.estructura = dt.estructura;
|
|
3772
3819
|
this.idEp1 = parseInt(dt.id_ep1);
|
|
@@ -3782,12 +3829,15 @@ class MEstructuras extends MBasicModel {
|
|
|
3782
3829
|
this.codigoEep4 = dt.codeep4;
|
|
3783
3830
|
this.codigoEep5 = dt.codeep5;
|
|
3784
3831
|
this.denominacionEstructura = dt.denestructura;
|
|
3785
|
-
this.denominacion5 = dt.
|
|
3786
|
-
this.denominacion3 = dt.
|
|
3832
|
+
this.denominacion5 = dt.denestpro5;
|
|
3833
|
+
this.denominacion3 = dt.denestpro3;
|
|
3834
|
+
this.estatus = dt.estcla;
|
|
3787
3835
|
this.idDtUni = parseInt(dt.id_dt_uniadm);
|
|
3788
3836
|
this.idEmpresa = +dt.id_empresa;
|
|
3789
3837
|
this.idEnterprise = +dt.id_enterprise;
|
|
3790
|
-
this.periodoFiscal = +dt.
|
|
3838
|
+
this.periodoFiscal = +dt.perfiscal;
|
|
3839
|
+
this.estatusClasificacion = dt.estcla;
|
|
3840
|
+
this.denominacionEstatusClasificacion = dt.denestcla;
|
|
3791
3841
|
this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
|
|
3792
3842
|
if (dt.fuentes) {
|
|
3793
3843
|
this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
|
|
@@ -3796,6 +3846,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3796
3846
|
}
|
|
3797
3847
|
dataInterface() {
|
|
3798
3848
|
return {
|
|
3849
|
+
id_empresa: this.idEmpresa.toString(),
|
|
3850
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
3851
|
+
perfiscal: this.idEnterprise.toString(),
|
|
3799
3852
|
id_ep1: this.idEp1.toString(),
|
|
3800
3853
|
id_ep2: this.idEp2.toString(),
|
|
3801
3854
|
id_ep3: this.idEp3.toString(),
|
|
@@ -3803,9 +3856,8 @@ class MEstructuras extends MBasicModel {
|
|
|
3803
3856
|
id_ep5: this.idEp5.toString(),
|
|
3804
3857
|
id_dt_uniadm: this.idDtUni.toString(),
|
|
3805
3858
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
id_perfiscal: this.idEnterprise.toString(),
|
|
3859
|
+
estcla: this.estatusClasificacion,
|
|
3860
|
+
estructura: this.estructura,
|
|
3809
3861
|
};
|
|
3810
3862
|
}
|
|
3811
3863
|
}
|
|
@@ -6663,6 +6715,16 @@ class SigespService {
|
|
|
6663
6715
|
return res;
|
|
6664
6716
|
}));
|
|
6665
6717
|
}
|
|
6718
|
+
/**
|
|
6719
|
+
* @description Obtiene el plan de cuentas
|
|
6720
|
+
* @param level Número de niveles de la configuración
|
|
6721
|
+
* @param id de la estructura el idEp3 o idEp5
|
|
6722
|
+
* @return Observable<MCuentaEgresos[]>
|
|
6723
|
+
*/
|
|
6724
|
+
planInstitucionalSPG(tipo, idEnterprise, periodoFiscal, idEP3o5, nivel) {
|
|
6725
|
+
return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}`, { headers: this.getHttpHeaders() })
|
|
6726
|
+
.pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
|
|
6727
|
+
}
|
|
6666
6728
|
/**
|
|
6667
6729
|
* @description Obtiene las cuentas por nivel de las cuenats de egresos
|
|
6668
6730
|
* @param level Número de niveles de la configuración
|
|
@@ -7027,6 +7089,22 @@ class SigespService {
|
|
|
7027
7089
|
return res;
|
|
7028
7090
|
}));
|
|
7029
7091
|
}
|
|
7092
|
+
getCentroCostoUnidadOrganizativa(tipo, idEnterprise, periodoFiscal, idUnidadAdministrativa) {
|
|
7093
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idUnidadAdministrativa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7094
|
+
if (res.success) {
|
|
7095
|
+
res.data = res.data.map(element => new MCentroCosto(element));
|
|
7096
|
+
}
|
|
7097
|
+
return res;
|
|
7098
|
+
}));
|
|
7099
|
+
}
|
|
7100
|
+
getEstructurasUnidadOrganizativa(tipo, idEnterprise, periodoFiscal, idUnidadAdministrativa) {
|
|
7101
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idUnidadAdministrativa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7102
|
+
if (res.success) {
|
|
7103
|
+
res.data = res.data.map(element => new MEstructuras(element));
|
|
7104
|
+
}
|
|
7105
|
+
return res;
|
|
7106
|
+
}));
|
|
7107
|
+
}
|
|
7030
7108
|
/**
|
|
7031
7109
|
* @description Abre el dialog de checkks
|
|
7032
7110
|
* @param columns Columnas que va a tener la tabla
|
|
@@ -7510,8 +7588,8 @@ class SigespService {
|
|
|
7510
7588
|
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
|
|
7511
7589
|
}
|
|
7512
7590
|
}
|
|
7513
|
-
getUnidadAdministrativa(tipo, idEnterprise, periodoFical) {
|
|
7514
|
-
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() })
|
|
7591
|
+
getUnidadAdministrativa(tipo, idEnterprise, periodoFical, idUnidadOrganizativa) {
|
|
7592
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFical}&id=${idUnidadOrganizativa}`, { headers: this.getHttpHeaders() })
|
|
7515
7593
|
.pipe(map((res) => {
|
|
7516
7594
|
if (res.success) {
|
|
7517
7595
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|