sigesp 0.8.62-220119 → 0.8.63-220120
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 +108 -20
- 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/MNominaSimple.model.js +57 -0
- package/esm2015/lib/core/models/SNO/MPeriodoNomina.model.js +17 -17
- package/esm2015/lib/sigesp.service.js +34 -5
- package/esm2015/public-api.js +2 -1
- package/fesm2015/sigesp.js +106 -21
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +17 -0
- package/lib/core/models/SNO/MNominaSimple.model.d.ts +21 -0
- package/lib/core/models/SNO/MPeriodoNomina.model.d.ts +2 -0
- package/lib/sigesp.service.d.ts +21 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -3479,6 +3479,8 @@
|
|
|
3479
3479
|
_this.ingresoContabilizadoPeriodo = 0;
|
|
3480
3480
|
_this.fideicomisoContabilizado = 0;
|
|
3481
3481
|
_this.fideicomisoInteresContabilizadoPeriodo = 0;
|
|
3482
|
+
_this.prenomina = false;
|
|
3483
|
+
_this.calculado = false;
|
|
3482
3484
|
if (e) {
|
|
3483
3485
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
3484
3486
|
_this.idNomina = parseInt(e.id_nomina);
|
|
@@ -3495,6 +3497,8 @@
|
|
|
3495
3497
|
_this.ingresoContabilizadoPeriodo = parseInt(e.ingconper);
|
|
3496
3498
|
_this.fideicomisoContabilizado = parseInt(e.fidconper);
|
|
3497
3499
|
_this.fideicomisoInteresContabilizadoPeriodo = parseInt(e.fidintconper);
|
|
3500
|
+
_this.prenomina = e.prenomina == '1' ? true : false;
|
|
3501
|
+
_this.calculado = e.calculado == '1' ? true : false;
|
|
3498
3502
|
}
|
|
3499
3503
|
return _this;
|
|
3500
3504
|
}
|
|
@@ -3515,39 +3519,35 @@
|
|
|
3515
3519
|
ingconper: this.ingresoContabilizadoPeriodo.toString(),
|
|
3516
3520
|
fidconper: this.fideicomisoContabilizado.toString(),
|
|
3517
3521
|
fidintconper: this.fideicomisoInteresContabilizadoPeriodo.toString(),
|
|
3522
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
3523
|
+
calculado: this.calculado ? '1' : '0',
|
|
3518
3524
|
};
|
|
3519
3525
|
};
|
|
3520
3526
|
MPeriodoNomina.prototype.estatusPeriodo = function () {
|
|
3521
|
-
if (this.
|
|
3527
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3522
3528
|
return 'Sin Calcular';
|
|
3523
3529
|
}
|
|
3524
|
-
else if (this.
|
|
3530
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3525
3531
|
return 'Calculada';
|
|
3526
3532
|
}
|
|
3527
|
-
else if (this.
|
|
3533
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 0) {
|
|
3528
3534
|
return 'Periodo Contabilizado';
|
|
3529
3535
|
}
|
|
3530
|
-
else if (this.
|
|
3536
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 1) {
|
|
3531
3537
|
return 'Periodo y Aporte Contabilizado';
|
|
3532
3538
|
}
|
|
3533
|
-
else if (this.
|
|
3539
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3534
3540
|
return 'Aporte Contabilizado';
|
|
3535
3541
|
}
|
|
3542
|
+
else if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3543
|
+
return 'Pre-Calculada';
|
|
3544
|
+
}
|
|
3536
3545
|
};
|
|
3537
3546
|
MPeriodoNomina.prototype.periodoEditable = function () {
|
|
3538
|
-
if (this.
|
|
3547
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3539
3548
|
return true;
|
|
3540
3549
|
}
|
|
3541
|
-
else
|
|
3542
|
-
return false;
|
|
3543
|
-
}
|
|
3544
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 0) {
|
|
3545
|
-
return false;
|
|
3546
|
-
}
|
|
3547
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 1) {
|
|
3548
|
-
return false;
|
|
3549
|
-
}
|
|
3550
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3550
|
+
else {
|
|
3551
3551
|
return false;
|
|
3552
3552
|
}
|
|
3553
3553
|
};
|
|
@@ -3988,6 +3988,65 @@
|
|
|
3988
3988
|
return MAsignacionCargo;
|
|
3989
3989
|
}(MBasicModel));
|
|
3990
3990
|
|
|
3991
|
+
var MNominaSimple = /** @class */ (function () {
|
|
3992
|
+
function MNominaSimple(e) {
|
|
3993
|
+
if (e === void 0) { e = null; }
|
|
3994
|
+
this.idEmpresa = 0;
|
|
3995
|
+
this.idNnomina = 0;
|
|
3996
|
+
this.codigoNomina = '';
|
|
3997
|
+
this.denominacioNomina = '';
|
|
3998
|
+
this.idPeriodoActual = 0;
|
|
3999
|
+
this.totalPeriodo = 0;
|
|
4000
|
+
this.estatus = '';
|
|
4001
|
+
this.estatusPeriodo = 0;
|
|
4002
|
+
this.calculada = false;
|
|
4003
|
+
this.prenomina = false;
|
|
4004
|
+
this.idCargo = 0;
|
|
4005
|
+
this.codigoCargo = '';
|
|
4006
|
+
this.denominacionCargo = '';
|
|
4007
|
+
this.nominaRac = 0;
|
|
4008
|
+
this.simbolo = '';
|
|
4009
|
+
this.color = '';
|
|
4010
|
+
if (e) {
|
|
4011
|
+
this.idEmpresa = parseInt(e.id_empresa);
|
|
4012
|
+
this.idNnomina = parseInt(e.id_nomina);
|
|
4013
|
+
this.codigoNomina = e.codnom;
|
|
4014
|
+
this.denominacioNomina = e.dennom;
|
|
4015
|
+
this.idPeriodoActual = +e.id_periodoactual;
|
|
4016
|
+
this.totalPeriodo = parseFloat(e.totper),
|
|
4017
|
+
this.estatusPeriodo = parseInt(e.cerper);
|
|
4018
|
+
this.calculada = e.calculado == '1' ? true : false;
|
|
4019
|
+
this.prenomina = e.prenomina == '1' ? true : false;
|
|
4020
|
+
this.estatus = this.calculada ? 'Calculada' :
|
|
4021
|
+
!this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4022
|
+
this.idCargo = parseInt(e.id_carper);
|
|
4023
|
+
this.codigoCargo = e.codcar;
|
|
4024
|
+
this.denominacionCargo = e.descar;
|
|
4025
|
+
this.nominaRac = parseInt(e.racnom);
|
|
4026
|
+
this.nominaRac == 1 ? this.simbolo = 'check' : this.simbolo = '';
|
|
4027
|
+
this.nominaRac == 1 ? this.color = 'primary' : this.color = '';
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
MNominaSimple.prototype.dataInterface = function () {
|
|
4031
|
+
return {
|
|
4032
|
+
id_empresa: this.idEmpresa.toString(),
|
|
4033
|
+
id_nomina: this.idNnomina.toString(),
|
|
4034
|
+
codnom: this.codigoNomina,
|
|
4035
|
+
dennom: this.denominacioNomina,
|
|
4036
|
+
id_periodoactual: this.idPeriodoActual.toString(),
|
|
4037
|
+
totper: this.totalPeriodo.toString(),
|
|
4038
|
+
cerper: this.estatusPeriodo.toString(),
|
|
4039
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
4040
|
+
calculado: this.calculada ? '1' : '0',
|
|
4041
|
+
id_carper: this.idCargo.toString(),
|
|
4042
|
+
descar: this.denominacionCargo,
|
|
4043
|
+
codcar: this.codigoCargo,
|
|
4044
|
+
racnom: this.nominaRac.toString(),
|
|
4045
|
+
};
|
|
4046
|
+
};
|
|
4047
|
+
return MNominaSimple;
|
|
4048
|
+
}());
|
|
4049
|
+
|
|
3991
4050
|
var MPersonal = /** @class */ (function (_super) {
|
|
3992
4051
|
__extends(MPersonal, _super);
|
|
3993
4052
|
function MPersonal(p) {
|
|
@@ -6326,9 +6385,11 @@
|
|
|
6326
6385
|
* @description obtiene el personal segun filtro
|
|
6327
6386
|
* @return Observable<IResponse>
|
|
6328
6387
|
* @date 15-11-2021
|
|
6388
|
+
* @param tipo: valores ['catalogo','default','nomina']
|
|
6389
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6329
6390
|
*/
|
|
6330
|
-
SigespService.prototype.getPersonal = function (dato) {
|
|
6331
|
-
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" +
|
|
6391
|
+
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
6392
|
+
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" + tipo + "&cedula=" + dato.cedula + "&nombre=" + dato.nombre + "&apellido=" + dato.apellido + "&expediente=" + dato.expediente + "&idTipo=" + dato.tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6332
6393
|
if (res.success) {
|
|
6333
6394
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
6334
6395
|
}
|
|
@@ -6339,15 +6400,33 @@
|
|
|
6339
6400
|
* @description obtener personal Nomina segun filtro
|
|
6340
6401
|
* @return Observable<IResponse>
|
|
6341
6402
|
* @date 15-11-2021
|
|
6403
|
+
* * @param tipo: valores ['catalogo','default','nomina']
|
|
6404
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6405
|
+
|
|
6342
6406
|
*/
|
|
6343
|
-
SigespService.prototype.getPersonalNomina = function (dato) {
|
|
6344
|
-
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" +
|
|
6407
|
+
SigespService.prototype.getPersonalNomina = function (tipo, dato) {
|
|
6408
|
+
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" + tipo + "&cedula=" + dato.cedula + "&nombre=" + dato.nombre + "&apellido=" + dato.apellido + "&expediente=" + dato.expediente + "&idTipo=" + dato.idTipo + "&idNomina=" + dato.idNomina, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6345
6409
|
if (res.success) {
|
|
6346
6410
|
res.data = res.data.map(function (e) { return new MPersonalNomina(e); });
|
|
6347
6411
|
}
|
|
6348
6412
|
return res;
|
|
6349
6413
|
}));
|
|
6350
6414
|
};
|
|
6415
|
+
/**
|
|
6416
|
+
* @param idPersonal: id del personal
|
|
6417
|
+
* @param tipo: valores['nomina_personal']
|
|
6418
|
+
* @description Obtiene las nominas del personal resumida
|
|
6419
|
+
* @deprecated; 20-01-22
|
|
6420
|
+
* @returns
|
|
6421
|
+
*/
|
|
6422
|
+
SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
|
|
6423
|
+
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) {
|
|
6424
|
+
if (res.success) {
|
|
6425
|
+
res.data = res.data.map(function (e) { return new MNominaSimple(e); });
|
|
6426
|
+
}
|
|
6427
|
+
return res;
|
|
6428
|
+
}));
|
|
6429
|
+
};
|
|
6351
6430
|
/**
|
|
6352
6431
|
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6353
6432
|
* @return Json data
|
|
@@ -6424,6 +6503,14 @@
|
|
|
6424
6503
|
}
|
|
6425
6504
|
return false;
|
|
6426
6505
|
};
|
|
6506
|
+
/**
|
|
6507
|
+
* @description Obtiene el Ip del cliente
|
|
6508
|
+
* @return Json data
|
|
6509
|
+
* @author Ing. Wilmer Briceno
|
|
6510
|
+
*/
|
|
6511
|
+
SigespService.prototype.getIPAddress = function () {
|
|
6512
|
+
return this.http.get("http://api.ipify.org/?format=json");
|
|
6513
|
+
};
|
|
6427
6514
|
return SigespService;
|
|
6428
6515
|
}());
|
|
6429
6516
|
SigespService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i3.ToastrService)); }, token: SigespService, providedIn: "root" });
|
|
@@ -10142,6 +10229,7 @@
|
|
|
10142
10229
|
exports.MMoneda = MMoneda;
|
|
10143
10230
|
exports.MMonedaConfig = MMonedaConfig;
|
|
10144
10231
|
exports.MMunicipality = MMunicipality;
|
|
10232
|
+
exports.MNominaSimple = MNominaSimple;
|
|
10145
10233
|
exports.MOrganizationType = MOrganizationType;
|
|
10146
10234
|
exports.MParish = MParish;
|
|
10147
10235
|
exports.MPeriodoNomina = MPeriodoNomina;
|