sigesp 1.0.9-20240524 → 1.0.11-20240603
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/esm2020/lib/core/interfaces/Constantes.mjs +2 -1
- package/esm2020/lib/core/interfaces/RecursosHumanos.mjs +1 -1
- package/esm2020/lib/core/models/SNO/MDefinicionNomina.model.mjs +4 -2
- package/esm2020/lib/core/models/SNO/MPersonal.model.mjs +13 -1
- package/esm2020/lib/sigesp.service.mjs +7 -5
- package/fesm2015/sigesp.mjs +22 -5
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +22 -5
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/RecursosHumanos.d.ts +4 -0
- package/lib/core/models/SNO/MPersonal.model.d.ts +4 -0
- package/lib/sigesp.service.d.ts +5 -3
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -258,6 +258,7 @@ const TipoDefiniciones = [
|
|
|
258
258
|
{ value: "3", denominacion: 'Nivel de Selección' },
|
|
259
259
|
{ value: "4", denominacion: 'Profesiones' },
|
|
260
260
|
{ value: "16", denominacion: 'Permisos Personal' },
|
|
261
|
+
{ value: "17", denominacion: 'Rutas' },
|
|
261
262
|
{ value: "14", denominacion: 'Sindicato' },
|
|
262
263
|
{ value: "5", denominacion: 'Tipo de Accidentes' },
|
|
263
264
|
{ value: "6", denominacion: 'Tipo de Cobertura de Salud' },
|
|
@@ -4670,7 +4671,9 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4670
4671
|
this.denominacionCuentaContable = e.denctacont;
|
|
4671
4672
|
this.nombreProveedor = e.nompro;
|
|
4672
4673
|
this.estatusIncidencia = parseInt(e.estincidencia);
|
|
4673
|
-
|
|
4674
|
+
if (e.periodos) {
|
|
4675
|
+
this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
|
|
4676
|
+
}
|
|
4674
4677
|
this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
4675
4678
|
this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
4676
4679
|
this.segmentarPersonal = parseInt(e.segper);
|
|
@@ -5281,6 +5284,10 @@ class MPersonal extends MBasicModel {
|
|
|
5281
5284
|
this.idPermisoPersonal = 0;
|
|
5282
5285
|
this.codigoPermisoPersonal = '';
|
|
5283
5286
|
this.denominacionPermisoPersonal = '';
|
|
5287
|
+
this.idRuta = 0;
|
|
5288
|
+
this.denominacionRuta = '';
|
|
5289
|
+
this.centoVotacion = '';
|
|
5290
|
+
this.puntoReferencia = '';
|
|
5284
5291
|
if (p) {
|
|
5285
5292
|
this.idEnterprise = +p.id_enterprise;
|
|
5286
5293
|
this.idEmpresa = p.id_empresa;
|
|
@@ -5410,6 +5417,10 @@ class MPersonal extends MBasicModel {
|
|
|
5410
5417
|
this.idPermisoPersonal = +p.id_perper;
|
|
5411
5418
|
this.denominacionPermisoPersonal = p.denperper;
|
|
5412
5419
|
this.codigoPermisoPersonal = p.codperper;
|
|
5420
|
+
this.idRuta = +p.id_ruta;
|
|
5421
|
+
this.denominacionRuta = p.denrut;
|
|
5422
|
+
this.centoVotacion = p.cenvot;
|
|
5423
|
+
this.puntoReferencia = p.punref;
|
|
5413
5424
|
}
|
|
5414
5425
|
else {
|
|
5415
5426
|
this.isNew = true;
|
|
@@ -5527,6 +5538,10 @@ class MPersonal extends MBasicModel {
|
|
|
5527
5538
|
id_perper: this.idPermisoPersonal.toString(),
|
|
5528
5539
|
denperper: this.denominacionPermisoPersonal,
|
|
5529
5540
|
codperper: this.codigoPermisoPersonal,
|
|
5541
|
+
id_ruta: this.idRuta.toString(),
|
|
5542
|
+
denrut: this.denominacionRuta,
|
|
5543
|
+
cenvot: this.centoVotacion,
|
|
5544
|
+
punref: this.puntoReferencia,
|
|
5530
5545
|
};
|
|
5531
5546
|
}
|
|
5532
5547
|
}
|
|
@@ -7875,16 +7890,18 @@ class SigespService {
|
|
|
7875
7890
|
}
|
|
7876
7891
|
/**
|
|
7877
7892
|
*
|
|
7878
|
-
* @param tipo ['default', 'uno', 'cargos'] dafault:Todas las nominas, uno: una nomina,
|
|
7879
|
-
*
|
|
7893
|
+
* @param tipo ['default', 'uno', 'cargos','linea'] dafault:Todas las nominas, uno: una nomina,
|
|
7894
|
+
* 'cargos': nominas por cargos, 'linea': nominas activas por lineas
|
|
7895
|
+
* @param id : Para los tipo: uno y cargos el id es idNomina. Para linea: id es el idEnterprise
|
|
7880
7896
|
* @returns array()
|
|
7881
7897
|
* @description Obtiene las nominas registradas
|
|
7882
7898
|
* @return Observable<IResponse>
|
|
7883
7899
|
* @date 20-10-21
|
|
7900
|
+
* @actualizado 26-05-2024
|
|
7884
7901
|
*
|
|
7885
7902
|
*/
|
|
7886
|
-
getNomina(tipo, id) {
|
|
7887
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7903
|
+
getNomina(tipo, id, act) {
|
|
7904
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7888
7905
|
if (res.success) {
|
|
7889
7906
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7890
7907
|
}
|