sigesp 0.8.65-220124 → 0.8.69-220214
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 +59 -15
- 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/app/app.module.js +1 -1
- package/esm2015/lib/core/interfaces/Nomina.js +1 -1
- package/esm2015/lib/core/interfaces/Seguridad.js +1 -1
- package/esm2015/lib/core/interfaces/Usuario.js +1 -1
- package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +6 -7
- package/esm2015/lib/core/models/SNO/MPeriodoNomina.model.js +1 -1
- package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +16 -6
- package/esm2015/lib/core/models/SSS/userRights.model.js +25 -1
- package/esm2015/lib/core/models/user.model.js +2 -1
- package/esm2015/lib/sigesp.service.js +17 -7
- package/esm2015/lib/validation.service.js +1 -1
- package/fesm2015/sigesp.js +59 -15
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +2 -0
- package/lib/core/interfaces/Seguridad.d.ts +8 -0
- package/lib/core/interfaces/Usuario.d.ts +1 -0
- package/lib/core/models/SNO/MDefinicionNomina.model.d.ts +3 -2
- package/lib/core/models/SNO/MPersonalNomina.model.d.ts +1 -1
- package/lib/core/models/SSS/userRights.model.d.ts +8 -0
- package/lib/core/models/user.model.d.ts +1 -0
- package/lib/sigesp.service.d.ts +12 -6
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -430,10 +430,10 @@
|
|
|
430
430
|
_this.horaAdicional2 = 0;
|
|
431
431
|
_this.estatusMPPPE = false;
|
|
432
432
|
_this.montoSaldoGrado = 0;
|
|
433
|
-
_this.salarioPersonal = 0;
|
|
434
433
|
_this.apellidoPersonal = '';
|
|
435
434
|
_this.denominacionEstatus = '';
|
|
436
435
|
_this.nombreCompleto = '';
|
|
436
|
+
_this.nominaRac = 0;
|
|
437
437
|
if (e) {
|
|
438
438
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
439
439
|
_this.idPersonalNomina = parseInt(e.id_personalnomina);
|
|
@@ -508,13 +508,18 @@
|
|
|
508
508
|
_this.horaAdicional2 = parseFloat(e.horadi2);
|
|
509
509
|
_this.estatusMPPPE = e.estmpppe == '1' ? true : false;
|
|
510
510
|
_this.montoSaldoGrado = parseFloat(e.monsalgra);
|
|
511
|
-
_this.montoSaldoGrado = parseFloat(e.monsalgra);
|
|
512
511
|
_this.denominacionEstatus = e.staper == '1' ? 'ACTIVO' :
|
|
513
512
|
_this.denominacionEstatus = e.staper == '2' ? 'VACACIONES' :
|
|
514
513
|
_this.denominacionEstatus = e.staper == '3' ? 'EGRESADO' : 'SUSPENDIDO';
|
|
515
514
|
_this.apellidoPersonal = e.apeper;
|
|
516
515
|
_this.nombreCompleto = _this.nombrePersonal + ' ' + _this.apellidoPersonal;
|
|
517
|
-
|
|
516
|
+
_this.nominaRac = parseInt(e.racnom);
|
|
517
|
+
if (_this.nominaRac == 0) {
|
|
518
|
+
_this.idTabulador = 0;
|
|
519
|
+
_this.codigoPaso = '0';
|
|
520
|
+
_this.codigoGrado = '0';
|
|
521
|
+
}
|
|
522
|
+
if (_this.idTabulador > 0 && _this.nominaRac == 1) {
|
|
518
523
|
_this.sueldoPersonal = _this.montoSaldoGrado;
|
|
519
524
|
}
|
|
520
525
|
if (_this.idAgencia > 0) {
|
|
@@ -534,8 +539,13 @@
|
|
|
534
539
|
return _this;
|
|
535
540
|
}
|
|
536
541
|
MPersonalNomina.prototype.dataInterface = function () {
|
|
537
|
-
if (this.idTabulador > 0) {
|
|
538
|
-
this.sueldoPersonal = this.
|
|
542
|
+
if (this.idTabulador > 0 && this.nominaRac == 1) {
|
|
543
|
+
this.sueldoPersonal = this.montoSaldoGrado;
|
|
544
|
+
}
|
|
545
|
+
else {
|
|
546
|
+
this.idTabulador = 0;
|
|
547
|
+
this.codigoPaso = '0';
|
|
548
|
+
this.codigoGrado = '0';
|
|
539
549
|
}
|
|
540
550
|
return {
|
|
541
551
|
id_empresa: this.idEmpresa.toString(),
|
|
@@ -708,6 +718,7 @@
|
|
|
708
718
|
this.id = parseInt(user.id_usuario);
|
|
709
719
|
this.interface = user;
|
|
710
720
|
this.nomina = parseInt(user.nomina);
|
|
721
|
+
this.periodo = parseInt(user.periodo);
|
|
711
722
|
}
|
|
712
723
|
MUsuario.prototype.getInterface = function () {
|
|
713
724
|
return this.interface;
|
|
@@ -1596,6 +1607,14 @@
|
|
|
1596
1607
|
_this.sendEmail = false;
|
|
1597
1608
|
_this.print = false;
|
|
1598
1609
|
_this.visible = false;
|
|
1610
|
+
_this.aprobar = false;
|
|
1611
|
+
_this.revaprobar = false;
|
|
1612
|
+
_this.anular_sc = false;
|
|
1613
|
+
_this.revanular_sc = false;
|
|
1614
|
+
_this.contabilizar = false;
|
|
1615
|
+
_this.revcontabilizar = false;
|
|
1616
|
+
_this.anular_c = false;
|
|
1617
|
+
_this.revanular_c = false;
|
|
1599
1618
|
_this.children = [];
|
|
1600
1619
|
_this.icon = '';
|
|
1601
1620
|
_this.componentName = '';
|
|
@@ -1617,6 +1636,14 @@
|
|
|
1617
1636
|
_this.sendEmail = right.enviar__correo_ == "1";
|
|
1618
1637
|
_this.print = right.imprimir == "1";
|
|
1619
1638
|
_this.visible = right.visible == "1";
|
|
1639
|
+
_this.aprobar = right.aprobar == "1";
|
|
1640
|
+
_this.revaprobar = right.revaprobar == "1";
|
|
1641
|
+
_this.anular_sc = right.anular_sc == "1";
|
|
1642
|
+
_this.revanular_sc = right.revanular_sc == "1";
|
|
1643
|
+
_this.contabilizar = right.contabilizar == "1";
|
|
1644
|
+
_this.revcontabilizar = right.revcontabilizar == "1";
|
|
1645
|
+
_this.anular_c = right.anular_c == "1";
|
|
1646
|
+
_this.revanular_c = right.revanular_c == "1";
|
|
1620
1647
|
_this.children = right.children.map(function (e) { return new MRights(e); });
|
|
1621
1648
|
_this.icon = right.icono;
|
|
1622
1649
|
_this.id = parseInt(right.id.toString());
|
|
@@ -1645,6 +1672,14 @@
|
|
|
1645
1672
|
imprimir: this.print ? "1" : "0",
|
|
1646
1673
|
insertar: this.insert ? "1" : "0",
|
|
1647
1674
|
visible: this.visible ? "1" : "0",
|
|
1675
|
+
aprobar: this.aprobar ? "1" : "0",
|
|
1676
|
+
revaprobar: this.revaprobar ? "1" : "0",
|
|
1677
|
+
anular_sc: this.anular_sc ? "1" : "0",
|
|
1678
|
+
revanular_sc: this.revanular_sc ? "1" : "0",
|
|
1679
|
+
contabilizar: this.contabilizar ? "1" : "0",
|
|
1680
|
+
revcontabilizar: this.revcontabilizar ? "1" : "0",
|
|
1681
|
+
anular_c: this.anular_c ? "1" : "0",
|
|
1682
|
+
revanular_c: this.revanular_c ? "1" : "0",
|
|
1648
1683
|
codusu: '---',
|
|
1649
1684
|
id_grupo: this.groupId,
|
|
1650
1685
|
id_usuario: this.userId,
|
|
@@ -3633,6 +3668,7 @@
|
|
|
3633
3668
|
_this.denominacionCuentaContable = '';
|
|
3634
3669
|
_this.idPeriodoNomina = 0;
|
|
3635
3670
|
_this.idPeriodoRestablecerNomina = 0;
|
|
3671
|
+
_this.estatusIncidencia = 0;
|
|
3636
3672
|
_this.periodosNomina = [];
|
|
3637
3673
|
if (e) {
|
|
3638
3674
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
@@ -3694,6 +3730,7 @@
|
|
|
3694
3730
|
_this.denominacionCodigoFuenteFinanciamiento = e.codigoftefin + ' - ' + e.denfuefin;
|
|
3695
3731
|
_this.denominacionCuentaContable = e.denctacont;
|
|
3696
3732
|
_this.nombreProveedor = e.nompro;
|
|
3733
|
+
_this.estatusIncidencia = parseInt(e.estincidencia);
|
|
3697
3734
|
_this.periodosNomina = e.periodos.map(function (e) { return new MPeriodoNomina(e); });
|
|
3698
3735
|
_this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
3699
3736
|
_this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
@@ -3769,6 +3806,7 @@
|
|
|
3769
3806
|
nompro: this.nombreProveedor,
|
|
3770
3807
|
id_periodoactual: this.idPeriodoNomina.toString(),
|
|
3771
3808
|
id_perresnom: this.idPeriodoRestablecerNomina.toString(),
|
|
3809
|
+
estincidencia: this.estatusIncidencia.toString(),
|
|
3772
3810
|
periodos: this.periodosNomina.map((function (e) { return e.dataInterface(); })),
|
|
3773
3811
|
};
|
|
3774
3812
|
};
|
|
@@ -3812,10 +3850,6 @@
|
|
|
3812
3850
|
var _this = this;
|
|
3813
3851
|
return this.periodosNomina.findIndex(function (e) { return e.codigoPeriodo == _this.periodoActualNomina; });
|
|
3814
3852
|
};
|
|
3815
|
-
// public idPeriodoActual():number{
|
|
3816
|
-
// let i = this.indice();
|
|
3817
|
-
// return this.periodosNomina[i].idPeriodo;
|
|
3818
|
-
// }
|
|
3819
3853
|
/**
|
|
3820
3854
|
* @returns Fecha final de la nomina
|
|
3821
3855
|
*/
|
|
@@ -6433,6 +6467,16 @@
|
|
|
6433
6467
|
* @return Json data
|
|
6434
6468
|
* @author Ing. Wilmer Briceno
|
|
6435
6469
|
*/
|
|
6470
|
+
SigespService.prototype.getPerfilNoComponent = function (id_usuario, sistema, nameComponent) {
|
|
6471
|
+
return this.http.get(this.URL + "/dao/sss/derechos_usuario_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema + "&namecomponent=" + nameComponent, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
|
|
6472
|
+
return res;
|
|
6473
|
+
}));
|
|
6474
|
+
};
|
|
6475
|
+
/**
|
|
6476
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6477
|
+
* @return Json data
|
|
6478
|
+
* @author Ing. Wilmer Briceno
|
|
6479
|
+
*/
|
|
6436
6480
|
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6437
6481
|
var _this = this;
|
|
6438
6482
|
return this.http.get(this.URL + "/dao/sss/menu_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
|
|
@@ -6488,12 +6532,12 @@
|
|
|
6488
6532
|
* stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
|
|
6489
6533
|
* Estructura string binario:
|
|
6490
6534
|
* Posición :
|
|
6491
|
-
* 0. Administrador 6. Descargar
|
|
6492
|
-
* 1. insertar 7. Ejecutar
|
|
6493
|
-
* 2. Actualizar 8. Enviar
|
|
6494
|
-
* 3. consultar 9. Imprimir
|
|
6495
|
-
* 4. Eliminar 10. Visible
|
|
6496
|
-
* 5. Anular
|
|
6535
|
+
* 0. Administrador 6. Descargar 12. Reversar aprobar 18. Reversar anular contabilizado
|
|
6536
|
+
* 1. insertar 7. Ejecutar 13. Anular.
|
|
6537
|
+
* 2. Actualizar 8. Enviar 14. reversar anular
|
|
6538
|
+
* 3. consultar 9. Imprimir 15. contabilizar
|
|
6539
|
+
* 4. Eliminar 10. Visible 16. reversar contabilizar
|
|
6540
|
+
* 5. Anular 11. Aprobar 17. anular contabilizado
|
|
6497
6541
|
*
|
|
6498
6542
|
* @author Ing. Wilmer Briceño
|
|
6499
6543
|
*/
|