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.
@@ -1925,65 +1925,88 @@ class MEstructuraPresupuestariaFive {
1925
1925
  };
1926
1926
  }
1927
1927
  }
1928
- class MEstructuraPresupuestariaFiveComplete {
1928
+ class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
1929
1929
  constructor(ep, level = null) {
1930
- this.estructura = null;
1931
- this.denominacion = null;
1932
- this.level = null;
1930
+ super();
1931
+ this.codigoEstructuraProgramaticaOne = '';
1932
+ this.codigoEstructuraProgramaticaTwo = '';
1933
+ this.codigoEstructuraProgramaticaThree = '';
1934
+ this.codigoEstructuraProgramaticaFour = '';
1935
+ this.codigoEstructuraProgramaticaFive = '';
1936
+ this.denominacionEstructuraProgramaticaOne = '';
1937
+ this.denominacionEstructuraProgramaticaTwo = '';
1938
+ this.denominacionEstructuraProgramaticaThree = '';
1939
+ this.denominacionEstructuraProgramaticaFour = '';
1940
+ this.denominacionEstructuraProgramaticaFive = '';
1941
+ this.estatusClasificacion = '';
1942
+ this.tipo = '';
1943
+ this.idEmpresa = 0;
1944
+ this.idEnterprise = 0;
1945
+ this.periodoFiscal = 0;
1946
+ this.idEstructuraOne = 0;
1947
+ this.idEstructuraTwo = 0;
1948
+ this.idEstructuraThree = 0;
1949
+ this.idEstructuraFor = 0;
1950
+ this.idEstructuraFive = 0;
1951
+ this.estructura = '';
1952
+ this.denominacion = '';
1953
+ this.level = 0;
1933
1954
  this.isNew = false;
1934
1955
  if (ep) {
1935
- this.codigoCentroCosto = ep.codcencos;
1936
1956
  this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1937
1957
  this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1938
1958
  this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1939
1959
  this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
1940
- this.codigoEstructuraProgramatica = ep.codestpro5 ? ep.codestpro5 : '---';
1960
+ this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
1941
1961
  this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1942
1962
  this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1943
1963
  this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1944
1964
  this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
1945
- this.denominacionEstructuraProgramatica = ep.denestpro5 ? ep.denestpro5 : '---';
1965
+ this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
1946
1966
  this.estatusClasificacion = ep.estcla;
1947
1967
  this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
1948
- this.idEmpresa = ep.id_empresa;
1949
- this.idEstructuraOne = ep.id_ep1;
1950
- this.idEstructuraTwo = ep.id_ep2;
1951
- this.idEstructuraThree = ep.id_ep3;
1952
- this.idEstructuraFor = ep.id_ep4 ? ep.id_ep4 : '0';
1953
- this.idEstructuraFive = ep.id_ep5 ? ep.id_ep5 : '0';
1954
- if (level) {
1955
- this.level = level;
1956
- if (level == 3) {
1957
- this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
1958
- this.denominacion = this.denominacionEstructuraProgramaticaThree;
1959
- }
1960
- else {
1961
- this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
1962
- this.denominacion = this.denominacionEstructuraProgramatica;
1963
- }
1968
+ this.idEmpresa = +ep.id_empresa;
1969
+ this.idEstructuraOne = +ep.id_ep1;
1970
+ this.idEstructuraTwo = +ep.id_ep2;
1971
+ this.idEstructuraThree = +ep.id_ep3;
1972
+ this.idEstructuraFor = +ep.id_ep4;
1973
+ ;
1974
+ this.idEstructuraFive = +ep.id_ep5;
1975
+ this.level = level;
1976
+ if (level == 3) {
1977
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
1978
+ this.denominacion = this.denominacionEstructuraProgramaticaThree;
1964
1979
  }
1980
+ else {
1981
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
1982
+ this.denominacion = this.denominacionEstructuraProgramaticaFive;
1983
+ }
1984
+ }
1985
+ else {
1986
+ this.isNew = true;
1965
1987
  }
1966
1988
  }
1967
1989
  dataInterface() {
1968
1990
  return {
1969
- codcencos: this.codigoCentroCosto,
1970
1991
  codestpro1: this.codigoEstructuraProgramaticaOne,
1971
1992
  codestpro2: this.codigoEstructuraProgramaticaTwo,
1972
1993
  codestpro3: this.codigoEstructuraProgramaticaThree,
1973
1994
  codestpro4: this.codigoEstructuraProgramaticaFour,
1974
- codestpro5: this.codigoEstructuraProgramatica,
1995
+ codestpro5: this.codigoEstructuraProgramaticaFive,
1975
1996
  denestpro1: this.denominacionEstructuraProgramaticaOne,
1976
1997
  denestpro2: this.denominacionEstructuraProgramaticaTwo,
1977
1998
  denestpro3: this.denominacionEstructuraProgramaticaThree,
1978
1999
  denestpro4: this.denominacionEstructuraProgramaticaFour,
1979
- denestpro5: this.denominacionEstructuraProgramatica,
2000
+ denestpro5: this.denominacionEstructuraProgramaticaFive,
1980
2001
  estcla: this.estatusClasificacion,
1981
- id_empresa: this.idEmpresa,
1982
- id_ep1: this.idEstructuraOne,
1983
- id_ep2: this.idEstructuraTwo,
1984
- id_ep3: this.idEstructuraThree,
1985
- id_ep4: this.idEstructuraFor,
1986
- id_ep5: this.idEstructuraFive,
2002
+ id_empresa: this.idEmpresa.toString(),
2003
+ id_enterprise: this.idEnterprise.toString(),
2004
+ perfiscal: this.periodoFiscal.toString(),
2005
+ id_ep1: this.idEstructuraOne.toString(),
2006
+ id_ep2: this.idEstructuraTwo.toString(),
2007
+ id_ep3: this.idEstructuraThree.toString(),
2008
+ id_ep4: this.idEstructuraFor.toString(),
2009
+ id_ep5: this.idEstructuraFive.toString(),
1987
2010
  };
1988
2011
  }
1989
2012
  }
@@ -2004,6 +2027,8 @@ class MCentroCosto extends MBasicModel {
2004
2027
  this.idEnterprise = 0;
2005
2028
  this.idCentroCosto = 0;
2006
2029
  this.periodoFical = 0;
2030
+ this.idUnidadAdministradora = 0;
2031
+ this.idDetalle = 0;
2007
2032
  if (centroCosto) {
2008
2033
  this.idEmpresa = +centroCosto.id_empresa;
2009
2034
  this.idEnterprise = +centroCosto.id_enterprise;
@@ -2011,6 +2036,8 @@ class MCentroCosto extends MBasicModel {
2011
2036
  this.centro = centroCosto.codcencos;
2012
2037
  this.denominacion = centroCosto.denominacion;
2013
2038
  this.periodoFical = +centroCosto.perfiscal;
2039
+ this.idUnidadAdministradora = +centroCosto.id_uniadmin;
2040
+ this.idDetalle = +centroCosto.id_dt;
2014
2041
  }
2015
2042
  else {
2016
2043
  this.isNew = true;
@@ -2025,6 +2052,8 @@ class MCentroCosto extends MBasicModel {
2025
2052
  id_cencos: this.idCentroCosto.toString(),
2026
2053
  codcencos: this.centro,
2027
2054
  denominacion: this.denominacion,
2055
+ id_dt: this.idDetalle.toString(),
2056
+ id_uniadmin: this.idUnidadAdministradora.toString(),
2028
2057
  };
2029
2058
  }
2030
2059
  }
@@ -2071,16 +2100,28 @@ class MFuenteFinanciamiento extends MBasicModel {
2071
2100
  this.codigoFuenteFinanciamiento = '';
2072
2101
  this.denominacionFuenteFinanciamiento = '';
2073
2102
  this.explicacionFuenteFinanciamiento = '';
2074
- this.idEmpresa = '0';
2103
+ this.idEmpresa = 0;
2104
+ this.idEnterprise = 0;
2075
2105
  this.idFuenteFinanciamiento = 0;
2076
2106
  this.periodofiscal = 0;
2107
+ this.idEp1 = 0;
2108
+ this.idEp2 = 0;
2109
+ this.idEp3 = 0;
2110
+ this.idEp4 = 0;
2111
+ this.idEp5 = 0;
2077
2112
  if (fuente) {
2078
2113
  this.codigoFuenteFinanciamiento = fuente.codigoftefin;
2079
2114
  this.denominacionFuenteFinanciamiento = fuente.denfuefin;
2080
2115
  this.explicacionFuenteFinanciamiento = fuente.expfuefin;
2081
- this.idEmpresa = fuente.id_empresa;
2116
+ this.idEmpresa = +fuente.id_empresa;
2082
2117
  this.idFuenteFinanciamiento = +fuente.id_fuefin;
2083
2118
  this.periodofiscal = +fuente.perfiscal;
2119
+ this.idEnterprise = +fuente.id_enterprise;
2120
+ this.idEp1 = +fuente.id_ep1;
2121
+ this.idEp2 = +fuente.id_ep2;
2122
+ this.idEp3 = +fuente.id_ep3;
2123
+ this.idEp4 = +fuente.id_ep4;
2124
+ this.idEp5 = +fuente.id_ep5;
2084
2125
  }
2085
2126
  else {
2086
2127
  this.isNew = true;
@@ -2091,9 +2132,15 @@ class MFuenteFinanciamiento extends MBasicModel {
2091
2132
  codigoftefin: this.codigoFuenteFinanciamiento,
2092
2133
  denfuefin: this.denominacionFuenteFinanciamiento,
2093
2134
  expfuefin: this.explicacionFuenteFinanciamiento,
2094
- id_empresa: this.idEmpresa,
2135
+ id_empresa: this.idEmpresa.toString(),
2136
+ id_enterprise: this.idEnterprise.toString(),
2095
2137
  id_fuefin: this.idFuenteFinanciamiento.toString(),
2096
- perfiscal: this.periodofiscal.toString()
2138
+ perfiscal: this.periodofiscal.toString(),
2139
+ id_ep1: this.idEp1.toString(),
2140
+ id_ep2: this.idEp2.toString(),
2141
+ id_ep3: this.idEp3.toString(),
2142
+ id_ep4: this.idEp4.toString(),
2143
+ id_ep5: this.idEp5.toString(),
2097
2144
  };
2098
2145
  }
2099
2146
  }
@@ -3765,8 +3812,8 @@ class MEstructuras extends MBasicModel {
3765
3812
  this.idEmpresa = 0;
3766
3813
  this.fuentes = [];
3767
3814
  if (dt) {
3768
- this.cuentaContable = dt.cuentacontable;
3769
- this.cuentaPresupuestaria = dt.cuentapresupuestaria;
3815
+ this.cuentaContable = dt.sc_cuenta;
3816
+ this.cuentaPresupuestaria = dt.spg_cuenta;
3770
3817
  this.denominacion = dt.denominacion;
3771
3818
  this.estructura = dt.estructura;
3772
3819
  this.idEp1 = parseInt(dt.id_ep1);
@@ -3782,12 +3829,15 @@ class MEstructuras extends MBasicModel {
3782
3829
  this.codigoEep4 = dt.codeep4;
3783
3830
  this.codigoEep5 = dt.codeep5;
3784
3831
  this.denominacionEstructura = dt.denestructura;
3785
- this.denominacion5 = dt.status;
3786
- this.denominacion3 = dt.status;
3832
+ this.denominacion5 = dt.denestpro5;
3833
+ this.denominacion3 = dt.denestpro3;
3834
+ this.estatus = dt.estcla;
3787
3835
  this.idDtUni = parseInt(dt.id_dt_uniadm);
3788
3836
  this.idEmpresa = +dt.id_empresa;
3789
3837
  this.idEnterprise = +dt.id_enterprise;
3790
- this.periodoFiscal = +dt.id_perfiscal;
3838
+ this.periodoFiscal = +dt.perfiscal;
3839
+ this.estatusClasificacion = dt.estcla;
3840
+ this.denominacionEstatusClasificacion = dt.denestcla;
3791
3841
  this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
3792
3842
  if (dt.fuentes) {
3793
3843
  this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
@@ -3796,6 +3846,9 @@ class MEstructuras extends MBasicModel {
3796
3846
  }
3797
3847
  dataInterface() {
3798
3848
  return {
3849
+ id_empresa: this.idEmpresa.toString(),
3850
+ id_enterprise: this.idEnterprise.toString(),
3851
+ perfiscal: this.idEnterprise.toString(),
3799
3852
  id_ep1: this.idEp1.toString(),
3800
3853
  id_ep2: this.idEp2.toString(),
3801
3854
  id_ep3: this.idEp3.toString(),
@@ -3803,9 +3856,8 @@ class MEstructuras extends MBasicModel {
3803
3856
  id_ep5: this.idEp5.toString(),
3804
3857
  id_dt_uniadm: this.idDtUni.toString(),
3805
3858
  id_uniadm: this.idUnidadAdministrativa.toString(),
3806
- id_empresa: this.idEmpresa.toString(),
3807
- id_enterprise: this.idEnterprise.toString(),
3808
- id_perfiscal: this.idEnterprise.toString(),
3859
+ estcla: this.estatusClasificacion,
3860
+ estructura: this.estructura,
3809
3861
  };
3810
3862
  }
3811
3863
  }