sigesp 0.9.100-20240222 → 0.9.102-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.
@@ -2347,6 +2347,11 @@
2347
2347
  __extends(MFuenteFinanciamiento, _super);
2348
2348
  function MFuenteFinanciamiento(fuente) {
2349
2349
  var _this = _super.call(this) || this;
2350
+ _this.codigoFuenteFinanciamiento = '';
2351
+ _this.denominacionFuenteFinanciamiento = '';
2352
+ _this.explicacionFuenteFinanciamiento = '';
2353
+ _this.idEmpresa = '0';
2354
+ _this.codigo = '0';
2350
2355
  if (fuente) {
2351
2356
  _this.codigoFuenteFinanciamiento = fuente.codfuefin;
2352
2357
  _this.denominacionFuenteFinanciamiento = fuente.denfuefin;
@@ -7036,8 +7041,9 @@
7036
7041
  * @description Obtiene la estructura completa dependiendo de la configuración
7037
7042
  * @return Promise<any[]>
7038
7043
  * @author Miguel Ramírez
7044
+ * @type= {}
7039
7045
  */
7040
- SigespService.prototype.getBudgetStructureComplete = function (nivel) {
7046
+ SigespService.prototype.getBudgetStructureComplete = function (nivel, tipo) {
7041
7047
  return __awaiter(this, void 0, void 0, function () {
7042
7048
  var _this = this;
7043
7049
  return __generator(this, function (_a) {
@@ -7047,7 +7053,7 @@
7047
7053
  switch (_a.label) {
7048
7054
  case 0:
7049
7055
  data = [];
7050
- return [4 /*yield*/, this.getBudgetStructureFive(nivel).subscribe(function (result) {
7056
+ return [4 /*yield*/, this.getBudgetStructureFive(nivel, tipo).subscribe(function (result) {
7051
7057
  data.push.apply(data, __spread(result));
7052
7058
  })];
7053
7059
  case 1:
@@ -7099,10 +7105,12 @@
7099
7105
  * @description Obtiene toda la estructura presupuestaria 5
7100
7106
  * @return Observable<MEstructuraPresupuestariaFive[]>
7101
7107
  * @author Miguel Ramírez
7108
+ * @params tipo:"sss"
7102
7109
  */
7103
- SigespService.prototype.getBudgetStructureFive = function (level) {
7110
+ SigespService.prototype.getBudgetStructureFive = function (level, tipo) {
7104
7111
  if (level === void 0) { level = null; }
7105
- 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); }); }));
7112
+ if (tipo === void 0) { tipo = ''; }
7113
+ 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); }); }));
7106
7114
  };
7107
7115
  /**
7108
7116
  * @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
@@ -7847,8 +7855,8 @@
7847
7855
  * @return Observable<MCuentaPresupuesto>
7848
7856
  * @author Miguel Ramírez
7849
7857
  */
7850
- SigespService.prototype.getCuentasPresupuesto = function () {
7851
- return this.http.get(this.URL + "/dao/scg/plan_unico_cuentas_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) { return res.data.map(function (element) { return new MCuentaPresupuesto(element); }); }));
7858
+ SigespService.prototype.getCuentasPresupuesto = function (filter) {
7859
+ return this.http.get(this.URL + "/dao/scg/plan_unico_cuentas_dao.php?filter=" + filter, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) { return res.data.map(function (element) { return new MCuentaPresupuesto(element); }); }));
7852
7860
  };
7853
7861
  /**
7854
7862
  * @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
@@ -7990,8 +7998,8 @@
7990
7998
  });
7991
7999
  });
7992
8000
  };
7993
- SigespService.prototype.getUnidadAdministrativa = function () {
7994
- return this.http.get(this.URL + "/dao/spg/unidad_administrativa_dao.php", { headers: this.getHttpHeaders() })
8001
+ SigespService.prototype.getUnidadAdministrativa = function (tipo) {
8002
+ return this.http.get(this.URL + "/dao/spg/unidad_administrativa_dao.php?tipo=" + tipo, { headers: this.getHttpHeaders() })
7995
8003
  .pipe(operators.map(function (res) {
7996
8004
  if (res.success) {
7997
8005
  res.data = res.data.map(function (e) { return new MAdministrativeUnit(e); });