sigesp 1.1.42-20250124 → 1.1.44-20250319
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/CentroCosto.mjs +1 -1
- package/esm2020/lib/core/interfaces/Nomina.mjs +1 -1
- package/esm2020/lib/core/interfaces/RecursosHumanos.mjs +1 -1
- package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +3 -3
- package/esm2020/lib/core/models/SNO/MAsignacionCargo.model.mjs +4 -1
- package/esm2020/lib/core/models/SNO/MCargosPersonal.model.mjs +7 -1
- package/esm2020/lib/core/models/SNO/MDefinicionNomina.model.mjs +8 -9
- package/fesm2015/sigesp.mjs +18 -9
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +18 -9
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/CentroCosto.d.ts +1 -1
- package/lib/core/interfaces/Nomina.d.ts +1 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +3 -0
- package/lib/core/models/SNO/MAsignacionCargo.model.d.ts +1 -0
- package/lib/core/models/SNO/MCargosPersonal.model.d.ts +3 -0
- package/lib/core/models/SNO/MDefinicionNomina.model.d.ts +0 -1
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -1941,7 +1941,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
1941
1941
|
this.centro = centroCosto.codcencos;
|
|
1942
1942
|
this.denominacion = centroCosto.denominacion;
|
|
1943
1943
|
this.periodoFical = +centroCosto.perfiscal;
|
|
1944
|
-
this.idUnidadAdministradora = +centroCosto.
|
|
1944
|
+
this.idUnidadAdministradora = +centroCosto.id_uniadm;
|
|
1945
1945
|
this.idDetalle = +centroCosto.id_dt;
|
|
1946
1946
|
}
|
|
1947
1947
|
else {
|
|
@@ -1958,7 +1958,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
1958
1958
|
codcencos: this.centro,
|
|
1959
1959
|
denominacion: this.denominacion,
|
|
1960
1960
|
id_dt: this.idDetalle.toString(),
|
|
1961
|
-
|
|
1961
|
+
id_uniadm: this.idUnidadAdministradora.toString(),
|
|
1962
1962
|
};
|
|
1963
1963
|
}
|
|
1964
1964
|
}
|
|
@@ -5057,17 +5057,17 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
5057
5057
|
fechaFinalNomina() {
|
|
5058
5058
|
let i = this.periodosNomina.length - 1;
|
|
5059
5059
|
let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
|
|
5060
|
-
return
|
|
5060
|
+
return fechaFin;
|
|
5061
5061
|
}
|
|
5062
5062
|
/**
|
|
5063
5063
|
* @returns fecha de inicio a fin de la nomina
|
|
5064
5064
|
*/
|
|
5065
|
-
fechaNomina()
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
}
|
|
5065
|
+
// public fechaNomina():string{
|
|
5066
|
+
// let i= this.periodosNomina.length-1;
|
|
5067
|
+
// let fechaFin= this.periodosNomina[i].fechaHastaperiodo;
|
|
5068
|
+
// let fechaIni= this.periodosNomina[i].fechaDesdePeriodo;
|
|
5069
|
+
// return formatDate(fechaFin, 'dd-MM-yyyy', 'es-ES')+' al '+formatDate(fechaIni, 'dd-MM-yyyy', 'es-ES');
|
|
5070
|
+
// }
|
|
5071
5071
|
/**
|
|
5072
5072
|
*
|
|
5073
5073
|
* @returns Retorna es estatus del periodo actual de la nomina {
|
|
@@ -5165,6 +5165,7 @@ class MAsignacionCargo extends MBasicModel {
|
|
|
5165
5165
|
this.idUsuarioCese = -1;
|
|
5166
5166
|
this.fechaAsignacion = 0;
|
|
5167
5167
|
this.fechaCese = 0;
|
|
5168
|
+
this.factorManoObra = 0;
|
|
5168
5169
|
if (e) {
|
|
5169
5170
|
this.idEnterprise = +e.id_enterprise;
|
|
5170
5171
|
this.idEmpresa = +e.id_empresa;
|
|
@@ -5195,6 +5196,7 @@ class MAsignacionCargo extends MBasicModel {
|
|
|
5195
5196
|
this.totalCargos = parseInt(e.totcar);
|
|
5196
5197
|
this.numeroCargosOcupados = parseInt(e.numocucar);
|
|
5197
5198
|
this.disponibilidadCargos = parseInt(e.disponibilidad);
|
|
5199
|
+
this.factorManoObra = +e.facmanobr;
|
|
5198
5200
|
if (e.detalles_nomina) {
|
|
5199
5201
|
this.detallesNominas = e.detalles_nomina.map(e => new MCargosNominas(e));
|
|
5200
5202
|
}
|
|
@@ -5230,6 +5232,7 @@ class MAsignacionCargo extends MBasicModel {
|
|
|
5230
5232
|
detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
|
|
5231
5233
|
eliminar_nomina: this.nominaEliminar,
|
|
5232
5234
|
eliminar_organigrama: this.organigramaEliminar,
|
|
5235
|
+
facmanobr: this.factorManoObra.toString(),
|
|
5233
5236
|
};
|
|
5234
5237
|
}
|
|
5235
5238
|
}
|
|
@@ -10012,6 +10015,9 @@ class MCargosPersonal extends MBasicModel {
|
|
|
10012
10015
|
this.fechaAsignacion = '1900-01-01';
|
|
10013
10016
|
this.fechaCese = '1900-01-01';
|
|
10014
10017
|
this.estatus = true;
|
|
10018
|
+
this.idPuestoTrabajo = 0;
|
|
10019
|
+
this.codigoPuestoTrabajo = '';
|
|
10020
|
+
this.descripcionPuestoTrabajo = '';
|
|
10015
10021
|
if (p) {
|
|
10016
10022
|
this.idEnterprise = +p.id_enterprise;
|
|
10017
10023
|
this.idEmpresa = +p.id_empresa;
|
|
@@ -10049,6 +10055,8 @@ class MCargosPersonal extends MBasicModel {
|
|
|
10049
10055
|
this.fechaAsignacion = p.fecasi;
|
|
10050
10056
|
this.fechaCese = p.fecces;
|
|
10051
10057
|
this.estatus ? this.denominacionEstatus = 'ACTIVO' : this.denominacionEstatus = 'INACTIVO';
|
|
10058
|
+
this.descripcionPuestoTrabajo = p.despuetra;
|
|
10059
|
+
this.codigoPuestoTrabajo = p.codpuetra;
|
|
10052
10060
|
if (p.detalles_nomina) {
|
|
10053
10061
|
this.detallesNomina = p.detalles_nomina.map(e => new MNominaSimple(e));
|
|
10054
10062
|
}
|
|
@@ -10072,6 +10080,7 @@ class MCargosPersonal extends MBasicModel {
|
|
|
10072
10080
|
id_dedicacion: this.idDedicacion.toString(),
|
|
10073
10081
|
id_tipopersonal: this.idTipoPersonalSno.toString(),
|
|
10074
10082
|
id_organigrama: this.idOrganigrama.toString(),
|
|
10083
|
+
id_puetra: this.idPuestoTrabajo.toString(),
|
|
10075
10084
|
estatus: this.estatus ? '1' : '0',
|
|
10076
10085
|
fecasi: this.fechaAsignacion,
|
|
10077
10086
|
fecces: this.fechaCese,
|