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.
@@ -1905,191 +1905,6 @@ class MConfigurationSPG {
1905
1905
  }
1906
1906
  }
1907
1907
 
1908
- class MEstructuraPresupuestariaOne {
1909
- constructor(eP) {
1910
- this.isNew = false;
1911
- this.codigoEstructuraProgramatica = eP.codestpro1;
1912
- this.denominacionEstructuraProgramatica = eP.denestpro1;
1913
- this.idEmpresa = eP.id_empresa;
1914
- this.cuentaContable = eP.sc_cuenta;
1915
- this.estatusClasificacion = eP.estcla;
1916
- this.idEstructura = eP.id_ep1;
1917
- }
1918
- }
1919
- class MEstructuraPresupuestariaTwo {
1920
- constructor(eP) {
1921
- this.isNew = false;
1922
- this.codigoEstructuraProgramatica = eP.codestpro2;
1923
- this.denominacionEstructuraProgramatica = eP.denestpro2;
1924
- this.idEmpresa = eP.id_empresa;
1925
- this.estatusClasificacion = eP.estcla;
1926
- this.idEstructuraOne = eP.id_ep1;
1927
- this.idEstructuraTwo = eP.id_ep2;
1928
- }
1929
- }
1930
- class MEstructuraPresupuestariaThree {
1931
- constructor(ep) {
1932
- this.isNew = false;
1933
- this.codigoCentroCosto = ep.codcencos;
1934
- this.codigoEstructuraProgramatica = ep.codestpro3;
1935
- this.estatusClasificacion = ep.estcla;
1936
- this.idEmpresa = ep.id_empresa;
1937
- this.idEstructuraOne = ep.id_ep1;
1938
- this.idEstructuraTwo = ep.id_ep2;
1939
- this.idEstructuraThree = ep.id_ep3;
1940
- }
1941
- }
1942
- class MEstructuraPresupuestariaThreeComplete {
1943
- constructor(ep) {
1944
- this.isNew = false;
1945
- this.idEmpresa = ep.id_empresa;
1946
- this.idEstricturaOne = ep.id_ep1;
1947
- this.idEstricturaTwo = ep.id_ep2;
1948
- this.idEstricturaThree = ep.id_ep3;
1949
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1950
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1951
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1952
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1953
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1954
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1955
- this.estatusClasificacion = ep.estcla;
1956
- }
1957
- }
1958
- class MEstructuraPresupuestariaFour {
1959
- constructor(ep) {
1960
- this.isNew = false;
1961
- this.codigoEstructuraProgramatica = ep.codestpro4;
1962
- this.denominacionEstructuraProgramatica = ep.denestpro4;
1963
- this.estatusClasificacion = ep.estcla;
1964
- this.idEmpresa = ep.id_empresa;
1965
- this.idEstructuraOne = ep.id_ep1;
1966
- this.idEstructuraTwo = ep.id_ep2;
1967
- this.idEstructuraThree = ep.id_ep3;
1968
- this.idEstructuraFour = ep.id_ep4;
1969
- }
1970
- }
1971
- class MEstructuraPresupuestariaFive {
1972
- constructor(ep) {
1973
- this.isNew = false;
1974
- this.idEmpresa = ep.id_empresa;
1975
- this.idEstructuraOne = ep.id_ep1;
1976
- this.idEstructuraTwo = ep.id_ep2;
1977
- this.idEstructuraThree = ep.id_ep3;
1978
- this.idEstructuraFour = ep.id_ep4;
1979
- this.idEstructuraFive = ep.id_ep5;
1980
- this.codigoEstructuraProgramatica = ep.codestpro5;
1981
- this.denominacionEstructuraProgramatica = ep.denestpro5;
1982
- this.estatusClasificacion = ep.estcla;
1983
- }
1984
- dataInterface() {
1985
- return {
1986
- id_empresa: this.idEmpresa,
1987
- id_ep1: this.idEstructuraOne,
1988
- id_ep2: this.idEstructuraTwo,
1989
- id_ep3: this.idEstructuraThree,
1990
- id_ep4: this.idEstructuraFour,
1991
- id_ep5: this.idEstructuraFive,
1992
- codestpro5: this.codigoEstructuraProgramatica,
1993
- denestpro5: this.denominacionEstructuraProgramatica,
1994
- estcla: this.estatusClasificacion,
1995
- };
1996
- }
1997
- }
1998
- class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
1999
- constructor(ep, level = null) {
2000
- super();
2001
- this.codigoEstructuraProgramaticaOne = '';
2002
- this.codigoEstructuraProgramaticaTwo = '';
2003
- this.codigoEstructuraProgramaticaThree = '';
2004
- this.codigoEstructuraProgramaticaFour = '';
2005
- this.codigoEstructuraProgramaticaFive = '';
2006
- this.denominacionEstructuraProgramaticaOne = '';
2007
- this.denominacionEstructuraProgramaticaTwo = '';
2008
- this.denominacionEstructuraProgramaticaThree = '';
2009
- this.denominacionEstructuraProgramaticaFour = '';
2010
- this.denominacionEstructuraProgramaticaFive = '';
2011
- this.estatusClasificacion = '';
2012
- this.tipo = '';
2013
- this.idEmpresa = 0;
2014
- this.idEnterprise = 0;
2015
- this.periodoFiscal = 0;
2016
- this.idEstructuraOne = 0;
2017
- this.idEstructuraTwo = 0;
2018
- this.idEstructuraThree = 0;
2019
- this.idEstructuraFor = 0;
2020
- this.idEstructuraFive = 0;
2021
- this.estructura = '';
2022
- this.denominacion = '';
2023
- this.level = 0;
2024
- this.isNew = false;
2025
- if (ep) {
2026
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
2027
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
2028
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
2029
- this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
2030
- this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
2031
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
2032
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
2033
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
2034
- this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
2035
- this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
2036
- this.estatusClasificacion = ep.estcla;
2037
- this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
2038
- this.idEmpresa = +ep.id_empresa;
2039
- this.idEstructuraOne = +ep.id_ep1;
2040
- this.idEstructuraTwo = +ep.id_ep2;
2041
- this.idEstructuraThree = +ep.id_ep3;
2042
- this.idEstructuraFor = +ep.id_ep4;
2043
- ;
2044
- this.idEstructuraFive = +ep.id_ep5;
2045
- this.level = level;
2046
- if (level == 3) {
2047
- this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
2048
- this.denominacion = this.denominacionEstructuraProgramaticaThree;
2049
- }
2050
- else {
2051
- this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
2052
- this.denominacion = this.denominacionEstructuraProgramaticaFive;
2053
- }
2054
- }
2055
- else {
2056
- this.isNew = true;
2057
- }
2058
- }
2059
- dataInterface() {
2060
- return {
2061
- codestpro1: this.codigoEstructuraProgramaticaOne,
2062
- codestpro2: this.codigoEstructuraProgramaticaTwo,
2063
- codestpro3: this.codigoEstructuraProgramaticaThree,
2064
- codestpro4: this.codigoEstructuraProgramaticaFour,
2065
- codestpro5: this.codigoEstructuraProgramaticaFive,
2066
- denestpro1: this.denominacionEstructuraProgramaticaOne,
2067
- denestpro2: this.denominacionEstructuraProgramaticaTwo,
2068
- denestpro3: this.denominacionEstructuraProgramaticaThree,
2069
- denestpro4: this.denominacionEstructuraProgramaticaFour,
2070
- denestpro5: this.denominacionEstructuraProgramaticaFive,
2071
- estcla: this.estatusClasificacion,
2072
- id_empresa: this.idEmpresa.toString(),
2073
- id_enterprise: this.idEnterprise.toString(),
2074
- perfiscal: this.periodoFiscal.toString(),
2075
- id_ep1: this.idEstructuraOne.toString(),
2076
- id_ep2: this.idEstructuraTwo.toString(),
2077
- id_ep3: this.idEstructuraThree.toString(),
2078
- id_ep4: this.idEstructuraFor.toString(),
2079
- id_ep5: this.idEstructuraFive.toString(),
2080
- };
2081
- }
2082
- }
2083
- class MAllStructure {
2084
- constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
2085
- this.structureOne = structureOne;
2086
- this.structureTwo = structureTwo;
2087
- this.structureThree = structureThree;
2088
- this.structureFour = structureFour;
2089
- this.structureFive = structureFive;
2090
- }
2091
- }
2092
-
2093
1908
  class MCentroCosto extends MBasicModel {
2094
1909
  constructor(centroCosto) {
2095
1910
  super();
@@ -4039,7 +3854,7 @@ class MEstructuras extends MBasicModel {
4039
3854
  return {
4040
3855
  id_empresa: this.idEmpresa.toString(),
4041
3856
  id_enterprise: this.idEnterprise.toString(),
4042
- perfiscal: this.idEnterprise.toString(),
3857
+ perfiscal: this.periodoFiscal.toString(),
4043
3858
  id_ep1: this.idEp1.toString(),
4044
3859
  id_ep2: this.idEp2.toString(),
4045
3860
  id_ep3: this.idEp3.toString(),
@@ -6912,20 +6727,10 @@ class SigespService {
6912
6727
  * @param id de la estructura el idEp3 o idEp5
6913
6728
  * @return Observable<MCuentaEgresos[]>
6914
6729
  */
6915
- planInstitucionalSPG(tipo, idEnterprise, periodoFiscal, idEP3o5, nivel) {
6730
+ planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel) {
6916
6731
  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() })
6917
6732
  .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6918
6733
  }
6919
- /**
6920
- * @description Obtiene las cuentas por nivel de las cuenats de egresos
6921
- * @param level Número de niveles de la configuración
6922
- * @param id id del nivel 3 o 5 que se va a buscar
6923
- * @return Observable<MCuentaEgresos[]>
6924
- */
6925
- getExpenseAccountsForLevel(level, id) {
6926
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?level=${level}&id=${id}`, { headers: this.getHttpHeaders() })
6927
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6928
- }
6929
6734
  /**
6930
6735
  * @description Abre el catálogo de estructura presupuesaria
6931
6736
  * @param data Data que se va a mostrar
@@ -6945,311 +6750,70 @@ class SigespService {
6945
6750
  return catalogo.afterClosed().toPromise();
6946
6751
  }
6947
6752
  /**
6948
- * @description Obtiene las cuentas de egresos
6949
- * @param onlyAvailable
6950
- * @return Observable<MCuentaEgresos[]>
6951
- */
6952
- getExpenseAccounts(onlyAvailable = false) {
6953
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php${onlyAvailable ? '?available=true' : ''}`, { headers: this.getHttpHeaders() })
6954
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6955
- }
6956
- /**
6957
- * @description Obtiene todas las estructuras presupuetsarias de las 5 tablas
6958
- * @return Promise<MAllStructure>
6959
- * @author Miguel Ramírez
6753
+ *
6754
+ * @param tipo {1,2,3,4,completa}
6755
+ * @param idEnterprise
6756
+ * @param periodoFiscal
6757
+ * @param codigo {codigo de la estructura }
6758
+ * @returns
6960
6759
  */
6961
- getAllBudgetStructure() {
6962
- return new Promise((resolve, reject) => {
6963
- this.getBudgetStructureOne().subscribe(structureOne => {
6964
- this.getBudgetStructureTwoAll().subscribe(structureTwo => {
6965
- this.getBudgetStructureThree().subscribe(structureThree => {
6966
- this.getBudgetStructureFour().subscribe(structureFour => {
6967
- this.getBudgetStructureFiveByIdEp4().subscribe(structureFive => {
6968
- resolve(new MAllStructure({
6969
- structureOne,
6970
- structureTwo,
6971
- structureThree,
6972
- structureFour,
6973
- structureFive
6974
- }));
6975
- });
6976
- });
6977
- });
6978
- });
6979
- });
6980
- });
6760
+ getBudgetStructureComplete(tipo = 'completa', idEnterprise, periodoFiscal, codigo = '') {
6761
+ 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))));
6981
6762
  }
