sigesp 0.8.50-211115 → 0.8.51-211122
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 +34 -5
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -15
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +2 -2
- package/esm2015/lib/sigesp.service.js +28 -1
- package/fesm2015/sigesp.js +28 -1
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/sigesp.service.d.ts +14 -0
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -10,6 +10,7 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
10
10
|
import { ToastrService, ToastrModule } from 'ngx-toastr';
|
|
11
11
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
12
12
|
import * as moment from 'moment';
|
|
13
|
+
import Swal from 'sweetalert2';
|
|
13
14
|
import { CommonModule } from '@angular/common';
|
|
14
15
|
import { CdkTableModule } from '@angular/cdk/table';
|
|
15
16
|
import { CdkTreeModule } from '@angular/cdk/tree';
|
|
@@ -221,8 +222,8 @@ class MPersonalNomina extends MBasicModel {
|
|
|
221
222
|
this.denominacionEstatus = e.staper == '1' ? 'ACTIVO' :
|
|
222
223
|
this.denominacionEstatus = e.staper == '2' ? 'VACACIONES' :
|
|
223
224
|
this.denominacionEstatus = e.staper == '3' ? 'EGRESADO' : 'SUSPENDIDO';
|
|
224
|
-
this.nombreCompleto = this.nombrePersonal + ' ' + this.apellidoPersonal;
|
|
225
225
|
this.apellidoPersonal = e.apeper;
|
|
226
|
+
this.nombreCompleto = this.nombrePersonal + ' ' + this.apellidoPersonal;
|
|
226
227
|
if (this.idTabulador > 0) {
|
|
227
228
|
this.sueldoPersonal = this.montoSaldoGrado;
|
|
228
229
|
}
|
|
@@ -5541,6 +5542,32 @@ class SigespService {
|
|
|
5541
5542
|
showToastError(message) {
|
|
5542
5543
|
this.toast.error(message);
|
|
5543
5544
|
}
|
|
5545
|
+
/**
|
|
5546
|
+
* @description Muestra un sweetalert2 de éxito
|
|
5547
|
+
* @param message Mensaje que se va a mostrar
|
|
5548
|
+
* @return void
|
|
5549
|
+
* @date 22-11-2021
|
|
5550
|
+
*/
|
|
5551
|
+
showToastSuccessSwal(message) {
|
|
5552
|
+
Swal.fire({
|
|
5553
|
+
icon: 'success',
|
|
5554
|
+
title: 'Éxito',
|
|
5555
|
+
text: message,
|
|
5556
|
+
});
|
|
5557
|
+
}
|
|
5558
|
+
/**
|
|
5559
|
+
* @description Muestra un sweetalert2 de error
|
|
5560
|
+
* @param message Mensaje que se va a mostrar
|
|
5561
|
+
* @return void
|
|
5562
|
+
* @date 22-11-2021
|
|
5563
|
+
*/
|
|
5564
|
+
showToastErrorSwal(message) {
|
|
5565
|
+
Swal.fire({
|
|
5566
|
+
icon: 'error',
|
|
5567
|
+
title: '¡Error!',
|
|
5568
|
+
text: message,
|
|
5569
|
+
});
|
|
5570
|
+
}
|
|
5544
5571
|
/**
|
|
5545
5572
|
* @description Guarda el usuario logueado en el SessionStorage
|
|
5546
5573
|
* @param user Usuario que se va a guardar en el SessionStorage
|