sigesp 1.1.19-20241105 → 1.1.21-20241106
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/models/SPG/administrativeUnit.model.mjs +2 -2
- package/esm2020/lib/sigesp.service.mjs +19 -304
- package/fesm2015/sigesp.mjs +245 -533
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +245 -529
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/sigesp.service.d.ts +12 -189
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -1912,191 +1912,6 @@ class MConfigurationSPG {
|
|
|
1912
1912
|
}
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
|
-
class MEstructuraPresupuestariaOne {
|
|
1916
|
-
constructor(eP) {
|
|
1917
|
-
this.isNew = false;
|
|
1918
|
-
this.codigoEstructuraProgramatica = eP.codestpro1;
|
|
1919
|
-
this.denominacionEstructuraProgramatica = eP.denestpro1;
|
|
1920
|
-
this.idEmpresa = eP.id_empresa;
|
|
1921
|
-
this.cuentaContable = eP.sc_cuenta;
|
|
1922
|
-
this.estatusClasificacion = eP.estcla;
|
|
1923
|
-
this.idEstructura = eP.id_ep1;
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
class MEstructuraPresupuestariaTwo {
|
|
1927
|
-
constructor(eP) {
|
|
1928
|
-
this.isNew = false;
|
|
1929
|
-
this.codigoEstructuraProgramatica = eP.codestpro2;
|
|
1930
|
-
this.denominacionEstructuraProgramatica = eP.denestpro2;
|
|
1931
|
-
this.idEmpresa = eP.id_empresa;
|
|
1932
|
-
this.estatusClasificacion = eP.estcla;
|
|
1933
|
-
this.idEstructuraOne = eP.id_ep1;
|
|
1934
|
-
this.idEstructuraTwo = eP.id_ep2;
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
class MEstructuraPresupuestariaThree {
|
|
1938
|
-
constructor(ep) {
|
|
1939
|
-
this.isNew = false;
|
|
1940
|
-
this.codigoCentroCosto = ep.codcencos;
|
|
1941
|
-
this.codigoEstructuraProgramatica = ep.codestpro3;
|
|
1942
|
-
this.estatusClasificacion = ep.estcla;
|
|
1943
|
-
this.idEmpresa = ep.id_empresa;
|
|
1944
|
-
this.idEstructuraOne = ep.id_ep1;
|
|
1945
|
-
this.idEstructuraTwo = ep.id_ep2;
|
|
1946
|
-
this.idEstructuraThree = ep.id_ep3;
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
class MEstructuraPresupuestariaThreeComplete {
|
|
1950
|
-
constructor(ep) {
|
|
1951
|
-
this.isNew = false;
|
|
1952
|
-
this.idEmpresa = ep.id_empresa;
|
|
1953
|
-
this.idEstricturaOne = ep.id_ep1;
|
|
1954
|
-
this.idEstricturaTwo = ep.id_ep2;
|
|
1955
|
-
this.idEstricturaThree = ep.id_ep3;
|
|
1956
|
-
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
1957
|
-
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
1958
|
-
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
1959
|
-
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
1960
|
-
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
1961
|
-
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
1962
|
-
this.estatusClasificacion = ep.estcla;
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
class MEstructuraPresupuestariaFour {
|
|
1966
|
-
constructor(ep) {
|
|
1967
|
-
this.isNew = false;
|
|
1968
|
-
this.codigoEstructuraProgramatica = ep.codestpro4;
|
|
1969
|
-
this.denominacionEstructuraProgramatica = ep.denestpro4;
|
|
1970
|
-
this.estatusClasificacion = ep.estcla;
|
|
1971
|
-
this.idEmpresa = ep.id_empresa;
|
|
1972
|
-
this.idEstructuraOne = ep.id_ep1;
|
|
1973
|
-
this.idEstructuraTwo = ep.id_ep2;
|
|
1974
|
-
this.idEstructuraThree = ep.id_ep3;
|
|
1975
|
-
this.idEstructuraFour = ep.id_ep4;
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
class MEstructuraPresupuestariaFive {
|
|
1979
|
-
constructor(ep) {
|
|
1980
|
-
this.isNew = false;
|
|
1981
|
-
this.idEmpresa = ep.id_empresa;
|
|
1982
|
-
this.idEstructuraOne = ep.id_ep1;
|
|
1983
|
-
this.idEstructuraTwo = ep.id_ep2;
|
|
1984
|
-
this.idEstructuraThree = ep.id_ep3;
|
|
1985
|
-
this.idEstructuraFour = ep.id_ep4;
|
|
1986
|
-
this.idEstructuraFive = ep.id_ep5;
|
|
1987
|
-
this.codigoEstructuraProgramatica = ep.codestpro5;
|
|
1988
|
-
this.denominacionEstructuraProgramatica = ep.denestpro5;
|
|
1989
|
-
this.estatusClasificacion = ep.estcla;
|
|
1990
|
-
}
|
|
1991
|
-
dataInterface() {
|
|
1992
|
-
return {
|
|
1993
|
-
id_empresa: this.idEmpresa,
|
|
1994
|
-
id_ep1: this.idEstructuraOne,
|
|
1995
|
-
id_ep2: this.idEstructuraTwo,
|
|
1996
|
-
id_ep3: this.idEstructuraThree,
|
|
1997
|
-
id_ep4: this.idEstructuraFour,
|
|
1998
|
-
id_ep5: this.idEstructuraFive,
|
|
1999
|
-
codestpro5: this.codigoEstructuraProgramatica,
|
|
2000
|
-
denestpro5: this.denominacionEstructuraProgramatica,
|
|
2001
|
-
estcla: this.estatusClasificacion,
|
|
2002
|
-
};
|
|
2003
|
-
}
|
|
2004
|
-
}
|
|
2005
|
-
class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
|
|
2006
|
-
constructor(ep, level = null) {
|
|
2007
|
-
super();
|
|
2008
|
-
this.codigoEstructuraProgramaticaOne = '';
|
|
2009
|
-
this.codigoEstructuraProgramaticaTwo = '';
|
|
2010
|
-
this.codigoEstructuraProgramaticaThree = '';
|
|
2011
|
-
this.codigoEstructuraProgramaticaFour = '';
|
|
2012
|
-
this.codigoEstructuraProgramaticaFive = '';
|
|
2013
|
-
this.denominacionEstructuraProgramaticaOne = '';
|
|
2014
|
-
this.denominacionEstructuraProgramaticaTwo = '';
|
|
2015
|
-
this.denominacionEstructuraProgramaticaThree = '';
|
|
2016
|
-
this.denominacionEstructuraProgramaticaFour = '';
|
|
2017
|
-
this.denominacionEstructuraProgramaticaFive = '';
|
|
2018
|
-
this.estatusClasificacion = '';
|
|
2019
|
-
this.tipo = '';
|
|
2020
|
-
this.idEmpresa = 0;
|
|
2021
|
-
this.idEnterprise = 0;
|
|
2022
|
-
this.periodoFiscal = 0;
|
|
2023
|
-
this.idEstructuraOne = 0;
|
|
2024
|
-
this.idEstructuraTwo = 0;
|
|
2025
|
-
this.idEstructuraThree = 0;
|
|
2026
|
-
this.idEstructuraFor = 0;
|
|
2027
|
-
this.idEstructuraFive = 0;
|
|
2028
|
-
this.estructura = '';
|
|
2029
|
-
this.denominacion = '';
|
|
2030
|
-
this.level = 0;
|
|
2031
|
-
this.isNew = false;
|
|
2032
|
-
if (ep) {
|
|
2033
|
-
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
2034
|
-
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
2035
|
-
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
2036
|
-
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
2037
|
-
this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
2038
|
-
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
2039
|
-
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
2040
|
-
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
2041
|
-
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
2042
|
-
this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
2043
|
-
this.estatusClasificacion = ep.estcla;
|
|
2044
|
-
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
2045
|
-
this.idEmpresa = +ep.id_empresa;
|
|
2046
|
-
this.idEstructuraOne = +ep.id_ep1;
|
|
2047
|
-
this.idEstructuraTwo = +ep.id_ep2;
|
|
2048
|
-
this.idEstructuraThree = +ep.id_ep3;
|
|
2049
|
-
this.idEstructuraFor = +ep.id_ep4;
|
|
2050
|
-
;
|
|
2051
|
-
this.idEstructuraFive = +ep.id_ep5;
|
|
2052
|
-
this.level = level;
|
|
2053
|
-
if (level == 3) {
|
|
2054
|
-
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
|
|
2055
|
-
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
2056
|
-
}
|
|
2057
|
-
else {
|
|
2058
|
-
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
2059
|
-
this.denominacion = this.denominacionEstructuraProgramaticaFive;
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
else {
|
|
2063
|
-
this.isNew = true;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
dataInterface() {
|
|
2067
|
-
return {
|
|
2068
|
-
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
2069
|
-
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
2070
|
-
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
2071
|
-
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
2072
|
-
codestpro5: this.codigoEstructuraProgramaticaFive,
|
|
2073
|
-
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
2074
|
-
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
2075
|
-
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
2076
|
-
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
2077
|
-
denestpro5: this.denominacionEstructuraProgramaticaFive,
|
|
2078
|
-
estcla: this.estatusClasificacion,
|
|
2079
|
-
id_empresa: this.idEmpresa.toString(),
|
|
2080
|
-
id_enterprise: this.idEnterprise.toString(),
|
|
2081
|
-
perfiscal: this.periodoFiscal.toString(),
|
|
2082
|
-
id_ep1: this.idEstructuraOne.toString(),
|
|
2083
|
-
id_ep2: this.idEstructuraTwo.toString(),
|
|
2084
|
-
id_ep3: this.idEstructuraThree.toString(),
|
|
2085
|
-
id_ep4: this.idEstructuraFor.toString(),
|
|
2086
|
-
id_ep5: this.idEstructuraFive.toString(),
|
|
2087
|
-
};
|
|
2088
|
-
}
|
|
2089
|
-
}
|
|
2090
|
-
class MAllStructure {
|
|
2091
|
-
constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
|
|
2092
|
-
this.structureOne = structureOne;
|
|
2093
|
-
this.structureTwo = structureTwo;
|
|
2094
|
-
this.structureThree = structureThree;
|
|
2095
|
-
this.structureFour = structureFour;
|
|
2096
|
-
this.structureFive = structureFive;
|
|
2097
|
-
}
|
|
2098
|
-
}
|
|
2099
|
-
|
|
2100
1915
|
class MCentroCosto extends MBasicModel {
|
|
2101
1916
|
constructor(centroCosto) {
|
|
2102
1917
|
super();
|
|
@@ -4050,7 +3865,7 @@ class MEstructuras extends MBasicModel {
|
|
|
4050
3865
|
return {
|
|
4051
3866
|
id_empresa: this.idEmpresa.toString(),
|
|
4052
3867
|
id_enterprise: this.idEnterprise.toString(),
|
|
4053
|
-
perfiscal: this.
|
|
3868
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
4054
3869
|
id_ep1: this.idEp1.toString(),
|
|
4055
3870
|
id_ep2: this.idEp2.toString(),
|
|
4056
3871
|
id_ep3: this.idEp3.toString(),
|
|
@@ -6923,20 +6738,10 @@ class SigespService {
|
|
|
6923
6738
|
* @param id de la estructura el idEp3 o idEp5
|
|
6924
6739
|
* @return Observable<MCuentaEgresos[]>
|
|
6925
6740
|
*/
|
|
6926
|
-
planInstitucionalSPG(tipo, idEnterprise, periodoFiscal, idEP3o5, nivel) {
|
|
6741
|
+
planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel) {
|
|
6927
6742
|
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() })
|
|
6928
6743
|
.pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
|
|
6929
6744
|
}
|
|
6930
|
-
/**
|
|
6931
|
-
* @description Obtiene las cuentas por nivel de las cuenats de egresos
|
|
6932
|
-
* @param level Número de niveles de la configuración
|
|
6933
|
-
* @param id id del nivel 3 o 5 que se va a buscar
|
|
6934
|
-
* @return Observable<MCuentaEgresos[]>
|
|
6935
|
-
*/
|
|
6936
|
-
getExpenseAccountsForLevel(level, id) {
|
|
6937
|
-
return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?level=${level}&id=${id}`, { headers: this.getHttpHeaders() })
|
|
6938
|
-
.pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
|
|
6939
|
-
}
|
|
6940
6745
|
/**
|
|
6941
6746
|
* @description Abre el catálogo de estructura presupuesaria
|
|
6942
6747
|
* @param data Data que se va a mostrar
|
|
@@ -6956,313 +6761,70 @@ class SigespService {
|
|
|
6956
6761
|
return catalogo.afterClosed().toPromise();
|
|
6957
6762
|
}
|
|
6958
6763
|
/**
|
|
6959
|
-
*
|
|
6960
|
-
* @param
|
|
6961
|
-
* @
|
|
6764
|
+
*
|
|
6765
|
+
* @param tipo {1,2,3,4,completa}
|
|
6766
|
+
* @param idEnterprise
|
|
6767
|
+
* @param periodoFiscal
|
|
6768
|
+
* @param codigo {codigo de la estructura }
|
|
6769
|
+
* @returns
|
|
6962
6770
|
*/
|
|
6963
|
-
|
|
6964
|
-
return this.http.get(`${this.URL}/dao/spg/
|
|
6965
|
-
.pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
|
|
6771
|
+
getBudgetStructureComplete(tipo = 'completa', idEnterprise, periodoFiscal, codigo = '') {
|
|
6772
|
+
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_dao.php?tipo=${tipo}$e=${idEnterprise}$per=${periodoFiscal}&cod=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((resp) => resp.data.map(e => new MEstructuras(e))));
|
|
6966
6773
|
}
|
|
6967
6774
|
/**
|
|
6968
|
-
* @description Obtiene
|
|
6969
|
-
* @return
|
|
6775
|
+
* @description Obtiene las configuraciones de la estructura presupuestaria
|
|
6776
|
+
* @return Observable<MConfigurationSPG[]>
|
|
6970
6777
|
* @author Miguel Ramírez
|
|
6971
6778
|
*/
|
|
6972
|
-
|
|
6973
|
-
return
|
|
6974
|
-
this.getBudgetStructureOne().subscribe(structureOne => {
|
|
6975
|
-
this.getBudgetStructureTwoAll().subscribe(structureTwo => {
|
|
6976
|
-
this.getBudgetStructureThree().subscribe(structureThree => {
|
|
6977
|
-
this.getBudgetStructureFour().subscribe(structureFour => {
|
|
6978
|
-
this.getBudgetStructureFiveByIdEp4().subscribe(structureFive => {
|
|
6979
|
-
resolve(new MAllStructure({
|
|
6980
|
-
structureOne,
|
|
6981
|
-
structureTwo,
|
|
6982
|
-
structureThree,
|
|
6983
|
-
structureFour,
|
|
6984
|
-
structureFive
|
|
6985
|
-
}));
|
|
6986
|
-
});
|
|
6987
|
-
});
|
|
6988
|
-
});
|
|
6989
|
-
});
|
|
6990
|
-
});
|
|
6991
|
-
});
|
|
6779
|
+
getConfigurationSPG(idEnterprise, periodoFical) {
|
|
6780
|
+
return this.http.get(`${this.URL}/dao/spg/configuracion_presupuestaria_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
6992
6781
|
}
|
|
6993
6782
|
/**
|
|
6994
|
-
* @description Obtiene
|
|
6995
|
-
* @return
|
|
6996
|
-
* @author
|
|
6997
|
-
* @type= {}
|
|
6783
|
+
* @description Obtiene las configuraciones de los proveedores
|
|
6784
|
+
* @return Observable<MConfigurationRPC[]>
|
|
6785
|
+
* @author Carlos Albornoz
|
|
6998
6786
|
*/
|
|
6999
|
-
|
|
7000
|
-
return
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
// await this.getBudgetStructureThreeComplete(3).subscribe(result => {
|
|
7007
|
-
// data.push(...result)
|
|
7008
|
-
// })
|
|
7009
|
-
yield resolve(data);
|
|
7010
|
-
}));
|
|
7011
|
-
});
|
|
6787
|
+
getConfigurationRPC() {
|
|
6788
|
+
return this.http.get(`${this.URL}/dao/rpc/proveedor_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
6789
|
+
if (resp.success) {
|
|
6790
|
+
resp.data = new MConfigurationRPC(resp.data);
|
|
6791
|
+
}
|
|
6792
|
+
return resp;
|
|
6793
|
+
}));
|
|
7012
6794
|
}
|
|
7013
6795
|
/**
|
|
7014
|
-
* @description
|
|
7015
|
-
* @
|
|
7016
|
-
* @
|
|
7017
|
-
* @author Miguel Ramírez
|
|
6796
|
+
* @description Obtiene las MConfiguracionSNO de la nomina
|
|
6797
|
+
* @return Observable<MConfiguracionSNO[]>
|
|
6798
|
+
* @date 27-07-2021
|
|
7018
6799
|
*/
|
|
7019
|
-
|
|
7020
|
-
return this.http.
|
|
6800
|
+
getConfigurationSNO() {
|
|
6801
|
+
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
6802
|
+
if (resp.success) {
|
|
6803
|
+
if (resp.data != null) {
|
|
6804
|
+
resp.data = resp.data.map(e => new MConfiguracionSNO(e));
|
|
6805
|
+
}
|
|
6806
|
+
else {
|
|
6807
|
+
resp.data = [];
|
|
6808
|
+
}
|
|
6809
|
+
}
|
|
6810
|
+
return resp;
|
|
6811
|
+
}));
|
|
7021
6812
|
}
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
* @param structures Estructuras presupuestarias que van a ser actualizadas
|
|
7025
|
-
* @return Observable<any>
|
|
7026
|
-
* @author Miguel Ramírez
|
|
7027
|
-
*/
|
|
7028
|
-
updateBudgetStructureFive(structures) {
|
|
7029
|
-
return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
|
|
6813
|
+
dateToString(date) {
|
|
6814
|
+
return `${date.getFullYear()}-${date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`}-${date.getDate() >= 10 ? date.getDate() : `0${date.getDate()}`}`;
|
|
7030
6815
|
}
|
|
7031
6816
|
/**
|
|
7032
|
-
* @description
|
|
7033
|
-
* @
|
|
7034
|
-
* @
|
|
7035
|
-
* @author Miguel Ramírez
|
|
6817
|
+
* @description Obtiene las configuraciones de Seguridad
|
|
6818
|
+
* @return Observable<IResponse>
|
|
6819
|
+
* @author Carlos Albornoz
|
|
7036
6820
|
*/
|
|
7037
|
-
|
|
7038
|
-
return this.http.
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
* @params tipo:"sss"
|
|
7045
|
-
*/
|
|
7046
|
-
getBudgetStructureFive(level = null, tipo = '') {
|
|
7047
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php?complete=true&tipo=${tipo}`, { headers: this.getHttpHeaders() }).pipe(map((resp) => resp.data.map(e => new MEstructuraPresupuestariaFiveComplete(e, level))));
|
|
7048
|
-
}
|
|
7049
|
-
/**
|
|
7050
|
-
* @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
|
|
7051
|
-
* @param idEp4 id de la estructura presupuestaria 4
|
|
7052
|
-
*/
|
|
7053
|
-
getBudgetStructureFiveByIdEp4(idEp4) {
|
|
7054
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php${idEp4 ? `?id_ep4=${idEp4}` : ''}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MEstructuraPresupuestariaFive(element))));
|
|
7055
|
-
}
|
|
7056
|
-
/**
|
|
7057
|
-
* @description Elimina una o varias estructuras presupuestarias
|
|
7058
|
-
* @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
|
|
7059
|
-
* @return Observable<any>
|
|
7060
|
-
* @author Miguel Ramírez
|
|
7061
|
-
*/
|
|
7062
|
-
deleteBudgetStructureFour(idStructures) {
|
|
7063
|
-
return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
|
|
7064
|
-
}
|
|
7065
|
-
/**
|
|
7066
|
-
* @description Actualiza una o varias estructuras 4
|
|
7067
|
-
* @param structures Estructuras presupuestarias que van a ser actualizadas
|
|
7068
|
-
* @return Observable<any>
|
|
7069
|
-
* @author Miguel Ramírez
|
|
7070
|
-
*/
|
|
7071
|
-
updateBudgetStructureFour(structures) {
|
|
7072
|
-
return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
|
|
7073
|
-
}
|
|
7074
|
-
/**
|
|
7075
|
-
* @description Agrega una o varias estructuras presupuestarias 4
|
|
7076
|
-
* @param structures Las estructuras que van a ser registradas
|
|
7077
|
-
* @return Observable<any>
|
|
7078
|
-
* @author Miguel Ramírez
|
|
7079
|
-
*/
|
|
7080
|
-
setBudgetStructureFour(structures) {
|
|
7081
|
-
return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
|
|
7082
|
-
}
|
|
7083
|
-
/**
|
|
7084
|
-
* @description Obtiene las estructuras presupuestarias 4
|
|
7085
|
-
* @param idEp3 Id de la estructura presupuestaria 3
|
|
7086
|
-
* @return Observable<MEstructurapresupuestaria[]>
|
|
7087
|
-
* @author Miguel Ramírez
|
|
7088
|
-
*/
|
|
7089
|
-
getBudgetStructureFour(idEp3) {
|
|
7090
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php${idEp3 ? `?id_ep3=${idEp3}` : ''}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MEstructuraPresupuestariaFour(element))));
|
|
7091
|
-
}
|
|
7092
|
-
/**
|
|
7093
|
-
* @description Elimina una o varias estructuras presupuestarias
|
|
7094
|
-
* @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
|
|
7095
|
-
* @return Observable<any>
|
|
7096
|
-
* @author Miguel Ramírez
|
|
7097
|
-
*/
|
|
7098
|
-
deleteBudgetStructureThree(idStructures) {
|
|
7099
|
-
return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
|
|
7100
|
-
}
|
|
7101
|
-
/**
|
|
7102
|
-
* @description Actualiza una o varias estructuras 3
|
|
7103
|
-
* @param structures Estructuras presupuestarias que van a ser actualizadas
|
|
7104
|
-
* @return Observable<any>
|
|
7105
|
-
* @author Miguel Ramírez
|
|
7106
|
-
*/
|
|
7107
|
-
updateBudgetStructureThree(structures) {
|
|
7108
|
-
return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
|
|
7109
|
-
}
|
|
7110
|
-
/**
|
|
7111
|
-
* @description Agrega una o varias estructuras presupuestarias 3
|
|
7112
|
-
* @param structures Las estructuras que van a ser registradas
|
|
7113
|
-
* @return Observable<any>
|
|
7114
|
-
* @author Miguel Ramírez
|
|
7115
|
-
*/
|
|
7116
|
-
setBudgetStructureThree(structures) {
|
|
7117
|
-
return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
|
|
7118
|
-
}
|
|
7119
|
-
/**
|
|
7120
|
-
* @description Se trae la estructura presupuestaria completa hasta el nivel 3
|
|
7121
|
-
* @return Observable<any[]>
|
|
7122
|
-
* @author Miguel Ramírez
|
|
7123
|
-
*/
|
|
7124
|
-
getBudgetStructureThreeComplete(level) {
|
|
7125
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php?complete=true`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MEstructuraPresupuestariaFiveComplete(element, level))));
|
|
7126
|
-
}
|
|
7127
|
-
/**
|
|
7128
|
-
* @description Obtiene las estructuras presupuestarias 3
|
|
7129
|
-
* @param idEp2 Id de la estructura presupuestaria 2
|
|
7130
|
-
* @return Observable<MEstructurapresupuestaria[]>
|
|
7131
|
-
* @author Miguel Ramírez
|
|
7132
|
-
*/
|
|
7133
|
-
getBudgetStructureThree(idEp2) {
|
|
7134
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php${idEp2 ? `?id_ep2=${idEp2}` : ''}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MEstructuraPresupuestariaThree(element))));
|
|
7135
|
-
}
|
|
7136
|
-
/**
|
|
7137
|
-
* @description Elimina una o varias estructuras presupuestarias uno
|
|
7138
|
-
* @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
|
|
7139
|
-
* @return Observable<any>
|
|
7140
|
-
* @author Miguel Ramírez
|
|
7141
|
-
*/
|
|
7142
|
-
deleteBudgetStructureTwo(idStructures) {
|
|
7143
|
-
return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
|
|
7144
|
-
}
|
|
7145
|
-
/**
|
|
7146
|
-
* @description Actualiza una estructura presupuestaria dos
|
|
7147
|
-
* @param structure Estructura presupuestaria uno que se va a actualizar
|
|
7148
|
-
* @return Observable<any>
|
|
7149
|
-
*/
|
|
7150
|
-
updateBudgetStructureTwo(structure) {
|
|
7151
|
-
return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, structure, { headers: this.getHttpHeaders() });
|
|
7152
|
-
}
|
|
7153
|
-
/**
|
|
7154
|
-
* @description Registra las estructuras presupuestrias dos en la base de datos
|
|
7155
|
-
* @param budgetStructures Array de estructuras presupuestaria que se van a registrar
|
|
7156
|
-
* @return Observable<any>
|
|
7157
|
-
* @author Miguel Ramírez
|
|
7158
|
-
*/
|
|
7159
|
-
setBudgetStructureTwo(budgetStructures) {
|
|
7160
|
-
return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
|
|
7161
|
-
}
|
|
7162
|
-
/**
|
|
7163
|
-
* @description Obtiene la estructura presupuestaria
|
|
7164
|
-
* @return Observable<MEstructuraPresupuestaria[]>
|
|
7165
|
-
* @author Miguel Ramírez
|
|
7166
|
-
*/
|
|
7167
|
-
getBudgetStructureTwo(idEp1) {
|
|
7168
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php?id_ep1=${idEp1}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map(((resp) => resp.data.map(element => new MEstructuraPresupuestariaTwo(element)))));
|
|
7169
|
-
}
|
|
7170
|
-
/**
|
|
7171
|
-
* @description Obtiene la estructura presupuestaria
|
|
7172
|
-
* @return Observable<MEstructuraPresupuestaria[]>
|
|
7173
|
-
* @author Miguel Ramírez
|
|
7174
|
-
*/
|
|
7175
|
-
getBudgetStructureTwoAll() {
|
|
7176
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map(((resp) => resp.data.map(element => new MEstructuraPresupuestariaTwo(element)))));
|
|
7177
|
-
}
|
|
7178
|
-
/**
|
|
7179
|
-
* @description Elimina una o varias estructuras presupuestarias uno
|
|
7180
|
-
* @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
|
|
7181
|
-
* @return Observable<any>
|
|
7182
|
-
* @author Miguel Ramírez
|
|
7183
|
-
*/
|
|
7184
|
-
deleteBudgetStructureOne(idStructures) {
|
|
7185
|
-
return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
|
|
7186
|
-
}
|
|
7187
|
-
/**
|
|
7188
|
-
* @description Actualiza una estructura presupuestaria uno
|
|
7189
|
-
* @param structure Estructura presupuestaria uno que se va a actualizar
|
|
7190
|
-
* @return Observable<any>
|
|
7191
|
-
*/
|
|
7192
|
-
updateBudgetStructureOne(structure) {
|
|
7193
|
-
return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, structure, { headers: this.getHttpHeaders() });
|
|
7194
|
-
}
|
|
7195
|
-
/**
|
|
7196
|
-
* @description Registra las estructuras presupuestrias en la base de datos
|
|
7197
|
-
* @param budgetStructures Array de estructuras presupuestaria que s evan a registrar
|
|
7198
|
-
* @return Observable<any>
|
|
7199
|
-
* @author Miguel Ramírez
|
|
7200
|
-
*/
|
|
7201
|
-
setBudgetStructureOne(budgetStructures) {
|
|
7202
|
-
return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
|
|
7203
|
-
}
|
|
7204
|
-
/**
|
|
7205
|
-
* @description Obtiene la estructura presupuestaria
|
|
7206
|
-
* @return Observable<MEstructuraPresupuestaria[]>
|
|
7207
|
-
* @author Miguel Ramírez
|
|
7208
|
-
*/
|
|
7209
|
-
getBudgetStructureOne() {
|
|
7210
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map(((resp) => resp.data.map(element => new MEstructuraPresupuestariaOne(element)))));
|
|
7211
|
-
}
|
|
7212
|
-
/**
|
|
7213
|
-
* @description Obtiene las configuraciones de la estructura presupuestaria
|
|
7214
|
-
* @return Observable<MConfigurationSPG[]>
|
|
7215
|
-
* @author Miguel Ramírez
|
|
7216
|
-
*/
|
|
7217
|
-
getConfigurationSPG(idEnterprise, periodoFical) {
|
|
7218
|
-
return this.http.get(`${this.URL}/dao/spg/configuracion_presupuestaria_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
7219
|
-
}
|
|
7220
|
-
/**
|
|
7221
|
-
* @description Obtiene las configuraciones de los proveedores
|
|
7222
|
-
* @return Observable<MConfigurationRPC[]>
|
|
7223
|
-
* @author Carlos Albornoz
|
|
7224
|
-
*/
|
|
7225
|
-
getConfigurationRPC() {
|
|
7226
|
-
return this.http.get(`${this.URL}/dao/rpc/proveedor_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
7227
|
-
if (resp.success) {
|
|
7228
|
-
resp.data = new MConfigurationRPC(resp.data);
|
|
7229
|
-
}
|
|
7230
|
-
return resp;
|
|
7231
|
-
}));
|
|
7232
|
-
}
|
|
7233
|
-
/**
|
|
7234
|
-
* @description Obtiene las MConfiguracionSNO de la nomina
|
|
7235
|
-
* @return Observable<MConfiguracionSNO[]>
|
|
7236
|
-
* @date 27-07-2021
|
|
7237
|
-
*/
|
|
7238
|
-
getConfigurationSNO() {
|
|
7239
|
-
return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
7240
|
-
if (resp.success) {
|
|
7241
|
-
if (resp.data != null) {
|
|
7242
|
-
resp.data = resp.data.map(e => new MConfiguracionSNO(e));
|
|
7243
|
-
}
|
|
7244
|
-
else {
|
|
7245
|
-
resp.data = [];
|
|
7246
|
-
}
|
|
7247
|
-
}
|
|
7248
|
-
return resp;
|
|
7249
|
-
}));
|
|
7250
|
-
}
|
|
7251
|
-
dateToString(date) {
|
|
7252
|
-
return `${date.getFullYear()}-${date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`}-${date.getDate() >= 10 ? date.getDate() : `0${date.getDate()}`}`;
|
|
7253
|
-
}
|
|
7254
|
-
/**
|
|
7255
|
-
* @description Obtiene las configuraciones de Seguridad
|
|
7256
|
-
* @return Observable<IResponse>
|
|
7257
|
-
* @author Carlos Albornoz
|
|
7258
|
-
*/
|
|
7259
|
-
getConfigSSS() {
|
|
7260
|
-
return this.http.get(`${this.URL}/dao/sss/seguridad_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
7261
|
-
if (resp.success) {
|
|
7262
|
-
resp.data = new MConfigSSS(resp.data);
|
|
7263
|
-
}
|
|
7264
|
-
return resp;
|
|
7265
|
-
}));
|
|
6821
|
+
getConfigSSS() {
|
|
6822
|
+
return this.http.get(`${this.URL}/dao/sss/seguridad_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
|
|
6823
|
+
if (resp.success) {
|
|
6824
|
+
resp.data = new MConfigSSS(resp.data);
|
|
6825
|
+
}
|
|
6826
|
+
return resp;
|
|
6827
|
+
}));
|
|
7266
6828
|
}
|
|
7267
6829
|
getComponents(systemCode = null, permit) {
|
|
7268
6830
|
return this.http.get(`${this.URL}/dao/sss/componentes_dao.php?${systemCode ? `codsis=${systemCode}${permit ? `&permit=true` : ''}` : ''}`, { headers: this.getHttpHeaders() }).pipe(map(res => {
|
|
@@ -7736,44 +7298,6 @@ class SigespService {
|
|
|
7736
7298
|
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus", "provType"], titulo, cuentas, ["Cuenta", "Denominación", "Estado", "Tipo"], ancho);
|
|
7737
7299
|
});
|
|
7738
7300
|
}
|
|
7739
|
-
/**
|
|
7740
|
-
* @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
|
|
7741
|
-
* @returns Promise<MCuentaEgresos>
|
|
7742
|
-
* @author Carlos Albornoz
|
|
7743
|
-
* @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
|
|
7744
|
-
*/
|
|
7745
|
-
openCatalogoCuentasEgreso(titulo, presupuesto = true, ancho = "1000px") {
|
|
7746
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7747
|
-
let cuentas = [];
|
|
7748
|
-
yield this.getExpenseAccounts().toPromise().then(res => {
|
|
7749
|
-
cuentas = res;
|
|
7750
|
-
cuentas = cuentas.filter(e => {
|
|
7751
|
-
return e.status == "C";
|
|
7752
|
-
}).map(e => {
|
|
7753
|
-
e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora";
|
|
7754
|
-
return e;
|
|
7755
|
-
});
|
|
7756
|
-
});
|
|
7757
|
-
if (presupuesto) {
|
|
7758
|
-
return this.openCatalogoDosInputs(["cuenta", "denominacion", "estructura", "provStatus"], titulo, cuentas, [{
|
|
7759
|
-
placeholder: "Cuenta",
|
|
7760
|
-
property: "cuenta"
|
|
7761
|
-
}, {
|
|
7762
|
-
placeholder: "Estructura",
|
|
7763
|
-
property: "estructura"
|
|
7764
|
-
}], ["Cuenta", "Denominación", "Estructura", "Estado"], ancho);
|
|
7765
|
-
}
|
|
7766
|
-
else {
|
|
7767
|
-
let filteredAccounts = [];
|
|
7768
|
-
cuentas.forEach(c => {
|
|
7769
|
-
if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
|
|
7770
|
-
filteredAccounts.push(c);
|
|
7771
|
-
}
|
|
7772
|
-
});
|
|
7773
|
-
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
|
|
7774
|
-
}
|
|
7775
|
-
});
|
|
7776
|
-
}
|
|
7777
7301
|
/**
|
|
7778
7302
|
* @description Abre el cátalogo de cuentas de la tabla "spi_cuentas"
|
|
7779
7303
|
* @returns Promise<MCuentaIngresos>
|
|
@@ -8036,9 +7560,9 @@ class SigespService {
|
|
|
8036
7560
|
* @return Promise<MProveedor>
|
|
8037
7561
|
* @author Miguel Ramírez
|
|
8038
7562
|
*/
|
|
8039
|
-
openDialogProveedores() {
|
|
7563
|
+
openDialogProveedores(idEnterprise) {
|
|
8040
7564
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8041
|
-
let proveedores = yield this.getProveedores().toPromise();
|
|
7565
|
+
let proveedores = yield this.getProveedores(idEnterprise).toPromise();
|
|
8042
7566
|
let dialogRef = this.dialog.open(CatalogoComponent, {
|
|
8043
7567
|
data: {
|
|
8044
7568
|
columns: ['tipo', 'rif', 'nombre'],
|
|
@@ -8056,7 +7580,7 @@ class SigespService {
|
|
|
8056
7580
|
* @return Observable<MProveedor[]>
|
|
8057
7581
|
* @author Miguel Ramírez
|
|
8058
7582
|
*/
|
|
8059
|
-
getProveedores() {
|
|
7583
|
+
getProveedores(idEnterprise) {
|
|
8060
7584
|
let request = {
|
|
8061
7585
|
operacion: 'obtenerData',
|
|
8062
7586
|
sigesp_conexion: {
|
|
@@ -8064,7 +7588,7 @@ class SigespService {
|
|
|
8064
7588
|
usuario: this.usuarioActivo.getInterface()
|
|
8065
7589
|
}
|
|
8066
7590
|
};
|
|
8067
|
-
return this.http.post(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php`, request).pipe(
|
|
7591
|
+
return this.http.post(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php?e=${idEnterprise}`, request).pipe(map((res) => res.map(element => new MProveedor(element))));
|
|
8068
7592
|
}
|
|
8069
7593
|
/**
|
|
8070
7594
|
* @description Obtiene los proveedores y beneficiarios
|
|
@@ -8076,8 +7600,8 @@ class SigespService {
|
|
|
8076
7600
|
* @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
|
|
8077
7601
|
* @modificado 17-07-2023
|
|
8078
7602
|
*/
|
|
8079
|
-
getProvidersAndBeneficiaries(type = 'default', destination = null, account = 'N') {
|
|
8080
|
-
return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7603
|
+
getProvidersAndBeneficiaries(type = 'default', idEnterprise, destination = null, account = 'N') {
|
|
7604
|
+
return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&e=${idEnterprise}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
8081
7605
|
if (res.success) {
|
|
8082
7606
|
res.data = res.data.map(e => new MProviderBeneficiary(e));
|
|
8083
7607
|
}
|
|
@@ -8811,6 +8335,9 @@ class SigespService {
|
|
|
8811
8335
|
getVerificarRelease(tipo, sistema, seccion = null) {
|
|
8812
8336
|
return this.http.get(`${this.URL}/dao/ins/instala_dao.php?tipo=${tipo}&sistema=${sistema}&seccion=${seccion}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8813
8337
|
}
|
|
8338
|
+
getReportePersonalizado(tipo = 'default', idEnterprise, sistema, caso) {
|
|
8339
|
+
return this.http.get(`${this.URL}/dao/cfg/configuracionErp_dao.php?tipo=${tipo}&e=${idEnterprise}&sis=${sistema}&cas=${caso}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res.data; }));
|
|
8340
|
+
}
|
|
8814
8341
|
}
|
|
8815
8342
|
SigespService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, deps: [{ token: i1$1.HttpClient }, { token: i1.MatDialog }, { token: i3$2.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
8816
8343
|
SigespService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, providedIn: 'root' });
|
|
@@ -9432,6 +8959,191 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9432
8959
|
}
|
|
9433
8960
|
}
|
|
9434
8961
|
|
|
8962
|
+
class MEstructuraPresupuestariaOne {
|
|
8963
|
+
constructor(eP) {
|
|
8964
|
+
this.isNew = false;
|
|
8965
|
+
this.codigoEstructuraProgramatica = eP.codestpro1;
|
|
8966
|
+
this.denominacionEstructuraProgramatica = eP.denestpro1;
|
|
8967
|
+
this.idEmpresa = eP.id_empresa;
|
|
8968
|
+
this.cuentaContable = eP.sc_cuenta;
|
|
8969
|
+
this.estatusClasificacion = eP.estcla;
|
|
8970
|
+
this.idEstructura = eP.id_ep1;
|
|
8971
|
+
}
|
|
8972
|
+
}
|
|
8973
|
+
class MEstructuraPresupuestariaTwo {
|
|
8974
|
+
constructor(eP) {
|
|
8975
|
+
this.isNew = false;
|
|
8976
|
+
this.codigoEstructuraProgramatica = eP.codestpro2;
|
|
8977
|
+
this.denominacionEstructuraProgramatica = eP.denestpro2;
|
|
8978
|
+
this.idEmpresa = eP.id_empresa;
|
|
8979
|
+
this.estatusClasificacion = eP.estcla;
|
|
8980
|
+
this.idEstructuraOne = eP.id_ep1;
|
|
8981
|
+
this.idEstructuraTwo = eP.id_ep2;
|
|
8982
|
+
}
|
|
8983
|
+
}
|
|
8984
|
+
class MEstructuraPresupuestariaThree {
|
|
8985
|
+
constructor(ep) {
|
|
8986
|
+
this.isNew = false;
|
|
8987
|
+
this.codigoCentroCosto = ep.codcencos;
|
|
8988
|
+
this.codigoEstructuraProgramatica = ep.codestpro3;
|
|
8989
|
+
this.estatusClasificacion = ep.estcla;
|
|
8990
|
+
this.idEmpresa = ep.id_empresa;
|
|
8991
|
+
this.idEstructuraOne = ep.id_ep1;
|
|
8992
|
+
this.idEstructuraTwo = ep.id_ep2;
|
|
8993
|
+
this.idEstructuraThree = ep.id_ep3;
|
|
8994
|
+
}
|
|
8995
|
+
}
|
|
8996
|
+
class MEstructuraPresupuestariaThreeComplete {
|
|
8997
|
+
constructor(ep) {
|
|
8998
|
+
this.isNew = false;
|
|
8999
|
+
this.idEmpresa = ep.id_empresa;
|
|
9000
|
+
this.idEstricturaOne = ep.id_ep1;
|
|
9001
|
+
this.idEstricturaTwo = ep.id_ep2;
|
|
9002
|
+
this.idEstricturaThree = ep.id_ep3;
|
|
9003
|
+
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
9004
|
+
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
9005
|
+
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
9006
|
+
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
9007
|
+
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
9008
|
+
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
9009
|
+
this.estatusClasificacion = ep.estcla;
|
|
9010
|
+
}
|
|
9011
|
+
}
|
|
9012
|
+
class MEstructuraPresupuestariaFour {
|
|
9013
|
+
constructor(ep) {
|
|
9014
|
+
this.isNew = false;
|
|
9015
|
+
this.codigoEstructuraProgramatica = ep.codestpro4;
|
|
9016
|
+
this.denominacionEstructuraProgramatica = ep.denestpro4;
|
|
9017
|
+
this.estatusClasificacion = ep.estcla;
|
|
9018
|
+
this.idEmpresa = ep.id_empresa;
|
|
9019
|
+
this.idEstructuraOne = ep.id_ep1;
|
|
9020
|
+
this.idEstructuraTwo = ep.id_ep2;
|
|
9021
|
+
this.idEstructuraThree = ep.id_ep3;
|
|
9022
|
+
this.idEstructuraFour = ep.id_ep4;
|
|
9023
|
+
}
|
|
9024
|
+
}
|
|
9025
|
+
class MEstructuraPresupuestariaFive {
|
|
9026
|
+
constructor(ep) {
|
|
9027
|
+
this.isNew = false;
|
|
9028
|
+
this.idEmpresa = ep.id_empresa;
|
|
9029
|
+
this.idEstructuraOne = ep.id_ep1;
|
|
9030
|
+
this.idEstructuraTwo = ep.id_ep2;
|
|
9031
|
+
this.idEstructuraThree = ep.id_ep3;
|
|
9032
|
+
this.idEstructuraFour = ep.id_ep4;
|
|
9033
|
+
this.idEstructuraFive = ep.id_ep5;
|
|
9034
|
+
this.codigoEstructuraProgramatica = ep.codestpro5;
|
|
9035
|
+
this.denominacionEstructuraProgramatica = ep.denestpro5;
|
|
9036
|
+
this.estatusClasificacion = ep.estcla;
|
|
9037
|
+
}
|
|
9038
|
+
dataInterface() {
|
|
9039
|
+
return {
|
|
9040
|
+
id_empresa: this.idEmpresa,
|
|
9041
|
+
id_ep1: this.idEstructuraOne,
|
|
9042
|
+
id_ep2: this.idEstructuraTwo,
|
|
9043
|
+
id_ep3: this.idEstructuraThree,
|
|
9044
|
+
id_ep4: this.idEstructuraFour,
|
|
9045
|
+
id_ep5: this.idEstructuraFive,
|
|
9046
|
+
codestpro5: this.codigoEstructuraProgramatica,
|
|
9047
|
+
denestpro5: this.denominacionEstructuraProgramatica,
|
|
9048
|
+
estcla: this.estatusClasificacion,
|
|
9049
|
+
};
|
|
9050
|
+
}
|
|
9051
|
+
}
|
|
9052
|
+
class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
|
|
9053
|
+
constructor(ep, level = null) {
|
|
9054
|
+
super();
|
|
9055
|
+
this.codigoEstructuraProgramaticaOne = '';
|
|
9056
|
+
this.codigoEstructuraProgramaticaTwo = '';
|
|
9057
|
+
this.codigoEstructuraProgramaticaThree = '';
|
|
9058
|
+
this.codigoEstructuraProgramaticaFour = '';
|
|
9059
|
+
this.codigoEstructuraProgramaticaFive = '';
|
|
9060
|
+
this.denominacionEstructuraProgramaticaOne = '';
|
|
9061
|
+
this.denominacionEstructuraProgramaticaTwo = '';
|
|
9062
|
+
this.denominacionEstructuraProgramaticaThree = '';
|
|
9063
|
+
this.denominacionEstructuraProgramaticaFour = '';
|
|
9064
|
+
this.denominacionEstructuraProgramaticaFive = '';
|
|
9065
|
+
this.estatusClasificacion = '';
|
|
9066
|
+
this.tipo = '';
|
|
9067
|
+
this.idEmpresa = 0;
|
|
9068
|
+
this.idEnterprise = 0;
|
|
9069
|
+
this.periodoFiscal = 0;
|
|
9070
|
+
this.idEstructuraOne = 0;
|
|
9071
|
+
this.idEstructuraTwo = 0;
|
|
9072
|
+
this.idEstructuraThree = 0;
|
|
9073
|
+
this.idEstructuraFor = 0;
|
|
9074
|
+
this.idEstructuraFive = 0;
|
|
9075
|
+
this.estructura = '';
|
|
9076
|
+
this.denominacion = '';
|
|
9077
|
+
this.level = 0;
|
|
9078
|
+
this.isNew = false;
|
|
9079
|
+
if (ep) {
|
|
9080
|
+
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
9081
|
+
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
9082
|
+
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
9083
|
+
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
9084
|
+
this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
9085
|
+
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
9086
|
+
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
9087
|
+
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
9088
|
+
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
9089
|
+
this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
9090
|
+
this.estatusClasificacion = ep.estcla;
|
|
9091
|
+
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
9092
|
+
this.idEmpresa = +ep.id_empresa;
|
|
9093
|
+
this.idEstructuraOne = +ep.id_ep1;
|
|
9094
|
+
this.idEstructuraTwo = +ep.id_ep2;
|
|
9095
|
+
this.idEstructuraThree = +ep.id_ep3;
|
|
9096
|
+
this.idEstructuraFor = +ep.id_ep4;
|
|
9097
|
+
;
|
|
9098
|
+
this.idEstructuraFive = +ep.id_ep5;
|
|
9099
|
+
this.level = level;
|
|
9100
|
+
if (level == 3) {
|
|
9101
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
|
|
9102
|
+
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
9103
|
+
}
|
|
9104
|
+
else {
|
|
9105
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
9106
|
+
this.denominacion = this.denominacionEstructuraProgramaticaFive;
|
|
9107
|
+
}
|
|
9108
|
+
}
|
|
9109
|
+
else {
|
|
9110
|
+
this.isNew = true;
|
|
9111
|
+
}
|
|
9112
|
+
}
|
|
9113
|
+
dataInterface() {
|
|
9114
|
+
return {
|
|
9115
|
+
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
9116
|
+
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
9117
|
+
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
9118
|
+
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
9119
|
+
codestpro5: this.codigoEstructuraProgramaticaFive,
|
|
9120
|
+
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
9121
|
+
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
9122
|
+
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
9123
|
+
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
9124
|
+
denestpro5: this.denominacionEstructuraProgramaticaFive,
|
|
9125
|
+
estcla: this.estatusClasificacion,
|
|
9126
|
+
id_empresa: this.idEmpresa.toString(),
|
|
9127
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
9128
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9129
|
+
id_ep1: this.idEstructuraOne.toString(),
|
|
9130
|
+
id_ep2: this.idEstructuraTwo.toString(),
|
|
9131
|
+
id_ep3: this.idEstructuraThree.toString(),
|
|
9132
|
+
id_ep4: this.idEstructuraFor.toString(),
|
|
9133
|
+
id_ep5: this.idEstructuraFive.toString(),
|
|
9134
|
+
};
|
|
9135
|
+
}
|
|
9136
|
+
}
|
|
9137
|
+
class MAllStructure {
|
|
9138
|
+
constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
|
|
9139
|
+
this.structureOne = structureOne;
|
|
9140
|
+
this.structureTwo = structureTwo;
|
|
9141
|
+
this.structureThree = structureThree;
|
|
9142
|
+
this.structureFour = structureFour;
|
|
9143
|
+
this.structureFive = structureFive;
|
|
9144
|
+
}
|
|
9145
|
+
}
|
|
9146
|
+
|
|
9435
9147
|
class MPlanUnicoCuenta extends MBasicModel {
|
|
9436
9148
|
constructor(plan) {
|
|
9437
9149
|
super();
|