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.
@@ -1145,30 +1145,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
1145
1145
  args: [MatSort]
1146
1146
  }] } });
1147
1147
 
1148
- class MCuentaPresupuesto {
1149
- constructor(cuentaPresupuesto) {
1150
- this.cuenta = null;
1151
- this.denominacion = null;
1152
- this.status = null;
1153
- this.tipo = null;
1154
- this.cuenta = cuentaPresupuesto.sig_cuenta.trim();
1155
- this.denominacion = cuentaPresupuesto.denominacion;
1156
- this.status = cuentaPresupuesto.status;
1157
- this.tipo = cuentaPresupuesto.tipcta;
1148
+ class MCuentaPresupuesto extends MBasicModel {
1149
+ constructor(e) {
1150
+ super();
1151
+ this.idEmpresa = 0;
1152
+ this.idEnterprise = 0;
1153
+ this.periodoFiscal = 0;
1154
+ this.cuenta = '';
1155
+ this.denominacion = '';
1156
+ this.status = '';
1157
+ this.tipo = '';
1158
+ this.denominacionTipo = '';
1159
+ this.denominacionStatus = '';
1160
+ if (e) {
1161
+ this.idEmpresa = +e.id_empresa;
1162
+ this.idEnterprise = +e.id_enterprise;
1163
+ this.periodoFiscal = +e.perfiscal;
1164
+ this.cuenta = e.sig_cuenta;
1165
+ this.denominacion = e.denominacion;
1166
+ this.status = e.status;
1167
+ this.tipo = e.tipcta;
1168
+ e.tipcta == 'R' ? this.denominacionTipo = 'Rescurso' : this.denominacionTipo = 'Egreso';
1169
+ e.status == 'C' ? this.denominacionStatus = 'Movimiento' : this.denominacionStatus = 'Totalizadora';
1170
+ }
1171
+ else {
1172
+ this.isNew = true;
1173
+ }
1174
+ }
1175
+ dataInterface() {
1176
+ return {
1177
+ id_empresa: this.idEmpresa.toString(),
1178
+ id_enterprise: this.idEnterprise.toString(),
1179
+ perfiscal: this.periodoFiscal.toString(),
1180
+ sig_cuenta: this.cuenta,
1181
+ denominacion: this.denominacion,
1182
+ status: this.status,
1183
+ tipcta: this.tipo,
1184
+ };
1158
1185
  }
1159
1186
  }
1160
- class MCuentaEgresos$1 extends MBasicModel {
1161
- constructor(cuenta, level, isNew) {
1162
- super();
1187
+ class MCuentaEgresos$1 {
1188
+ constructor(cuenta, level) {
1163
1189
  this.idEmpresa = 0;
1164
1190
  this.idEnterprise = 0;
1165
1191
  this.periodoFiscal = 0;
1166
1192
  this.nivel = 0;
1167
1193
  this.denominacion = '';
1168
- this.cuenta = '';
1169
- this.cuentaContable = '------------';
1170
- this.cuentaONCOP = '------------';
1171
- this.clasificador = '------------';
1194
+ this.cuenta = null;
1195
+ this.cuentaContable = '';
1196
+ this.clasificador = '';
1172
1197
  this.referencia = '';
1173
1198
  this.aumento = 0;
1174
1199
  this.asignado = 0;
@@ -1194,76 +1219,113 @@ class MCuentaEgresos$1 extends MBasicModel {
1194
1219
  this.idEP3 = 0;
1195
1220
  this.idEP4 = 0;
1196
1221
  this.idEP5 = 0;
1197
- this.codestpro1 = '';
1198
- this.codestpro2 = '';
1199
- this.codestpro3 = '';
1200
- this.codestpro4 = '';
1201
- this.codestpro5 = '';
1222
+ this.codigoEP1 = '';
1223
+ this.codigoEP2 = '';
1224
+ this.codigoEP3 = '';
1225
+ this.codigoEP4 = '';
1226
+ this.codigoEP5 = '';
1202
1227
  this.estructura = '';
1203
1228
  this.selected = false;
1204
1229
  this.isNew = false;
1205
1230
  this.error = false;
1206
1231
  this.status = '';
1207
1232
  this.id = 0;
1233
+ this.distribuirFF = 0;
1208
1234
  if (cuenta) {
1209
- this.idEmpresa = parseInt(cuenta.id_empresa);
1210
- this.idEnterprise = +cuenta.id_enterprise;
1211
- this.periodoFiscal = +cuenta.perfiscal;
1212
- this.nivel = parseInt(cuenta.nivel);
1235
+ this.idEmpresa = +(cuenta.id_empresa);
1236
+ this.idEnterprise = +(cuenta.id_enterprise);
1237
+ this.periodoFiscal = +(cuenta.perfiscal);
1238
+ this.nivel = +(cuenta.nivel);
1213
1239
  this.denominacion = cuenta.denspgcta;
1214
1240
  this.cuenta = cuenta.spg_cuenta;
1215
1241
  this.cuentaContable = cuenta.sc_cuenta;
1216
1242
  this.status = cuenta.status;
1217
1243
  this.referencia = cuenta.referencia;
1218
- this.aumento = parseInt(cuenta.aumento);
1219
- this.asignado = parseInt(cuenta.asignado);
1220
- this.causado = parseInt(cuenta.causado);
1221
- this.pagado = parseInt(cuenta.pagado);
1222
- this.distribuir = parseInt(cuenta.distribuir);
1223
- this.disminucion = parseInt(cuenta.disminiucion);
1224
- this.precomprometido = parseInt(cuenta.precomprometido);
1225
- this.enero = parseInt(cuenta.enero);
1226
- this.febrero = parseInt(cuenta.febrero);
1227
- this.marzo = parseInt(cuenta.marzo);
1228
- this.abril = parseInt(cuenta.abril);
1229
- this.mayo = parseInt(cuenta.mayo);
1230
- this.junio = parseInt(cuenta.junio);
1231
- this.julio = parseInt(cuenta.julio);
1232
- this.agosto = parseInt(cuenta.agosto);
1233
- this.septiembre = parseInt(cuenta.septiembre);
1234
- this.octubre = parseInt(cuenta.octubre);
1235
- this.noviembre = parseInt(cuenta.noviembre);
1236
- this.diciembre = parseInt(cuenta.diciembre);
1244
+ this.aumento = +(cuenta.aumento);
1245
+ this.asignado = +(cuenta.asignado);
1246
+ this.causado = +(cuenta.causado);
1247
+ this.pagado = +(cuenta.pagado);
1248
+ this.distribuir = +(cuenta.distribuir);
1249
+ this.disminucion = +(cuenta.disminiucion);
1250
+ this.precomprometido = +(cuenta.precomprometido);
1251
+ this.enero = +(cuenta.enero);
1252
+ this.febrero = +(cuenta.febrero);
1253
+ this.marzo = +(cuenta.marzo);
1254
+ this.abril = +(cuenta.abril);
1255
+ this.mayo = +(cuenta.mayo);
1256
+ this.junio = +(cuenta.junio);
1257
+ this.julio = +(cuenta.julio);
1258
+ this.agosto = +(cuenta.agosto);
1259
+ this.septiembre = +(cuenta.septiembre);
1260
+ this.octubre = +(cuenta.octubre);
1261
+ this.noviembre = +(cuenta.noviembre);
1262
+ this.diciembre = +(cuenta.diciembre);
1237
1263
  this.clasificador = cuenta.codcuecla;
1238
- this.cuentaONCOP = cuenta.cueoncop;
1239
- this.idEP1 = parseInt(cuenta.id_ep1);
1240
- this.idEP2 = parseInt(cuenta.id_ep2);
1241
- this.idEP3 = parseInt(cuenta.id_ep3);
1242
- this.idEP4 = parseInt(cuenta.id_ep4);
1243
- this.idEP5 = parseInt(cuenta.id_ep5);
1244
- this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
1245
- this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
1246
- this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
1247
- this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
1248
- this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
1249
- this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
1264
+ this.idEP1 = +(cuenta.id_ep1);
1265
+ this.idEP2 = +(cuenta.id_ep2);
1266
+ this.idEP3 = +(cuenta.id_ep3);
1267
+ this.idEP4 = +(cuenta.id_ep4);
1268
+ this.idEP5 = +(cuenta.id_ep5);
1269
+ this.id = cuenta.id_del_spgcta ? +(cuenta.id_del_spgcta) : 0;
1270
+ this.codigoEP1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
1271
+ this.codigoEP2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
1272
+ this.codigoEP3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
1273
+ this.codigoEP4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
1274
+ this.codigoEP5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
1250
1275
  if (cuenta.estructura && level) {
1251
- if (level == 3) {
1252
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}`;
1253
- }
1254
- else if (level == 4) {
1255
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}`;
1276
+ if (this.idEP4 == 0) {
1277
+ this.estructura = `${this.codigoEP1}-${this.codigoEP2}-${this.codigoEP3}`;
1256
1278
  }
1257
1279
  else {
1258
- this.estructura = `${this.codestpro1}-${this.codestpro2}-${this.codestpro3}-${this.codestpro4}-${this.codestpro5}`;
1280
+ this.estructura = `${this.codigoEP1}-${this.codigoEP2}-${this.codigoEP3}-${this.codigoEP4}-${this.codigoEP5}`;
1259
1281
  }
1260
1282
  }
1283
+ this.distribuirFF = +cuenta.distff;
1261
1284
  this.isNew = false;
1262
1285
  }
1263
1286
  else {
1264
1287
  this.isNew = true;
1265
1288
  }
1266
1289
  }
1290
+ dataInterface() {
1291
+ return {
1292
+ abril: this.abril.toString(),
1293
+ agosto: this.agosto.toString(),
1294
+ asignado: this.asignado.toString(),
1295
+ aumento: this.aumento.toString(),
1296
+ causado: this.causado.toString(),
1297
+ codcuecla: this.clasificador,
1298
+ denspgcta: this.denominacion,
1299
+ diciembre: this.diciembre.toString(),
1300
+ disminiucion: this.disminucion.toString(),
1301
+ distribuir: this.distribuir.toString(),
1302
+ enero: this.enero.toString(),
1303
+ febrero: this.febrero.toString(),
1304
+ id_empresa: this.idEmpresa.toString(),
1305
+ id_enterprise: this.idEnterprise.toString(),
1306
+ perfiscal: this.periodoFiscal.toString(),
1307
+ id_ep1: this.idEP1.toString(),
1308
+ id_ep2: this.idEP2.toString(),
1309
+ id_ep3: this.idEP3.toString(),
1310
+ id_ep4: this.idEP4.toString(),
1311
+ id_ep5: this.idEP5.toString(),
1312
+ julio: this.junio.toString(),
1313
+ junio: this.julio.toString(),
1314
+ marzo: this.marzo.toString(),
1315
+ mayo: this.mayo.toString(),
1316
+ nivel: this.nivel.toString(),
1317
+ noviembre: this.noviembre.toString(),
1318
+ octubre: this.octubre.toString(),
1319
+ pagado: this.pagado.toString(),
1320
+ precomprometido: this.precomprometido.toString(),
1321
+ referencia: this.referencia,
1322
+ sc_cuenta: this.cuentaContable,
1323
+ septiembre: this.septiembre.toString(),
1324
+ spg_cuenta: this.cuenta,
1325
+ status: this.status,
1326
+ id_del_spgcta: this.id.toString()
1327
+ };
1328
+ }
1267
1329
  }
1268
1330
 
1269
1331
  class MCuentaInstitucional extends MBasicModel {
@@ -1527,6 +1589,8 @@ class MConfiguracionSCG extends MBasicModel {
1527
1589
  this.SCFResultadoTesoro = '';
1528
1590
  this.costo = 0;
1529
1591
  this.cuentaResultadoPresupuesto = '';
1592
+ this.codigoEnterprise = '';
1593
+ this.denominacionEnterprise = '';
1530
1594
  if (configuracion) {
1531
1595
  this.idEnterprise = +configuracion.id_enterprise;
1532
1596
  this.periodoFiscal = +configuracion.perfiscal;
@@ -1576,6 +1640,8 @@ class MConfiguracionSCG extends MBasicModel {
1576
1640
  this.SCFResultadoTesoro = configuracion.scf_resultado_t;
1577
1641
  this.costo = parseInt(configuracion.costo);
1578
1642
  this.cuentaResultadoPresupuesto = configuracion.ctaejeprecie;
1643
+ this.codigoEnterprise = configuracion.codigo;
1644
+ this.denominacionEnterprise = configuracion.titulo;
1579
1645
  }
1580
1646
  }
1581
1647
  dataInterface() {
@@ -1757,6 +1823,8 @@ class MConfigurationSPG {
1757
1823
  this.codigoCentroCosto = '';
1758
1824
  this.estructuraPresupuestaria = '';
1759
1825
  this.editable = false;
1826
+ this.codigoEnterprise = '';
1827
+ this.denominacionEnterprise = '';
1760
1828
  if (configuration) {
1761
1829
  this.idEnterprise = +configuration.id_enterprise;
1762
1830
  this.periodoFiscal = +configuration.perfiscal;
@@ -1798,6 +1866,8 @@ class MConfigurationSPG {
1798
1866
  this.codigoCentroCosto = configuration.codcencos;
1799
1867
  this.estructuraPresupuestaria = configuration.estpre;
1800
1868
  this.editable = configuration.editable == '0';
1869
+ this.codigoEnterprise = configuration.codigo;
1870
+ this.denominacionEnterprise = configuration.titulo;
1801
1871
  }
1802
1872
  }
1803
1873
  dataInteface() {
@@ -1842,191 +1912,6 @@ class MConfigurationSPG {
1842
1912
  }
1843
1913
  }
1844
1914
 
1845
- class MEstructuraPresupuestariaOne {
1846
- constructor(eP) {
1847
- this.isNew = false;
1848
- this.codigoEstructuraProgramatica = eP.codestpro1;
1849
- this.denominacionEstructuraProgramatica = eP.denestpro1;
1850
- this.idEmpresa = eP.id_empresa;
1851
- this.cuentaContable = eP.sc_cuenta;
1852
- this.estatusClasificacion = eP.estcla;
1853
- this.idEstructura = eP.id_ep1;
1854
- }
1855
- }
1856
- class MEstructuraPresupuestariaTwo {
1857
- constructor(eP) {
1858
- this.isNew = false;
1859
- this.codigoEstructuraProgramatica = eP.codestpro2;
1860
- this.denominacionEstructuraProgramatica = eP.denestpro2;
1861
- this.idEmpresa = eP.id_empresa;
1862
- this.estatusClasificacion = eP.estcla;
1863
- this.idEstructuraOne = eP.id_ep1;
1864
- this.idEstructuraTwo = eP.id_ep2;
1865
- }
1866
- }
1867
- class MEstructuraPresupuestariaThree {
1868
- constructor(ep) {
1869
- this.isNew = false;
1870
- this.codigoCentroCosto = ep.codcencos;
1871
- this.codigoEstructuraProgramatica = ep.codestpro3;
1872
- this.estatusClasificacion = ep.estcla;
1873
- this.idEmpresa = ep.id_empresa;
1874
- this.idEstructuraOne = ep.id_ep1;
1875
- this.idEstructuraTwo = ep.id_ep2;
1876
- this.idEstructuraThree = ep.id_ep3;
1877
- }
1878
- }
1879
- class MEstructuraPresupuestariaThreeComplete {
1880
- constructor(ep) {
1881
- this.isNew = false;
1882
- this.idEmpresa = ep.id_empresa;
1883
- this.idEstricturaOne = ep.id_ep1;
1884
- this.idEstricturaTwo = ep.id_ep2;
1885
- this.idEstricturaThree = ep.id_ep3;
1886
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1887
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1888
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1889
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1890
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1891
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1892
- this.estatusClasificacion = ep.estcla;
1893
- }
1894
- }
1895
- class MEstructuraPresupuestariaFour {
1896
- constructor(ep) {
1897
- this.isNew = false;
1898
- this.codigoEstructuraProgramatica = ep.codestpro4;
1899
- this.denominacionEstructuraProgramatica = ep.denestpro4;
1900
- this.estatusClasificacion = ep.estcla;
1901
- this.idEmpresa = ep.id_empresa;
1902
- this.idEstructuraOne = ep.id_ep1;
1903
- this.idEstructuraTwo = ep.id_ep2;
1904
- this.idEstructuraThree = ep.id_ep3;
1905
- this.idEstructuraFour = ep.id_ep4;
1906
- }
1907
- }
1908
- class MEstructuraPresupuestariaFive {
1909
- constructor(ep) {
1910
- this.isNew = false;
1911
- this.idEmpresa = ep.id_empresa;
1912
- this.idEstructuraOne = ep.id_ep1;
1913
- this.idEstructuraTwo = ep.id_ep2;
1914
- this.idEstructuraThree = ep.id_ep3;
1915
- this.idEstructuraFour = ep.id_ep4;
1916
- this.idEstructuraFive = ep.id_ep5;
1917
- this.codigoEstructuraProgramatica = ep.codestpro5;
1918
- this.denominacionEstructuraProgramatica = ep.denestpro5;
1919
- this.estatusClasificacion = ep.estcla;
1920
- }
1921
- dataInterface() {
1922
- return {
1923
- id_empresa: this.idEmpresa,
1924
- id_ep1: this.idEstructuraOne,
1925
- id_ep2: this.idEstructuraTwo,
1926
- id_ep3: this.idEstructuraThree,
1927
- id_ep4: this.idEstructuraFour,
1928
- id_ep5: this.idEstructuraFive,
1929
- codestpro5: this.codigoEstructuraProgramatica,
1930
- denestpro5: this.denominacionEstructuraProgramatica,
1931
- estcla: this.estatusClasificacion,
1932
- };
1933
- }
1934
- }
1935
- class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
1936
- constructor(ep, 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;
1961
- this.isNew = false;
1962
- if (ep) {
1963
- this.codigoEstructuraProgramaticaOne = ep.codestpro1;
1964
- this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
1965
- this.codigoEstructuraProgramaticaThree = ep.codestpro3;
1966
- this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
1967
- this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
1968
- this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
1969
- this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
1970
- this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
1971
- this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
1972
- this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
1973
- this.estatusClasificacion = ep.estcla;
1974
- this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
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;
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;
1994
- }
1995
- }
1996
- dataInterface() {
1997
- return {
1998
- codestpro1: this.codigoEstructuraProgramaticaOne,
1999
- codestpro2: this.codigoEstructuraProgramaticaTwo,
2000
- codestpro3: this.codigoEstructuraProgramaticaThree,
2001
- codestpro4: this.codigoEstructuraProgramaticaFour,
2002
- codestpro5: this.codigoEstructuraProgramaticaFive,
2003
- denestpro1: this.denominacionEstructuraProgramaticaOne,
2004
- denestpro2: this.denominacionEstructuraProgramaticaTwo,
2005
- denestpro3: this.denominacionEstructuraProgramaticaThree,
2006
- denestpro4: this.denominacionEstructuraProgramaticaFour,
2007
- denestpro5: this.denominacionEstructuraProgramaticaFive,
2008
- estcla: this.estatusClasificacion,
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(),
2017
- };
2018
- }
2019
- }
2020
- class MAllStructure {
2021
- constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
2022
- this.structureOne = structureOne;
2023
- this.structureTwo = structureTwo;
2024
- this.structureThree = structureThree;
2025
- this.structureFour = structureFour;
2026
- this.structureFive = structureFive;
2027
- }
2028
- }
2029
-
2030
1915
  class MCentroCosto extends MBasicModel {
2031
1916
  constructor(centroCosto) {
2032
1917
  super();
@@ -3139,67 +3024,67 @@ class MCommunity extends MBasicModel {
3139
3024
  }
3140
3025
 
3141
3026
  class MProviderBeneficiary extends MBasicModel {
3142
- constructor(proben = null) {
3027
+ constructor(proben) {
3143
3028
  super();
3144
- this.idEmpresa = null;
3145
- this.id = null;
3146
- this.rif = null;
3147
- this.idDocument = null;
3148
- this.name = null;
3149
- this.address = null;
3150
- this.nit = null;
3151
- this.telephone = null;
3152
- this.mobileTelephone = null;
3153
- this.nationality = null;
3154
- this.email = null;
3155
- this.webAddress = null;
3156
- this.status = null;
3157
- this.type = null;
3158
- this.typeDesignation = null;
3159
- this.observation = null;
3160
- this.contribuiterType = null;
3161
- this.countryCode = null;
3162
- this.stateCode = null;
3163
- this.municipalityCode = null;
3164
- this.parishCode = null;
3165
- this.currencyCode = null;
3166
- this.organizationType = null;
3167
- this.systemLogDate = null;
3168
- this.licenceNumber = null;
3169
- this.providerSubalternLogDate = null;
3170
- this.subscribedShareCapital = null;
3171
- this.idRNC = null;
3172
- this.dateRNC = null;
3173
- this.expirationDateRNC = null;
3174
- this.statusRNC = null;
3175
- this.subalternId = null;
3176
- this.subalternLogDate = null;
3177
- this.socialSecurityId = null;
3178
- this.socialSecurityExpirationDate = null;
3179
- this.idINCE = null;
3180
- this.expirationDateINCE = null;
3181
- this.registryNumber = null;
3182
- this.registryTome = null;
3183
- this.idFolio = null;
3184
- this.registryModification = null;
3185
- this.registryModificationDate = null;
3186
- this.tomeModification = null;
3187
- this.folioModification = null;
3188
- this.inspector = null;
3189
- this.accountableAccount = null;
3190
- this.advanceAccountableAccount = null;
3191
- this.receptionAccountableAccount = null;
3192
- this.estpropri = null;
3193
- this.sigecofCode = null;
3194
- this.passport = null;
3195
- this.accounts = [];
3196
- this.personType = null;
3029
+ this.idEmpresa = 0;
3030
+ this.idEnterprise = 0;
3031
+ this.id = 0;
3032
+ this.rif = '';
3033
+ this.cedben = '';
3034
+ this.name = '';
3035
+ this.address = '';
3036
+ this.nit = '';
3037
+ this.telephone = '';
3038
+ this.mobileTelephone = '';
3039
+ this.nationality = '';
3040
+ this.email = '';
3041
+ this.webAddress = '';
3042
+ this.status = 0;
3043
+ this.type = '';
3044
+ this.typeDesignation = '';
3045
+ this.observation = '';
3046
+ this.contribuiterType = '';
3047
+ this.countryCode = '';
3048
+ this.stateCode = '';
3049
+ this.municipalityCode = '';
3050
+ this.parishCode = '';
3051
+ this.currencyCode = '';
3052
+ this.organizationType = 0;
3053
+ this.systemLogDate = '';
3054
+ this.licenceNumber = '';
3055
+ this.providerSubalternLogDate = '1900-01-01';
3056
+ this.subscribedShareCapital = 0;
3057
+ this.idRNC = '';
3058
+ this.dateRNC = '1900-01-01';
3059
+ this.expirationDateRNC = '1900-01-01';
3060
+ this.statusRNC = '';
3061
+ this.subalternId = '';
3062
+ this.subalternLogDate = '';
3063
+ this.socialSecurityId = '';
3064
+ this.socialSecurityExpirationDate = '';
3065
+ this.idINCE = '';
3066
+ this.expirationDateINCE = '';
3067
+ this.registryNumber = '';
3068
+ this.registryTome = '';
3069
+ this.idFolio = '';
3070
+ this.registryModification = '';
3071
+ this.registryModificationDate = '';
3072
+ this.tomeModification = '';
3073
+ this.folioModification = '';
3074
+ this.inspector = '';
3075
+ this.accountableAccount = '';
3076
+ this.advanceAccountableAccount = '';
3077
+ this.receptionAccountableAccount = '';
3078
+ this.estpropri = '';
3079
+ this.passport = '';
3080
+ this.personType = '';
3197
3081
  this.isNew = false;
3198
3082
  if (proben) {
3199
- this.id = parseInt(proben.id_proveedor);
3200
- this.idEmpresa = parseInt(proben.id_empresa);
3083
+ this.idEmpresa = +proben.id_empresa;
3084
+ this.idEnterprise = +proben.id_enterprise;
3085
+ this.id = +proben.id_proveedor;
3201
3086
  this.rif = proben.rifpro;
3202
- this.idDocument = proben.cedben;
3087
+ this.cedben = proben.cedben;
3203
3088
  this.name = proben.nompro;
3204
3089
  this.address = proben.dirpro;
3205
3090
  this.nit = proben.nitpro;
@@ -3207,28 +3092,21 @@ class MProviderBeneficiary extends MBasicModel {
3207
3092
  this.mobileTelephone = proben.telmovpro;
3208
3093
  this.nationality = proben.nacpro;
3209
3094
  this.email = proben.emapro;
3210
- this.status = parseInt(proben.estpro);
3095
+ this.webAddress = proben.webpro;
3096
+ this.status = +proben.estpro;
3211
3097
  this.type = proben.tippro;
3212
3098
  this.observation = proben.obspro;
3213
3099
  this.contribuiterType = proben.tipconpro;
3214
- if (proben.codest) {
3215
- this.stateCode = proben.codest.trim();
3216
- }
3217
- if (proben.codpar) {
3218
- this.stateCode = proben.codpar.trim();
3219
- }
3220
- if (proben.codpai) {
3221
- this.countryCode = proben.codpai.trim();
3222
- }
3223
- if (proben.codmun) {
3224
- this.municipalityCode = proben.codmun.trim();
3225
- }
3226
- this.currencyCode = proben.codmon;
3227
- this.organizationType = parseInt(proben.id_tiporg);
3100
+ this.countryCode = proben.codpai;
3101
+ this.stateCode = proben.codest;
3102
+ this.municipalityCode = proben.codmun;
3103
+ this.parishCode = proben.codpar;
3104
+ this.currencyCode = proben.id_moneda;
3105
+ this.organizationType = +proben.id_tiporg;
3228
3106
  this.systemLogDate = proben.fecregsis;
3229
3107
  this.licenceNumber = proben.numlic;
3230
- this.providerSubalternLogDate = proben.fecregpro;
3231
- this.subscribedShareCapital = parseFloat(proben.capsocpro);
3108
+ this.providerSubalternLogDate = proben.fecregsub;
3109
+ this.subscribedShareCapital = +proben.capsocpro;
3232
3110
  this.idRNC = proben.numrnc;
3233
3111
  this.dateRNC = proben.fecrnc;
3234
3112
  this.expirationDateRNC = proben.fecvenrnc;
@@ -3249,18 +3127,82 @@ class MProviderBeneficiary extends MBasicModel {
3249
3127
  this.inspector = proben.inspector;
3250
3128
  this.accountableAccount = proben.sc_cuenta;
3251
3129
  this.advanceAccountableAccount = proben.sc_cuentaant;
3252
- this.receptionAccountableAccount = proben.sc_cuentarecdoc;
3130
+ this.personType = proben.tipperpro;
3253
3131
  this.estpropri = proben.estpropri;
3254
- this.sigecofCode = proben.codsigcof;
3255
3132
  this.passport = proben.pasaporte;
3256
3133
  if (proben.cuentas) {
3257
3134
  this.accounts = proben.cuentas.map(e => new MProviderBankAccount(e));
3258
3135
  }
3259
- this.personType = proben.tipperpro;
3260
- this.webAddress = proben.webpro;
3261
- this.typeDesignation = this.type == 'P' ? 'PROVEEDOR' : this.type == 'B' ? 'BENEFICIARIO' : this.type == 'C' ? 'CONTRATISTA' : this.type == 'N' ? 'NINGUNO' : 'PROVEEDOR-CONTRATISTA';
3136
+ if (proben.especialidad) {
3137
+ this.specialties = proben.especialidad.map(e => new MSpecialtyProv(e));
3138
+ }
3139
+ if (proben.deducciones) {
3140
+ this.deductions = proben.deducciones.map(e => new MDeductionProv(e));
3141
+ }
3142
+ if (proben.documentos) {
3143
+ this.documents = proben.documentos.map(e => new MDocumentProv(e));
3144
+ }
3262
3145
  }
3263
3146
  }
3147
+ ;
3148
+ dataInterface() {
3149
+ return {
3150
+ id_empresa: this.idEmpresa.toString(),
3151
+ id_enterprise: this.idEnterprise.toString(),
3152
+ id_proveedor: this.id.toString(),
3153
+ rifpro: this.rif,
3154
+ cedben: this.cedben,
3155
+ nompro: this.name,
3156
+ dirpro: this.address,
3157
+ nitpro: this.nit,
3158
+ telpro: this.telephone,
3159
+ telmovpro: this.mobileTelephone,
3160
+ nacpro: this.nationality,
3161
+ emapro: this.email,
3162
+ webpro: this.webAddress,
3163
+ estpro: this.status.toString(),
3164
+ tippro: this.type,
3165
+ obspro: this.observation,
3166
+ tipconpro: this.contribuiterType,
3167
+ codpai: this.countryCode,
3168
+ codest: this.stateCode,
3169
+ codmun: this.municipalityCode,
3170
+ codpar: this.parishCode,
3171
+ id_moneda: this.currencyCode,
3172
+ id_tiporg: this.organizationType.toString(),
3173
+ fecregsis: this.systemLogDate,
3174
+ numlic: this.licenceNumber,
3175
+ fecregsub: this.providerSubalternLogDate,
3176
+ capsocpro: this.subscribedShareCapital.toString(),
3177
+ numrnc: this.idRNC,
3178
+ fecrnc: this.dateRNC,
3179
+ fecvenrnc: this.expirationDateRNC,
3180
+ estrnc: this.statusRNC,
3181
+ numregsub: this.subalternId,
3182
+ fecregpro: this.fechaRegistroProveedor,
3183
+ numregsso: this.socialSecurityId,
3184
+ fecvensso: this.socialSecurityExpirationDate,
3185
+ numregince: this.idINCE,
3186
+ fecvenince: this.expirationDateINCE,
3187
+ numreg: this.registryNumber,
3188
+ tomreg: this.registryTome,
3189
+ numfol: this.idFolio,
3190
+ regmod: this.registryModification,
3191
+ fecregmod: this.registryModificationDate,
3192
+ tommod: this.tomeModification,
3193
+ folmod: this.folioModification,
3194
+ inspector: this.inspector,
3195
+ sc_cuenta: this.accountableAccount,
3196
+ sc_cuentaant: this.advanceAccountableAccount,
3197
+ tipperpro: this.personType,
3198
+ estpropri: this.estpropri,
3199
+ pasaporte: this.passport,
3200
+ cuentas: this.accounts.map(e => e.dataInterface()),
3201
+ especialidad: this.specialties.map(e => e.dataInterface()),
3202
+ deducciones: this.deductions.map(e => e.dataInterface()),
3203
+ documentos: this.documents.map(e => e.dataInterface())
3204
+ };
3205
+ }
3264
3206
  }
3265
3207
  class MProviderBankAccount {
3266
3208
  constructor(account) {
@@ -3299,6 +3241,70 @@ class MProviderBankAccount {
3299
3241
  denctabcoprov: this.accountDenomination,
3300
3242
  };
3301
3243
  }
3244
+ }
3245
+ class MDocumentProv {
3246
+ constructor(doc) {
3247
+ this.providerId = 0;
3248
+ this.denomination = "";
3249
+ this.dateReception = "";
3250
+ this.dateExpiration = "";
3251
+ this.statusDocument = 0;
3252
+ this.statusOriginal = 0;
3253
+ this.observation = "";
3254
+ this.providerId = doc.id_proveedor;
3255
+ this.documentId = doc.id_doc;
3256
+ this.denomination = doc.dendoc;
3257
+ this.dateReception = doc.fecrecdoc;
3258
+ this.dateExpiration = doc.fecvendoc;
3259
+ this.statusDocument = doc.estdoc;
3260
+ this.statusOriginal = doc.estoridoc;
3261
+ this.observation = doc.obsdocpro;
3262
+ }
3263
+ ;
3264
+ dataInterface() {
3265
+ return {
3266
+ id_proveedor: this.providerId,
3267
+ id_doc: this.documentId,
3268
+ dendoc: this.denomination,
3269
+ fecrecdoc: this.dateReception,
3270
+ fecvendoc: this.dateExpiration,
3271
+ estdoc: this.statusDocument,
3272
+ estoridoc: this.statusOriginal,
3273
+ obsdocpro: this.observation,
3274
+ };
3275
+ }
3276
+ }
3277
+ class MDeductionProv {
3278
+ constructor(ded) {
3279
+ this.providerId = ded.id_proveedor;
3280
+ this.id = ded.id_deduccion;
3281
+ this.codigo = ded.codded;
3282
+ this.denomination = ded.dended;
3283
+ }
3284
+ ;
3285
+ dataInterface() {
3286
+ return {
3287
+ id_proveedor: this.providerId,
3288
+ id_deduccion: this.id,
3289
+ codded: this.codigo,
3290
+ dended: this.denomination
3291
+ };
3292
+ }
3293
+ }
3294
+ class MSpecialtyProv {
3295
+ constructor(ded) {
3296
+ this.providerId = ded.id_proveedor;
3297
+ this.id = ded.id_especialidad;
3298
+ this.denomination = ded.denesp;
3299
+ }
3300
+ ;
3301
+ dataInterface() {
3302
+ return {
3303
+ id_proveedor: this.providerId,
3304
+ id_especialidad: this.id,
3305
+ denesp: this.denomination
3306
+ };
3307
+ }
3302
3308
  }
3303
3309
 
3304
3310
  class MSigecofBank extends MBasicModel {
@@ -6714,309 +6720,56 @@ class SigespService {
6714
6720
  }));
6715
6721
  }
6716
6722
  /**
6717
- * @Actualiza la distribución de la cuenta de Ingreso de Estructura
6718
- * @param distribution
6719
- */
6720
- updateDistributionIncomeStructureAccount(distribution, level) {
6721
- return this.http.put(`${this.URL}/dao/spi/cuenta_estructura_ingresos_dao.php`, distribution, { headers: this.getHttpHeaders() })
6722
- .pipe(map((res) => {
6723
- if (res.success) {
6724
- res.data = new MIncomeStructureAccount(res.data, level);
6725
- }
6726
- return res;
6727
- }));
6728
- }
6729
- /**
6730
- * @description Obtiene el plan de cuentas
6731
- * @param level Número de niveles de la configuración
6732
- * @param id de la estructura el idEp3 o idEp5
6733
- * @return Observable<MCuentaEgresos[]>
6734
- */
6735
- planInstitucionalSPG(tipo, idEnterprise, periodoFiscal, idEP3o5, nivel) {
6736
- 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() })
6737
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6738
- }
6739
- /**
6740
- * @description Obtiene las cuentas por nivel de las cuenats de egresos
6741
- * @param level Número de niveles de la configuración
6742
- * @param id id del nivel 3 o 5 que se va a buscar
6743
- * @return Observable<MCuentaEgresos[]>
6744
- */
6745
- getExpenseAccountsForLevel(level, id) {
6746
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?level=${level}&id=${id}`, { headers: this.getHttpHeaders() })
6747
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6748
- }
6749
- /**
6750
- * @description Abre el catálogo de estructura presupuesaria
6751
- * @param data Data que se va a mostrar
6752
- * @param configuration Configuración de la estructura
6753
- * @return Promise<any>
6754
- * @author Miguel Ramírez
6755
- */
6756
- openCatalogoEstructuraPresupuestaria(data, configuration) {
6757
- const catalogo = this.dialog.open(CatalogoEstructurasComponent, {
6758
- data: {
6759
- data,
6760
- configuration
6761
- },
6762
- width: '1000px',
6763
- maxHeight: '90vh'
6764
- });
6765
- return catalogo.afterClosed().toPromise();
6766
- }
6767
- /**
6768
- * @description Obtiene las cuentas de egresos
6769
- * @param onlyAvailable
6770
- * @return Observable<MCuentaEgresos[]>
6771
- */
6772
- getExpenseAccounts(onlyAvailable = false) {
6773
- return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php${onlyAvailable ? '?available=true' : ''}`, { headers: this.getHttpHeaders() })
6774
- .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
6775
- }
6776
- /**
6777
- * @description Obtiene todas las estructuras presupuetsarias de las 5 tablas
6778
- * @return Promise<MAllStructure>
6779
- * @author Miguel Ramírez
6780
- */
6781
- getAllBudgetStructure() {
6782
- return new Promise((resolve, reject) => {
6783
- this.getBudgetStructureOne().subscribe(structureOne => {
6784
- this.getBudgetStructureTwoAll().subscribe(structureTwo => {
6785
- this.getBudgetStructureThree().subscribe(structureThree => {
6786
- this.getBudgetStructureFour().subscribe(structureFour => {
6787
- this.getBudgetStructureFiveByIdEp4().subscribe(structureFive => {
6788
- resolve(new MAllStructure({
6789
- structureOne,
6790
- structureTwo,
6791
- structureThree,
6792
- structureFour,
6793
- structureFive
6794
- }));
6795
- });
6796
- });
6797
- });
6798
- });
6799
- });
6800
- });
6801
- }
6802
- /**
6803
- * @description Obtiene la estructura completa dependiendo de la configuración
6804
- * @return Promise<any[]>
6805
- * @author Miguel Ramírez
6806
- * @type= {}
6807
- */
6808
- getBudgetStructureComplete(nivel, tipo) {
6809
- return __awaiter(this, void 0, void 0, function* () {
6810
- return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
6811
- let data = [];
6812
- yield this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
6813
- data.push(...result);
6814
- });
6815
- // await this.getBudgetStructureThreeComplete(3).subscribe(result => {
6816
- // data.push(...result)
6817
- // })
6818
- yield resolve(data);
6819
- }));
6820
- });
6821
- }
6822
- /**
6823
- * @description Elimina una o varias estructuras presupuestarias
6824
- * @param idStructures Id de las estructuras presupuestarias 5 que van a ser eliminadas
6825
- * @return Observable<any>
6826
- * @author Miguel Ramírez
6827
- */
6828
- deleteBudgetStructureFive(idStructures) {
6829
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6830
- }
6831
- /**
6832
- * @description Actualiza una o varias estructuras 4
6833
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6834
- * @return Observable<any>
6835
- * @author Miguel Ramírez
6836
- */
6837
- updateBudgetStructureFive(structures) {
6838
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6839
- }
6840
- /**
6841
- * @description Agrega una o varias estructuras presupuestarias 4
6842
- * @param structures Las estructuras que van a ser registradas
6843
- * @return Observable<any>
6844
- * @author Miguel Ramírez
6845
- */
6846
- setBudgetStructureFive(structures) {
6847
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php`, structures, { headers: this.getHttpHeaders() });
6848
- }
6849
- /**
6850
- * @description Obtiene toda la estructura presupuestaria 5
6851
- * @return Observable<MEstructuraPresupuestariaFive[]>
6852
- * @author Miguel Ramírez
6853
- * @params tipo:"sss"
6854
- */
6855
- getBudgetStructureFive(level = null, tipo = '') {
6856
- 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))));
6857
- }
6858
- /**
6859
- * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
6860
- * @param idEp4 id de la estructura presupuestaria 4
6861
- */
6862
- getBudgetStructureFiveByIdEp4(idEp4) {
6863
- 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))));
6864
- }
6865
- /**
6866
- * @description Elimina una o varias estructuras presupuestarias
6867
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
6868
- * @return Observable<any>
6869
- * @author Miguel Ramírez
6870
- */
6871
- deleteBudgetStructureFour(idStructures) {
6872
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6873
- }
6874
- /**
6875
- * @description Actualiza una o varias estructuras 4
6876
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6877
- * @return Observable<any>
6878
- * @author Miguel Ramírez
6879
- */
6880
- updateBudgetStructureFour(structures) {
6881
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
6882
- }
6883
- /**
6884
- * @description Agrega una o varias estructuras presupuestarias 4
6885
- * @param structures Las estructuras que van a ser registradas
6886
- * @return Observable<any>
6887
- * @author Miguel Ramírez
6888
- */
6889
- setBudgetStructureFour(structures) {
6890
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria4_dao.php`, structures, { headers: this.getHttpHeaders() });
6891
- }
6892
- /**
6893
- * @description Obtiene las estructuras presupuestarias 4
6894
- * @param idEp3 Id de la estructura presupuestaria 3
6895
- * @return Observable<MEstructurapresupuestaria[]>
6896
- * @author Miguel Ramírez
6897
- */
6898
- getBudgetStructureFour(idEp3) {
6899
- 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))));
6900
- }
6901
- /**
6902
- * @description Elimina una o varias estructuras presupuestarias
6903
- * @param idStructures Id de las estructuras presupuestarias 3 que vana ser eliminadas
6904
- * @return Observable<any>
6905
- * @author Miguel Ramírez
6906
- */
6907
- deleteBudgetStructureThree(idStructures) {
6908
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6909
- }
6910
- /**
6911
- * @description Actualiza una o varias estructuras 3
6912
- * @param structures Estructuras presupuestarias que van a ser actualizadas
6913
- * @return Observable<any>
6914
- * @author Miguel Ramírez
6915
- */
6916
- updateBudgetStructureThree(structures) {
6917
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
6918
- }
6919
- /**
6920
- * @description Agrega una o varias estructuras presupuestarias 3
6921
- * @param structures Las estructuras que van a ser registradas
6922
- * @return Observable<any>
6923
- * @author Miguel Ramírez
6924
- */
6925
- setBudgetStructureThree(structures) {
6926
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria3_dao.php`, structures, { headers: this.getHttpHeaders() });
6927
- }
6928
- /**
6929
- * @description Se trae la estructura presupuestaria completa hasta el nivel 3
6930
- * @return Observable<any[]>
6931
- * @author Miguel Ramírez
6932
- */
6933
- getBudgetStructureThreeComplete(level) {
6934
- 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))));
6935
- }
6936
- /**
6937
- * @description Obtiene las estructuras presupuestarias 3
6938
- * @param idEp2 Id de la estructura presupuestaria 2
6939
- * @return Observable<MEstructurapresupuestaria[]>
6940
- * @author Miguel Ramírez
6941
- */
6942
- getBudgetStructureThree(idEp2) {
6943
- 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))));
6944
- }
6945
- /**
6946
- * @description Elimina una o varias estructuras presupuestarias uno
6947
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
6948
- * @return Observable<any>
6949
- * @author Miguel Ramírez
6950
- */
6951
- deleteBudgetStructureTwo(idStructures) {
6952
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6953
- }
6954
- /**
6955
- * @description Actualiza una estructura presupuestaria dos
6956
- * @param structure Estructura presupuestaria uno que se va a actualizar
6957
- * @return Observable<any>
6958
- */
6959
- updateBudgetStructureTwo(structure) {
6960
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, structure, { headers: this.getHttpHeaders() });
6961
- }
6962
- /**
6963
- * @description Registra las estructuras presupuestrias dos en la base de datos
6964
- * @param budgetStructures Array de estructuras presupuestaria que se van a registrar
6965
- * @return Observable<any>
6966
- * @author Miguel Ramírez
6967
- */
6968
- setBudgetStructureTwo(budgetStructures) {
6969
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria2_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
6970
- }
6971
- /**
6972
- * @description Obtiene la estructura presupuestaria
6973
- * @return Observable<MEstructuraPresupuestaria[]>
6974
- * @author Miguel Ramírez
6975
- */
6976
- getBudgetStructureTwo(idEp1) {
6977
- 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)))));
6978
- }
6979
- /**
6980
- * @description Obtiene la estructura presupuestaria
6981
- * @return Observable<MEstructuraPresupuestaria[]>
6982
- * @author Miguel Ramírez
6983
- */
6984
- getBudgetStructureTwoAll() {
6985
- 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)))));
6986
- }
6987
- /**
6988
- * @description Elimina una o varias estructuras presupuestarias uno
6989
- * @param idStructures Id de la o las estructuras presupuestarias que van a ser eliminadas
6990
- * @return Observable<any>
6991
- * @author Miguel Ramírez
6723
+ * @Actualiza la distribución de la cuenta de Ingreso de Estructura
6724
+ * @param distribution
6992
6725
  */
6993
- deleteBudgetStructureOne(idStructures) {
6994
- return this.http.request('delete', `${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, { body: idStructures, headers: this.getHttpHeaders() });
6726
+ updateDistributionIncomeStructureAccount(distribution, level) {
6727
+ return this.http.put(`${this.URL}/dao/spi/cuenta_estructura_ingresos_dao.php`, distribution, { headers: this.getHttpHeaders() })
6728
+ .pipe(map((res) => {
6729
+ if (res.success) {
6730
+ res.data = new MIncomeStructureAccount(res.data, level);
6731
+ }
6732
+ return res;
6733
+ }));
6995
6734
  }
6996
6735
  /**
6997
- * @description Actualiza una estructura presupuestaria uno
6998
- * @param structure Estructura presupuestaria uno que se va a actualizar
6999
- * @return Observable<any>
6736
+ * @description Obtiene el plan de cuentas
6737
+ * @param level Número de niveles de la configuración
6738
+ * @param id de la estructura el idEp3 o idEp5
6739
+ * @return Observable<MCuentaEgresos[]>
7000
6740
  */
7001
- updateBudgetStructureOne(structure) {
7002
- return this.http.put(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, structure, { headers: this.getHttpHeaders() });
6741
+ planInstitucionalSPG(tipo = 'plan', idEnterprise, periodoFiscal, idEP3o5, nivel) {
6742
+ return this.http.get(`${this.URL}/dao/spg/cuentas_egresos_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFiscal}&id=${idEP3o5}&nivel=${nivel}`, { headers: this.getHttpHeaders() })
6743
+ .pipe(map((res) => res.data.map(element => new MCuentaEgresos(element))));
7003
6744
  }
7004
6745
  /**
7005
- * @description Registra las estructuras presupuestrias en la base de datos
7006
- * @param budgetStructures Array de estructuras presupuestaria que s evan a registrar
7007
- * @return Observable<any>
6746
+ * @description Abre el catálogo de estructura presupuesaria
6747
+ * @param data Data que se va a mostrar
6748
+ * @param configuration Configuración de la estructura
6749
+ * @return Promise<any>
7008
6750
  * @author Miguel Ramírez
7009
6751
  */
7010
- setBudgetStructureOne(budgetStructures) {
7011
- return this.http.post(`${this.URL}/dao/spg/estructura_presupuestaria1_dao.php`, budgetStructures, { headers: this.getHttpHeaders() });
6752
+ openCatalogoEstructuraPresupuestaria(data, configuration) {
6753
+ const catalogo = this.dialog.open(CatalogoEstructurasComponent, {
6754
+ data: {
6755
+ data,
6756
+ configuration
6757
+ },
6758
+ width: '1000px',
6759
+ maxHeight: '90vh'
6760
+ });
6761
+ return catalogo.afterClosed().toPromise();
7012
6762
  }
7013
6763
  /**
7014
- * @description Obtiene la estructura presupuestaria
7015
- * @return Observable<MEstructuraPresupuestaria[]>
7016
- * @author Miguel Ramírez
6764
+ *
6765
+ * @param tipo {1,2,3,4,completa}
6766
+ * @param idEnterprise
6767
+ * @param periodoFiscal
6768
+ * @param codigo {codigo de la estructura }
6769
+ * @returns
7017
6770
  */
7018
- getBudgetStructureOne() {
7019
- 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)))));
6771
+ getBudgetStructureComplete(tipo = 'completa', idEnterprise, periodoFiscal, codigo = '') {
6772
+ return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_dao.php?tipo=${tipo}$e=${idEnterprise}$per=${periodoFiscal}&cod=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((resp) => resp.data.map(e => new MEstructuras(e))));
7020
6773
  }
