sigesp 0.9.91-20231211 → 0.9.92-20240123
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 +219 -41
- 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/interfaces/CuentaEgresos.js +1 -1
- package/esm2015/lib/core/interfaces/Presupuesto.js +1 -1
- package/esm2015/lib/core/models/SPG/cuentaPresupuesto.model.js +108 -1
- package/esm2015/lib/core/models/SPG/expensiveAccount.model.js +106 -38
- package/esm2015/lib/sigesp.service.js +3 -3
- package/fesm2015/sigesp.js +212 -39
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/CuentaEgresos.d.ts +26 -1
- package/lib/core/interfaces/Presupuesto.d.ts +61 -0
- package/lib/core/models/SPG/cuentaPresupuesto.model.d.ts +49 -0
- package/lib/core/models/SPG/expensiveAccount.model.d.ts +19 -8
- package/lib/sigesp.service.d.ts +1 -1
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -1435,7 +1435,116 @@
|
|
|
1435
1435
|
this.tipo = cuentaPresupuesto.tipcta;
|
|
1436
1436
|
}
|
|
1437
1437
|
return MCuentaPresupuesto;
|
|
1438
|
-
}());
|
|
1438
|
+
}());
|
|
1439
|
+
var MCuentaEgresos$1 = /** @class */ (function (_super) {
|
|
1440
|
+
__extends(MCuentaEgresos, _super);
|
|
1441
|
+
function MCuentaEgresos(cuenta, level, isNew) {
|
|
1442
|
+
var _this = _super.call(this) || this;
|
|
1443
|
+
_this.idEmpresa = 0;
|
|
1444
|
+
_this.nivel = 0;
|
|
1445
|
+
_this.denominacion = '';
|
|
1446
|
+
_this.cuenta = '';
|
|
1447
|
+
_this.cuentaContable = '------------';
|
|
1448
|
+
_this.cuentaONCOP = '------------';
|
|
1449
|
+
_this.clasificador = '------------';
|
|
1450
|
+
_this.referencia = '';
|
|
1451
|
+
_this.aumento = 0;
|
|
1452
|
+
_this.asignado = 0;
|
|
1453
|
+
_this.causado = 0;
|
|
1454
|
+
_this.disminucion = 0;
|
|
1455
|
+
_this.distribuir = 0;
|
|
1456
|
+
_this.precomprometido = 0;
|
|
1457
|
+
_this.pagado = 0;
|
|
1458
|
+
_this.enero = 0;
|
|
1459
|
+
_this.febrero = 0;
|
|
1460
|
+
_this.marzo = 0;
|
|
1461
|
+
_this.abril = 0;
|
|
1462
|
+
_this.mayo = 0;
|
|
1463
|
+
_this.junio = 0;
|
|
1464
|
+
_this.julio = 0;
|
|
1465
|
+
_this.agosto = 0;
|
|
1466
|
+
_this.septiembre = 0;
|
|
1467
|
+
_this.octubre = 0;
|
|
1468
|
+
_this.noviembre = 0;
|
|
1469
|
+
_this.diciembre = 0;
|
|
1470
|
+
_this.idEP1 = 0;
|
|
1471
|
+
_this.idEP2 = 0;
|
|
1472
|
+
_this.idEP3 = 0;
|
|
1473
|
+
_this.idEP4 = 0;
|
|
1474
|
+
_this.idEP5 = 0;
|
|
1475
|
+
_this.codestpro1 = '';
|
|
1476
|
+
_this.codestpro2 = '';
|
|
1477
|
+
_this.codestpro3 = '';
|
|
1478
|
+
_this.codestpro4 = '';
|
|
1479
|
+
_this.codestpro5 = '';
|
|
1480
|
+
_this.estructura = '';
|
|
1481
|
+
_this.selected = false;
|
|
1482
|
+
_this.isNew = false;
|
|
1483
|
+
_this.error = false;
|
|
1484
|
+
_this.status = '';
|
|
1485
|
+
_this.id = 0;
|
|
1486
|
+
_this.codfuefin = 0;
|
|
1487
|
+
if (cuenta) {
|
|
1488
|
+
_this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
1489
|
+
_this.nivel = parseInt(cuenta.nivel);
|
|
1490
|
+
_this.denominacion = cuenta.denspgcta;
|
|
1491
|
+
_this.cuenta = cuenta.spg_cuenta;
|
|
1492
|
+
_this.cuentaContable = cuenta.sc_cuenta;
|
|
1493
|
+
_this.status = cuenta.status;
|
|
1494
|
+
_this.referencia = cuenta.referencia;
|
|
1495
|
+
_this.aumento = parseInt(cuenta.aumento);
|
|
1496
|
+
_this.asignado = parseInt(cuenta.asignado);
|
|
1497
|
+
_this.causado = parseInt(cuenta.causado);
|
|
1498
|
+
_this.pagado = parseInt(cuenta.pagado);
|
|
1499
|
+
_this.distribuir = parseInt(cuenta.distribuir);
|
|
1500
|
+
_this.disminucion = parseInt(cuenta.disminiucion);
|
|
1501
|
+
_this.precomprometido = parseInt(cuenta.precomprometido);
|
|
1502
|
+
_this.enero = parseInt(cuenta.enero);
|
|
1503
|
+
_this.febrero = parseInt(cuenta.febrero);
|
|
1504
|
+
_this.marzo = parseInt(cuenta.marzo);
|
|
1505
|
+
_this.abril = parseInt(cuenta.abril);
|
|
1506
|
+
_this.mayo = parseInt(cuenta.mayo);
|
|
1507
|
+
_this.junio = parseInt(cuenta.junio);
|
|
1508
|
+
_this.julio = parseInt(cuenta.julio);
|
|
1509
|
+
_this.agosto = parseInt(cuenta.agosto);
|
|
1510
|
+
_this.septiembre = parseInt(cuenta.septiembre);
|
|
1511
|
+
_this.octubre = parseInt(cuenta.octubre);
|
|
1512
|
+
_this.noviembre = parseInt(cuenta.noviembre);
|
|
1513
|
+
_this.diciembre = parseInt(cuenta.diciembre);
|
|
1514
|
+
_this.clasificador = cuenta.codcuecla;
|
|
1515
|
+
_this.cuentaONCOP = cuenta.cueoncop;
|
|
1516
|
+
_this.idEP1 = parseInt(cuenta.id_ep1);
|
|
1517
|
+
_this.idEP2 = parseInt(cuenta.id_ep2);
|
|
1518
|
+
_this.idEP3 = parseInt(cuenta.id_ep3);
|
|
1519
|
+
_this.idEP4 = parseInt(cuenta.id_ep4);
|
|
1520
|
+
_this.idEP5 = parseInt(cuenta.id_ep5);
|
|
1521
|
+
_this.codfuefin = parseInt(cuenta.codfuefin);
|
|
1522
|
+
_this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
|
|
1523
|
+
_this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
|
|
1524
|
+
_this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
|
|
1525
|
+
_this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
|
|
1526
|
+
_this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
|
|
1527
|
+
_this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
|
|
1528
|
+
if (cuenta.estructura && level) {
|
|
1529
|
+
if (level == 3) {
|
|
1530
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3;
|
|
1531
|
+
}
|
|
1532
|
+
else if (level == 4) {
|
|
1533
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4;
|
|
1534
|
+
}
|
|
1535
|
+
else {
|
|
1536
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4 + "-" + _this.codestpro5;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
_this.isNew = false;
|
|
1540
|
+
}
|
|
1541
|
+
else {
|
|
1542
|
+
_this.isNew = true;
|
|
1543
|
+
}
|
|
1544
|
+
return _this;
|
|
1545
|
+
}
|
|
1546
|
+
return MCuentaEgresos;
|
|
1547
|
+
}(MBasicModel));
|
|
1439
1548
|
|
|
1440
1549
|
var MCuentaInstitucional = /** @class */ (function (_super) {
|
|
1441
1550
|
__extends(MCuentaInstitucional, _super);
|
|
@@ -2262,46 +2371,115 @@
|
|
|
2262
2371
|
return MFuenteFinanciamiento;
|
|
2263
2372
|
}(MBasicModel));
|
|
2264
2373
|
|
|
2265
|
-
var MCuentaEgresos = /** @class */ (function () {
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2374
|
+
var MCuentaEgresos = /** @class */ (function (_super) {
|
|
2375
|
+
__extends(MCuentaEgresos, _super);
|
|
2376
|
+
function MCuentaEgresos(cuenta, level, isNew) {
|
|
2377
|
+
var _this = _super.call(this) || this;
|
|
2378
|
+
_this.idEmpresa = 0;
|
|
2379
|
+
_this.nivel = 0;
|
|
2380
|
+
_this.denominacion = '';
|
|
2381
|
+
_this.cuenta = '';
|
|
2382
|
+
_this.cuentaContable = '------------';
|
|
2383
|
+
_this.cuentaONCOP = '------------';
|
|
2384
|
+
_this.clasificador = '------------';
|
|
2385
|
+
_this.referencia = '';
|
|
2386
|
+
_this.aumento = 0;
|
|
2387
|
+
_this.asignado = 0;
|
|
2388
|
+
_this.causado = 0;
|
|
2389
|
+
_this.disminucion = 0;
|
|
2390
|
+
_this.distribuir = 0;
|
|
2391
|
+
_this.precomprometido = 0;
|
|
2392
|
+
_this.pagado = 0;
|
|
2393
|
+
_this.enero = 0;
|
|
2394
|
+
_this.febrero = 0;
|
|
2395
|
+
_this.marzo = 0;
|
|
2396
|
+
_this.abril = 0;
|
|
2397
|
+
_this.mayo = 0;
|
|
2398
|
+
_this.junio = 0;
|
|
2399
|
+
_this.julio = 0;
|
|
2400
|
+
_this.agosto = 0;
|
|
2401
|
+
_this.septiembre = 0;
|
|
2402
|
+
_this.octubre = 0;
|
|
2403
|
+
_this.noviembre = 0;
|
|
2404
|
+
_this.diciembre = 0;
|
|
2405
|
+
_this.idEP1 = 0;
|
|
2406
|
+
_this.idEP2 = 0;
|
|
2407
|
+
_this.idEP3 = 0;
|
|
2408
|
+
_this.idEP4 = 0;
|
|
2409
|
+
_this.idEP5 = 0;
|
|
2410
|
+
_this.codestpro1 = '';
|
|
2411
|
+
_this.codestpro2 = '';
|
|
2412
|
+
_this.codestpro3 = '';
|
|
2413
|
+
_this.codestpro4 = '';
|
|
2414
|
+
_this.codestpro5 = '';
|
|
2415
|
+
_this.estructura = '';
|
|
2416
|
+
_this.selected = false;
|
|
2417
|
+
_this.isNew = false;
|
|
2418
|
+
_this.error = false;
|
|
2419
|
+
_this.status = '';
|
|
2420
|
+
_this.id = 0;
|
|
2421
|
+
_this.codfuefin = 0;
|
|
2422
|
+
if (cuenta) {
|
|
2423
|
+
_this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2424
|
+
_this.nivel = parseInt(cuenta.nivel);
|
|
2425
|
+
_this.denominacion = cuenta.denspgcta;
|
|
2426
|
+
_this.cuenta = cuenta.spg_cuenta;
|
|
2427
|
+
_this.cuentaContable = cuenta.sc_cuenta;
|
|
2428
|
+
_this.status = cuenta.status;
|
|
2429
|
+
_this.referencia = cuenta.referencia;
|
|
2430
|
+
_this.aumento = parseInt(cuenta.aumento);
|
|
2431
|
+
_this.asignado = parseInt(cuenta.asignado);
|
|
2432
|
+
_this.causado = parseInt(cuenta.causado);
|
|
2433
|
+
_this.pagado = parseInt(cuenta.pagado);
|
|
2434
|
+
_this.distribuir = parseInt(cuenta.distribuir);
|
|
2435
|
+
_this.disminucion = parseInt(cuenta.disminiucion);
|
|
2436
|
+
_this.precomprometido = parseInt(cuenta.precomprometido);
|
|
2437
|
+
_this.enero = parseInt(cuenta.enero);
|
|
2438
|
+
_this.febrero = parseInt(cuenta.febrero);
|
|
2439
|
+
_this.marzo = parseInt(cuenta.marzo);
|
|
2440
|
+
_this.abril = parseInt(cuenta.abril);
|
|
2441
|
+
_this.mayo = parseInt(cuenta.mayo);
|
|
2442
|
+
_this.junio = parseInt(cuenta.junio);
|
|
2443
|
+
_this.julio = parseInt(cuenta.julio);
|
|
2444
|
+
_this.agosto = parseInt(cuenta.agosto);
|
|
2445
|
+
_this.septiembre = parseInt(cuenta.septiembre);
|
|
2446
|
+
_this.octubre = parseInt(cuenta.octubre);
|
|
2447
|
+
_this.noviembre = parseInt(cuenta.noviembre);
|
|
2448
|
+
_this.diciembre = parseInt(cuenta.diciembre);
|
|
2449
|
+
_this.clasificador = cuenta.codcuecla;
|
|
2450
|
+
_this.cuentaONCOP = cuenta.cueoncop;
|
|
2451
|
+
_this.idEP1 = parseInt(cuenta.id_ep1);
|
|
2452
|
+
_this.idEP2 = parseInt(cuenta.id_ep2);
|
|
2453
|
+
_this.idEP3 = parseInt(cuenta.id_ep3);
|
|
2454
|
+
_this.idEP4 = parseInt(cuenta.id_ep4);
|
|
2455
|
+
_this.idEP5 = parseInt(cuenta.id_ep5);
|
|
2456
|
+
_this.codfuefin = parseInt(cuenta.codfuefin);
|
|
2457
|
+
_this.id = cuenta.id_del_spgcta ? parseInt(cuenta.id_del_spgcta) : 0;
|
|
2458
|
+
_this.codestpro1 = cuenta.estructura ? cuenta.estructura.codestpro1 : '';
|
|
2459
|
+
_this.codestpro2 = cuenta.estructura ? cuenta.estructura.codestpro2 : '';
|
|
2460
|
+
_this.codestpro3 = cuenta.estructura ? cuenta.estructura.codestpro3 : '';
|
|
2461
|
+
_this.codestpro4 = cuenta.estructura ? cuenta.estructura.codestpro4 : '';
|
|
2462
|
+
_this.codestpro5 = cuenta.estructura ? cuenta.estructura.codestpro5 : '';
|
|
2463
|
+
if (cuenta.estructura && level) {
|
|
2464
|
+
if (level == 3) {
|
|
2465
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3;
|
|
2466
|
+
}
|
|
2467
|
+
else if (level == 4) {
|
|
2468
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4;
|
|
2469
|
+
}
|
|
2470
|
+
else {
|
|
2471
|
+
_this.estructura = _this.codestpro1 + "-" + _this.codestpro2 + "-" + _this.codestpro3 + "-" + _this.codestpro4 + "-" + _this.codestpro5;
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
_this.isNew = false;
|
|
2475
|
+
}
|
|
2476
|
+
else {
|
|
2477
|
+
_this.isNew = true;
|
|
2478
|
+
}
|
|
2479
|
+
return _this;
|
|
2302
2480
|
}
|
|
2303
2481
|
return MCuentaEgresos;
|
|
2304
|
-
}());
|
|
2482
|
+
}(MBasicModel));
|
|
2305
2483
|
|
|
2306
2484
|
var CatalogoEstructurasComponent = /** @class */ (function () {
|
|
2307
2485
|
function CatalogoEstructurasComponent(dialogRef, dialogData) {
|
|
@@ -7664,7 +7842,7 @@
|
|
|
7664
7842
|
* @author Miguel Ramírez
|
|
7665
7843
|
*/
|
|
7666
7844
|
SigespService.prototype.getCuentasPresupuesto = function () {
|
|
7667
|
-
return this.http.get(this.URL + "/dao/scg/plan_unico_cuentas_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.
|
|
7845
|
+
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); }); }));
|
|
7668
7846
|
};
|
|
7669
7847
|
/**
|
|
7670
7848
|
* @description Abre el cátalogo de cuentas de la tabla "scg_plan_unico_re"
|
|
@@ -7934,7 +8112,7 @@
|
|
|
7934
8112
|
*/
|
|
7935
8113
|
SigespService.prototype.getEnterprise = function (tipo, id) {
|
|
7936
8114
|
if (tipo === void 0) { tipo = null; }
|
|
7937
|
-
return this.http.get(this.URL + "/dao/cfg/enterprise_dao.php?", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
8115
|
+
return this.http.get(this.URL + "/dao/cfg/enterprise_dao.php?tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7938
8116
|
if (res.success) {
|
|
7939
8117
|
res.data = res.data.map(function (e) { return new MEnterprise(e); });
|
|
7940
8118
|
}
|