sigesp 0.8.62-220119 → 0.8.66-220126
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 +137 -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/interfaces/Usuario.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/core/models/user.model.js +2 -1
- package/esm2015/lib/sigesp.service.js +61 -5
- package/esm2015/public-api.js +2 -1
- package/fesm2015/sigesp.js +134 -21
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +17 -0
- package/lib/core/interfaces/Usuario.d.ts +1 -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/core/models/user.model.d.ts +1 -0
- package/lib/sigesp.service.d.ts +34 -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
|
@@ -708,6 +708,7 @@
|
|
|
708
708
|
this.id = parseInt(user.id_usuario);
|
|
709
709
|
this.interface = user;
|
|
710
710
|
this.nomina = parseInt(user.nomina);
|
|
711
|
+
this.periodoActual = parseInt(user.periodo);
|
|
711
712
|
}
|
|
712
713
|
MUsuario.prototype.getInterface = function () {
|
|
713
714
|
return this.interface;
|
|
@@ -3479,6 +3480,8 @@
|
|
|
3479
3480
|
_this.ingresoContabilizadoPeriodo = 0;
|
|
3480
3481
|
_this.fideicomisoContabilizado = 0;
|
|
3481
3482
|
_this.fideicomisoInteresContabilizadoPeriodo = 0;
|
|
3483
|
+
_this.prenomina = false;
|
|
3484
|
+
_this.calculado = false;
|
|
3482
3485
|
if (e) {
|
|
3483
3486
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
3484
3487
|
_this.idNomina = parseInt(e.id_nomina);
|
|
@@ -3495,6 +3498,8 @@
|
|
|
3495
3498
|
_this.ingresoContabilizadoPeriodo = parseInt(e.ingconper);
|
|
3496
3499
|
_this.fideicomisoContabilizado = parseInt(e.fidconper);
|
|
3497
3500
|
_this.fideicomisoInteresContabilizadoPeriodo = parseInt(e.fidintconper);
|
|
3501
|
+
_this.prenomina = e.prenomina == '1' ? true : false;
|
|
3502
|
+
_this.calculado = e.calculado == '1' ? true : false;
|
|
3498
3503
|
}
|
|
3499
3504
|
return _this;
|
|
3500
3505
|
}
|
|
@@ -3515,39 +3520,35 @@
|
|
|
3515
3520
|
ingconper: this.ingresoContabilizadoPeriodo.toString(),
|
|
3516
3521
|
fidconper: this.fideicomisoContabilizado.toString(),
|
|
3517
3522
|
fidintconper: this.fideicomisoInteresContabilizadoPeriodo.toString(),
|
|
3523
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
3524
|
+
calculado: this.calculado ? '1' : '0',
|
|
3518
3525
|
};
|
|
3519
3526
|
};
|
|
3520
3527
|
MPeriodoNomina.prototype.estatusPeriodo = function () {
|
|
3521
|
-
if (this.
|
|
3528
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3522
3529
|
return 'Sin Calcular';
|
|
3523
3530
|
}
|
|
3524
|
-
else if (this.
|
|
3531
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3525
3532
|
return 'Calculada';
|
|
3526
3533
|
}
|
|
3527
|
-
else if (this.
|
|
3534
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 0) {
|
|
3528
3535
|
return 'Periodo Contabilizado';
|
|
3529
3536
|
}
|
|
3530
|
-
else if (this.
|
|
3537
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 1) {
|
|
3531
3538
|
return 'Periodo y Aporte Contabilizado';
|
|
3532
3539
|
}
|
|
3533
|
-
else if (this.
|
|
3540
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3534
3541
|
return 'Aporte Contabilizado';
|
|
3535
3542
|
}
|
|
3543
|
+
else if (!this.calculado && this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3544
|
+
return 'Pre-Calculada';
|
|
3545
|
+
}
|
|
3536
3546
|
};
|
|
3537
3547
|
MPeriodoNomina.prototype.periodoEditable = function () {
|
|
3538
|
-
if (this.
|
|
3548
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3539
3549
|
return true;
|
|
3540
3550
|
}
|
|
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) {
|
|
3551
|
+
else {
|
|
3551
3552
|
return false;
|
|
3552
3553
|
}
|
|
3553
3554
|
};
|
|
@@ -3988,6 +3989,65 @@
|
|
|
3988
3989
|
return MAsignacionCargo;
|
|
3989
3990
|
}(MBasicModel));
|
|
3990
3991
|
|
|
3992
|
+
var MNominaSimple = /** @class */ (function () {
|
|
3993
|
+
function MNominaSimple(e) {
|
|
3994
|
+
if (e === void 0) { e = null; }
|
|
3995
|
+
this.idEmpresa = 0;
|
|
3996
|
+
this.idNnomina = 0;
|
|
3997
|
+
this.codigoNomina = '';
|
|
3998
|
+
this.denominacioNomina = '';
|
|
3999
|
+
this.idPeriodoActual = 0;
|
|
4000
|
+
this.totalPeriodo = 0;
|
|
4001
|
+
this.estatus = '';
|
|
4002
|
+
this.estatusPeriodo = 0;
|
|
4003
|
+
this.calculada = false;
|
|
4004
|
+
this.prenomina = false;
|
|
4005
|
+
this.idCargo = 0;
|
|
4006
|
+
this.codigoCargo = '';
|
|
4007
|
+
this.denominacionCargo = '';
|
|
4008
|
+
this.nominaRac = 0;
|
|
4009
|
+
this.simbolo = '';
|
|
4010
|
+
this.color = '';
|
|
4011
|
+
if (e) {
|
|
4012
|
+
this.idEmpresa = parseInt(e.id_empresa);
|
|
4013
|
+
this.idNnomina = parseInt(e.id_nomina);
|
|
4014
|
+
this.codigoNomina = e.codnom;
|
|
4015
|
+
this.denominacioNomina = e.dennom;
|
|
4016
|
+
this.idPeriodoActual = +e.id_periodoactual;
|
|
4017
|
+
this.totalPeriodo = parseFloat(e.totper),
|
|
4018
|
+
this.estatusPeriodo = parseInt(e.cerper);
|
|
4019
|
+
this.calculada = e.calculado == '1' ? true : false;
|
|
4020
|
+
this.prenomina = e.prenomina == '1' ? true : false;
|
|
4021
|
+
this.estatus = this.calculada ? 'Calculada' :
|
|
4022
|
+
!this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4023
|
+
this.idCargo = parseInt(e.id_carper);
|
|
4024
|
+
this.codigoCargo = e.codcar;
|
|
4025
|
+
this.denominacionCargo = e.descar;
|
|
4026
|
+
this.nominaRac = parseInt(e.racnom);
|
|
4027
|
+
this.nominaRac == 1 ? this.simbolo = 'check' : this.simbolo = '';
|
|
4028
|
+
this.nominaRac == 1 ? this.color = 'primary' : this.color = '';
|
|
4029
|
+
}
|
|
4030
|
+
}
|
|
4031
|
+
MNominaSimple.prototype.dataInterface = function () {
|
|
4032
|
+
return {
|
|
4033
|
+
id_empresa: this.idEmpresa.toString(),
|
|
4034
|
+
id_nomina: this.idNnomina.toString(),
|
|
4035
|
+
codnom: this.codigoNomina,
|
|
4036
|
+
dennom: this.denominacioNomina,
|
|
4037
|
+
id_periodoactual: this.idPeriodoActual.toString(),
|
|
4038
|
+
totper: this.totalPeriodo.toString(),
|
|
4039
|
+
cerper: this.estatusPeriodo.toString(),
|
|
4040
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
4041
|
+
calculado: this.calculada ? '1' : '0',
|
|
4042
|
+
id_carper: this.idCargo.toString(),
|
|
4043
|
+
descar: this.denominacionCargo,
|
|
4044
|
+
codcar: this.codigoCargo,
|
|
4045
|
+
racnom: this.nominaRac.toString(),
|
|
4046
|
+
};
|
|
4047
|
+
};
|
|
4048
|
+
return MNominaSimple;
|
|
4049
|
+
}());
|
|
4050
|
+
|
|
3991
4051
|
var MPersonal = /** @class */ (function (_super) {
|
|
3992
4052
|
__extends(MPersonal, _super);
|
|
3993
4053
|
function MPersonal(p) {
|
|
@@ -4631,6 +4691,7 @@
|
|
|
4631
4691
|
this.usuarioActivo = null;
|
|
4632
4692
|
this.currentComponent = null;
|
|
4633
4693
|
this.userMenu = null;
|
|
4694
|
+
this.ip_adress = '127.0.0.1';
|
|
4634
4695
|
}
|
|
4635
4696
|
/**
|
|
4636
4697
|
* @description Valida que selo se escriban guiones y 9
|
|
@@ -6326,9 +6387,11 @@
|
|
|
6326
6387
|
* @description obtiene el personal segun filtro
|
|
6327
6388
|
* @return Observable<IResponse>
|
|
6328
6389
|
* @date 15-11-2021
|
|
6390
|
+
* @param tipo: valores ['catalogo','default','nomina']
|
|
6391
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6329
6392
|
*/
|
|
6330
|
-
SigespService.prototype.getPersonal = function (dato) {
|
|
6331
|
-
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" +
|
|
6393
|
+
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
6394
|
+
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
6395
|
if (res.success) {
|
|
6333
6396
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
6334
6397
|
}
|
|
@@ -6339,15 +6402,33 @@
|
|
|
6339
6402
|
* @description obtener personal Nomina segun filtro
|
|
6340
6403
|
* @return Observable<IResponse>
|
|
6341
6404
|
* @date 15-11-2021
|
|
6405
|
+
* * @param tipo: valores ['catalogo','default','nomina']
|
|
6406
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6407
|
+
|
|
6342
6408
|
*/
|
|
6343
|
-
SigespService.prototype.getPersonalNomina = function (dato) {
|
|
6344
|
-
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" +
|
|
6409
|
+
SigespService.prototype.getPersonalNomina = function (tipo, dato) {
|
|
6410
|
+
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
6411
|
if (res.success) {
|
|
6346
6412
|
res.data = res.data.map(function (e) { return new MPersonalNomina(e); });
|
|
6347
6413
|
}
|
|
6348
6414
|
return res;
|
|
6349
6415
|
}));
|
|
6350
6416
|
};
|
|
6417
|
+
/**
|
|
6418
|
+
* @param idPersonal: id del personal
|
|
6419
|
+
* @param tipo: valores['nomina_personal']
|
|
6420
|
+
* @description Obtiene las nominas del personal resumida
|
|
6421
|
+
* @deprecated; 20-01-22
|
|
6422
|
+
* @returns
|
|
6423
|
+
*/
|
|
6424
|
+
SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
|
|
6425
|
+
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) {
|
|
6426
|
+
if (res.success) {
|
|
6427
|
+
res.data = res.data.map(function (e) { return new MNominaSimple(e); });
|
|
6428
|
+
}
|
|
6429
|
+
return res;
|
|
6430
|
+
}));
|
|
6431
|
+
};
|
|
6351
6432
|
/**
|
|
6352
6433
|
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6353
6434
|
* @return Json data
|
|
@@ -6424,6 +6505,41 @@
|
|
|
6424
6505
|
}
|
|
6425
6506
|
return false;
|
|
6426
6507
|
};
|
|
6508
|
+
/**
|
|
6509
|
+
* @description Obtiene el Ip del cliente
|
|
6510
|
+
* @return Json data
|
|
6511
|
+
* @author Ing. Wilmer Briceno
|
|
6512
|
+
*/
|
|
6513
|
+
SigespService.prototype.getIPAddress = function () {
|
|
6514
|
+
return this.http.get("http://api.ipify.org/?format=json")
|
|
6515
|
+
.pipe(operators.catchError(function (err) {
|
|
6516
|
+
console.log('error caught in service');
|
|
6517
|
+
console.error(err);
|
|
6518
|
+
sessionStorage.setItem('ip_adress', '127.0.0.1');
|
|
6519
|
+
//Handle the error here
|
|
6520
|
+
return rxjs.throwError(err); //Rethrow it back to component
|
|
6521
|
+
}));
|
|
6522
|
+
};
|
|
6523
|
+
/**
|
|
6524
|
+
* @description Obtiene el Ip del cliente
|
|
6525
|
+
* @return Json data
|
|
6526
|
+
* @author Ing. Wilmer Briceno
|
|
6527
|
+
*/
|
|
6528
|
+
SigespService.prototype.setIpAdress = function () {
|
|
6529
|
+
var _this = this;
|
|
6530
|
+
this.getIPAddress().subscribe(function (resp) {
|
|
6531
|
+
sessionStorage.setItem('ip_adress', resp.ip);
|
|
6532
|
+
_this.ip_adress = resp.ip;
|
|
6533
|
+
});
|
|
6534
|
+
};
|
|
6535
|
+
/**
|
|
6536
|
+
* @description Obtiene el Ip del cliente
|
|
6537
|
+
* @return Json data
|
|
6538
|
+
* @author Ing. Wilmer Briceno
|
|
6539
|
+
*/
|
|
6540
|
+
SigespService.prototype.getIpAdress = function () {
|
|
6541
|
+
this.ip_adress = sessionStorage.getItem('ip_adress');
|
|
6542
|
+
};
|
|
6427
6543
|
return SigespService;
|
|
6428
6544
|
}());
|
|
6429
6545
|
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 +10258,7 @@
|
|
|
10142
10258
|
exports.MMoneda = MMoneda;
|
|
10143
10259
|
exports.MMonedaConfig = MMonedaConfig;
|
|
10144
10260
|
exports.MMunicipality = MMunicipality;
|
|
10261
|
+
exports.MNominaSimple = MNominaSimple;
|
|
10145
10262
|
exports.MOrganizationType = MOrganizationType;
|
|
10146
10263
|
exports.MParish = MParish;
|
|
10147
10264
|
exports.MPeriodoNomina = MPeriodoNomina;
|