7021
6774
  /**
7022
6775
  * @description Obtiene las configuraciones de la estructura presupuestaria
@@ -7024,7 +6777,7 @@ class SigespService {
7024
6777
  * @author Miguel Ramírez
7025
6778
  */
7026
6779
  getConfigurationSPG(idEnterprise, periodoFical) {
7027
- 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])));
6780
+ return this.http.get(`${this.URL}/dao/spg/configuracion_presupuestaria_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
7028
6781
  }
7029
6782
  /**
7030
6783
  * @description Obtiene las configuraciones de los proveedores
@@ -7545,44 +7298,6 @@ class SigespService {
7545
7298
  return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus", "provType"], titulo, cuentas, ["Cuenta", "Denominación", "Estado", "Tipo"], ancho);
7546
7299
  });
7547
7300
  }
7548
- /**
7549
- * @description Abre el cátalogo de cuentas de la tabla "spg_cuentas"
7550
- * @returns Promise<MCuentaEgresos>
7551
- * @author Carlos Albornoz
7552
- * @params presupuesto: Indica si se a trabajar con estructura de presupuesto o no
7553
- */
7554
- openCatalogoCuentasEgreso(titulo, presupuesto = true, ancho = "1000px") {
7555
- return __awaiter(this, void 0, void 0, function* () {
7556
- let cuentas = [];
7557
- yield this.getExpenseAccounts().toPromise().then(res => {
7558
- cuentas = res;
7559
- cuentas = cuentas.filter(e => {
7560
- return e.status == "C";
7561
- }).map(e => {
7562
- e['provStatus'] = e.status == "C" ? "Movimientos" : "Totalizadora";
7563
- return e;
7564
- });
7565
- });
7566
- if (presupuesto) {
7567
- return this.openCatalogoDosInputs(["cuenta", "denominacion", "estructura", "provStatus"], titulo, cuentas, [{
7568
- placeholder: "Cuenta",
7569
- property: "cuenta"
7570
- }, {
7571
- placeholder: "Estructura",
7572
- property: "estructura"
7573
- }], ["Cuenta", "Denominación", "Estructura", "Estado"], ancho);
7574
- }
7575
- else {
7576
- let filteredAccounts = [];
7577
- cuentas.forEach(c => {
7578
- if (!filteredAccounts.find(e => e.cuenta == c.cuenta)) {
7579
- filteredAccounts.push(c);
7580
- }
7581
- });
7582
- return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
7583
- }
7584
- });
7585
- }
7586
7301
  /**
7587
7302
  * @description Abre el cátalogo de cuentas de la tabla "spi_cuentas"
7588
7303
  * @returns Promise<MCuentaIngresos>
@@ -7845,9 +7560,9 @@ class SigespService {
7845
7560
  * @return Promise<MProveedor>
7846
7561
  * @author Miguel Ramírez
7847
7562
  */
7848
- openDialogProveedores() {
7563
+ openDialogProveedores(idEnterprise) {
7849
7564
  return __awaiter(this, void 0, void 0, function* () {
7850
- let proveedores = yield this.getProveedores().toPromise();
7565
+ let proveedores = yield this.getProveedores(idEnterprise).toPromise();
7851
7566
  let dialogRef = this.dialog.open(CatalogoComponent, {
7852
7567
  data: {
7853
7568
  columns: ['tipo', 'rif', 'nombre'],
@@ -7865,7 +7580,7 @@ class SigespService {
7865
7580
  * @return Observable<MProveedor[]>
7866
7581
  * @author Miguel Ramírez
7867
7582
  */
7868
- getProveedores() {
7583
+ getProveedores(idEnterprise) {
7869
7584
  let request = {
7870
7585
  operacion: 'obtenerData',
7871
7586
  sigesp_conexion: {
@@ -7873,7 +7588,7 @@ class SigespService {
7873
7588
  usuario: this.usuarioActivo.getInterface()
7874
7589
  }
7875
7590
  };
7876
- 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))));
7591
+ return this.http.post(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php?e=${idEnterprise}`, request).pipe(map((res) => res.map(element => new MProveedor(element))));
7877
7592
  }
