sigesp 0.9.100-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.
- package/bundles/sigesp.umd.js +9 -6
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/sigesp.service.js +9 -7
- package/fesm2015/sigesp.js +8 -6
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +5 -3
- package/package.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -7036,8 +7036,9 @@
|
|
|
7036
7036
|
* @description Obtiene la estructura completa dependiendo de la configuración
|
|
7037
7037
|
* @return Promise<any[]>
|
|
7038
7038
|
* @author Miguel Ramírez
|
|
7039
|
+
* @type= {}
|
|
7039
7040
|
*/
|
|
7040
|
-
SigespService.prototype.getBudgetStructureComplete = function (nivel) {
|
|
7041
|
+
SigespService.prototype.getBudgetStructureComplete = function (nivel, tipo) {
|
|
7041
7042
|
return __awaiter(this, void 0, void 0, function () {
|
|
7042
7043
|
var _this = this;
|
|
7043
7044
|
return __generator(this, function (_a) {
|
|
@@ -7047,7 +7048,7 @@
|
|
|
7047
7048
|
switch (_a.label) {
|
|
7048
7049
|
case 0:
|
|
7049
7050
|
data = [];
|
|
7050
|
-
return [4 /*yield*/, this.getBudgetStructureFive(nivel).subscribe(function (result) {
|
|
7051
|
+
return [4 /*yield*/, this.getBudgetStructureFive(nivel, tipo).subscribe(function (result) {
|
|
7051
7052
|
data.push.apply(data, __spread(result));
|
|
7052
7053
|
})];
|
|
7053
7054
|
case 1:
|
|
@@ -7099,10 +7100,12 @@
|
|
|
7099
7100
|
* @description Obtiene toda la estructura presupuestaria 5
|
|
7100
7101
|
* @return Observable<MEstructuraPresupuestariaFive[]>
|
|
7101
7102
|
* @author Miguel Ramírez
|
|
7103
|
+
* @params tipo:"sss"
|
|
7102
7104
|
*/
|
|
7103
|
-
SigespService.prototype.getBudgetStructureFive = function (level) {
|
|
7105
|
+
SigespService.prototype.getBudgetStructureFive = function (level, tipo) {
|
|
7104
7106
|
if (level === void 0) { level = null; }
|
|
7105
|
-
|
|
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); }); }));
|
|
7106
7109
|
};
|
|
7107
7110
|
/**
|
|
7108
7111
|
* @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
|
|
@@ -7990,8 +7993,8 @@
|
|
|
7990
7993
|
});
|
|
7991
7994
|
});
|
|
7992
7995
|
};
|
|
7993
|
-
SigespService.prototype.getUnidadAdministrativa = function () {
|
|
7994
|
-
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() })
|
|
7995
7998
|
.pipe(operators.map(function (res) {
|
|
7996
7999
|
if (res.success) {
|
|
7997
8000
|
res.data = res.data.map(function (e) { return new MAdministrativeUnit(e); });
|