sigesp 0.8.64-220121 → 0.8.68-220203
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 +57 -12
- 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/Seguridad.js +1 -1
- package/esm2015/lib/core/interfaces/Usuario.js +1 -1
- package/esm2015/lib/core/models/SNO/MPeriodoNomina.model.js +2 -2
- 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/fesm2015/sigesp.js +57 -12
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +1 -0
- package/lib/core/interfaces/Seguridad.d.ts +8 -0
- package/lib/core/interfaces/Usuario.d.ts +1 -0
- 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,
|
|
@@ -3539,7 +3574,7 @@
|
|
|
3539
3574
|
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3540
3575
|
return 'Aporte Contabilizado';
|
|
3541
3576
|
}
|
|
3542
|
-
else if (!this.calculado &&
|
|
3577
|
+
else if (!this.calculado && this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3543
3578
|
return 'Pre-Calculada';
|
|
3544
3579
|
}
|
|
3545
3580
|
};
|
|
@@ -6433,6 +6468,16 @@
|
|
|
6433
6468
|
* @return Json data
|
|
6434
6469
|
* @author Ing. Wilmer Briceno
|
|
6435
6470
|
*/
|
|
6471
|
+
SigespService.prototype.getPerfilNoComponent = function (id_usuario, sistema, nameComponent) {
|
|
6472
|
+
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) {
|
|
6473
|
+
return res;
|
|
6474
|
+
}));
|
|
6475
|
+
};
|
|
6476
|
+
/**
|
|
6477
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6478
|
+
* @return Json data
|
|
6479
|
+
* @author Ing. Wilmer Briceno
|
|
6480
|
+
*/
|
|
6436
6481
|
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6437
6482
|
var _this = this;
|
|
6438
6483
|
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 +6533,12 @@
|
|
|
6488
6533
|
* stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
|
|
6489
6534
|
* Estructura string binario:
|
|
6490
6535
|
* 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
|
|
6536
|
+
* 0. Administrador 6. Descargar 12. Reversar aprobar 18. Reversar anular contabilizado
|
|
6537
|
+
* 1. insertar 7. Ejecutar 13. Anular.
|
|
6538
|
+
* 2. Actualizar 8. Enviar 14. reversar anular
|
|
6539
|
+
* 3. consultar 9. Imprimir 15. contabilizar
|
|
6540
|
+
* 4. Eliminar 10. Visible 16. reversar contabilizar
|
|
6541
|
+
* 5. Anular 11. Aprobar 17. anular contabilizado
|
|
6497
6542
|
*
|
|
6498
6543
|
* @author Ing. Wilmer Briceño
|
|
6499
6544
|
*/
|