6982
6763
  /**
6983
- * @description Obtiene la estructura completa dependiendo de la configuración
6984
- * @return Promise<any[]>
6764
+ * @description Obtiene las configuraciones de la estructura presupuestaria
6765
+ * @return Observable<MConfigurationSPG[]>
6985
6766
  * @author Miguel Ramírez
6986
- * @type= {}
6987
6767
  */
6988
- async getBudgetStructureComplete(nivel, tipo) {
6989
- return new Promise(async (resolve) => {
6990
- let data = [];
6991
- await this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
6992
- data.push(...result);
6993
- });
6994
- // await this.getBudgetStructureThreeComplete(3).subscribe(result => {
6995
- // data.push(...result)
6996
- // })
6997
- await resolve(data);
6998
- });
6768
+ getConfigurationSPG(idEnterprise, periodoFical) {
6769
+ 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])));
6999
6770
  }
7000
6771
  /**
7001
- * @description Elimina una o varias estructuras presupuestarias
7002
- * @param idStructures Id de las estructuras presupuestarias 5 que van a ser eliminadas
7003
- * @return Observable<any>
7004
- * @author Miguel Ramírez
6772
+ * @description Obtiene las configuraciones de los proveedores
6773
+ * @return Observable<MConfigurationRPC[]>
6774
+ * @author Carlos Albornoz
7005
6775
  */
