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/fesm2015/sigesp.mjs
CHANGED
|
@@ -259,6 +259,7 @@ const TipoDefiniciones = [
|
|
|
259
259
|
{ value: "3", denominacion: 'Nivel de Selección' },
|
|
260
260
|
{ value: "4", denominacion: 'Profesiones' },
|
|
261
261
|
{ value: "16", denominacion: 'Permisos Personal' },
|
|
262
|
+
{ value: "17", denominacion: 'Rutas' },
|
|
262
263
|
{ value: "14", denominacion: 'Sindicato' },
|
|
263
264
|
{ value: "5", denominacion: 'Tipo de Accidentes' },
|
|
264
265
|
{ value: "6", denominacion: 'Tipo de Cobertura de Salud' },
|
|
@@ -4681,7 +4682,9 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4681
4682
|
this.denominacionCuentaContable = e.denctacont;
|
|
4682
4683
|
this.nombreProveedor = e.nompro;
|
|
4683
4684
|
this.estatusIncidencia = parseInt(e.estincidencia);
|
|
4684
|
-
|
|
4685
|
+
if (e.periodos) {
|
|
4686
|
+
this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
|
|
4687
|
+
}
|
|
4685
4688
|
this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
4686
4689
|
this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
4687
4690
|
this.segmentarPersonal = parseInt(e.segper);
|
|
@@ -5292,6 +5295,10 @@ class MPersonal extends MBasicModel {
|
|
|
5292
5295
|
this.idPermisoPersonal = 0;
|
|
5293
5296
|
this.codigoPermisoPersonal = '';
|
|
5294
5297
|
this.denominacionPermisoPersonal = '';
|
|
5298
|
+
this.idRuta = 0;
|
|
5299
|
+
this.denominacionRuta = '';
|
|
5300
|
+
this.centoVotacion = '';
|
|
5301
|
+
this.puntoReferencia = '';
|
|
5295
5302
|
if (p) {
|
|
5296
5303
|
this.idEnterprise = +p.id_enterprise;
|
|
5297
5304
|
this.idEmpresa = p.id_empresa;
|
|
@@ -5421,6 +5428,10 @@ class MPersonal extends MBasicModel {
|
|
|
5421
5428
|
this.idPermisoPersonal = +p.id_perper;
|
|
5422
5429
|
this.denominacionPermisoPersonal = p.denperper;
|
|
5423
5430
|
this.codigoPermisoPersonal = p.codperper;
|
|
5431
|
+
this.idRuta = +p.id_ruta;
|
|
5432
|
+
this.denominacionRuta = p.denrut;
|
|
5433
|
+
this.centoVotacion = p.cenvot;
|
|
5434
|
+
this.puntoReferencia = p.punref;
|
|
5424
5435
|
}
|
|
5425
5436
|
else {
|
|
5426
5437
|
this.isNew = true;
|
|
@@ -5538,6 +5549,10 @@ class MPersonal extends MBasicModel {
|
|
|
5538
5549
|
id_perper: this.idPermisoPersonal.toString(),
|
|
5539
5550
|
denperper: this.denominacionPermisoPersonal,
|
|
5540
5551
|
codperper: this.codigoPermisoPersonal,
|
|
5552
|
+
id_ruta: this.idRuta.toString(),
|
|
5553
|
+
denrut: this.denominacionRuta,
|
|
5554
|
+
cenvot: this.centoVotacion,
|
|
5555
|
+
punref: this.puntoReferencia,
|
|
5541
5556
|
};
|
|
5542
5557
|
}
|
|
5543
5558
|
}
|
|
@@ -7912,16 +7927,18 @@ class SigespService {
|
|
|
7912
7927
|
}
|
|
7913
7928
|
/**
|
|
7914
7929
|
*
|
|
7915
|
-
* @param tipo ['default', 'uno', 'cargos'] dafault:Todas las nominas, uno: una nomina,
|
|
7916
|
-
*
|
|
7930
|
+
* @param tipo ['default', 'uno', 'cargos','linea'] dafault:Todas las nominas, uno: una nomina,
|
|
7931
|
+
* 'cargos': nominas por cargos, 'linea': nominas activas por lineas
|
|
7932
|
+
* @param id : Para los tipo: uno y cargos el id es idNomina. Para linea: id es el idEnterprise
|
|
7917
7933
|
* @returns array()
|
|
7918
7934
|
* @description Obtiene las nominas registradas
|
|
7919
7935
|
* @return Observable<IResponse>
|
|
7920
7936
|
* @date 20-10-21
|
|
7937
|
+
* @actualizado 26-05-2024
|
|
7921
7938
|
*
|
|
7922
7939
|
*/
|
|
7923
|
-
getNomina(tipo, id) {
|
|
7924
|
-
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7940
|
+
getNomina(tipo, id, act) {
|
|
7941
|
+
return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7925
7942
|
if (res.success) {
|
|
7926
7943
|
res.data = res.data.map(e => new MDefinicionNomina(e));
|
|
7927
7944
|
}
|