sigesp 1.1.18-20241018 → 1.1.20-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.
@@ -1142,30 +1142,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1142
1142
  args: [MatSort]
1143
1143
  }] } });
1144
1144
 
1145
- class MCuentaPresupuesto {
1146
- constructor(cuentaPresupuesto) {
1147
- this.cuenta = null;
1148
- this.denominacion = null;
1149
- this.status = null;
1150
- this.tipo = null;
1151
- this.cuenta = cuentaPresupuesto.sig_cuenta.trim();
1152
- this.denominacion = cuentaPresupuesto.denominacion;
1153
- this.status = cuentaPresupuesto.status;
1154
- this.tipo = cuentaPresupuesto.tipcta;
1145
+ class MCuentaPresupuesto extends MBasicModel {
1146
+ constructor(e) {
1147
+ super();
1148
+ this.idEmpresa = 0;
1149
+ this.idEnterprise = 0;
1150
+ this.periodoFiscal = 0;
1151
+ this.cuenta = '';
1152
+ this.denominacion = '';
1153
+ this.status = '';
1154
+ this.tipo = '';
1155
+ this.denominacionTipo = '';
1156
+ this.denominacionStatus = '';
1157
+ if (e) {
1158
+ this.idEmpresa = +e.id_empresa;
1159
+ this.idEnterprise = +e.id_enterprise;
1160
+ this.periodoFiscal = +e.perfiscal;
1161
+ this.cuenta = e.sig_cuenta;
1162
+ this.denominacion = e.denominacion;
1163
+ this.status = e.status;
1164
+ this.tipo = e.tipcta;
1165
+ e.tipcta == 'R' ? this.denominacionTipo = 'Rescurso' : this.denominacionTipo = 'Egreso';
1166
+ e.status == 'C' ? this.denominacionStatus = 'Movimiento' : this.denominacionStatus = 'Totalizadora';
1167
+ }
1168
+ else {
1169
+ this.isNew = true;
1170
+ }
1171
+ }
1172
+ dataInterface() {
1173
+ return {
1174
+ id_empresa: this.idEmpresa.toString(),
1175
+ id_enterprise: this.idEnterprise.toString(),
1176
+ perfiscal: this.periodoFiscal.toString(),
1177
+ sig_cuenta: this.cuenta,
1178
+ denominacion: this.denominacion,
1179
+ status: this.status,
1180
+ tipcta: this.tipo,
1181
+ };
1155
1182
  }
1156
1183
  }
1157
- class MCuentaEgresos$1 extends MBasicModel {
1158
- constructor(cuenta, level, isNew) {
1159
- super();
1184
+ class MCuentaEgresos$1 {
1185
+ constructor(cuenta, level) {
1160
1186
  this.idEmpresa = 0;
1161
1187
  this.idEnterprise = 0;
1162
1188
  this.periodoFiscal = 0;
1163
1189
  this.nivel = 0;
1164
1190
  this.denominacion = '';
1165
- this.cuenta = '';
1166
- this.cuentaContable = '------------';
1167
- this.cuentaONCOP = '------------';
1168
- this.clasificador = '------------';
1191
+ this.cuenta = null;
1192
+ this.cuentaContable = '';
1193
+ this.clasificador = '';
1169
1194
  this.referencia = '';
1170
1195
  this.aumento = 0;
1171
1196
  this.asignado = 0;
@@ -1191,76 +1216,113 @@ class MCuentaEgresos$1 extends MBasicModel {
1191
1216
  this.idEP3 = 0;
1192
1217
  this.idEP4 = 0;
1193
1218
  this.idEP5 = 0;
1194
- this.codestpro1 = '';
1195
- this.codestpro2 = '';
1196
- this.codestpro3 = '';
1197
- this.codestpro4 = '';
1198
- this.codestpro5 = '';
1219
+ this.codigoEP1 = '';
1220
+ this.codigoEP2 = '';
1221
+ this.codigoEP3 = '';
1222
+ this.codigoEP4 = '';
1223
+ this.codigoEP5 = '';
1199
1224
  this.estructura = '';
1200
1225
  this.selected = false;
1201
1226
  this.isNew = false;
1202
1227
  this.error = false;
1203
1228
  this.status = '';
1204
1229
  this.id = 0;
1230
+ this.distribuirFF = 0;
1205
1231
  if (cuenta) {
1206
- this.idEmpresa = parseInt(cuenta.id_empresa);
1207
- this.idEnterprise = +cuenta.id_enterprise;
1208
- this.periodoFiscal = +cuenta.perfiscal;
1209
- this.nivel = parseInt(cuenta.nivel);
1232
+ this.idEmpresa = +(cuenta.id_empresa);
1233
+ this.idEnterprise = +(cuenta.id_enterprise);
1234
+ this.periodoFiscal = +(cuenta.perfiscal);
1235
+ this.nivel = +(cuenta.nivel);
1210
1236
  this.denominacion = cuenta.denspgcta;
1211
1237
  this.cuenta = cuenta.spg_cuenta;
1212
1238
  this.cuentaContable = cuenta.sc_cuenta;
1213
1239
  this.status = cuenta.status;
1214
1240
  this.referencia = cuenta.referencia;
1215
- this.aumento = parseInt(cuenta.aumento);
1216
- this.asignado = parseInt(cuenta.asignado);
1217
- this.causado = parseInt(cuenta.causado);
1218
- this.pagado = parseInt(cuenta.pagado);
1219
- this.distribuir = parseInt(cuenta.distribuir);
1220
- this.disminucion = parseInt(cuenta.disminiucion);
1221
- this.precomprometido = parseInt(cuenta.precomprometido);
1222
- this.enero = parseInt(cuenta.enero);
1223
- this.febrero = parseInt(cuenta.febrero);
1224
- this.marzo = parseInt(cuenta.marzo);
1225
- this.abril = parseInt(cuenta.abril);
1226
- this.mayo = parseInt(cuenta.mayo);
1227
- this.junio = parseInt(cuenta.junio);
1228
- this.julio = parseInt(cuenta.julio);
1229
- this.agosto = parseInt(cuenta.agosto);
1230
- this.septiembre = parseInt(cuenta.septiembre);
1231
- this.octubre = parseInt(cuenta.octubre);
1232
- this.noviembre = parseInt(cuenta.noviembre);
1233
- this.diciembre = parseInt(cuenta.diciembre);
1241
+ this.aumento = +(cuenta.aumento);
1242
+ this.asignado = +(cuenta.asignado);
1243
+ this.causado = +(cuenta.causado);
1244
+ this.pagado = +(cuenta.pagado);
1245
+ this.distribuir = +(cuenta.distribuir);
1246
+ this.disminucion = +(cuenta.disminiucion);
1247
+ this.precomprometido = +(cuenta.precomprometido);
1248
+ this.enero = +(cuenta.enero);
1249
+ this.febrero = +(cuenta.febrero);
1250
+ this.marzo = +(cuenta.marzo);
1251
+ this.abril = +(cuenta.abril);
1252
+ this.mayo = +(cuenta.mayo);
1253
+ this.junio = +(cuenta.junio);
1254
+ this.julio = +(cuenta.julio);
1255
+ this.agosto = +(cuenta.agosto);
1256
+ this.septiembre = +(cuenta.septiembre);
1257
+ this.octubre = +(cuenta.octubre);
1258
+ this.noviembre = +(cuenta.noviembre);
1259
+ this.diciembre = +(cuenta.diciembre);
1234
1260
  this.clasificador = cuenta.codcuecla;
1235
- this.cuentaONCOP = cuenta.cueoncop;
1236
- this.idEP1 = parseInt(cuenta.id_ep1);
1237
- this.idEP2 = parseInt(cuenta.id_ep2);
1238
- this.idEP3 = parseInt(cuenta.id_ep3);
1239
- this.idEP4 = parseInt(cuenta.id_ep4);
1240
- this.idEP5 = parseInt(cuenta.id_ep5);
1241
- this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
1242
- this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
1243
- this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
1244
- this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
1245
- this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
1246
- this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
1261
+ this.idEP1 = +(cuenta.id_ep1);
1262
+ this.idEP2 = +(cuenta.id_ep2);
1263
+ this.idEP3 = +(cuenta.id_ep3);
1264
+ this.idEP4 = +(cuenta.id_ep4);
1265
+ this.idEP5 = +(cuenta.id_ep5);
1266
+ this.id = cuenta.id_del_spgcta ? +(cuenta.id_del_spgcta) : 0;
1267
+ this.codigoEP1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
1268
+ this.codigoEP2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
1269
+ this.codigoEP3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
1270
+ this.codigoEP4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
1271
+ this.codigoEP5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
1247
1272
  if (cuenta.estructura && level) {
1248
- if (level == 3) {
1249
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
1250
- }
1251
- else if (level == 4) {
1252
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
1273
+ if (this.idEP4 == 0) {
1274
+ this.estructura = `${this.codigoEP1}-${this.codigoEP2}-${this.codigoEP3}`;
1253
1275
  }
1254
1276
  else {
1255
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
1277
+ this.estructura = `${this.codigoEP1}-${this.codigoEP2}-${this.codigoEP3}-${this.codigoEP4}-${this.codigoEP5}`;
1256
1278
  }
1257
1279
  }
1280
+ this.distribuirFF = +cuenta.distff;
1258
1281
  this.isNew = false;
1259
1282
  }
1260
1283
  else {
1261
1284
  this.isNew = true;
1262
1285
  }
1263
1286
  }
1287
+ dataInterface() {
1288
+ return {
1289
+ abril: this.abril.toString(),
1290
+ agosto: this.agosto.toString(),
1291
+ asignado: this.asignado.toString(),
1292
+ aumento: this.aumento.toString(),
1293
+ causado: this.causado.toString(),
1294
+ codcuecla: this.clasificador,
1295
+ denspgcta: this.denominacion,
1296
+ diciembre: this.diciembre.toString(),
1297
+ disminiucion: this.disminucion.toString(),
1298
+ distribuir: this.distribuir.toString(),
1299
+ enero: this.enero.toString(),
1300
+ febrero: this.febrero.toString(),
1301
+ id_empresa: this.idEmpresa.toString(),
1302
+ id_enterprise: this.idEnterprise.toString(),
1303
+ perfiscal: this.periodoFiscal.toString(),
1304
+ id_ep1: this.idEP1.toString(),
1305
+ id_ep2: this.idEP2.toString(),
1306
+ id_ep3: this.idEP3.toString(),
1307
+ id_ep4: this.idEP4.toString(),
1308
+ id_ep5: this.idEP5.toString(),
1309
+ julio: this.junio.toString(),
1310
+ junio: this.julio.toString(),
1311
+ marzo: this.marzo.toString(),
1312
+ mayo: this.mayo.toString(),
1313
+ nivel: this.nivel.toString(),
1314
+ noviembre: this.noviembre.toString(),
1315
+ octubre: this.octubre.toString(),
1316
+ pagado: this.pagado.toString(),
1317
+ precomprometido: this.precomprometido.toString(),
1318
+ referencia: this.referencia,
1319
+ sc_cuenta: this.cuentaContable,
1320
+ septiembre: this.septiembre.toString(),
1321
+ spg_cuenta: this.cuenta,
1322
+ status: this.status,
1323
+ id_del_spgcta: this.id.toString()
1324
+ };
1325
+ }
1264
1326
  }
1265
1327
 
1266
1328
  class MCuentaInstitucional extends MBasicModel {
@@ -1522,6 +1584,8 @@ class MConfiguracionSCG extends MBasicModel {
1522
1584
  this.SCFResultadoTesoro = '';
1523
1585
  this.costo = 0;
1524
1586
  this.cuentaResultadoPresupuesto = '';
1587
+ this.codigoEnterprise = '';
1588
+ this.denominacionEnterprise = '';
1525
1589
  if (configuracion) {
1526
1590
  this.idEnterprise = +configuracion.id_enterprise;
1527
1591
  this.periodoFiscal = +configuracion.perfiscal;
@@ -1571,6 +1635,8 @@ class MConfiguracionSCG extends MBasicModel {
1571
1635
  this.SCFResultadoTesoro = configuracion.scf_resultado_t;
1572
1636
  this.costo = parseInt(configuracion.costo);
1573
1637
  this.cuentaResultadoPresupuesto = configuracion.ctaejeprecie;
1638
+ this.codigoEnterprise = configuracion.codigo;
1639
+ this.denominacionEnterprise = configuracion.titulo;
1574
1640
  }
1575
1641
  }
1576
1642
  dataInterface() {
@@ -1750,6 +1816,8 @@ class MConfigurationSPG {
1750
1816
  this.codigoCentroCosto = '';
1751
1817
  this.estructuraPresupuestaria = '';
1752
1818
  this.editable = false;
1819
+ this.codigoEnterprise = '';
1820
+ this.denominacionEnterprise = '';
1753
1821
  if (configuration) {
1754
1822
  this.idEnterprise = +configuration.id_enterprise;
1755
1823
  this.periodoFiscal = +configuration.perfiscal;
@@ -1791,6 +1859,8 @@ class MConfigurationSPG {
1791
1859
  this.codigoCentroCosto = configuration.codcencos;
1792
1860
  this.estructuraPresupuestaria = configuration.estpre;
1793
1861
  this.editable = configuration.editable == '0';
1862
+ this.codigoEnterprise = configuration.codigo;
1863
+ this.denominacionEnterprise = configuration.titulo;
1794
1864
  }
1795
1865
  }
1796
1866
  dataInteface() {
@@ -1835,191 +1905,6 @@ class MConfigurationSPG {
1835
1905
  }
1836
1906
  }
1837
1907
 
1838
- class MEstructuraPresupuestariaOne {
1839
- constructor(eP) {
1840
- this.isNew = false;
1841
- this.codigoEstructuraProgramatica = eP.codestpro1;
1842
- this.denominacionEstructuraProgramatica = eP.denestpro1;
1843
- this.idEmpresa = eP.id_empresa;
1844
- this.cuentaContable = eP.sc_cuenta;
1845
- this.estatusClasificacion = eP.estcla;
1846
- this.idEstructura = eP.id_ep1;
1847
- }
1848
- }
1849
- class MEstructuraPresupuestariaTwo {
1850
- constructor(eP) {
1851
- this.isNew = false;
1852
- this.codigoEstructuraProgramatica = eP.codestpro2;
1853
- this.denominacionEstructuraProgramatica = eP.denestpro2;
1854
- this.idEmpresa = eP.id_empresa;
1855
- this.estatusClasificacion = eP.estcla;
1856
- this.idEstructuraOne = eP.id_ep1;
1857
- this.idEstructuraTwo = eP.id_ep2;
1858
- }
1859
- }
1860
- class MEstructuraPresupuestariaThree {
1861
- constructor(ep) {
1862
- this.isNew = false;
1863
- this.codigoCentroCosto = ep.codcencos;
1864
- this.codigoEstructuraProgramatica = ep.codestpro3;
1865
- this.estatusClasificacion = ep.estcla;
1866
- this.idEmpresa = ep.id_empresa;
1867
- this.idEstructuraOne = ep.id_ep1;
1868
- this.idEstructuraTwo = ep.id_ep2;
1869
- this.idEstructuraThree = ep.id_ep3;
1870
- }
1871
- }
1872
- class MEstructuraPresupuestariaThreeComplete {
1873
- constructor(ep) {
1874
- this.isNew = false;
1875
- this.idEmpresa = ep.id_empresa;
1876
- this.idEstricturaOne = ep.id_ep1;
1877
- this.idEstricturaTwo = ep.id_ep2;
1878
- this.idEstricturaThree = ep.id_ep3;
1879
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1880
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1881
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1882
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1883
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1884
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1885
- this.estatusClasificacion = ep.estcla;
1886
- }
1887
- }
1888
- class MEstructuraPresupuestariaFour {
1889
- constructor(ep) {
1890
- this.isNew = false;
1891
- this.codigoEstructuraProgramatica = ep.codestpro4;
1892
- this.denominacionEstructuraProgramatica = ep.denestpro4;
1893
- this.estatusClasificacion = ep.estcla;
1894
- this.idEmpresa = ep.id_empresa;
1895
- this.idEstructuraOne = ep.id_ep1;
1896
- this.idEstructuraTwo = ep.id_ep2;
1897
- this.idEstructuraThree = ep.id_ep3;
1898
- this.idEstructuraFour = ep.id_ep4;
1899
- }
1900
- }
1901
- class MEstructuraPresupuestariaFive {
1902
- constructor(ep) {
1903
- this.isNew = false;
1904
- this.idEmpresa = ep.id_empresa;
1905
- this.idEstructuraOne = ep.id_ep1;
1906
- this.idEstructuraTwo = ep.id_ep2;
1907
- this.idEstructuraThree = ep.id_ep3;
1908
- this.idEstructuraFour = ep.id_ep4;
1909
- this.idEstructuraFive = ep.id_ep5;
1910
- this.codigoEstructuraProgramatica = ep.codestpro5;
1911
- this.denominacionEstructuraProgramatica = ep.denestpro5;
1912
- this.estatusClasificacion = ep.estcla;
1913
- }
1914
- dataInterface() {
1915
- return {
1916
- id_empresa: this.idEmpresa,
1917
- id_ep1: this.idEstructuraOne,
1918
- id_ep2: this.idEstructuraTwo,
1919
- id_ep3: this.idEstructuraThree,
1920
- id_ep4: this.idEstructuraFour,
1921
- id_ep5: this.idEstructuraFive,
1922
- codestpro5: this.codigoEstructuraProgramatica,
1923
- denestpro5: this.denominacionEstructuraProgramatica,
1924
- estcla: this.estatusClasificacion,
1925
- };
1926
- }
1927
- }
1928
- class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
1929
- constructor(ep, 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;
1954
- this.isNew = false;
1955
- if (ep) {
1956
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1957
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1958
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1959
- this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
1960
- this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
1961
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1962
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1963
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1964
- this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
1965
- this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
1966
- this.estatusClasificacion = ep.estcla;
1967
- this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
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;
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;
1987
- }
1988
- }
1989
- dataInterface() {
1990
- return {
1991
- codestpro1: this.codigoEstructuraProgramaticaOne,
1992
- codestpro2: this.codigoEstructuraProgramaticaTwo,
1993
- codestpro3: this.codigoEstructuraProgramaticaThree,
1994
- codestpro4: this.codigoEstructuraProgramaticaFour,
1995
- codestpro5: this.codigoEstructuraProgramaticaFive,
1996
- denestpro1: this.denominacionEstructuraProgramaticaOne,
1997
- denestpro2: this.denominacionEstructuraProgramaticaTwo,
1998
- denestpro3: this.denominacionEstructuraProgramaticaThree,
1999
- denestpro4: this.denominacionEstructuraProgramaticaFour,
2000
- denestpro5: this.denominacionEstructuraProgramaticaFive,
2001
- estcla: this.estatusClasificacion,
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(),
2010
- };
2011
- }
2012
- }
2013
- class MAllStructure {
2014
- constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
2015
- this.structureOne = structureOne;
2016
- this.structureTwo = structureTwo;
2017
- this.structureThree = structureThree;
2018
- this.structureFour = structureFour;
2019
- this.structureFive = structureFive;
2020
- }
2021
- }
2022
-
2023
1908
  class MCentroCosto extends MBasicModel {
2024
1909
  constructor(centroCosto) {
2025
1910
  super();
@@ -3128,67 +3013,67 @@ class MCommunity extends MBasicModel {
3128
3013
  }
3129
3014
 
3130
3015
  class MProviderBeneficiary extends MBasicModel {
3131
- constructor(proben = null) {
3016
+ constructor(proben) {
3132
3017
  super();
3133
- this.idEmpresa = null;
3134
- this.id = null;
3135
- this.rif = null;
3136
- this.idDocument = null;
3137
- this.name = null;
3138
- this.address = null;
3139
- this.nit = null;
3140
- this.telephone = null;
3141
- this.mobileTelephone = null;
3142
- this.nationality = null;
3143
- this.email = null;
3144
- this.webAddress = null;
3145
- this.status = null;
3146
- this.type = null;
3147
- this.typeDesignation = null;
3148
- this.observation = null;
3149
- this.contribuiterType = null;
3150
- this.countryCode = null;
3151
- this.stateCode = null;
3152
- this.municipalityCode = null;
3153
- this.parishCode = null;
3154
- this.currencyCode = null;
3155
- this.organizationType = null;
3156
- this.systemLogDate = null;
3157
- this.licenceNumber = null;
3158
- this.providerSubalternLogDate = null;
3159
- this.subscribedShareCapital = null;
3160
- this.idRNC = null;
3161
- this.dateRNC = null;
3162
- this.expirationDateRNC = null;
3163
- this.statusRNC = null;
3164
- this.subalternId = null;
3165
- this.subalternLogDate = null;
3166
- this.socialSecurityId = null;
3167
- this.socialSecurityExpirationDate = null;
3168
- this.idINCE = null;
3169
- this.expirationDateINCE = null;
3170
- this.registryNumber = null;
3171
- this.registryTome = null;
3172
- this.idFolio = null;
3173
- this.registryModification = null;
3174
- this.registryModificationDate = null;
3175
- this.tomeModification = null;
3176
- this.folioModification = null;
3177
- this.inspector = null;
3178
- this.accountableAccount = null;
3179
- this.advanceAccountableAccount = null;
3180
- this.receptionAccountableAccount = null;
3181
- this.estpropri = null;
3182
- this.sigecofCode = null;
3183
- this.passport = null;
3184
- this.accounts = [];
3185
- this.personType = null;
3018
+ this.idEmpresa = 0;
3019
+ this.idEnterprise = 0;
3020
+ this.id = 0;
3021
+ this.rif = '';
3022
+ this.cedben = '';
3023
+ this.name = '';
3024
+ this.address = '';
3025
+ this.nit = '';
3026
+ this.telephone = '';
3027
+ this.mobileTelephone = '';
3028
+ this.nationality = '';
3029
+ this.email = '';
3030
+ this.webAddress = '';
3031
+ this.status = 0;
3032
+ this.type = '';
3033
+ this.typeDesignation = '';
3034
+ this.observation = '';
3035
+ this.contribuiterType = '';
3036
+ this.countryCode = '';
3037
+ this.stateCode = '';
3038
+ this.municipalityCode = '';
3039
+ this.parishCode = '';
3040
+ this.currencyCode = '';
3041
+ this.organizationType = 0;
3042
+ this.systemLogDate = '';
3043
+ this.licenceNumber = '';
3044
+ this.providerSubalternLogDate = '1900-01-01';
3045
+ this.subscribedShareCapital = 0;
3046
+ this.idRNC = '';
3047
+ this.dateRNC = '1900-01-01';
3048
+ this.expirationDateRNC = '1900-01-01';
3049
+ this.statusRNC = '';
3050
+ this.subalternId = '';
3051
+ this.subalternLogDate = '';
3052
+ this.socialSecurityId = '';
3053
+ this.socialSecurityExpirationDate = '';
3054
+ this.idINCE = '';
3055
+ this.expirationDateINCE = '';
3056
+ this.registryNumber = '';
3057
+ this.registryTome = '';
3058
+ this.idFolio = '';
3059
+ this.registryModification = '';
3060
+ this.registryModificationDate = '';
3061
+ this.tomeModification = '';
3062
+ this.folioModification = '';
3063
+ this.inspector = '';
3064
+ this.accountableAccount = '';
3065
+ this.advanceAccountableAccount = '';
3066
+ this.receptionAccountableAccount = '';
3067
+ this.estpropri = '';
3068
+ this.passport = '';
3069
+ this.personType = '';
3186
3070
  this.isNew = false;
3187
3071
  if (proben) {
3188
- this.id = parseInt(proben.id_proveedor);
3189
- this.idEmpresa = parseInt(proben.id_empresa);
3072
+ this.idEmpresa = +proben.id_empresa;
3073
+ this.idEnterprise = +proben.id_enterprise;
3074
+ this.id = +proben.id_proveedor;
3190
3075
  this.rif = proben.rifpro;
3191
- this.idDocument = proben.cedben;
3076
+ this.cedben = proben.cedben;
3192
3077
  this.name = proben.nompro;
3193
3078
  this.address = proben.dirpro;
3194
3079
  this.nit = proben.nitpro;
@@ -3196,28 +3081,21 @@ class MProviderBeneficiary extends MBasicModel {
3196
3081
  this.mobileTelephone = proben.telmovpro;
3197
3082
  this.nationality = proben.nacpro;
3198
3083
  this.email = proben.emapro;
3199
- this.status = parseInt(proben.estpro);
3084
+ this.webAddress = proben.webpro;
3085
+ this.status = +proben.estpro;
3200
3086
  this.type = proben.tippro;
3201
3087
  this.observation = proben.obspro;
3202
3088
  this.contribuiterType = proben.tipconpro;
3203
- if (proben.codest) {
3204
- this.stateCode = proben.codest.trim();
3205
- }
3206
- if (proben.codpar) {
3207
- this.stateCode = proben.codpar.trim();
3208
- }
3209
- if (proben.codpai) {
3210
- this.countryCode = proben.codpai.trim();
3211
- }
3212
- if (proben.codmun) {
3213
- this.municipalityCode = proben.codmun.trim();
3214
- }
3215
- this.currencyCode = proben.codmon;
3216
- this.organizationType = parseInt(proben.id_tiporg);
3089
+ this.countryCode = proben.codpai;
3090
+ this.stateCode = proben.codest;
3091
+ this.municipalityCode = proben.codmun;
3092
+ this.parishCode = proben.codpar;
3093
+ this.currencyCode = proben.id_moneda;
3094
+ this.organizationType = +proben.id_tiporg;
3217
3095
  this.systemLogDate = proben.fecregsis;
3218
3096
  this.licenceNumber = proben.numlic;
3219
- this.providerSubalternLogDate = proben.fecregpro;
3220
- this.subscribedShareCapital = parseFloat(proben.capsocpro);
3097
+ this.providerSubalternLogDate = proben.fecregsub;
3098
+ this.subscribedShareCapital = +proben.capsocpro;
3221
3099
  this.idRNC = proben.numrnc;
3222
3100
  this.dateRNC = proben.fecrnc;
3223
3101
  this.expirationDateRNC = proben.fecvenrnc;
@@ -3238,18 +3116,82 @@ class MProviderBeneficiary extends MBasicModel {
3238
3116
  this.inspector = proben.inspector;
3239
3117
  this.accountableAccount = proben.sc_cuenta;
3240
3118
  this.advanceAccountableAccount = proben.sc_cuentaant;
3241
- this.receptionAccountableAccount = proben.sc_cuentarecdoc;
3119
+ this.personType = proben.tipperpro;
3242
3120
  this.estpropri = proben.estpropri;
3243
- this.sigecofCode = proben.codsigcof;
3244
3121
  this.passport = proben.pasaporte;
3245
3122
  if (proben.cuentas) {
3246
3123
  this.accounts = proben.cuentas.map(e => new MProviderBankAccount(e));
3247
3124
  }
3248
- this.personType = proben.tipperpro;
3249
- this.webAddress = proben.webpro;
3250
- this.typeDesignation = this.type == 'P' ? 'PROVEEDOR' : this.type == 'B' ? 'BENEFICIARIO' : this.type == 'C' ? 'CONTRATISTA' : this.type == 'N' ? 'NINGUNO' : 'PROVEEDOR-CONTRATISTA';
3125
+ if (proben.especialidad) {
3126
+ this.specialties = proben.especialidad.map(e => new MSpecialtyProv(e));
3127
+ }
3128
+ if (proben.deducciones) {
3129
+ this.deductions = proben.deducciones.map(e => new MDeductionProv(e));
3130
+ }
3131
+ if (proben.documentos) {
3132
+ this.documents = proben.documentos.map(e => new MDocumentProv(e));
3133
+ }
3251
3134
  }
3252
3135
  }
3136
+ ;
3137
+ dataInterface() {
3138
+ return {
3139
+ id_empresa: this.idEmpresa.toString(),
3140
+ id_enterprise: this.idEnterprise.toString(),
3141
+ id_proveedor: this.id.toString(),
3142
+ rifpro: this.rif,
3143
+ cedben: this.cedben,
3144
+ nompro: this.name,
3145
+ dirpro: this.address,
3146
+ nitpro: this.nit,
3147
+ telpro: this.telephone,
3148
+ telmovpro: this.mobileTelephone,
3149
+ nacpro: this.nationality,
3150
+ emapro: this.email,
3151
+ webpro: this.webAddress,
3152
+ estpro: this.status.toString(),
3153
+ tippro: this.type,
3154
+ obspro: this.observation,
3155
+ tipconpro: this.contribuiterType,
3156
+ codpai: this.countryCode,
3157
+ codest: this.stateCode,
3158
+ codmun: this.municipalityCode,
3159
+ codpar: this.parishCode,
3160
+ id_moneda: this.currencyCode,
3161
+ id_tiporg: this.organizationType.toString(),
3162
+ fecregsis: this.systemLogDate,
3163
+ numlic: this.licenceNumber,
3164
+ fecregsub: this.providerSubalternLogDate,
3165
+ capsocpro: this.subscribedShareCapital.toString(),
3166
+ numrnc: this.idRNC,
3167
+ fecrnc: this.dateRNC,
3168
+ fecvenrnc: this.expirationDateRNC,
3169
+ estrnc: this.statusRNC,
3170
+ numregsub: this.subalternId,
3171
+ fecregpro: this.fechaRegistroProveedor,
3172
+ numregsso: this.socialSecurityId,
3173
+ fecvensso: this.socialSecurityExpirationDate,
3174
+ numregince: this.idINCE,
3175
+ fecvenince: this.expirationDateINCE,
3176
+ numreg: this.registryNumber,
3177
+ tomreg: this.registryTome,
3178
+ numfol: this.idFolio,
3179
+ regmod: this.registryModification,
3180
+ fecregmod: this.registryModificationDate,
3181
+ tommod: this.tomeModification,
3182
+ folmod: this.folioModification,
3183
+ inspector: this.inspector,
3184
+ sc_cuenta: this.accountableAccount,
3185
+ sc_cuentaant: this.advanceAccountableAccount,
3186
+ tipperpro: this.personType,
3187
+ estpropri: this.estpropri,
3188
+ pasaporte: this.passport,
3189
+ cuentas: this.accounts.map(e => e.dataInterface()),
3190
+ especialidad: this.specialties.map(e => e.dataInterface()),
3191
+ deducciones: this.deductions.map(e => e.dataInterface()),
3192
+ documentos: this.documents.map(e => e.dataInterface())
3193
+ };
3194
+ }
3253
3195
  }
3254
3196
  class MProviderBankAccount {
3255
3197
  constructor(account) {
@@ -3288,6 +3230,70 @@ class MProviderBankAccount {
3288
3230
  denctabcoprov: this.accountDenomination,
3289
3231
  };
3290
3232
  }
3233
+ }
3234
+ class MDocumentProv {
3235
+ constructor(doc) {
3236
+ this.providerId = 0;
3237
+ this.denomination = "";
3238
+ this.dateReception = "";
3239
+ this.dateExpiration = "";
3240
+ this.statusDocument = 0;
3241
+ this.statusOriginal = 0;
3242
+ this.observation = "";
3243
+ this.providerId = doc.id_proveedor;
3244
+ this.documentId = doc.id_doc;
3245
+ this.denomination = doc.dendoc;
3246
+ this.dateReception = doc.fecrecdoc;
3247
+ this.dateExpiration = doc.fecvendoc;
3248
+ this.statusDocument = doc.estdoc;
3249
+ this.statusOriginal = doc.estoridoc;
3250
+ this.observation = doc.obsdocpro;
3251
+ }
3252
+ ;
3253
+ dataInterface() {
3254
+ return {
3255
+ id_proveedor: this.providerId,
3256
+ id_doc: this.documentId,
3257
+ dendoc: this.denomination,
3258
+ fecrecdoc: this.dateReception,
3259
+ fecvendoc: this.dateExpiration,
3260
+ estdoc: this.statusDocument,
3261
+ estoridoc: this.statusOriginal,
3262
+ obsdocpro: this.observation,
3263
+ };
3264
+ }
3265
+ }
3266
+ class MDeductionProv {
3267
+ constructor(ded) {
3268
+ this.providerId = ded.id_proveedor;
3269
+ this.id = ded.id_deduccion;
3270
+ this.codigo = ded.codded;
3271
+ this.denomination = ded.dended;
3272
+ }
3273
+ ;
3274
+ dataInterface() {
3275
+ return {
3276
+ id_proveedor: this.providerId,
3277
+ id_deduccion: this.id,
3278
+ codded: this.codigo,
3279
+ dended: this.denomination
3280
+ };
3281
+ }
3282
+ }
3283
+ class MSpecialtyProv {
3284
+ constructor(ded) {
3285
+ this.providerId = ded.id_proveedor;
3286
+ this.id = ded.id_especialidad;
3287
+ this.denomination = ded.denesp;
3288
+ }
3289
+ ;
3290
+ dataInterface() {
3291
+ return {
3292
+ id_proveedor: this.providerId,
3293
+ id_especialidad: this.id,
3294
+ denesp: this.denomination
3295
+ };
3296
+ }
3291
3297
  }
3292
3298
 
3293
3299
  class MSigecofBank extends MBasicModel {
@@ -6699,311 +6705,60 @@ class SigespService {
6699
6705
  if (res.success) {
6700
6706
  res.data = new MCuentaIngresos(res.data);
6701
6707
  }
6702
- return res;
6703
- }));
6704
- }
6705
- /**
6706
- * @Actualiza la distribución de la cuenta de Ingreso de Estructura
6707
- * @param distribution
6708
- */
6709
- updateDistributionIncomeStructureAccount(distribution, level) {
6710
- return this.http.put(`${this.URL}/dao/spi/cuenta_estructura_ingresos_dao.php`, distribution, { headers: this.getHttpHeaders() })
6711
- .pipe(map((res) => {
6712
- if (res.success) {
6713
- res.data = new MIncomeStructureAccount(res.data, level);
6714
- }
6715
- return res;
6716
- }));
6717
- }
6718
- /**
6719
- * @description Obtiene el plan de cuentas
6720
- * @param level Número de niveles de la configuración
6721
- * @param id de la estructura el idEp3 o idEp5
6722
- * @return Observable<MCuentaEgresos[]>
6723
- */
6724
- planInstitucionalSPG(tipo, idEnterprise, periodoFiscal, idEP3o5, nivel) {
6725
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}`, { headers: this.getHttpHeaders() })
6726
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6727
- }
6728
- /**
6729
- * @description Obtiene las cuentas por nivel de las cuenats de egresos
6730
- * @param level Número de niveles de la configuración
6731
- * @param id id del nivel 3 o 5 que se va a buscar
6732
- * @return Observable<MCuentaEgresos[]>
6733
- */
6734
- getExpenseAccountsForLevel(level, id) {
6735
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?level=${level}&id=${id}`, { headers: this.getHttpHeaders() })
6736
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6737
- }
6738
- /**
6739
- * @description Abre el catálogo de estructura presupuesaria
6740
- * @param data Data que se va a mostrar
6741
- * @param configuration Configuración de la estructura
6742
- * @return Promise<any>
6743
- * @author Miguel Ramírez
6744
- */
6745
- openCatalogoEstructuraPresupuestaria(data, configuration) {
6746
- const catalogo = this.dialog.open(CatalogoEstructurasComponent, {
6747
- data: {
6748
- data,
6749
- configuration
6750
- },
6751
- width: '1000px',
6752
- maxHeight: '90vh'
6753
- });
6754
- return catalogo.afterClosed().toPromise();
6755
- }
6756
- /**
6757
- * @description Obtiene las cuentas de egresos
6758
- * @param onlyAvailable
6759
- * @return Observable<MCuentaEgresos[]>
6760
- */
6761
- getExpenseAccounts(onlyAvailable = false) {
6762
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php${onlyAvailable ? '?available=true' : ''}`, { headers: this.getHttpHeaders() })
6763
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6764
- }
6765
- /**
6766
- * @description Obtiene todas las estructuras presupuetsarias de las 5 tablas
6767
- * @return Promise<MAllStructure>
6768
- * @author Miguel Ramírez
6769
- */
6770
- getAllBudgetStructure() {
6771
- return new Promise((resolve, reject) => {
6772
- this.getBudgetStructureOne().subscribe(structureOne => {
6773
- this.getBudgetStructureTwoAll().subscribe(structureTwo => {
6774
- this.getBudgetStructureThree().subscribe(structureThree => {
6775
- this.getBudgetStructureFour().subscribe(structureFour => {
6776
- this.getBudgetStructureFiveByIdEp4().subscribe(structureFive => {
6777
- resolve(new MAllStructure({
6778
- structureOne,
6779
- structureTwo,
6780
- structureThree,
6781
- structureFour,
6782
- structureFive
6783
- }));
6784
- });
6785
- });
6786
- });
6787
- });
6788
- });
6789
- });
6790
- }
6791
- /**
6792
- * @description Obtiene la estructura completa dependiendo de la configuración
6793
- * @return Promise<any[]>
6794
- * @author Miguel Ramírez
6795
- * @type= {}
6796
- */
6797
- async getBudgetStructureComplete(nivel, tipo) {
6798
- return new Promise(async (resolve) => {
6799
- let data = [];
6800
- await this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
6801
- data.push(...result);
6802
- });
6803
- // await this.getBudgetStructureThreeComplete(3).subscribe(result => {
6804
- // data.push(...result)
6805
- // })
6806
- await resolve(data);
6807
- });
6808
- }
6809
- /**
6810
- * @description Elimina una o varias estructuras presupuestarias
6811
- * @param idStructures Id de las estructuras presupuestarias 5 que van a ser eliminadas
6812
- * @return Observable<any>
6813
- * @author Miguel Ramírez
6814
- */
6815
- deleteBudgetStructureFive(idStructures) {
6816
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6817
- }
6818
- /**
6819
- * @description Actualiza una o varias estructuras 4
6820
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6821
- * @return Observable<any>
6822
- * @author Miguel Ramírez
6823
- */
6824
- updateBudgetStructureFive(structures) {
6825
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6826
- }
6827
- /**
6828
- * @description Agrega una o varias estructuras presupuestarias 4
6829
- * @param structures Las estructuras que van a ser registradas
6830
- * @return Observable<any>
6831
- * @author Miguel Ramírez
6832
- */
6833
- setBudgetStructureFive(structures) {
6834
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6835
- }
6836
- /**
6837
- * @description Obtiene toda la estructura presupuestaria 5
6838
- * @return Observable<MEstructuraPresupuestariaFive[]>
6839
- * @author Miguel Ramírez
6840
- * @params tipo:"sss"
6841
- */
6842
- getBudgetStructureFive(level = null, tipo = '') {
6843
- 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))));
6844
- }
6845
- /**
6846
- * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
6847
- * @param idEp4 id de la estructura presupuestaria 4
6848
- */
6849
- getBudgetStructureFiveByIdEp4(idEp4) {
6850
- 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))));
6851
- }
6852
- /**
6853
- * @description Elimina una o varias estructuras presupuestarias
6854
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
6855
- * @return Observable<any>
6856
- * @author Miguel Ramírez
6857
- */
6858
- deleteBudgetStructureFour(idStructures) {
6859
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6860
- }
6861
- /**
6862
- * @description Actualiza una o varias estructuras 4
6863
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6864
- * @return Observable<any>
6865
- * @author Miguel Ramírez
6866
- */
6867
- updateBudgetStructureFour(structures) {
6868
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
6869
- }
6870
- /**
6871
- * @description Agrega una o varias estructuras presupuestarias 4
6872
- * @param structures Las estructuras que van a ser registradas
6873
- * @return Observable<any>
6874
- * @author Miguel Ramírez
6875
- */
6876
- setBudgetStructureFour(structures) {
6877
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
6878
- }
6879
- /**
6880
- * @description Obtiene las estructuras presupuestarias 4
6881
- * @param idEp3 Id de la estructura presupuestaria 3
6882
- * @return Observable<MEstructurapresupuestaria[]>
6883
- * @author Miguel Ramírez
6884
- */
6885
- getBudgetStructureFour(idEp3) {
6886
- 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))));
6887
- }
6888
- /**
6889
- * @description Elimina una o varias estructuras presupuestarias
6890
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
6891
- * @return Observable<any>
6892
- * @author Miguel Ramírez
6893
- */
6894
- deleteBudgetStructureThree(idStructures) {
6895
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6896
- }
6897
- /**
6898
- * @description Actualiza una o varias estructuras 3
6899
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6900
- * @return Observable<any>
6901
- * @author Miguel Ramírez
6902
- */
6903
- updateBudgetStructureThree(structures) {
6904
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
6905
- }
6906
- /**
6907
- * @description Agrega una o varias estructuras presupuestarias 3
6908
- * @param structures Las estructuras que van a ser registradas
6909
- * @return Observable<any>
6910
- * @author Miguel Ramírez
6911
- */
6912
- setBudgetStructureThree(structures) {
6913
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
6914
- }
6915
- /**
6916
- * @description Se trae la estructura presupuestaria completa hasta el nivel 3
6917
- * @return Observable<any[]>
6918
- * @author Miguel Ramírez
6919
- */
6920
- getBudgetStructureThreeComplete(level) {
6921
- 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))));
6922
- }
6923
- /**
6924
- * @description Obtiene las estructuras presupuestarias 3
6925
- * @param idEp2 Id de la estructura presupuestaria 2
6926
- * @return Observable<MEstructurapresupuestaria[]>
6927
- * @author Miguel Ramírez
6928
- */
6929
- getBudgetStructureThree(idEp2) {
6930
- 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))));
6931
- }
6932
- /**
6933
- * @description Elimina una o varias estructuras presupuestarias uno
6934
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
6935
- * @return Observable<any>
6936
- * @author Miguel Ramírez
6937
- */
6938
- deleteBudgetStructureTwo(idStructures) {
6939
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6940
- }
6941
- /**
6942
- * @description Actualiza una estructura presupuestaria dos
6943
- * @param structure Estructura presupuestaria uno que se va a actualizar
6944
- * @return Observable<any>
6945
- */
6946
- updateBudgetStructureTwo(structure) {
6947
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, structure, { headers: this.getHttpHeaders() });
6948
- }
6949
- /**
6950
- * @description Registra las estructuras presupuestrias dos en la base de datos
6951
- * @param budgetStructures Array de estructuras presupuestaria que se van a registrar
6952
- * @return Observable<any>
6953
- * @author Miguel Ramírez
6954
- */
6955
- setBudgetStructureTwo(budgetStructures) {
6956
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
6957
- }
6958
- /**
6959
- * @description Obtiene la estructura presupuestaria
6960
- * @return Observable<MEstructuraPresupuestaria[]>
6961
- * @author Miguel Ramírez
6962
- */
6963
- getBudgetStructureTwo(idEp1) {
6964
- 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)))));
6965
- }
6966
- /**
6967
- * @description Obtiene la estructura presupuestaria
6968
- * @return Observable<MEstructuraPresupuestaria[]>
6969
- * @author Miguel Ramírez
6970
- */
6971
- getBudgetStructureTwoAll() {
6972
- 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)))));
6708
+ return res;
6709
+ }));
6973
6710
  }
6974
6711
  /**
6975
- * @description Elimina una o varias estructuras presupuestarias uno
6976
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
6977
- * @return Observable<any>
6978
- * @author Miguel Ramírez
6712
+ * @Actualiza la distribución de la cuenta de Ingreso de Estructura
6713
+ * @param distribution
6979
6714
  */
6980
- deleteBudgetStructureOne(idStructures) {
6981
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6715
+ updateDistributionIncomeStructureAccount(distribution, level) {
6716
+ return this.http.put(`${this.URL}/dao/spi/cuenta_estructura_ingresos_dao.php`, distribution, { headers: this.getHttpHeaders() })
6717
+ .pipe(map((res) => {
6718
+ if (res.success) {
6719
+ res.data = new MIncomeStructureAccount(res.data, level);
6720
+ }
6721
+ return res;
6722
+ }));
6982
6723
  }
6983
6724
  /**
6984
- * @description Actualiza una estructura presupuestaria uno
6985
- * @param structure Estructura presupuestaria uno que se va a actualizar
6986
- * @return Observable<any>
6725
+ * @description Obtiene el plan de cuentas
6726
+ * @param level Número de niveles de la configuración
6727
+ * @param id de la estructura el idEp3 o idEp5
6728
+ * @return Observable<MCuentaEgresos[]>
6987
6729
  */
6988
- updateBudgetStructureOne(structure) {
6989
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, structure, { headers: this.getHttpHeaders() });
6730
+ planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel) {
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() })
6732
+ .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6990
6733
  }
6991
6734
  /**
6992
- * @description Registra las estructuras presupuestrias en la base de datos
6993
- * @param budgetStructures Array de estructuras presupuestaria que s evan a registrar
6994
- * @return Observable<any>
6735
+ * @description Abre el catálogo de estructura presupuesaria
6736
+ * @param data Data que se va a mostrar
6737
+ * @param configuration Configuración de la estructura
6738
+ * @return Promise<any>
6995
6739
  * @author Miguel Ramírez
6996
6740
  */
6997
- setBudgetStructureOne(budgetStructures) {
6998
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
6741
+ openCatalogoEstructuraPresupuestaria(data, configuration) {
6742
+ const catalogo = this.dialog.open(CatalogoEstructurasComponent, {
6743
+ data: {
6744
+ data,
6745
+ configuration
6746
+ },
6747
+ width: '1000px',
6748
+ maxHeight: '90vh'
6749
+ });
6750
+ return catalogo.afterClosed().toPromise();
6999
6751
  }
7000
6752
  /**
7001
- * @description Obtiene la estructura presupuestaria
7002
- * @return Observable<MEstructuraPresupuestaria[]>
7003
- * @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
7004
6759
  */
7005
- getBudgetStructureOne() {
7006
- 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)))));
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))));
7007
6762
  }
7008
6763
  /**
7009
6764
  * @description Obtiene las configuraciones de la estructura presupuestaria
@@ -7011,7 +6766,7 @@ class SigespService {
7011
6766
  * @author Miguel Ramírez
7012
6767
  */
7013
6768
  getConfigurationSPG(idEnterprise, periodoFical) {
7014
- return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_config_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
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])));
7015
6770
  }
7016
6771
  /**
7017
6772
  * @description Obtiene las configuraciones de los proveedores
@@ -7516,42 +7271,6 @@ class SigespService {
7516
7271
  });
7517
7272
  return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus", "provType"], titulo, cuentas, ["Cuenta", "Denominación", "Estado", "Tipo"], ancho);
7518
7273
  }
7519
- /**
7520
- * @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
7521
- * @returns Promise<MCuentaEgresos>
7522
- * @author Carlos Albornoz
7523
- * @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
7524
- */
7525
- async openCatalogoCuentasEgreso(titulo, presupuesto = true, ancho = "1000px") {
7526
- let cuentas = [];
7527
- await this.getExpenseAccounts().toPromise().then(res => {
7528
- cuentas = res;
7529
- cuentas = cuentas.filter(e => {
7530
- return e.status == "C";
7531
- }).map(e => {
7532
- e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora";
7533
- return e;
7534
- });
7535
- });
7536
- if (presupuesto) {
7537
- return this.openCatalogoDosInputs(["cuenta", "denominacion", "estructura", "provStatus"], titulo, cuentas, [{
7538
- placeholder: "Cuenta",
7539
- property: "cuenta"
7540
- }, {
7541
- placeholder: "Estructura",
7542
- property: "estructura"
7543
- }], ["Cuenta", "Denominación", "Estructura", "Estado"], ancho);
7544
- }
7545
- else {
7546
- let filteredAccounts = [];
7547
- cuentas.forEach(c => {
7548
- if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
7549
- filteredAccounts.push(c);
7550
- }
7551
- });
7552
- return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
7553
- }
7554
- }
7555
7274
  /**
7556
7275
  * @description Abre el cátalogo de cuentas de la tabla "spi_cuentas"
7557
7276
  * @returns Promise<MCuentaIngresos>
@@ -7812,8 +7531,8 @@ class SigespService {
7812
7531
  * @return Promise<MProveedor>
7813
7532
  * @author Miguel Ramírez
7814
7533
  */
7815
- async openDialogProveedores() {
7816
- let proveedores = await this.getProveedores().toPromise();
7534
+ async openDialogProveedores(idEnterprise) {
7535
+ let proveedores = await this.getProveedores(idEnterprise).toPromise();
7817
7536
  let dialogRef = this.dialog.open(CatalogoComponent, {
7818
7537
  data: {
7819
7538
  columns: ['tipo', 'rif', 'nombre'],
@@ -7830,7 +7549,7 @@ class SigespService {
7830
7549
  * @return Observable<MProveedor[]>
7831
7550
  * @author Miguel Ramírez
7832
7551
  */
7833
- getProveedores() {
7552
+ getProveedores(idEnterprise) {
7834
7553
  let request = {
7835
7554
  operacion: 'obtenerData',
7836
7555
  sigesp_conexion: {
@@ -7838,7 +7557,7 @@ class SigespService {
7838
7557
  usuario: this.usuarioActivo.getInterface()
7839
7558
  }
7840
7559
  };
7841
- 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))));
7842
7561
  }
7843
7562
  /**
7844
7563
  * @description Obtiene los proveedores y beneficiarios
@@ -7850,8 +7569,8 @@ class SigespService {
7850
7569
  * @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
7851
7570
  * @modificado 17-07-2023
7852
7571
  */
7853
- getProvidersAndBeneficiaries(type = 'default', destination = null, account = 'N') {
7854
- 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) => {
7855
7574
  if (res.success) {
7856
7575
  res.data = res.data.map(e => new MProviderBeneficiary(e));
7857
7576
  }
@@ -8581,6 +8300,9 @@ class SigespService {
8581
8300
  getVerificarRelease(tipo, sistema, seccion = null) {
8582
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; }));
8583
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
+ }
8584
8306
  }
8585
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 });
8586
8308
  SigespService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, providedIn: 'root' });
@@ -9202,6 +8924,191 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9202
8924
  }
9203
8925
  }
9204
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
+
9205
9112
  class MPlanUnicoCuenta extends MBasicModel {
9206
9113
  constructor(plan) {
9207
9114
  super();
@@ -14728,5 +14635,5 @@ class customPaginator extends MatPaginatorIntl {
14728
14635
  * Generated bundle index. Do not edit.
14729
14636
  */
14730
14637
 
14731
- export { Acciones, AppModule, CatalogoComponent, CatalogoDobleInputComponent, CatalogoEstructurasComponent, CausaEgreso, ConfirmComponent, ContabilizacionNomina, CurrencyService, Destino, DiasSemana, EstadoCivil, Estatus, EstatusCliente, EstatusEstudio, EstatusPersonal, EstatusPersonalNomina, EstatusPrestamo, EstatusVacaciones, Estudios, FormaPago, IconComponent, IsoCurrencyPipe, LetraRif, Longitud, MAccountMarriage, MAdministrativeUnit, MAgenciaBanco, MAllStructure, MAnticipoPrestaciones, MArchivoTxtCampo, MArchivosTxt, MAsignacionCargo, MAspectoEvaluacion, MBank, MBankAccountType, MBasicModel, MBeneficiario, MCalculoPrestacion, MCambioEstatusPersonal, MCargaFamiliar, MCargaMasiva, MCargo, MCargoEstructuraOrganizativa, MCargosAdicionales, MCargosNominas, MCargosPersonal, MCentroCosto, MCity, MClasificacionObrero, MClasification, MClause, MClauseModality, MClient, MCodigoUnicoRac, MCommunity, MComponent, MComponete, MComprobantePresupuestarioEgresos, MComprobantePresupuestarioIngresos, MComunidad, MConceptoRetencion, MConceptoVacaciones, MConceptosCXP, MConceptosNomina, MConceptosPersonalNomina, MConcursante, MConcurso, MConfigSOC, MConfigSSS, MConfiguracionFideicomiso, MConfiguracionSCG, MConfiguracionSNO, MConfigurationRPC, MConfigurationSPG, MConstanteNomina, MConstantePersonalNomina, MCountry, MCuentaBanco, MCuentaEgresos, MCuentaIngresos, MCuentaInstitucional, MCuentaPresupuesto, MCuentasSpSC, MDedicacion, MDeduction, MDeductionType, MDefinicionNomina, MDefinicionesBasicas, MDetaContable, MDetaEntrada, MDeudaAnterior, MDocument, MEmpresa, MEncargaduria, MEnterprise, MEntradaSuministros, MEscalaEvaluacion, MEscalaEvaluacionDt, MEstructuraOrganizativa, MEstructuraPresupuestariaFive, MEstructuraPresupuestariaFiveComplete, MEstructuraPresupuestariaFour, MEstructuraPresupuestariaOne, MEstructuraPresupuestariaThree, MEstructuraPresupuestariaTwo, MEstructuras, MEstudiosConcursantes, MEstudiosRealizados, MExchangeRate, MExperienciaLaboral, MFamiliaConcursante, MFamiliares, MFeriados, MFideicomiso, MFideicomisoInteres, MFideicomisoPeriodo, MFideicomisoPeriodoInteres, MFideicomisoPeriodoInteresCatalogo, MFormacionAcademica, MFormacionInformal, MFuenteFinanciamiento, MGrados, MGroup, MHojaTiempo, MHorario, MImpuestoSobreRenta, MItemsEvalucion, MLog, MMetodoBanco, MMetodos, MMoneda, MMonedaConfig, MMunicipality, MNominaSimple, MOrganizationType, MParish, MPeriodoNomina, MPeriodosPlan, MPermisos, MPersonal, MPersonalCuentaBanco, MPersonalJubilado, MPersonalNomina, MPlanHorario, MPlanUnicoCuenta, MPlantillasConstancia, MPrefijo, MPrestacionesAntiguedad, MPrestamo, MPrestamoAmortizacion, MPrestamosPeriodo, MPrevioEvaluacion, MPrevioEvaluacionDt, MPrimaGrados, MPrimasConcepto, MProcedencia, MProcesosNomina, MProveedor, MProviderBankAccount, MProviderBeneficiary, MRArchivoTXT, MRConsolidadoConceptos, MRConstanciaTrabajo, MRango, MRequisitosConcursantes, MRequisitosConcursos, MRequisitosMinimos, MResultadosEvaluacion, MRights, MSalarioHistorico, MService, MServiceCharge, MServiceType, MSigecofBank, MSistema, MSnoLog, MSolicitudEmpleo, MSpecialty, MState, MSueldoMinimo, MTablaVacaciones, MTablaVacacionesPeriodo, MTabulador, MTabuladorNominas, MTipoDepositos, MTipoDocumentoCXP, MTipoEvaluacion, MTipoEvaluacionAspecto, MTipoPersonal, MTiposEnfermedad, MTrabajoAnterior, MTrabajosConcursantes, MUbicacionFisica, MUnidadAdministradoraCentral, MUnidadTributaria, MUserDetail, MUserPermit, MUsuario, MUsuarioPrefijo, MUsuarioSistema, MVacacionesPersonal, Meses, MetodosTicket, Nacionalidad, Nexofamiliar, NivelAcademico, NivelAcademicoFamiliar, Orden, Preaviso, Reporte, SalarioNormal, Sexo, Sexo2, SharedModule, SigespService, Signo, SituacionPersonal, TableSelectComponent, TipoBeneficiario, TipoCargo, TipoCestaTicket, TipoCuota, TipoDefiniciones, TipoEmpresa, TipoHorario, TipoJubilacion, TipoNomina, TipoPeriodoNomina, TipoPermiso, TipoVivienda, Turno, academico, camposConstaciaTrabajo, customPaginator };
14638
+ export { Acciones, AppModule, CatalogoComponent, CatalogoDobleInputComponent, CatalogoEstructurasComponent, CausaEgreso, ConfirmComponent, ContabilizacionNomina, CurrencyService, Destino, DiasSemana, EstadoCivil, Estatus, EstatusCliente, EstatusEstudio, EstatusPersonal, EstatusPersonalNomina, EstatusPrestamo, EstatusVacaciones, Estudios, FormaPago, IconComponent, IsoCurrencyPipe, LetraRif, Longitud, MAccountMarriage, MAdministrativeUnit, MAgenciaBanco, MAllStructure, MAnticipoPrestaciones, MArchivoTxtCampo, MArchivosTxt, MAsignacionCargo, MAspectoEvaluacion, MBank, MBankAccountType, MBasicModel, MBeneficiario, MCalculoPrestacion, MCambioEstatusPersonal, MCargaFamiliar, MCargaMasiva, MCargo, MCargoEstructuraOrganizativa, MCargosAdicionales, MCargosNominas, MCargosPersonal, MCentroCosto, MCity, MClasificacionObrero, MClasification, MClause, MClauseModality, MClient, MCodigoUnicoRac, MCommunity, MComponent, MComponete, MComprobantePresupuestarioEgresos, MComprobantePresupuestarioIngresos, MComunidad, MConceptoRetencion, MConceptoVacaciones, MConceptosCXP, MConceptosNomina, MConceptosPersonalNomina, MConcursante, MConcurso, MConfigSOC, MConfigSSS, MConfiguracionFideicomiso, MConfiguracionSCG, MConfiguracionSNO, MConfigurationRPC, MConfigurationSPG, MConstanteNomina, MConstantePersonalNomina, MCountry, MCuentaBanco, MCuentaEgresos, MCuentaIngresos, MCuentaInstitucional, MCuentaPresupuesto, MCuentasSpSC, MDedicacion, MDeduction, MDeductionProv, MDeductionType, MDefinicionNomina, MDefinicionesBasicas, MDetaContable, MDetaEntrada, MDeudaAnterior, MDocument, MDocumentProv, MEmpresa, MEncargaduria, MEnterprise, MEntradaSuministros, MEscalaEvaluacion, MEscalaEvaluacionDt, MEstructuraOrganizativa, MEstructuraPresupuestariaFive, MEstructuraPresupuestariaFiveComplete, MEstructuraPresupuestariaFour, MEstructuraPresupuestariaOne, MEstructuraPresupuestariaThree, MEstructuraPresupuestariaTwo, MEstructuras, MEstudiosConcursantes, MEstudiosRealizados, MExchangeRate, MExperienciaLaboral, MFamiliaConcursante, MFamiliares, MFeriados, MFideicomiso, MFideicomisoInteres, MFideicomisoPeriodo, MFideicomisoPeriodoInteres, MFideicomisoPeriodoInteresCatalogo, MFormacionAcademica, MFormacionInformal, MFuenteFinanciamiento, MGrados, MGroup, MHojaTiempo, MHorario, MImpuestoSobreRenta, MItemsEvalucion, MLog, MMetodoBanco, MMetodos, MMoneda, MMonedaConfig, MMunicipality, MNominaSimple, MOrganizationType, MParish, MPeriodoNomina, MPeriodosPlan, MPermisos, MPersonal, MPersonalCuentaBanco, MPersonalJubilado, MPersonalNomina, MPlanHorario, MPlanUnicoCuenta, MPlantillasConstancia, MPrefijo, MPrestacionesAntiguedad, MPrestamo, MPrestamoAmortizacion, MPrestamosPeriodo, MPrevioEvaluacion, MPrevioEvaluacionDt, MPrimaGrados, MPrimasConcepto, MProcedencia, MProcesosNomina, MProveedor, MProviderBankAccount, MProviderBeneficiary, MRArchivoTXT, MRConsolidadoConceptos, MRConstanciaTrabajo, MRango, MRequisitosConcursantes, MRequisitosConcursos, MRequisitosMinimos, MResultadosEvaluacion, MRights, MSalarioHistorico, MService, MServiceCharge, MServiceType, MSigecofBank, MSistema, MSnoLog, MSolicitudEmpleo, MSpecialty, MState, MSueldoMinimo, MTablaVacaciones, MTablaVacacionesPeriodo, MTabulador, MTabuladorNominas, MTipoDepositos, MTipoDocumentoCXP, MTipoEvaluacion, MTipoEvaluacionAspecto, MTipoPersonal, MTiposEnfermedad, MTrabajoAnterior, MTrabajosConcursantes, MUbicacionFisica, MUnidadAdministradoraCentral, MUnidadTributaria, MUserDetail, MUserPermit, MUsuario, MUsuarioPrefijo, MUsuarioSistema, MVacacionesPersonal, Meses, MetodosTicket, Nacionalidad, Nexofamiliar, NivelAcademico, NivelAcademicoFamiliar, Orden, Preaviso, Reporte, SalarioNormal, Sexo, Sexo2, SharedModule, SigespService, Signo, SituacionPersonal, TableSelectComponent, TipoBeneficiario, TipoCargo, TipoCestaTicket, TipoCuota, TipoDefiniciones, TipoEmpresa, TipoHorario, TipoJubilacion, TipoNomina, TipoPeriodoNomina, TipoPermiso, TipoVivienda, Turno, academico, camposConstaciaTrabajo, customPaginator };
14732
14639
  //# sourceMappingURL=sigesp.mjs.map