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