sigesp 0.9.99-20240222 → 0.9.101-20240224

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.
@@ -3603,7 +3603,6 @@ class MEstructuras extends MBasicModel {
3603
3603
  this.cuentaPresupuestaria = dt.cuentapresupuestaria;
3604
3604
  this.denominacion = dt.denominacion;
3605
3605
  this.estructura = dt.estructura;
3606
- this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
3607
3606
  this.idEp1 = parseInt(dt.id_ep1);
3608
3607
  this.idEp2 = parseInt(dt.id_ep2);
3609
3608
  this.idEp3 = parseInt(dt.id_ep3);
@@ -3621,6 +3620,9 @@ class MEstructuras extends MBasicModel {
3621
3620
  this.denominacion3 = dt.status;
3622
3621
  this.idDtUni = parseInt(dt.id_dt_uniadm);
3623
3622
  this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
3623
+ if (dt.fuentes) {
3624
+ this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
3625
+ }
3624
3626
  }
3625
3627
  }
3626
3628
  dataInterface() {
@@ -6493,12 +6495,13 @@ class SigespService {
6493
6495
  * @description Obtiene la estructura completa dependiendo de la configuración
6494
6496
  * @return Promise<any[]>
6495
6497
  * @author Miguel Ramírez
6498
+ * @type= {}
6496
6499
  */
6497
- getBudgetStructureComplete(nivel) {
6500
+ getBudgetStructureComplete(nivel, tipo) {
6498
6501
  return __awaiter(this, void 0, void 0, function* () {
6499
6502
  return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
6500
6503
  let data = [];
6501
- yield this.getBudgetStructureFive(nivel).subscribe(result => {
6504
+ yield this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
6502
6505
  data.push(...result);
6503
6506
  });
6504
6507
  // await this.getBudgetStructureThreeComplete(3).subscribe(result => {
@@ -6539,9 +6542,10 @@ class SigespService {
6539
6542
  * @description Obtiene toda la estructura presupuestaria 5
6540
6543
  * @return Observable<MEstructuraPresupuestariaFive[]>
6541
6544
  * @author Miguel Ramírez
6545
+ * @params tipo:"sss"
6542
6546
  */
6543
- getBudgetStructureFive(level = null) {
6544
- return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php?complete=true`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(e => new MEstructuraPresupuestariaFiveComplete(e, level))));
6547
+ getBudgetStructureFive(level = null, tipo = '') {
6548
+ 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))));
6545
6549
  }
6546
6550
  /**
6547
6551
  * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
@@ -7338,8 +7342,8 @@ class SigespService {
7338
7342
  }
7339
7343
  });
7340
7344
  }
7341
- getUnidadAdministrativa() {
7342
- return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php`, { headers: this.getHttpHeaders() })
7345
+ getUnidadAdministrativa(tipo) {
7346
+ return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}`, { headers: this.getHttpHeaders() })
7343
7347
  .pipe(map((res) => {
7344
7348
  if (res.success) {
7345
7349
  res.data = res.data.map(e => new MAdministrativeUnit(e));