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.
@@ -4052,7 +4052,6 @@
4052
4052
  _this.cuentaPresupuestaria = dt.cuentapresupuestaria;
4053
4053
  _this.denominacion = dt.denominacion;
4054
4054
  _this.estructura = dt.estructura;
4055
- _this.fuentes = dt.fuentes.map(function (e) { return new MFuenteFinanciamiento(e); });
4056
4055
  _this.idEp1 = parseInt(dt.id_ep1);
4057
4056
  _this.idEp2 = parseInt(dt.id_ep2);
4058
4057
  _this.idEp3 = parseInt(dt.id_ep3);
@@ -4070,6 +4069,9 @@
4070
4069
  _this.denominacion3 = dt.status;
4071
4070
  _this.idDtUni = parseInt(dt.id_dt_uniadm);
4072
4071
  _this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
4072
+ if (dt.fuentes) {
4073
+ _this.fuentes = dt.fuentes.map(function (e) { return new MFuenteFinanciamiento(e); });
4074
+ }
4073
4075
  }
4074
4076
  return _this;
4075
4077
  }
@@ -7034,8 +7036,9 @@
7034
7036
  * @description Obtiene la estructura completa dependiendo de la configuración
7035
7037
  * @return Promise<any[]>
7036
7038
  * @author Miguel Ramírez
7039
+ * @type= {}
7037
7040
  */
7038
- SigespService.prototype.getBudgetStructureComplete = function (nivel) {
7041
+ SigespService.prototype.getBudgetStructureComplete = function (nivel, tipo) {
7039
7042
  return __awaiter(this, void 0, void 0, function () {
7040
7043
  var _this = this;
7041
7044
  return __generator(this, function (_a) {
@@ -7045,7 +7048,7 @@
7045
7048
  switch (_a.label) {
7046
7049
  case 0:
7047
7050
  data = [];
7048
- return [4 /*yield*/, this.getBudgetStructureFive(nivel).subscribe(function (result) {
7051
+ return [4 /*yield*/, this.getBudgetStructureFive(nivel, tipo).subscribe(function (result) {
7049
7052
  data.push.apply(data, __spread(result));
7050
7053
  })];
7051
7054
  case 1:
@@ -7097,10 +7100,12 @@
7097
7100
  * @description Obtiene toda la estructura presupuestaria 5
7098
7101
  * @return Observable<MEstructuraPresupuestariaFive[]>
7099
7102
  * @author Miguel Ramírez
7103
+ * @params tipo:"sss"
7100
7104
  */
7101
- SigespService.prototype.getBudgetStructureFive = function (level) {
7105
+ SigespService.prototype.getBudgetStructureFive = function (level, tipo) {
7102
7106
  if (level === void 0) { level = null; }
7103
- return this.http.get(this.URL + "/dao/spg/estructura_presupuestaria5_dao.php?complete=true", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (resp) { return resp.data.map(function (e) { return new MEstructuraPresupuestariaFiveComplete(e, level); }); }));
7107
+ if (tipo === void 0) { tipo = ''; }
7108
+ return this.http.get(this.URL + "/dao/spg/estructura_presupuestaria5_dao.php?complete=true&tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.map(function (resp) { return resp.data.map(function (e) { return new MEstructuraPresupuestariaFiveComplete(e, level); }); }));
7104
7109
  };
7105
7110
  /**
7106
7111
  * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
@@ -7988,8 +7993,8 @@
7988
7993
  });
7989
7994
  });
7990
7995
  };
7991
- SigespService.prototype.getUnidadAdministrativa = function () {
7992
- return this.http.get(this.URL + "/dao/spg/unidad_administrativa_dao.php", { headers: this.getHttpHeaders() })
7996
+ SigespService.prototype.getUnidadAdministrativa = function (tipo) {
7997
+ return this.http.get(this.URL + "/dao/spg/unidad_administrativa_dao.php?tipo=" + tipo, { headers: this.getHttpHeaders() })
7993
7998
  .pipe(operators.map(function (res) {
7994
7999
  if (res.success) {
7995
8000
  res.data = res.data.map(function (e) { return new MAdministrativeUnit(e); });