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/fesm2015/sigesp.js
CHANGED
|
@@ -6495,12 +6495,13 @@ class SigespService {
|
|
|
6495
6495
|
* @description Obtiene la estructura completa dependiendo de la configuración
|
|
6496
6496
|
* @return Promise<any[]>
|
|
6497
6497
|
* @author Miguel Ramírez
|
|
6498
|
+
* @type= {}
|
|
6498
6499
|
*/
|
|
6499
|
-
getBudgetStructureComplete(nivel) {
|
|
6500
|
+
getBudgetStructureComplete(nivel, tipo) {
|
|
6500
6501
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6501
6502
|
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
|
6502
6503
|
let data = [];
|
|
6503
|
-
yield this.getBudgetStructureFive(nivel).subscribe(result => {
|
|
6504
|
+
yield this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
|
|
6504
6505
|
data.push(...result);
|
|
6505
6506
|
});
|
|
6506
6507
|
// await this.getBudgetStructureThreeComplete(3).subscribe(result => {
|
|
@@ -6541,9 +6542,10 @@ class SigespService {
|
|
|
6541
6542
|
* @description Obtiene toda la estructura presupuestaria 5
|
|
6542
6543
|
* @return Observable<MEstructuraPresupuestariaFive[]>
|
|
6543
6544
|
* @author Miguel Ramírez
|
|
6545
|
+
* @params tipo:"sss"
|
|
6544
6546
|
*/
|
|
6545
|
-
getBudgetStructureFive(level = null) {
|
|
6546
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php?complete=true`, { headers: this.getHttpHeaders() }).pipe(
|
|
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))));
|
|
6547
6549
|
}
|
|
6548
6550
|
/**
|
|
6549
6551
|
* @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
|
|
@@ -7340,8 +7342,8 @@ class SigespService {
|
|
|
7340
7342
|
}
|
|
7341
7343
|
});
|
|
7342
7344
|
}
|
|
7343
|
-
getUnidadAdministrativa() {
|
|
7344
|
-
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() })
|
|
7345
7347
|
.pipe(map((res) => {
|
|
7346
7348
|
if (res.success) {
|
|
7347
7349
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|