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.
- package/bundles/sigesp.umd.js +16 -8
- 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/core/models/SPG/fuenteFinanciamiento.model.js +6 -1
- package/esm2015/lib/sigesp.service.js +11 -9
- package/fesm2015/sigesp.js +15 -8
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +6 -4
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -1995,6 +1995,11 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
1995
1995
|
class MFuenteFinanciamiento extends MBasicModel {
|
|
1996
1996
|
constructor(fuente) {
|
|
1997
1997
|
super();
|
|
1998
|
+
this.codigoFuenteFinanciamiento = '';
|
|
1999
|
+
this.denominacionFuenteFinanciamiento = '';
|
|
2000
|
+
this.explicacionFuenteFinanciamiento = '';
|
|
2001
|
+
this.idEmpresa = '0';
|
|
2002
|
+
this.codigo = '0';
|
|
1998
2003
|
if (fuente) {
|
|
1999
2004
|
this.codigoFuenteFinanciamiento = fuente.codfuefin;
|
|
2000
2005
|
this.denominacionFuenteFinanciamiento = fuente.denfuefin;
|
|
@@ -6495,12 +6500,13 @@ class SigespService {
|
|
|
6495
6500
|
* @description Obtiene la estructura completa dependiendo de la configuración
|
|
6496
6501
|
* @return Promise<any[]>
|
|
6497
6502
|
* @author Miguel Ramírez
|
|
6503
|
+
* @type= {}
|
|
6498
6504
|
*/
|
|
6499
|
-
getBudgetStructureComplete(nivel) {
|
|
6505
|
+
getBudgetStructureComplete(nivel, tipo) {
|
|
6500
6506
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6501
6507
|
return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () {
|
|
6502
6508
|
let data = [];
|
|
6503
|
-
yield this.getBudgetStructureFive(nivel).subscribe(result => {
|
|
6509
|
+
yield this.getBudgetStructureFive(nivel, tipo).subscribe(result => {
|
|
6504
6510
|
data.push(...result);
|
|
6505
6511
|
});
|
|
6506
6512
|
// await this.getBudgetStructureThreeComplete(3).subscribe(result => {
|
|
@@ -6541,9 +6547,10 @@ class SigespService {
|
|
|
6541
6547
|
* @description Obtiene toda la estructura presupuestaria 5
|
|
6542
6548
|
* @return Observable<MEstructuraPresupuestariaFive[]>
|
|
6543
6549
|
* @author Miguel Ramírez
|
|
6550
|
+
* @params tipo:"sss"
|
|
6544
6551
|
*/
|
|
6545
|
-
getBudgetStructureFive(level = null) {
|
|
6546
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria5_dao.php?complete=true`, { headers: this.getHttpHeaders() }).pipe(
|
|
6552
|
+
getBudgetStructureFive(level = null, tipo = '') {
|
|
6553
|
+
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
6554
|
}
|
|
6548
6555
|
/**
|
|
6549
6556
|
* @description Obtiene la estructura presupuestaria 5 por el Id de la estructura 4
|
|
@@ -7229,8 +7236,8 @@ class SigespService {
|
|
|
7229
7236
|
* @return Observable<MCuentaPresupuesto>
|
|
7230
7237
|
* @author Miguel Ramírez
|
|
7231
7238
|
*/
|
|
7232
|
-
getCuentasPresupuesto() {
|
|
7233
|
-
return this.http.get(`${this.URL}/dao/scg/plan_unico_cuentas_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => res.data.map(element => new MCuentaPresupuesto(element))));
|
|
7239
|
+
getCuentasPresupuesto(filter) {
|
|
7240
|
+
return this.http.get(`${this.URL}/dao/scg/plan_unico_cuentas_dao.php?filter=${filter}`, { headers: this.getHttpHeaders() }).pipe(map((res) => res.data.map(element => new MCuentaPresupuesto(element))));
|
|
7234
7241
|
}
|
|
7235
7242
|
/**
|
|
7236
7243
|
* @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
|
|
@@ -7340,8 +7347,8 @@ class SigespService {
|
|
|
7340
7347
|
}
|
|
7341
7348
|
});
|
|
7342
7349
|
}
|
|
7343
|
-
getUnidadAdministrativa() {
|
|
7344
|
-
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php`, { headers: this.getHttpHeaders() })
|
|
7350
|
+
getUnidadAdministrativa(tipo) {
|
|
7351
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}`, { headers: this.getHttpHeaders() })
|
|
7345
7352
|
.pipe(map((res) => {
|
|
7346
7353
|
if (res.success) {
|
|
7347
7354
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|