sigesp 0.8.98-20220615 → 0.8.99-20220616
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 +9 -29
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/models/SNO/MAsignacionCargo.model.js +3 -3
- package/esm2015/lib/core/models/SNO/MNominaSimple.model.js +3 -3
- package/esm2015/lib/sigesp.service.js +6 -26
- package/fesm2015/sigesp.js +9 -29
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +3 -2
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -3717,8 +3717,8 @@ class MCargosNominas extends MBasicModel {
|
|
|
3717
3717
|
this.denominacionNomina = e.dennom;
|
|
3718
3718
|
this.idDtNomina = parseInt(e.id_dt_carnom);
|
|
3719
3719
|
this.periodoActualNomina = e.peractnom;
|
|
3720
|
-
this.calculada = e.calculado
|
|
3721
|
-
this.prenomina = e.prenomina
|
|
3720
|
+
(e.calculado) ? this.calculada = parseInt(e.calculado) > 0 ? true : false : this.calculada = false;
|
|
3721
|
+
(e.prenomina) ? this.prenomina = parseInt(e.prenomina) > 0 ? true : false : this.prenomina = false;
|
|
3722
3722
|
this.estatus = this.calculada ? 'Calculada' :
|
|
3723
3723
|
!this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
3724
3724
|
this.editables = (this.calculada || this.prenomina) ? false : true;
|
|
@@ -3777,8 +3777,8 @@ class MNominaSimple extends MBasicModel {
|
|
|
3777
3777
|
this.idPeriodoActual = +e.id_periodoactual;
|
|
3778
3778
|
this.totalPeriodo = parseFloat(e.totper),
|
|
3779
3779
|
this.estatusPeriodo = parseInt(e.cerper);
|
|
3780
|
-
this.calculada = e.calculado
|
|
3781
|
-
this.prenomina = e.prenomina
|
|
3780
|
+
(e.calculado) ? this.calculada = parseInt(e.calculado) > 0 ? true : false : this.calculada = false;
|
|
3781
|
+
(e.prenomina) ? this.prenomina = parseInt(e.prenomina) > 0 ? true : false : this.prenomina = false;
|
|
3782
3782
|
this.estatus = this.calculada ? 'Calculada' :
|
|
3783
3783
|
!this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
3784
3784
|
this.editable = (this.calculada || this.prenomina) ? false : true;
|
|
@@ -5608,37 +5608,17 @@ class SigespService {
|
|
|
5608
5608
|
return formGroup.get(name);
|
|
5609
5609
|
}
|
|
5610
5610
|
/**
|
|
5611
|
-
* @description
|
|
5611
|
+
* @description Previene que se escriban letras en el input (Usar en keypress)
|
|
5612
5612
|
* @param event Evento del teclado
|
|
5613
5613
|
* @return boolean
|
|
5614
5614
|
* @author Miguel Ramírez
|
|
5615
|
+
* @modificado como onlyNumero para corregir codigo, usar currency-input si quiere usar decimales
|
|
5615
5616
|
*/
|
|
5616
5617
|
onlyDecimal(event) {
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
let number = event.target.value + event.key;
|
|
5620
|
-
// console.log(number);
|
|
5621
|
-
if (this.onlyNumbers(event) || event.key === ',') {
|
|
5622
|
-
for (let i = 0; i < number.length; i++) {
|
|
5623
|
-
if (number.charAt(i) === ',') {
|
|
5624
|
-
contPoint++;
|
|
5625
|
-
}
|
|
5626
|
-
}
|
|
5627
|
-
if (contPoint > 1) {
|
|
5628
|
-
return false;
|
|
5629
|
-
}
|
|
5630
|
-
else {
|
|
5631
|
-
if (number.indexOf(',') !== -1) {
|
|
5632
|
-
if (number.substring(number.indexOf(',') + 1, number.length).length > 2) {
|
|
5633
|
-
return false;
|
|
5634
|
-
}
|
|
5635
|
-
}
|
|
5636
|
-
return true;
|
|
5637
|
-
}
|
|
5638
|
-
}
|
|
5639
|
-
else {
|
|
5640
|
-
return false;
|
|
5618
|
+
if (!isNaN(+event.key) && event.keyCode != 32) {
|
|
5619
|
+
return true;
|
|
5641
5620
|
}
|
|
5621
|
+
return false;
|
|
5642
5622
|
}
|
|
5643
5623
|
/**
|
|
5644
5624
|
* @description Previene que se escriban letras en el input (Usar en keypress)
|