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/fesm2015/sigesp.js
CHANGED
|
@@ -1291,6 +1291,21 @@ class MEstructuraPresupuestariaFive {
|
|
|
1291
1291
|
this.codigoCentroCosto = ep.codcencos;
|
|
1292
1292
|
this.codigoFuenteFinanciamiento = ep.codfuefin;
|
|
1293
1293
|
}
|
|
1294
|
+
dataInterface() {
|
|
1295
|
+
return {
|
|
1296
|
+
id_empresa: this.idEmpresa,
|
|
1297
|
+
id_ep1: this.idEstructuraOne,
|
|
1298
|
+
id_ep2: this.idEstructuraTwo,
|
|
1299
|
+
id_ep3: this.idEstructuraThree,
|
|
1300
|
+
id_ep4: this.idEstructuraFour,
|
|
1301
|
+
id_ep5: this.idEstructuraFive,
|
|
1302
|
+
codestpro5: this.codigoEstructuraProgramatica,
|
|
1303
|
+
denestpro5: this.denominacionEstructuraProgramatica,
|
|
1304
|
+
estcla: this.estatusClasificacion,
|
|
1305
|
+
codcencos: this.codigoCentroCosto,
|
|
1306
|
+
codfuefin: this.codigoFuenteFinanciamiento,
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1294
1309
|
}
|
|
1295
1310
|
class MEstructuraPresupuestariaFiveComplete {
|
|
1296
1311
|
constructor(ep, level = null) {
|
|
@@ -1298,40 +1313,67 @@ class MEstructuraPresupuestariaFiveComplete {
|
|
|
1298
1313
|
this.denominacion = null;
|
|
1299
1314
|
this.level = null;
|
|
1300
1315
|
this.isNew = false;
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1316
|
+
if (ep) {
|
|
1317
|
+
this.codigoCentroCosto = ep.codcencos;
|
|
1318
|
+
this.codigoEstructuraProgramaticaOne = ep.codestpro1;
|
|
1319
|
+
this.codigoEstructuraProgramaticaTwo = ep.codestpro2;
|
|
1320
|
+
this.codigoEstructuraProgramaticaThree = ep.codestpro3;
|
|
1321
|
+
this.codigoEstructuraProgramaticaFour = ep.codestpro4 ? ep.codestpro4 : '---';
|
|
1322
|
+
this.codigoEstructuraProgramatica = ep.codestpro5 ? ep.codestpro5 : '---';
|
|
1323
|
+
this.codigoFuenteFinanciera = ep.codfuefin;
|
|
1324
|
+
this.codigoFuenteFinancieraParaMostrar = ep.codigoftefin;
|
|
1325
|
+
this.denominacionFueteFinanaciamiento = ep.denfuefin;
|
|
1326
|
+
this.denominacionEstructuraProgramaticaOne = ep.denestpro1;
|
|
1327
|
+
this.denominacionEstructuraProgramaticaTwo = ep.denestpro2;
|
|
1328
|
+
this.denominacionEstructuraProgramaticaThree = ep.denestpro3;
|
|
1329
|
+
this.denominacionEstructuraProgramaticaFour = ep.denestpro4 ? ep.denestpro4 : '---';
|
|
1330
|
+
this.denominacionEstructuraProgramatica = ep.denestpro5 ? ep.denestpro5 : '---';
|
|
1331
|
+
this.estatusClasificacion = ep.estcla;
|
|
1332
|
+
this.tipo = ep.estcla == "P" ? "PROYECTO" : "ACC. CENT.";
|
|
1333
|
+
this.idEmpresa = ep.id_empresa;
|
|
1334
|
+
this.idEstructuraOne = ep.id_ep1;
|
|
1335
|
+
this.idEstructuraTwo = ep.id_ep2;
|
|
1336
|
+
this.idEstructuraThree = ep.id_ep3;
|
|
1337
|
+
this.idEstructuraFor = ep.id_ep4 ? ep.id_ep4 : '0';
|
|
1338
|
+
this.idEstructuraFive = ep.id_ep5 ? ep.id_ep5 : '0';
|
|
1339
|
+
if (level) {
|
|
1340
|
+
this.level = level;
|
|
1341
|
+
if (level == 3) {
|
|
1342
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}`;
|
|
1343
|
+
this.denominacion = this.denominacionEstructuraProgramaticaThree;
|
|
1344
|
+
}
|
|
1345
|
+
else {
|
|
1346
|
+
this.estructura = `${ep.codestpro1}-${ep.codestpro2}-${ep.codestpro3}-${ep.codestpro4}-${ep.codestpro5}`;
|
|
1347
|
+
this.denominacion = this.denominacionEstructuraProgramatica;
|
|
1348
|
+
}
|
|
1332
1349
|
}
|
|
1333
1350
|
}
|
|
1334
1351
|
}
|
|
1352
|
+
dataInterface() {
|
|
1353
|
+
return {
|
|
1354
|
+
codcencos: this.codigoCentroCosto,
|
|
1355
|
+
codestpro1: this.codigoEstructuraProgramaticaOne,
|
|
1356
|
+
codestpro2: this.codigoEstructuraProgramaticaTwo,
|
|
1357
|
+
codestpro3: this.codigoEstructuraProgramaticaThree,
|
|
1358
|
+
codestpro4: this.codigoEstructuraProgramaticaFour,
|
|
1359
|
+
codestpro5: this.codigoEstructuraProgramatica,
|
|
1360
|
+
codfuefin: this.codigoFuenteFinanciera,
|
|
1361
|
+
denestpro1: this.denominacionEstructuraProgramaticaOne,
|
|
1362
|
+
denestpro2: this.denominacionEstructuraProgramaticaTwo,
|
|
1363
|
+
denestpro3: this.denominacionEstructuraProgramaticaThree,
|
|
1364
|
+
denestpro4: this.denominacionEstructuraProgramaticaFour,
|
|
1365
|
+
denestpro5: this.denominacionEstructuraProgramatica,
|
|
1366
|
+
estcla: this.estatusClasificacion,
|
|
1367
|
+
id_empresa: this.idEmpresa,
|
|
1368
|
+
id_ep1: this.idEstructuraOne,
|
|
1369
|
+
id_ep2: this.idEstructuraTwo,
|
|
1370
|
+
id_ep3: this.idEstructuraThree,
|
|
1371
|
+
id_ep4: this.idEstructuraFor,
|
|
1372
|
+
id_ep5: this.codigoFuenteFinanciera,
|
|
1373
|
+
codigoftefin: this.codigoFuenteFinancieraParaMostrar,
|
|
1374
|
+
denfuefin: this.denominacionFueteFinanaciamiento,
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1335
1377
|
}
|
|
1336
1378
|
class MAllStructure {
|
|
1337
1379
|
constructor({ structureOne, structureTwo, structureThree, structureFour, structureFive }) {
|
|
@@ -2951,8 +2993,8 @@ class MServiceCharge extends MBasicModel {
|
|
|
2951
2993
|
}
|
|
2952
2994
|
|
|
2953
2995
|
class MEmpresa extends MBasicModel {
|
|
2954
|
-
constructor(
|
|
2955
|
-
super();
|
|
2996
|
+
constructor() {
|
|
2997
|
+
super(...arguments);
|
|
2956
2998
|
this.idEmpresa = 0;
|
|
2957
2999
|
this.rif = '';
|
|
2958
3000
|
this.nit = '';
|
|
@@ -2998,54 +3040,6 @@ class MEmpresa extends MBasicModel {
|
|
|
2998
3040
|
this.codigoFuenteFinanciamintoMostrar = '';
|
|
2999
3041
|
this.codigoCentroCosto = '';
|
|
3000
3042
|
this.estructuraPresupuestaria = '';
|
|
3001
|
-
if (emp) {
|
|
3002
|
-
this.idEmpresa = parseInt(emp.id_empresa);
|
|
3003
|
-
this.rif = emp.rifemp;
|
|
3004
|
-
this.nit = emp.nitemp;
|
|
3005
|
-
this.nombre = emp.nomemp;
|
|
3006
|
-
this.titulo = emp.titemp;
|
|
3007
|
-
this.direccion = emp.diremp;
|
|
3008
|
-
this.telefono = emp.telemp;
|
|
3009
|
-
this.fax = emp.faxemp;
|
|
3010
|
-
this.email = emp.emaemp;
|
|
3011
|
-
this.paginaWeb = emp.webemp;
|
|
3012
|
-
this.CIIU = emp.ciiuemp;
|
|
3013
|
-
this.numeroLicencia = emp.numlic;
|
|
3014
|
-
this.codigoPostal = emp.codpos;
|
|
3015
|
-
this.codigoPais = emp.codpai;
|
|
3016
|
-
this.codigoEstado = emp.codest;
|
|
3017
|
-
this.codigoMunicipio = emp.codmun;
|
|
3018
|
-
this.codigoParroquia = emp.codpar;
|
|
3019
|
-
this.codigoComunidad = emp.codcom;
|
|
3020
|
-
this.codigoMoneda = emp.codmon;
|
|
3021
|
-
this.nombreRepresentanteLegal = emp.nomrepleg;
|
|
3022
|
-
this.cedulaRepresentanteLegal = emp.cedrepleg;
|
|
3023
|
-
this.telefonoRepresentanteLegal = emp.telrepleg;
|
|
3024
|
-
this.carreraRepresentanteLegal = emp.carrepleg;
|
|
3025
|
-
this.telefonoOficinaRepresentanteLegal = emp.telofirep;
|
|
3026
|
-
this.periodoFiscal = emp.perfiscal;
|
|
3027
|
-
this.numeroSeguroSocial = emp.nroivss;
|
|
3028
|
-
this.estatusPresupuesto = emp.presupuesto == '1' ? true : false;
|
|
3029
|
-
this.descripcionPais = emp.despai;
|
|
3030
|
-
this.descripcionEstado = emp.desest;
|
|
3031
|
-
this.descripcionMunicipio = emp.desmun;
|
|
3032
|
-
this.descripcionParroquia = emp.despar;
|
|
3033
|
-
this.descripcionComunidad = emp.descom;
|
|
3034
|
-
this.cuentaDiferencialCambiario;
|
|
3035
|
-
this.cuentaDiferencialCambiario = emp.cuenta_diferencial;
|
|
3036
|
-
this.idEP1 = +emp.id_ep1;
|
|
3037
|
-
this.idEP2 = +emp.id_ep2;
|
|
3038
|
-
this.idEP3 = +emp.id_ep3;
|
|
3039
|
-
this.idEP4 = +emp.id_ep4;
|
|
3040
|
-
this.idEP5 = +emp.id_ep5;
|
|
3041
|
-
this.codigoFuenteFinanciaminto = +emp.codfuefin;
|
|
3042
|
-
this.idUnidadAdministrativa = +emp.id_uniadm;
|
|
3043
|
-
this.denominacionUnidadAdministrativa = emp.denuniadm;
|
|
3044
|
-
this.codigoUnidadAdministrativa = emp.coduniadm;
|
|
3045
|
-
this.codigoFuenteFinanciamintoMostrar = emp.codigoftefin;
|
|
3046
|
-
this.codigoCentroCosto = emp.codcencos;
|
|
3047
|
-
this.estructuraPresupuestaria = emp.estpre;
|
|
3048
|
-
}
|
|
3049
3043
|
}
|
|
3050
3044
|
dataInterface() {
|
|
3051
3045
|
return {
|
|
@@ -7023,7 +7017,7 @@ class SigespService {
|
|
|
7023
7017
|
getCompany(tipo, id) {
|
|
7024
7018
|
return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7025
7019
|
if (res.success) {
|
|
7026
|
-
res.data = res.data.map(e => new MEmpresa(
|
|
7020
|
+
res.data = res.data.map(e => new MEmpresa());
|
|
7027
7021
|
}
|
|
7028
7022
|
return res;
|
|
7029
7023
|
}));
|
|
@@ -7319,12 +7313,16 @@ class SigespService {
|
|
|
7319
7313
|
* @description obtiene el personal segun filtro
|
|
7320
7314
|
* @return Observable<IResponse>
|
|
7321
7315
|
* @date 15-11-2021
|
|
7322
|
-
* @param tipo: valores ['catalogo','default','nomina']
|
|
7316
|
+
* @param tipo: valores ['catalogo','default','nomina','responsables']
|
|
7323
7317
|
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
7324
7318
|
*/
|
|
7325
7319
|
getPersonal(tipo, dato) {
|
|
7320
|
+
let cadena = '';
|
|
7321
|
+
if (dato) {
|
|
7322
|
+
cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}";
|
|
7323
|
+
}
|
|
7326
7324
|
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?
|
|
7327
|
-
tipo=${tipo}&
|
|
7325
|
+
tipo=${tipo}&cadena`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7328
7326
|
if (res.success) {
|
|
7329
7327
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7330
7328
|
}
|