sigesp 0.9.49-20230719 → 0.9.51-20230813
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 +82 -85
- 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/CFG/Empresa.model.js +3 -51
- package/esm2015/lib/core/models/SPG/estructuraPresupuestaria.model.js +74 -32
- package/esm2015/lib/sigesp.service.js +8 -4
- package/fesm2015/sigesp.js +82 -84
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/models/CFG/Empresa.model.d.ts +0 -1
- package/lib/core/models/SPG/estructuraPresupuestaria.model.d.ts +2 -0
- 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
|
@@ -1624,6 +1624,21 @@
|
|
|
1624
1624
|
this.codigoCentroCosto = ep.codcencos;
|
|
1625
1625
|
this.codigoFuenteFinanciamiento = ep.codfuefin;
|
|
1626
1626
|
}
|
|
1627
|
+
MEstructuraPresupuestariaFive.prototype.dataInterface = function () {
|
|
1628
|
+
return {
|
|
1629
|
+
id_empresa: this.idEmpresa,
|
|
1630
|
+
id_ep1: this.idEstructuraOne,
|
|
1631
|
+
id_ep2: this.idEstructuraTwo,
|
|
1632
|
+
id_ep3: this.idEstructuraThree,
|
|
1633
|
+
id_ep4: this.idEstructuraFour,
|
|
1634
|
+
id_ep5: this.idEstructuraFive,
|
|
1635
|
+
codestpro5: this.codigoEstructuraProgramatica,
|
|
1636
|
+
denestpro5: this.denominacionEstructuraProgramatica,
|
|
1637
|
+
estcla: this.estatusClasificacion,
|
|
1638
|
+
codcencos: this.codigoCentroCosto,
|
|
1639
|
+
codfuefin: this.codigoFuenteFinanciamiento,
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1627
1642
|
return MEstructuraPresupuestariaFive;
|
|
1628
1643
|
}());
|
|
1629
1644
|
var MEstructuraPresupuestariaFiveComplete = /** @class */ (function () {
|
|
@@ -1633,40 +1648,67 @@
|
|
|
1633
1648
|
this.denominacion = null;
|
|
1634
1649
|
this.level = null;
|
|
1635
1650
|
this.isNew = false;
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1651
|
+
if (ep) {
|
|
1652
|
+
this.codigoCentroCosto = ep.codcencos;
|
|
1653
|
+
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
1654
|
+
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
1655
|
+
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
1656
|
+
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
1657
|
+
this.codigoEstructuraProgramatica = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
1658
|
+
this.codigoFuenteFinanciera = ep.codfuefin;
|
|
1659
|
+
this.codigoFuenteFinancieraParaMostrar = ep.codigoftefin;
|
|
1660
|
+
this.denominacionFueteFinanaciamiento = ep.denfuefin;
|
|
1661
|
+
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
1662
|
+
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
1663
|
+
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
1664
|
+
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
1665
|
+
this.denominacionEstructuraProgramatica = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
1666
|
+
this.estatusClasificacion = ep.estcla;
|
|
1667
|
+
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
1668
|
+
this.idEmpresa = ep.id_empresa;
|
|
1669
|
+
this.idEstructuraOne = ep.id_ep1;
|
|
1670
|
+
this.idEstructuraTwo = ep.id_ep2;
|
|
1671
|
+
this.idEstructuraThree = ep.id_ep3;
|
|
1672
|
+
this.idEstructuraFor = ep.id_ep4 ? ep.id_ep4 : '0';
|
|
1673
|
+
this.idEstructuraFive = ep.id_ep5 ? ep.id_ep5 : '0';
|
|
1674
|
+
if (level) {
|
|
1675
|
+
this.level = level;
|
|
1676
|
+
if (level == 3) {
|
|
1677
|
+
this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3;
|
|
1678
|
+
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
1679
|
+
}
|
|
1680
|
+
else {
|
|
1681
|
+
this.estructura = ep.codestpro1 + "-" + ep.codestpro2 + "-" + ep.codestpro3 + "-" + ep.codestpro4 + "-" + ep.codestpro5;
|
|
1682
|
+
this.denominacion = this.denominacionEstructuraProgramatica;
|
|
1683
|
+
}
|
|
1667
1684
|
}
|
|
1668
1685
|
}
|
|
1669
1686
|
}
|
|
1687
|
+
MEstructuraPresupuestariaFiveComplete.prototype.dataInterface = function () {
|
|
1688
|
+
return {
|
|
1689
|
+
codcencos: this.codigoCentroCosto,
|
|
1690
|
+
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
1691
|
+
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
1692
|
+
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
1693
|
+
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
1694
|
+
codestpro5: this.codigoEstructuraProgramatica,
|
|
1695
|
+
codfuefin: this.codigoFuenteFinanciera,
|
|
1696
|
+
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
1697
|
+
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
1698
|
+
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
1699
|
+
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
1700
|
+
denestpro5: this.denominacionEstructuraProgramatica,
|
|
1701
|
+
estcla: this.estatusClasificacion,
|
|
1702
|
+
id_empresa: this.idEmpresa,
|
|
1703
|
+
id_ep1: this.idEstructuraOne,
|
|
1704
|
+
id_ep2: this.idEstructuraTwo,
|
|
1705
|
+
id_ep3: this.idEstructuraThree,
|
|
1706
|
+
id_ep4: this.idEstructuraFor,
|
|
1707
|
+
id_ep5: this.codigoFuenteFinanciera,
|
|
1708
|
+
codigoftefin: this.codigoFuenteFinancieraParaMostrar,
|
|
1709
|
+
denfuefin: this.denominacionFueteFinanaciamiento,
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1670
1712
|
return MEstructuraPresupuestariaFiveComplete;
|
|
1671
1713
|
}());
|
|
1672
1714
|
var MAllStructure = /** @class */ (function () {
|
|
@@ -3391,9 +3433,8 @@
|
|
|
3391
3433
|
|
|
3392
3434
|
var MEmpresa = /** @class */ (function (_super) {
|
|
3393
3435
|
__extends(MEmpresa, _super);
|
|
3394
|
-
function MEmpresa(
|
|
3395
|
-
|
|
3396
|
-
var _this = _super.call(this) || this;
|
|
3436
|
+
function MEmpresa() {
|
|
3437
|
+
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
3397
3438
|
_this.idEmpresa = 0;
|
|
3398
3439
|
_this.rif = '';
|
|
3399
3440
|
_this.nit = '';
|
|
@@ -3439,54 +3480,6 @@
|
|
|
3439
3480
|
_this.codigoFuenteFinanciamintoMostrar = '';
|
|
3440
3481
|
_this.codigoCentroCosto = '';
|
|
3441
3482
|
_this.estructuraPresupuestaria = '';
|
|
3442
|
-
if (emp) {
|
|
3443
|
-
_this.idEmpresa = parseInt(emp.id_empresa);
|
|
3444
|
-
_this.rif = emp.rifemp;
|
|
3445
|
-
_this.nit = emp.nitemp;
|
|
3446
|
-
_this.nombre = emp.nomemp;
|
|
3447
|
-
_this.titulo = emp.titemp;
|
|
3448
|
-
_this.direccion = emp.diremp;
|
|
3449
|
-
_this.telefono = emp.telemp;
|
|
3450
|
-
_this.fax = emp.faxemp;
|
|
3451
|
-
_this.email = emp.emaemp;
|
|
3452
|
-
_this.paginaWeb = emp.webemp;
|
|
3453
|
-
_this.CIIU = emp.ciiuemp;
|
|
3454
|
-
_this.numeroLicencia = emp.numlic;
|
|
3455
|
-
_this.codigoPostal = emp.codpos;
|
|
3456
|
-
_this.codigoPais = emp.codpai;
|
|
3457
|
-
_this.codigoEstado = emp.codest;
|
|
3458
|
-
_this.codigoMunicipio = emp.codmun;
|
|
3459
|
-
_this.codigoParroquia = emp.codpar;
|
|
3460
|
-
_this.codigoComunidad = emp.codcom;
|
|
3461
|
-
_this.codigoMoneda = emp.codmon;
|
|
3462
|
-
_this.nombreRepresentanteLegal = emp.nomrepleg;
|
|
3463
|
-
_this.cedulaRepresentanteLegal = emp.cedrepleg;
|
|
3464
|
-
_this.telefonoRepresentanteLegal = emp.telrepleg;
|
|
3465
|
-
_this.carreraRepresentanteLegal = emp.carrepleg;
|
|
3466
|
-
_this.telefonoOficinaRepresentanteLegal = emp.telofirep;
|
|
3467
|
-
_this.periodoFiscal = emp.perfiscal;
|
|
3468
|
-
_this.numeroSeguroSocial = emp.nroivss;
|
|
3469
|
-
_this.estatusPresupuesto = emp.presupuesto == '1' ? true : false;
|
|
3470
|
-
_this.descripcionPais = emp.despai;
|
|
3471
|
-
_this.descripcionEstado = emp.desest;
|
|
3472
|
-
_this.descripcionMunicipio = emp.desmun;
|
|
3473
|
-
_this.descripcionParroquia = emp.despar;
|
|
3474
|
-
_this.descripcionComunidad = emp.descom;
|
|
3475
|
-
_this.cuentaDiferencialCambiario;
|
|
3476
|
-
_this.cuentaDiferencialCambiario = emp.cuenta_diferencial;
|
|
3477
|
-
_this.idEP1 = +emp.id_ep1;
|
|
3478
|
-
_this.idEP2 = +emp.id_ep2;
|
|
3479
|
-
_this.idEP3 = +emp.id_ep3;
|
|
3480
|
-
_this.idEP4 = +emp.id_ep4;
|
|
3481
|
-
_this.idEP5 = +emp.id_ep5;
|
|
3482
|
-
_this.codigoFuenteFinanciaminto = +emp.codfuefin;
|
|
3483
|
-
_this.idUnidadAdministrativa = +emp.id_uniadm;
|
|
3484
|
-
_this.denominacionUnidadAdministrativa = emp.denuniadm;
|
|
3485
|
-
_this.codigoUnidadAdministrativa = emp.coduniadm;
|
|
3486
|
-
_this.codigoFuenteFinanciamintoMostrar = emp.codigoftefin;
|
|
3487
|
-
_this.codigoCentroCosto = emp.codcencos;
|
|
3488
|
-
_this.estructuraPresupuestaria = emp.estpre;
|
|
3489
|
-
}
|
|
3490
3483
|
return _this;
|
|
3491
3484
|
}
|
|
3492
3485
|
MEmpresa.prototype.dataInterface = function () {
|
|
@@ -7663,7 +7656,7 @@
|
|
|
7663
7656
|
SigespService.prototype.getCompany = function (tipo, id) {
|
|
7664
7657
|
return this.http.get(this.URL + "/dao/cfg/empresas_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7665
7658
|
if (res.success) {
|
|
7666
|
-
res.data = res.data.map(function (e) { return new MEmpresa(
|
|
7659
|
+
res.data = res.data.map(function (e) { return new MEmpresa(); });
|
|
7667
7660
|
}
|
|
7668
7661
|
return res;
|
|
7669
7662
|
}));
|
|
@@ -7969,11 +7962,15 @@
|
|
|
7969
7962
|
* @description obtiene el personal segun filtro
|
|
7970
7963
|
* @return Observable<IResponse>
|
|
7971
7964
|
* @date 15-11-2021
|
|
7972
|
-
* @param tipo: valores ['catalogo','default','nomina']
|
|
7965
|
+
* @param tipo: valores ['catalogo','default','nomina','responsables']
|
|
7973
7966
|
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
7974
7967
|
*/
|
|
7975
7968
|
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
7976
|
-
|
|
7969
|
+
var cadena = '';
|
|
7970
|
+
if (dato) {
|
|
7971
|
+
cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}";
|
|
7972
|
+
}
|
|
7973
|
+
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" + tipo + "&cadena", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
7977
7974
|
if (res.success) {
|
|
7978
7975
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
7979
7976
|
}
|