7006
- deleteBudgetStructureFive(idStructures) {
7007
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6776
+ getConfigurationRPC() {
6777
+ return this.http.get(`${this.URL}/dao/rpc/proveedor_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
6778
+ if (resp.success) {
6779
+ resp.data = new MConfigurationRPC(resp.data);
6780
+ }
6781
+ return resp;
6782
+ }));
7008
6783
  }
7009
6784
  /**
7010
- * @description Actualiza una o varias estructuras 4
7011
- * @param structures Estructuras presupuestarias que van a ser actualizadas
7012
- * @return Observable<any>
7013
- * @author Miguel Ramírez
6785
+ * @description Obtiene las MConfiguracionSNO de la nomina
6786
+ * @return Observable<MConfiguracionSNO[]>
6787
+ * @date 27-07-2021
7014
6788
  */
7015
- updateBudgetStructureFive(structures) {
7016
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6789
+ getConfigurationSNO() {
6790
+ return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
6791
+ if (resp.success) {
6792
+ if (resp.data != null) {
6793
+ resp.data = resp.data.map(e => new MConfiguracionSNO(e));
6794
+ }
6795
+ else {
6796
+ resp.data = [];
6797
+ }
6798
+ }
6799
+ return resp;
6800
+ }));
7017
6801
  }
7018
- /**
7019
- * @description Agrega una o varias estructuras presupuestarias 4
7020
- * @param structures Las estructuras que van a ser registradas
7021
- * @return Observable<any>
7022
- * @author Miguel Ramírez
7023
- */
7024
- setBudgetStructureFive(structures) {
7025
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6802
+ dateToString(date) {
6803
+ return `${date.getFullYear()}-${date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`}-${date.getDate() >= 10 ? date.getDate() : `0${date.getDate()}`}`;
7026
6804
  }
7027
6805
  /**
7028
- * @description Obtiene toda la estructura presupuestaria 5
7029
- * @return Observable<MEstructuraPresupuestariaFive[]>
7030
- * @author Miguel Ramírez
7031
- * @params tipo:"sss"
6806
+ * @description Obtiene las configuraciones de Seguridad
6807
+ * @return Observable<IResponse>
6808
+ * @author Carlos Albornoz
7032
6809
  */
7033
- getBudgetStructureFive(level = null, tipo = '') {
7034
- 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))));
7035
- }
7036
- /**
7037
- * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
7038
- * @param idEp4 id de la estructura presupuestaria 4
7039
- */
7040
- getBudgetStructureFiveByIdEp4(idEp4) {
7041
- 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))));
7042
- }
7043
- /**
7044
- * @description Elimina una o varias estructuras presupuestarias
7045
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
7046
- * @return Observable<any>
7047
- * @author Miguel Ramírez
7048
- */
7049
- deleteBudgetStructureFour(idStructures) {
7050
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
7051
- }
7052
- /**
7053
- * @description Actualiza una o varias estructuras 4
7054
- * @param structures Estructuras presupuestarias que van a ser actualizadas
7055
- * @return Observable<any>
7056
- * @author Miguel Ramírez
7057
- */
7058
- updateBudgetStructureFour(structures) {
7059
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
7060
- }
7061
- /**
7062
- * @description Agrega una o varias estructuras presupuestarias 4
7063
- * @param structures Las estructuras que van a ser registradas
7064
- * @return Observable<any>
7065
- * @author Miguel Ramírez
7066
- */
7067
- setBudgetStructureFour(structures) {
7068
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
7069
- }
7070
- /**
7071
- * @description Obtiene las estructuras presupuestarias 4
7072
- * @param idEp3 Id de la estructura presupuestaria 3
7073
- * @return Observable<MEstructurapresupuestaria[]>
7074
- * @author Miguel Ramírez
7075
- */
7076
- getBudgetStructureFour(idEp3) {
7077
- 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))));
7078
- }
7079
- /**
7080
- * @description Elimina una o varias estructuras presupuestarias
7081
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
7082
- * @return Observable<any>
7083
- * @author Miguel Ramírez
7084
- */
7085
- deleteBudgetStructureThree(idStructures) {
7086
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
7087
- }
7088
- /**
7089
- * @description Actualiza una o varias estructuras 3
7090
- * @param structures Estructuras presupuestarias que van a ser actualizadas
7091
- * @return Observable<any>
7092
- * @author Miguel Ramírez
7093
- */
7094
- updateBudgetStructureThree(structures) {
7095
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
7096
- }
7097
- /**
7098
- * @description Agrega una o varias estructuras presupuestarias 3
7099
- * @param structures Las estructuras que van a ser registradas
7100
- * @return Observable<any>
7101
- * @author Miguel Ramírez
7102
- */
7103
- setBudgetStructureThree(structures) {
7104
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
7105
- }
7106
- /**
7107
- * @description Se trae la estructura presupuestaria completa hasta el nivel 3
7108
- * @return Observable<any[]>
7109
- * @author Miguel Ramírez
7110
- */
7111
- getBudgetStructureThreeComplete(level) {
7112
- 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))));
7113
- }
7114
- /**
7115
- * @description Obtiene las estructuras presupuestarias 3
7116
- * @param idEp2 Id de la estructura presupuestaria 2
7117
- * @return Observable<MEstructurapresupuestaria[]>
7118
- * @author Miguel Ramírez
7119
- */
7120
- getBudgetStructureThree(idEp2) {
7121
- 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))));
7122
- }
7123
- /**
7124
- * @description Elimina una o varias estructuras presupuestarias uno
7125
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
7126
- * @return Observable<any>
7127
- * @author Miguel Ramírez
7128
- */
7129
- deleteBudgetStructureTwo(idStructures) {
7130
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
7131
- }
7132
- /**
7133
- * @description Actualiza una estructura presupuestaria dos
7134
- * @param structure Estructura presupuestaria uno que se va a actualizar
7135
- * @return Observable<any>
7136
- */
7137
- updateBudgetStructureTwo(structure) {
7138
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, structure, { headers: this.getHttpHeaders() });
7139
- }
7140
- /**
7141
- * @description Registra las estructuras presupuestrias dos en la base de datos
7142
- * @param budgetStructures Array de estructuras presupuestaria que se van a registrar
7143
- * @return Observable<any>
7144
- * @author Miguel Ramírez
7145
- */
7146
- setBudgetStructureTwo(budgetStructures) {
7147
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
7148
- }
7149
- /**
7150
- * @description Obtiene la estructura presupuestaria
7151
- * @return Observable<MEstructuraPresupuestaria[]>
7152
- * @author Miguel Ramírez
7153
- */
7154
- getBudgetStructureTwo(idEp1) {
7155
- 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)))));
7156
- }
7157
- /**
7158
- * @description Obtiene la estructura presupuestaria
7159
- * @return Observable<MEstructuraPresupuestaria[]>
7160
- * @author Miguel Ramírez
7161
- */
7162
- getBudgetStructureTwoAll() {
7163
- 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)))));
7164
- }
7165
- /**
7166
- * @description Elimina una o varias estructuras presupuestarias uno
7167
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
7168
- * @return Observable<any>
7169
- * @author Miguel Ramírez
7170
- */
7171
- deleteBudgetStructureOne(idStructures) {
7172
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
7173
- }
7174
- /**
7175
- * @description Actualiza una estructura presupuestaria uno
7176
- * @param structure Estructura presupuestaria uno que se va a actualizar
7177
- * @return Observable<any>
7178
- */
7179
- updateBudgetStructureOne(structure) {
7180
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, structure, { headers: this.getHttpHeaders() });
7181
- }
7182
- /**
7183
- * @description Registra las estructuras presupuestrias en la base de datos
7184
- * @param budgetStructures Array de estructuras presupuestaria que s evan a registrar
7185
- * @return Observable<any>
7186
- * @author Miguel Ramírez
7187
- */
7188
- setBudgetStructureOne(budgetStructures) {
7189
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
7190
- }
7191
- /**
7192
- * @description Obtiene la estructura presupuestaria
7193
- * @return Observable<MEstructuraPresupuestaria[]>
7194
- * @author Miguel Ramírez
7195
- */
7196
- getBudgetStructureOne() {
7197
- 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)))));
7198
- }
7199
- /**
7200
- * @description Obtiene las configuraciones de la estructura presupuestaria
7201
- * @return Observable<MConfigurationSPG[]>
7202
- * @author Miguel Ramírez
7203
- */
7204
- getConfigurationSPG(idEnterprise, periodoFical) {
7205
- 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])));
7206
- }
7207
- /**
7208
- * @description Obtiene las configuraciones de los proveedores
7209
- * @return Observable<MConfigurationRPC[]>
7210
- * @author Carlos Albornoz
7211
- */
7212
- getConfigurationRPC() {
7213
- return this.http.get(`${this.URL}/dao/rpc/proveedor_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
7214
- if (resp.success) {
7215
- resp.data = new MConfigurationRPC(resp.data);
7216
- }
7217
- return resp;
7218
- }));
7219
- }
7220
- /**
7221
- * @description Obtiene las MConfiguracionSNO de la nomina
7222
- * @return Observable<MConfiguracionSNO[]>
7223
- * @date 27-07-2021
7224
- */
7225
- getConfigurationSNO() {
7226
- return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
7227
- if (resp.success) {
7228
- if (resp.data != null) {
7229
- resp.data = resp.data.map(e => new MConfiguracionSNO(e));
7230
- }
7231
- else {
7232
- resp.data = [];
7233
- }
7234
- }
7235
- return resp;
7236
- }));
7237
- }
7238
- dateToString(date) {
7239
- return `${date.getFullYear()}-${date.getMonth() + 1 >= 10 ? date.getMonth() + 1 : `0${date.getMonth() + 1}`}-${date.getDate() >= 10 ? date.getDate() : `0${date.getDate()}`}`;
7240
- }
7241
- /**
7242
- * @description Obtiene las configuraciones de Seguridad
7243
- * @return Observable<IResponse>
7244
- * @author Carlos Albornoz
7245
- */
7246
- getConfigSSS() {
7247
- return this.http.get(`${this.URL}/dao/sss/seguridad_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
7248
- if (resp.success) {
7249
- resp.data = new MConfigSSS(resp.data);
7250
- }
7251
- return resp;
7252
- }));
6810
+ getConfigSSS() {
6811
+ return this.http.get(`${this.URL}/dao/sss/seguridad_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => {
6812
+ if (resp.success) {
6813
+ resp.data = new MConfigSSS(resp.data);
6814
+ }
6815
+ return resp;
6816
+ }));
7253
6817
  }
7254
6818
  getComponents(systemCode = null, permit) {
7255
6819
  return this.http.get(`${this.URL}/dao/sss/componentes_dao.php?${systemCode ? `codsis=${systemCode}${permit ? `&permit=true` : ''}` : ''}`, { headers: this.getHttpHeaders() }).pipe(map(res => {
@@ -7707,42 +7271,6 @@ class SigespService {
7707
7271
  });
7708
7272
  return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus", "provType"], titulo, cuentas, ["Cuenta", "Denominación", "Estado", "Tipo"], ancho);
7709
7273
  }
7710
- /**
7711
- * @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
7712
- * @returns Promise<MCuentaEgresos>
7713
- * @author Carlos Albornoz
7714
- * @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
7715
- */
7716
- async openCatalogoCuentasEgreso(titulo, presupuesto = true, ancho = "1000px") {
7717
- let cuentas = [];
7718
- await this.getExpenseAccounts().toPromise().then(res => {
7719
- cuentas = res;
7720
- cuentas = cuentas.filter(e => {
7721
- return e.status == "C";
7722
- }).map(e => {
7723
- e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora";
7724
- return e;
7725
- });
7726
- });
7727
- if (presupuesto) {
7728
- return this.openCatalogoDosInputs(["cuenta", "denominacion", "estructura", "provStatus"], titulo, cuentas, [{
7729
- placeholder: "Cuenta",
7730
- property: "cuenta"
7731
- }, {
7732
- placeholder: "Estructura",
7733
- property: "estructura"
7734
- }], ["Cuenta", "Denominación", "Estructura", "Estado"], ancho);
7735
- }
7736
- else {
7737
- let filteredAccounts = [];
7738
- cuentas.forEach(c => {
7739
- if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
7740
- filteredAccounts.push(c);
7741
- }
7742
- });
7743
- return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
7744
- }
7745
- }
7746
7274
  /**
7747
7275
  * @description Abre el cátalogo de cuentas de la tabla "spi_cuentas"
7748
7276
  * @returns Promise<MCuentaIngresos>
@@ -8003,8 +7531,8 @@ class SigespService {
8003
7531
  * @return Promise<MProveedor>
8004
7532
  * @author Miguel Ramírez
8005
7533
  */
8006
- async openDialogProveedores() {
8007
- let proveedores = await this.getProveedores().toPromise();
7534
+ async openDialogProveedores(idEnterprise) {
7535
+ let proveedores = await this.getProveedores(idEnterprise).toPromise();
8008
7536
  let dialogRef = this.dialog.open(CatalogoComponent, {
8009
7537
  data: {
8010
7538
  columns: ['tipo', 'rif', 'nombre'],
@@ -8021,7 +7549,7 @@ class SigespService {
8021
7549
  * @return Observable<MProveedor[]>
8022
7550
  * @author Miguel Ramírez
8023
7551
  */
8024
- getProveedores() {
7552
+ getProveedores(idEnterprise) {
8025
7553
  let request = {
8026
7554
  operacion: 'obtenerData',
8027
7555
  sigesp_conexion: {
@@ -8029,7 +7557,7 @@ class SigespService {
8029
7557
  usuario: this.usuarioActivo.getInterface()
8030
7558
  }
8031
7559
  };
8032
- return this.http.post(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php`, request).pipe(retry(3), catchError(this.handlerError), map((res) => res.map(element => new MProveedor(element))));
7560
+ return this.http.post(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php?e=${idEnterprise}`, request).pipe(map((res) => res.map(element => new MProveedor(element))));
8033
7561
  }
8034
7562
  /**
8035
7563
  * @description Obtiene los proveedores y beneficiarios
@@ -8041,8 +7569,8 @@ class SigespService {
8041
7569
  * @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
8042
7570
  * @modificado 17-07-2023
8043
7571
  */
8044
- getProvidersAndBeneficiaries(type = 'default', destination = null, account = 'N') {
8045
- 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) => {
7572
+ getProvidersAndBeneficiaries(type = 'default', idEnterprise, destination = null, account = 'N') {
7573
+ 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) => {
8046
7574
  if (res.success) {
8047
7575
  res.data = res.data.map(e => new MProviderBeneficiary(e));
8048
7576
  }
@@ -8772,6 +8300,9 @@ class SigespService {
8772
8300
  getVerificarRelease(tipo, sistema, seccion = null) {
8773
8301
  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; }));
8774
8302
  }
8303
+ getReportePersonalizado(tipo = 'default', idEnterprise, sistema, caso) {
8304
+ 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; }));
8305
+ }
8775
8306
  }
8776
8307
  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 });
8777
8308
  SigespService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, providedIn: 'root' });
@@ -9393,6 +8924,191 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9393
8924
  }
9394
8925
  }
9395
8926
 
8927
+ class MEstructuraPresupuestariaOne {
8928
+ constructor(eP) {
8929
+ this.isNew = false;
8930
+ this.codigoEstructuraProgramatica = eP.codestpro1;
8931
+ this.denominacionEstructuraProgramatica = eP.denestpro1;
8932
+ this.idEmpresa = eP.id_empresa;
8933
+ this.cuentaContable = eP.sc_cuenta;
8934
+ this.estatusClasificacion = eP.estcla;
8935
+ this.idEstructura = eP.id_ep1;
8936
+ }
8937
+ }
8938
+ class MEstructuraPresupuestariaTwo {
8939
+ constructor(eP) {
8940
+ this.isNew = false;
8941
+ this.codigoEstructuraProgramatica = eP.codestpro2;
8942
+ this.denominacionEstructuraProgramatica = eP.denestpro2;
8943
+ this.idEmpresa = eP.id_empresa;
8944
+ this.estatusClasificacion = eP.estcla;
8945
+ this.idEstructuraOne = eP.id_ep1;
8946
+ this.idEstructuraTwo = eP.id_ep2;
8947
+ }
8948
+ }
8949
+ class MEstructuraPresupuestariaThree {
8950
+ constructor(ep) {
8951
+ this.isNew = false;
8952
+ this.codigoCentroCosto = ep.codcencos;
8953
+ this.codigoEstructuraProgramatica = ep.codestpro3;
8954
+ this.estatusClasificacion = ep.estcla;
8955
+ this.idEmpresa = ep.id_empresa;
8956
+ this.idEstructuraOne = ep.id_ep1;
8957
+ this.idEstructuraTwo = ep.id_ep2;
8958
+ this.idEstructuraThree = ep.id_ep3;
8959
+ }
8960
+ }
8961
+ class MEstructuraPresupuestariaThreeComplete {
8962
+ constructor(ep) {
8963
+ this.isNew = false;
8964
+ this.idEmpresa = ep.id_empresa;
8965
+ this.idEstricturaOne = ep.id_ep1;
8966
+ this.idEstricturaTwo = ep.id_ep2;
8967
+ this.idEstricturaThree = ep.id_ep3;
8968
+ this.codigoEstructuraProgramaticaOne = ep.codestpro1;
8969
+ this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
8970
+ this.codigoEstructuraProgramaticaThree = ep.codestpro3;
8971
+ this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
8972
+ this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
8973
+ this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
8974
+ this.estatusClasificacion = ep.estcla;
8975
+ }
8976
+ }
8977
+ class MEstructuraPresupuestariaFour {
8978
+ constructor(ep) {
8979
+ this.isNew = false;
8980
+ this.codigoEstructuraProgramatica = ep.codestpro4;
8981
+ this.denominacionEstructuraProgramatica = ep.denestpro4;
8982
+ this.estatusClasificacion = ep.estcla;
8983
+ this.idEmpresa = ep.id_empresa;
8984
+ this.idEstructuraOne = ep.id_ep1;
8985
+ this.idEstructuraTwo = ep.id_ep2;
8986
+ this.idEstructuraThree = ep.id_ep3;
8987
+ this.idEstructuraFour = ep.id_ep4;
8988
+ }
8989
+ }
8990
+ class MEstructuraPresupuestariaFive {
8991
+ constructor(ep) {
8992
+ this.isNew = false;
8993
+ this.idEmpresa = ep.id_empresa;
8994
+ this.idEstructuraOne = ep.id_ep1;
8995
+ this.idEstructuraTwo = ep.id_ep2;
8996
+ this.idEstructuraThree = ep.id_ep3;
8997
+ this.idEstructuraFour = ep.id_ep4;
8998
+ this.idEstructuraFive = ep.id_ep5;
8999
+ this.codigoEstructuraProgramatica = ep.codestpro5;
9000
+ this.denominacionEstructuraProgramatica = ep.denestpro5;
9001
+ this.estatusClasificacion = ep.estcla;
9002
+ }
9003
+ dataInterface() {
9004
+ return {
9005
+ id_empresa: this.idEmpresa,
9006
+ id_ep1: this.idEstructuraOne,
9007
+ id_ep2: this.idEstructuraTwo,
9008
+ id_ep3: this.idEstructuraThree,
9009
+ id_ep4: this.idEstructuraFour,
9010
+ id_ep5: this.idEstructuraFive,
9011
+ codestpro5: this.codigoEstructuraProgramatica,
9012
+ denestpro5: this.denominacionEstructuraProgramatica,
9013
+ estcla: this.estatusClasificacion,
9014
+ };
9015
+ }
9016
+ }
9017
+ class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
9018
+ constructor(ep, level = null) {
9019
+ super();
9020
+ this.codigoEstructuraProgramaticaOne = '';
9021
+ this.codigoEstructuraProgramaticaTwo = '';
9022
+ this.codigoEstructuraProgramaticaThree = '';
9023
+ this.codigoEstructuraProgramaticaFour = '';
9024
+ this.codigoEstructuraProgramaticaFive = '';
9025
+ this.denominacionEstructuraProgramaticaOne = '';
9026
+ this.denominacionEstructuraProgramaticaTwo = '';
9027
+ this.denominacionEstructuraProgramaticaThree = '';
9028
+ this.denominacionEstructuraProgramaticaFour = '';
9029
+ this.denominacionEstructuraProgramaticaFive = '';
9030
+ this.estatusClasificacion = '';
9031
+ this.tipo = '';
9032
+ this.idEmpresa = 0;
9033
+ this.idEnterprise = 0;
9034
+ this.periodoFiscal = 0;
9035
+ this.idEstructuraOne = 0;
9036
+ this.idEstructuraTwo = 0;
9037
+ this.idEstructuraThree = 0;
9038
+ this.idEstructuraFor = 0;
9039
+ this.idEstructuraFive = 0;
9040
+ this.estructura = '';
9041
+ this.denominacion = '';
9042
+ this.level = 0;
9043
+ this.isNew = false;
9044
+ if (ep) {
9045
+ this.codigoEstructuraProgramaticaOne = ep.codestpro1;
9046
+ this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
9047
+ this.codigoEstructuraProgramaticaThree = ep.codestpro3;
9048
+ this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
9049
+ this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
9050
+ this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
9051
+ this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
9052
+ this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
9053
+ this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
9054
+ this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
9055
+ this.estatusClasificacion = ep.estcla;
9056
+ this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
9057
+ this.idEmpresa = +ep.id_empresa;
9058
+ this.idEstructuraOne = +ep.id_ep1;
9059
+ this.idEstructuraTwo = +ep.id_ep2;
9060
+ this.idEstructuraThree = +ep.id_ep3;
9061
+ this.idEstructuraFor = +ep.id_ep4;
9062
+ ;
9063
+ this.idEstructuraFive = +ep.id_ep5;
9064
+ this.level = level;
9065
+ if (level == 3) {
9066
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
9067
+ this.denominacion = this.denominacionEstructuraProgramaticaThree;
9068
+ }
9069
+ else {
9070
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
9071
+ this.denominacion = this.denominacionEstructuraProgramaticaFive;
9072
+ }
9073
+ }
9074
+ else {
9075
+ this.isNew = true;
9076
+ }
9077
+ }
9078
+ dataInterface() {
9079
+ return {
9080
+ codestpro1: this.codigoEstructuraProgramaticaOne,
9081
+ codestpro2: this.codigoEstructuraProgramaticaTwo,
9082
+ codestpro3: this.codigoEstructuraProgramaticaThree,
9083
+ codestpro4: this.codigoEstructuraProgramaticaFour,
9084
+ codestpro5: this.codigoEstructuraProgramaticaFive,
9085
+ denestpro1: this.denominacionEstructuraProgramaticaOne,
9086
+ denestpro2: this.denominacionEstructuraProgramaticaTwo,
9087
+ denestpro3: this.denominacionEstructuraProgramaticaThree,
9088
+ denestpro4: this.denominacionEstructuraProgramaticaFour,
9089
+ denestpro5: this.denominacionEstructuraProgramaticaFive,
9090
+ estcla: this.estatusClasificacion,
9091
+ id_empresa: this.idEmpresa.toString(),
9092
+ id_enterprise: this.idEnterprise.toString(),
9093
+ perfiscal: this.periodoFiscal.toString(),
9094
+ id_ep1: this.idEstructuraOne.toString(),
9095
+ id_ep2: this.idEstructuraTwo.toString(),
9096
+ id_ep3: this.idEstructuraThree.toString(),
9097
+ id_ep4: this.idEstructuraFor.toString(),
9098
+ id_ep5: this.idEstructuraFive.toString(),
9099
+ };
9100
+ }
9101
+ }
9102
+ class MAllStructure {
9103
+ constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
9104
+ this.structureOne = structureOne;
9105
+ this.structureTwo = structureTwo;
9106
+ this.structureThree = structureThree;
9107
+ this.structureFour = structureFour;
9108
+ this.structureFive = structureFive;
9109
+ }
9110
+ }
9111
+
9396
9112
  class MPlanUnicoCuenta extends MBasicModel {
9397
9113
  constructor(plan) {
9398
9114
  super();