7878
7593
  /**
7879
7594
  * @description Obtiene los proveedores y beneficiarios
@@ -7885,8 +7600,8 @@ class SigespService {
7885
7600
  * @account ={'S','N'} para traer las cuentas bancarias del proveedor por defecto esta en N
7886
7601
  * @modificado 17-07-2023
7887
7602
  */
7888
- getProvidersAndBeneficiaries(type = 'default', destination = null, account = 'N') {
7889
- return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7603
+ getProvidersAndBeneficiaries(type = 'default', idEnterprise, destination = null, account = 'N') {
7604
+ return this.http.get(`${this.URL}/dao/rpc/proveedor_beneficiario_dao.php${type ? `?provider_type=${type}` : ''}&e=${idEnterprise}&destination=${destination}&account=${account}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7890
7605
  if (res.success) {
7891
7606
  res.data = res.data.map(e => new MProviderBeneficiary(e));
7892
7607
  }
@@ -8620,6 +8335,9 @@ class SigespService {
8620
8335
  getVerificarRelease(tipo, sistema, seccion = null) {
8621
8336
  return this.http.get(`${this.URL}/dao/ins/instala_dao.php?tipo=${tipo}&sistema=${sistema}&seccion=${seccion}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
8622
8337
  }
8338
+ getReportePersonalizado(tipo = 'default', idEnterprise, sistema, caso) {
8339
+ return this.http.get(`${this.URL}/dao/cfg/configuracionErp_dao.php?tipo=${tipo}&e=${idEnterprise}&sis=${sistema}&cas=${caso}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res.data; }));
8340
+ }
8623
8341
  }
8624
8342
  SigespService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, deps: [{ token: i1$1.HttpClient }, { token: i1.MatDialog }, { token: i3$2.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable });
8625
8343
  SigespService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: SigespService, providedIn: 'root' });
@@ -9241,6 +8959,191 @@ class MUnidadAdministradoraCentral extends MBasicModel {
9241
8959
  }
9242
8960
  }
9243
8961
 
8962
+ class MEstructuraPresupuestariaOne {
8963
+ constructor(eP) {
8964
+ this.isNew = false;
8965
+ this.codigoEstructuraProgramatica = eP.codestpro1;
8966
+ this.denominacionEstructuraProgramatica = eP.denestpro1;
8967
+ this.idEmpresa = eP.id_empresa;
8968
+ this.cuentaContable = eP.sc_cuenta;
8969
+ this.estatusClasificacion = eP.estcla;
8970
+ this.idEstructura = eP.id_ep1;
8971
+ }
8972
+ }
8973
+ class MEstructuraPresupuestariaTwo {
8974
+ constructor(eP) {
8975
+ this.isNew = false;
8976
+ this.codigoEstructuraProgramatica = eP.codestpro2;
8977
+ this.denominacionEstructuraProgramatica = eP.denestpro2;
8978
+ this.idEmpresa = eP.id_empresa;
8979
+ this.estatusClasificacion = eP.estcla;
8980
+ this.idEstructuraOne = eP.id_ep1;
8981
+ this.idEstructuraTwo = eP.id_ep2;
8982
+ }
8983
+ }
8984
+ class MEstructuraPresupuestariaThree {
8985
+ constructor(ep) {
8986
+ this.isNew = false;
8987
+ this.codigoCentroCosto = ep.codcencos;
8988
+ this.codigoEstructuraProgramatica = ep.codestpro3;
8989
+ this.estatusClasificacion = ep.estcla;
8990
+ this.idEmpresa = ep.id_empresa;
8991
+ this.idEstructuraOne = ep.id_ep1;
8992
+ this.idEstructuraTwo = ep.id_ep2;
8993
+ this.idEstructuraThree = ep.id_ep3;
8994
+ }
8995
+ }
8996
+ class MEstructuraPresupuestariaThreeComplete {
8997
+ constructor(ep) {
8998
+ this.isNew = false;
8999
+ this.idEmpresa = ep.id_empresa;
9000
+ this.idEstricturaOne = ep.id_ep1;
9001
+ this.idEstricturaTwo = ep.id_ep2;
9002
+ this.idEstricturaThree = ep.id_ep3;
9003
+ this.codigoEstructuraProgramaticaOne = ep.codestpro1;
9004
+ this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
9005
+ this.codigoEstructuraProgramaticaThree = ep.codestpro3;
9006
+ this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
9007
+ this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
9008
+ this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
9009
+ this.estatusClasificacion = ep.estcla;
9010
+ }
9011
+ }
9012
+ class MEstructuraPresupuestariaFour {
9013
+ constructor(ep) {
9014
+ this.isNew = false;
9015
+ this.codigoEstructuraProgramatica = ep.codestpro4;
9016
+ this.denominacionEstructuraProgramatica = ep.denestpro4;
9017
+ this.estatusClasificacion = ep.estcla;
9018
+ this.idEmpresa = ep.id_empresa;
9019
+ this.idEstructuraOne = ep.id_ep1;
9020
+ this.idEstructuraTwo = ep.id_ep2;
9021
+ this.idEstructuraThree = ep.id_ep3;
9022
+ this.idEstructuraFour = ep.id_ep4;
9023
+ }
9024
+ }
9025
+ class MEstructuraPresupuestariaFive {
9026
+ constructor(ep) {
9027
+ this.isNew = false;
9028
+ this.idEmpresa = ep.id_empresa;
9029
+ this.idEstructuraOne = ep.id_ep1;
9030
+ this.idEstructuraTwo = ep.id_ep2;
9031
+ this.idEstructuraThree = ep.id_ep3;
9032
+ this.idEstructuraFour = ep.id_ep4;
9033
+ this.idEstructuraFive = ep.id_ep5;
9034
+ this.codigoEstructuraProgramatica = ep.codestpro5;
9035
+ this.denominacionEstructuraProgramatica = ep.denestpro5;
9036
+ this.estatusClasificacion = ep.estcla;
9037
+ }
9038
+ dataInterface() {
9039
+ return {
9040
+ id_empresa: this.idEmpresa,
9041
+ id_ep1: this.idEstructuraOne,
9042
+ id_ep2: this.idEstructuraTwo,
9043
+ id_ep3: this.idEstructuraThree,
9044
+ id_ep4: this.idEstructuraFour,
9045
+ id_ep5: this.idEstructuraFive,
9046
+ codestpro5: this.codigoEstructuraProgramatica,
9047
+ denestpro5: this.denominacionEstructuraProgramatica,
9048
+ estcla: this.estatusClasificacion,
9049
+ };
9050
+ }
9051
+ }
9052
+ class MEstructuraPresupuestariaFiveComplete extends MBasicModel {
9053
+ constructor(ep, level = null) {
9054
+ super();
9055
+ this.codigoEstructuraProgramaticaOne = '';
9056
+ this.codigoEstructuraProgramaticaTwo = '';
9057
+ this.codigoEstructuraProgramaticaThree = '';
9058
+ this.codigoEstructuraProgramaticaFour = '';
9059
+ this.codigoEstructuraProgramaticaFive = '';
9060
+ this.denominacionEstructuraProgramaticaOne = '';
9061
+ this.denominacionEstructuraProgramaticaTwo = '';
9062
+ this.denominacionEstructuraProgramaticaThree = '';
9063
+ this.denominacionEstructuraProgramaticaFour = '';
9064
+ this.denominacionEstructuraProgramaticaFive = '';
9065
+ this.estatusClasificacion = '';
9066
+ this.tipo = '';
9067
+ this.idEmpresa = 0;
9068
+ this.idEnterprise = 0;
9069
+ this.periodoFiscal = 0;
9070
+ this.idEstructuraOne = 0;
9071
+ this.idEstructuraTwo = 0;
9072
+ this.idEstructuraThree = 0;
9073
+ this.idEstructuraFor = 0;
9074
+ this.idEstructuraFive = 0;
9075
+ this.estructura = '';
9076
+ this.denominacion = '';
9077
+ this.level = 0;
9078
+ this.isNew = false;
9079
+ if (ep) {
9080
+ this.codigoEstructuraProgramaticaOne = ep.codestpro1;
9081
+ this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
9082
+ this.codigoEstructuraProgramaticaThree = ep.codestpro3;
9083
+ this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
9084
+ this.codigoEstructuraProgramaticaFive = ep.codestpro5 ? ep.codestpro5 : '---';
9085
+ this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
9086
+ this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
9087
+ this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
9088
+ this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
9089
+ this.denominacionEstructuraProgramaticaFive = ep.denestpro5 ? ep.denestpro5 : '---';
9090
+ this.estatusClasificacion = ep.estcla;
9091
+ this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
9092
+ this.idEmpresa = +ep.id_empresa;
9093
+ this.idEstructuraOne = +ep.id_ep1;
9094
+ this.idEstructuraTwo = +ep.id_ep2;
9095
+ this.idEstructuraThree = +ep.id_ep3;
9096
+ this.idEstructuraFor = +ep.id_ep4;
9097
+ ;
9098
+ this.idEstructuraFive = +ep.id_ep5;
9099
+ this.level = level;
9100
+ if (level == 3) {
9101
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
9102
+ this.denominacion = this.denominacionEstructuraProgramaticaThree;
9103
+ }
9104
+ else {
9105
+ this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
9106
+ this.denominacion = this.denominacionEstructuraProgramaticaFive;
9107
+ }
9108
+ }
9109
+ else {
9110
+ this.isNew = true;
9111
+ }
9112
+ }
9113
+ dataInterface() {
9114
+ return {
9115
+ codestpro1: this.codigoEstructuraProgramaticaOne,
9116
+ codestpro2: this.codigoEstructuraProgramaticaTwo,
9117
+ codestpro3: this.codigoEstructuraProgramaticaThree,
9118
+ codestpro4: this.codigoEstructuraProgramaticaFour,
9119
+ codestpro5: this.codigoEstructuraProgramaticaFive,
9120
+ denestpro1: this.denominacionEstructuraProgramaticaOne,
9121
+ denestpro2: this.denominacionEstructuraProgramaticaTwo,
9122
+ denestpro3: this.denominacionEstructuraProgramaticaThree,
9123
+ denestpro4: this.denominacionEstructuraProgramaticaFour,
9124
+ denestpro5: this.denominacionEstructuraProgramaticaFive,
9125
+ estcla: this.estatusClasificacion,
9126
+ id_empresa: this.idEmpresa.toString(),
9127
+ id_enterprise: this.idEnterprise.toString(),
9128
+ perfiscal: this.periodoFiscal.toString(),
9129
+ id_ep1: this.idEstructuraOne.toString(),
9130
+ id_ep2: this.idEstructuraTwo.toString(),
9131
+ id_ep3: this.idEstructuraThree.toString(),
9132
+ id_ep4: this.idEstructuraFor.toString(),
9133
+ id_ep5: this.idEstructuraFive.toString(),
9134
+ };
9135
+ }
9136
+ }
9137
+ class MAllStructure {
9138
+ constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
9139
+ this.structureOne = structureOne;
9140
+ this.structureTwo = structureTwo;
9141
+ this.structureThree = structureThree;
9142
+ this.structureFour = structureFour;
9143
+ this.structureFive = structureFive;
9144
+ }
9145
+ }
9146
+
9244
9147
  class MPlanUnicoCuenta extends MBasicModel {
9245
9148
  constructor(plan) {
9246
9149
  super();
@@ -14767,5 +14670,5 @@ class customPaginator extends MatPaginatorIntl {
14767
14670
  * Generated bundle index. Do not edit.
14768
14671
  */
14769
14672
 
14770
- 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 };
14673
+ 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 };
14771
14674
  //# sourceMappingURL=sigesp.mjs.map