sigesp 0.8.78-20220510 → 0.8.81-20220511
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 +16 -90
- 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/interfaces/Nomina.js +1 -1
- package/esm2015/lib/core/models/SNO/MCargosPersonal.model.js +2 -2
- package/esm2015/lib/core/models/SNO/MConceptosNomina.model.js +3 -3
- package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +1 -78
- package/esm2015/lib/core/models/SNO/MNominaSimple.model.js +7 -1
- package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +2 -1
- package/esm2015/lib/sigesp.service.js +5 -5
- package/esm2015/public-api.js +1 -1
- package/fesm2015/sigesp.js +16 -86
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +3 -0
- package/lib/core/models/SNO/MCargosPersonal.model.d.ts +1 -1
- package/lib/core/models/SNO/MDefinicionNomina.model.d.ts +1 -26
- package/lib/core/models/SNO/MNominaSimple.model.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -480,6 +480,7 @@
|
|
|
480
480
|
_this.codigoUsuario = e.codusu;
|
|
481
481
|
_this.nombrePersonal = e.nomper;
|
|
482
482
|
_this.codigoPersonal = e.codper;
|
|
483
|
+
_this.nacionalidad = e.nacper.toUpperCase();
|
|
483
484
|
_this.cedulaPersonal = e.cedper;
|
|
484
485
|
_this.codigoTablaVacaciones = e.codtabvac;
|
|
485
486
|
_this.denominacionTablaVacaciones = e.dentabvac;
|
|
@@ -3964,87 +3965,6 @@
|
|
|
3964
3965
|
return this.periodosNomina[this.indice()].fechaHastaperiodo;
|
|
3965
3966
|
};
|
|
3966
3967
|
return MDefinicionNomina;
|
|
3967
|
-
}(MBasicModel));
|
|
3968
|
-
var MNominaSimple = /** @class */ (function (_super) {
|
|
3969
|
-
__extends(MNominaSimple, _super);
|
|
3970
|
-
function MNominaSimple(e) {
|
|
3971
|
-
if (e === void 0) { e = null; }
|
|
3972
|
-
var _this = _super.call(this) || this;
|
|
3973
|
-
_this.idEmpresa = 0;
|
|
3974
|
-
_this.idNomina = 0;
|
|
3975
|
-
_this.codigoNomina = '';
|
|
3976
|
-
_this.denominacioNomina = '';
|
|
3977
|
-
_this.idPeriodoActual = 0;
|
|
3978
|
-
_this.totalPeriodo = 0;
|
|
3979
|
-
_this.estatus = '';
|
|
3980
|
-
_this.estatusPeriodo = 0;
|
|
3981
|
-
_this.calculada = false;
|
|
3982
|
-
_this.prenomina = false;
|
|
3983
|
-
_this.idCargo = 0;
|
|
3984
|
-
_this.codigoCargo = '';
|
|
3985
|
-
_this.denominacionCargo = '';
|
|
3986
|
-
_this.nominaRac = 0;
|
|
3987
|
-
_this.simbolo = '';
|
|
3988
|
-
_this.color = '';
|
|
3989
|
-
_this.estatusPersonal = 0;
|
|
3990
|
-
_this.denominacionEstatuspersonal = '';
|
|
3991
|
-
_this.descripcionPeriodoNomina = '';
|
|
3992
|
-
_this.periodoActualNomina = '';
|
|
3993
|
-
_this.editable = false;
|
|
3994
|
-
if (e) {
|
|
3995
|
-
_this.idEmpresa = parseInt(e.id_empresa);
|
|
3996
|
-
_this.idNomina = parseInt(e.id_nomina);
|
|
3997
|
-
_this.codigoNomina = e.codnom;
|
|
3998
|
-
_this.denominacioNomina = e.dennom;
|
|
3999
|
-
_this.idPeriodoActual = +e.id_periodoactual;
|
|
4000
|
-
_this.totalPeriodo = parseFloat(e.totper),
|
|
4001
|
-
_this.estatusPeriodo = parseInt(e.cerper);
|
|
4002
|
-
_this.calculada = e.calculado == '1' ? true : false;
|
|
4003
|
-
_this.prenomina = e.prenomina == '1' ? true : false;
|
|
4004
|
-
_this.estatus = _this.calculada ? 'Calculada' :
|
|
4005
|
-
!_this.calculada && _this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4006
|
-
_this.editable = (_this.calculada || _this.prenomina) ? false : true;
|
|
4007
|
-
_this.idCargo = parseInt(e.id_carper);
|
|
4008
|
-
_this.codigoCargo = e.codcar;
|
|
4009
|
-
_this.denominacionCargo = e.descar;
|
|
4010
|
-
_this.nominaRac = parseInt(e.racnom);
|
|
4011
|
-
_this.nominaRac == 1 ? _this.simbolo = 'check' : _this.simbolo = '';
|
|
4012
|
-
_this.nominaRac == 1 ? _this.color = 'primary' : _this.color = '';
|
|
4013
|
-
_this.estatusPersonal = parseInt(e.staper);
|
|
4014
|
-
_this.estatusPersonal == 0 ? _this.denominacionEstatuspersonal = "NO ASIGNADO" :
|
|
4015
|
-
_this.estatusPersonal == 1 ? _this.denominacionEstatuspersonal = "ACTIVO" :
|
|
4016
|
-
_this.estatusPersonal == 2 ? _this.denominacionEstatuspersonal = "VACACIONES" :
|
|
4017
|
-
_this.estatusPersonal == 3 ? _this.denominacionEstatuspersonal = "EGRESADO" :
|
|
4018
|
-
_this.denominacionEstatuspersonal = "SUSPENDIDO";
|
|
4019
|
-
_this.descripcionPeriodoNomina = e.despernom;
|
|
4020
|
-
_this.periodoActualNomina = e.peractnom;
|
|
4021
|
-
}
|
|
4022
|
-
else {
|
|
4023
|
-
_this.isNew = false;
|
|
4024
|
-
}
|
|
4025
|
-
return _this;
|
|
4026
|
-
}
|
|
4027
|
-
MNominaSimple.prototype.dataInterface = function () {
|
|
4028
|
-
return {
|
|
4029
|
-
id_empresa: this.idEmpresa.toString(),
|
|
4030
|
-
id_nomina: this.idNomina.toString(),
|
|
4031
|
-
codnom: this.codigoNomina,
|
|
4032
|
-
dennom: this.denominacioNomina,
|
|
4033
|
-
id_periodoactual: this.idPeriodoActual.toString(),
|
|
4034
|
-
totper: this.totalPeriodo.toString(),
|
|
4035
|
-
cerper: this.estatusPeriodo.toString(),
|
|
4036
|
-
prenomina: this.prenomina ? '1' : '0',
|
|
4037
|
-
calculado: this.calculada ? '1' : '0',
|
|
4038
|
-
id_carper: this.idCargo.toString(),
|
|
4039
|
-
descar: this.denominacionCargo,
|
|
4040
|
-
codcar: this.codigoCargo,
|
|
4041
|
-
racnom: this.nominaRac.toString(),
|
|
4042
|
-
staper: this.estatusPersonal.toString(),
|
|
4043
|
-
despernom: this.descripcionPeriodoNomina,
|
|
4044
|
-
peractnom: this.periodoActualNomina,
|
|
4045
|
-
};
|
|
4046
|
-
};
|
|
4047
|
-
return MNominaSimple;
|
|
4048
3968
|
}(MBasicModel));
|
|
4049
3969
|
|
|
4050
3970
|
var MAsignacionCargo = /** @class */ (function (_super) {
|
|
@@ -4244,7 +4164,7 @@
|
|
|
4244
4164
|
return MCargosNominas;
|
|
4245
4165
|
}(MBasicModel));
|
|
4246
4166
|
|
|
4247
|
-
var MNominaSimple
|
|
4167
|
+
var MNominaSimple = /** @class */ (function (_super) {
|
|
4248
4168
|
__extends(MNominaSimple, _super);
|
|
4249
4169
|
function MNominaSimple(e) {
|
|
4250
4170
|
if (e === void 0) { e = null; }
|
|
@@ -4270,6 +4190,9 @@
|
|
|
4270
4190
|
_this.descripcionPeriodoNomina = '';
|
|
4271
4191
|
_this.periodoActualNomina = '';
|
|
4272
4192
|
_this.editable = false;
|
|
4193
|
+
_this.idOrganigrama = 0;
|
|
4194
|
+
_this.codigoEstructuraOrganizativa = '';
|
|
4195
|
+
_this.denominacionEstructuraOrganizativa = '';
|
|
4273
4196
|
if (e) {
|
|
4274
4197
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
4275
4198
|
_this.idNomina = parseInt(e.id_nomina);
|
|
@@ -4297,6 +4220,9 @@
|
|
|
4297
4220
|
_this.denominacionEstatuspersonal = "SUSPENDIDO";
|
|
4298
4221
|
_this.descripcionPeriodoNomina = e.despernom;
|
|
4299
4222
|
_this.periodoActualNomina = e.peractnom;
|
|
4223
|
+
_this.idOrganigrama = +e.id_organigrama;
|
|
4224
|
+
_this.codigoEstructuraOrganizativa = e.codestorg;
|
|
4225
|
+
_this.denominacionEstructuraOrganizativa = e.denestorg;
|
|
4300
4226
|
}
|
|
4301
4227
|
else {
|
|
4302
4228
|
_this.isNew = true;
|
|
@@ -6544,7 +6470,7 @@
|
|
|
6544
6470
|
*
|
|
6545
6471
|
*/
|
|
6546
6472
|
SigespService.prototype.getNomina = function (tipo, id) {
|
|
6547
|
-
return this.http.get(this.URL + "/dao/sno/definicion_nomina_dao.php?tipo=" + tipo + "
|
|
6473
|
+
return this.http.get(this.URL + "/dao/sno/definicion_nomina_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6548
6474
|
if (res.success) {
|
|
6549
6475
|
res.data = res.data.map(function (e) { return new MDefinicionNomina(e); });
|
|
6550
6476
|
}
|
|
@@ -6558,7 +6484,7 @@
|
|
|
6558
6484
|
* @returns array()
|
|
6559
6485
|
*/
|
|
6560
6486
|
SigespService.prototype.getCargosNomina = function (tipo, id) {
|
|
6561
|
-
return this.http.get(this.URL + "/dao/sno/asignacion_cargos_dao.php?tipo=" + tipo + "
|
|
6487
|
+
return this.http.get(this.URL + "/dao/sno/asignacion_cargos_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6562
6488
|
if (res.success) {
|
|
6563
6489
|
res.data = res.data.map(function (e) { return new MAsignacionCargo(e); });
|
|
6564
6490
|
}
|
|
@@ -6571,7 +6497,7 @@
|
|
|
6571
6497
|
* @author Dimaly Crespo
|
|
6572
6498
|
*/
|
|
6573
6499
|
SigespService.prototype.getPersonalSRH = function (tipo, id) {
|
|
6574
|
-
return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + "
|
|
6500
|
+
return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6575
6501
|
if (res.success) {
|
|
6576
6502
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
6577
6503
|
}
|
|
@@ -6584,7 +6510,7 @@
|
|
|
6584
6510
|
* @author Dimaly Crespo
|
|
6585
6511
|
*/
|
|
6586
6512
|
SigespService.prototype.getAgenciaBanco = function (tipo, id) {
|
|
6587
|
-
return this.http.get(this.URL + "/dao/scb/agencia_dao.php?code=" + tipo + "
|
|
6513
|
+
return this.http.get(this.URL + "/dao/scb/agencia_dao.php?code=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6588
6514
|
if (res.success) {
|
|
6589
6515
|
res.data = res.data.map(function (e) { return new MAgenciaBanco(e); });
|
|
6590
6516
|
}
|
|
@@ -6791,7 +6717,7 @@
|
|
|
6791
6717
|
SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
|
|
6792
6718
|
return this.http.get(this.URL + "/dao/sno/personal_dao.php?idPersonal=" + idPersonal + "&tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6793
6719
|
if (res.success) {
|
|
6794
|
-
res.data = res.data.map(function (e) { return new MNominaSimple
|
|
6720
|
+
res.data = res.data.map(function (e) { return new MNominaSimple(e); });
|
|
6795
6721
|
}
|
|
6796
6722
|
return res;
|
|
6797
6723
|
}));
|
|
@@ -8352,10 +8278,10 @@
|
|
|
8352
8278
|
_this.formulaIncidencia = e.forincidencia;
|
|
8353
8279
|
_this.orden = parseInt(e.orden);
|
|
8354
8280
|
if (e.forcon.length > 40) {
|
|
8355
|
-
_this.formulaReducida = e.forcon.
|
|
8281
|
+
_this.formulaReducida = e.forcon.substring(0, 40) + '...';
|
|
8356
8282
|
}
|
|
8357
8283
|
else {
|
|
8358
|
-
_this.formulaReducida = e.forcon.
|
|
8284
|
+
_this.formulaReducida = e.forcon.substring(0, 40);
|
|
8359
8285
|
}
|
|
8360
8286
|
_this.nombreSigno = _this.denominacionSigno(_this.signoConcepto);
|
|
8361
8287
|
_this.evaluarEnPrenomina = +e.evaprenom;
|
|
@@ -12667,7 +12593,7 @@
|
|
|
12667
12593
|
exports.MMoneda = MMoneda;
|
|
12668
12594
|
exports.MMonedaConfig = MMonedaConfig;
|
|
12669
12595
|
exports.MMunicipality = MMunicipality;
|
|
12670
|
-
exports.MNominaSimple = MNominaSimple
|
|
12596
|
+
exports.MNominaSimple = MNominaSimple;
|
|
12671
12597
|
exports.MOrganizationType = MOrganizationType;
|
|
12672
12598
|
exports.MParish = MParish;
|
|
12673
12599
|
exports.MPeriodoNomina = MPeriodoNomina;
|