sigesp 0.8.47-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 +108 -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/interfaces/Nomina.js +1 -1
- package/esm2015/lib/core/interfaces/RecursosHumanos.js +1 -1
- package/esm2015/lib/core/models/SNO/MAnticipoPrestaciones.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MArchivoTxtCampo.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MAsignacionCargo.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MAspectoEvaluacion.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MBeneficiario.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MCargosPersonal.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MClasificacionObrero.mdel.js +4 -1
- package/esm2015/lib/core/models/SNO/MCodigoUnicoRac.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MComponete.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MConstanteNomina.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MDedicacion.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MDefinicionesBasicas.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MDeudaAnterior.model.js +4 -1
- package/esm2015/lib/core/models/SNO/MPersonal.model.js +29 -2
- package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +3 -1
- package/esm2015/lib/core/models/SNO/McargaFamiliar.model.js +4 -1
- package/esm2015/lib/sigesp.service.js +28 -1
- package/fesm2015/sigesp.js +102 -1
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +1 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +4 -0
- package/lib/core/models/SNO/MPersonal.model.d.ts +5 -0
- 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,6 +222,7 @@ 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';
|
|
225
|
+
this.apellidoPersonal = e.apeper;
|
|
224
226
|
this.nombreCompleto = this.nombrePersonal + ' ' + this.apellidoPersonal;
|
|
225
227
|
if (this.idTabulador > 0) {
|
|
226
228
|
this.sueldoPersonal = this.montoSaldoGrado;
|
|
@@ -324,6 +326,7 @@ class MPersonalNomina extends MBasicModel {
|
|
|
324
326
|
horadi2: this.horaAdicional2.toString(),
|
|
325
327
|
estmpppe: this.estatusMPPPE ? '1' : '0',
|
|
326
328
|
monsalgra: this.montoSaldoGrado.toString(),
|
|
329
|
+
apeper: this.apellidoPersonal,
|
|
327
330
|
};
|
|
328
331
|
}
|
|
329
332
|
}
|
|
@@ -3186,6 +3189,9 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
3186
3189
|
this.idPeriodoNomina = parseInt(e.id_periodoactual);
|
|
3187
3190
|
this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
|
|
3188
3191
|
}
|
|
3192
|
+
else {
|
|
3193
|
+
this.isNew = true;
|
|
3194
|
+
}
|
|
3189
3195
|
}
|
|
3190
3196
|
dataInterface() {
|
|
3191
3197
|
this.getPeriodoNomina();
|
|
@@ -3425,6 +3431,9 @@ class MAsignacionCargo extends MBasicModel {
|
|
|
3425
3431
|
this.numeroCargosOcupados = parseInt(e.numocucar);
|
|
3426
3432
|
this.disponibilidadCargos = parseInt(e.disponibilidad);
|
|
3427
3433
|
}
|
|
3434
|
+
else {
|
|
3435
|
+
this.isNew = true;
|
|
3436
|
+
}
|
|
3428
3437
|
}
|
|
3429
3438
|
dataInterface() {
|
|
3430
3439
|
return {
|
|
@@ -3501,7 +3510,7 @@ class MPersonal extends MBasicModel {
|
|
|
3501
3510
|
this.idRango = 0;
|
|
3502
3511
|
this.fotoPersonal = '';
|
|
3503
3512
|
this.observacionPersonal = '';
|
|
3504
|
-
this.estatusPersonal = '
|
|
3513
|
+
this.estatusPersonal = '1';
|
|
3505
3514
|
this.idClasificacionPersonal = 0;
|
|
3506
3515
|
this.centroMedicoIVVS = ''; //155
|
|
3507
3516
|
this.turnoPersonal = ''; //1
|
|
@@ -3553,6 +3562,11 @@ class MPersonal extends MBasicModel {
|
|
|
3553
3562
|
this.codigoCausaRetiro = '';
|
|
3554
3563
|
this.denominacionCausaRetiro = '';
|
|
3555
3564
|
this.idProveedorBeneficiario = 0;
|
|
3565
|
+
this.denominacionEstatus = '';
|
|
3566
|
+
this.conapdis = false;
|
|
3567
|
+
this.idSindicato = 0;
|
|
3568
|
+
this.codigoSindicato = '00000';
|
|
3569
|
+
this.denominacionSindicato = '';
|
|
3556
3570
|
if (p) {
|
|
3557
3571
|
this.idEmpresa = +p.id_empresa;
|
|
3558
3572
|
this.idPersonal = +p.id_personal;
|
|
@@ -3642,6 +3656,24 @@ class MPersonal extends MBasicModel {
|
|
|
3642
3656
|
this.codigoCausaRetiro = p.dencau;
|
|
3643
3657
|
this.denominacionCausaRetiro = p.codcau;
|
|
3644
3658
|
this.idProveedorBeneficiario = parseInt(p.id_proveedorbeneficiario);
|
|
3659
|
+
this.idSindicato = parseInt(p.id_sindicato);
|
|
3660
|
+
this.codigoSindicato = p.codsin;
|
|
3661
|
+
this.denominacionSindicato = p.densin;
|
|
3662
|
+
this.estatusPersonal == '0' ? this.denominacionEstatus = 'PRE-INGRESO' :
|
|
3663
|
+
this.estatusPersonal == '1' ? this.denominacionEstatus = 'ACTIVO' :
|
|
3664
|
+
this.estatusPersonal == '2' ? this.denominacionEstatus = 'NINGUNO' :
|
|
3665
|
+
this.estatusPersonal == '3' ? this.denominacionEstatus = 'EGRESADO' :
|
|
3666
|
+
this.estatusPersonal == '4' ? this.denominacionEstatus = 'REMOCIÓN' :
|
|
3667
|
+
this.estatusPersonal == '5' ? this.denominacionEstatus = 'RETIRO' :
|
|
3668
|
+
this.estatusPersonal == '6' ? this.denominacionEstatus = 'DESTITUCIÓN' :
|
|
3669
|
+
this.estatusPersonal == '7' ? this.denominacionEstatus = 'LIQUIDACIÓN' : '';
|
|
3670
|
+
this.conapdis = p.conapdis == '1' ? true : false;
|
|
3671
|
+
this.idSindicato = parseInt(p.id_sindicato);
|
|
3672
|
+
this.codigoSindicato = p.codsin;
|
|
3673
|
+
this.denominacionSindicato = p.densin;
|
|
3674
|
+
}
|
|
3675
|
+
else {
|
|
3676
|
+
this.isNew = true;
|
|
3645
3677
|
}
|
|
3646
3678
|
}
|
|
3647
3679
|
dataInterface() {
|
|
@@ -3732,6 +3764,10 @@ class MPersonal extends MBasicModel {
|
|
|
3732
3764
|
codcau: this.codigoCausaRetiro,
|
|
3733
3765
|
dencau: this.denominacionCausaRetiro,
|
|
3734
3766
|
id_proveedorbeneficiario: this.idProveedorBeneficiario.toString(),
|
|
3767
|
+
id_sindicato: this.idSindicato.toString(),
|
|
3768
|
+
codsin: this.codigoSindicato,
|
|
3769
|
+
densin: this.denominacionSindicato,
|
|
3770
|
+
conapdis: this.conapdis ? '1' : '0',
|
|
3735
3771
|
};
|
|
3736
3772
|
}
|
|
3737
3773
|
}
|
|
@@ -5506,6 +5542,32 @@ class SigespService {
|
|
|
5506
5542
|
showToastError(message) {
|
|
5507
5543
|
this.toast.error(message);
|
|
5508
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
|
+
}
|
|
5509
5571
|
/**
|
|
5510
5572
|
* @description Guarda el usuario logueado en el SessionStorage
|
|
5511
5573
|
* @param user Usuario que se va a guardar en el SessionStorage
|
|
@@ -6187,6 +6249,9 @@ class MAnticipoPrestaciones extends MBasicModel {
|
|
|
6187
6249
|
this.calcularAntiguedad();
|
|
6188
6250
|
this.calcularInteres();
|
|
6189
6251
|
}
|
|
6252
|
+
else {
|
|
6253
|
+
this.isNew = true;
|
|
6254
|
+
}
|
|
6190
6255
|
}
|
|
6191
6256
|
dataInterface() {
|
|
6192
6257
|
return {
|
|
@@ -6268,6 +6333,9 @@ class MArchivoTxtCampo extends MBasicModel {
|
|
|
6268
6333
|
this.tipoCampo = e.tipcam;
|
|
6269
6334
|
this.idDtCampo = parseInt(e.id_dt_campo);
|
|
6270
6335
|
}
|
|
6336
|
+
else {
|
|
6337
|
+
this.isNew = true;
|
|
6338
|
+
}
|
|
6271
6339
|
}
|
|
6272
6340
|
dataInterface() {
|
|
6273
6341
|
return {
|
|
@@ -6308,6 +6376,9 @@ class MAspectoEvaluacion extends MBasicModel {
|
|
|
6308
6376
|
this.codigoAspecto = e.codasp;
|
|
6309
6377
|
this.denominacionAspecto = e.denasp;
|
|
6310
6378
|
}
|
|
6379
|
+
else {
|
|
6380
|
+
this.isNew = true;
|
|
6381
|
+
}
|
|
6311
6382
|
}
|
|
6312
6383
|
dataInterface() {
|
|
6313
6384
|
return {
|
|
@@ -6373,6 +6444,9 @@ class MBeneficiario extends MBasicModel {
|
|
|
6373
6444
|
this.nombreBanco = e.nomban;
|
|
6374
6445
|
this.denominacionTipoCuenta = e.nomtipcta;
|
|
6375
6446
|
}
|
|
6447
|
+
else {
|
|
6448
|
+
this.isNew = true;
|
|
6449
|
+
}
|
|
6376
6450
|
}
|
|
6377
6451
|
dataInterface() {
|
|
6378
6452
|
return {
|
|
@@ -6458,6 +6532,9 @@ class MCargosPersonal extends MBasicModel {
|
|
|
6458
6532
|
this.montoCompensacionGrado = parseFloat(p.moncomgra);
|
|
6459
6533
|
this.estatusMPPPE = p.estmpppe == '1' ? true : false;
|
|
6460
6534
|
}
|
|
6535
|
+
else {
|
|
6536
|
+
this.isNew = true;
|
|
6537
|
+
}
|
|
6461
6538
|
}
|
|
6462
6539
|
dataInterface() {
|
|
6463
6540
|
return {
|
|
@@ -6517,6 +6594,9 @@ class MCargaFamiliar extends MBasicModel {
|
|
|
6517
6594
|
this.parentesco = e.nexfam;
|
|
6518
6595
|
this.fechaNacimiento = e.fecnacfam;
|
|
6519
6596
|
}
|
|
6597
|
+
else {
|
|
6598
|
+
this.isNew = true;
|
|
6599
|
+
}
|
|
6520
6600
|
}
|
|
6521
6601
|
dataInterface() {
|
|
6522
6602
|
return {
|
|
@@ -6558,6 +6638,9 @@ class MClasificacionObrero extends MBasicModel {
|
|
|
6558
6638
|
this.numeroGaceta = e.numgac;
|
|
6559
6639
|
this.observacion = e.obscla;
|
|
6560
6640
|
}
|
|
6641
|
+
else {
|
|
6642
|
+
this.isNew = true;
|
|
6643
|
+
}
|
|
6561
6644
|
}
|
|
6562
6645
|
dataInterface() {
|
|
6563
6646
|
return {
|
|
@@ -7014,6 +7097,9 @@ class MConstanteNomina extends MBasicModel {
|
|
|
7014
7097
|
this.registroIncidencia = e.regincidencia;
|
|
7015
7098
|
this.valorInicialIncidencia = parseFloat(e.valincidencia);
|
|
7016
7099
|
}
|
|
7100
|
+
else {
|
|
7101
|
+
this.isNew = true;
|
|
7102
|
+
}
|
|
7017
7103
|
}
|
|
7018
7104
|
dataInterface() {
|
|
7019
7105
|
return {
|
|
@@ -7164,6 +7250,9 @@ class MComponete extends MBasicModel {
|
|
|
7164
7250
|
this.nombreAbreviatura = e.nomabr;
|
|
7165
7251
|
this.rangos = e.rangos.map(e => new MRango(e));
|
|
7166
7252
|
}
|
|
7253
|
+
else {
|
|
7254
|
+
this.isNew = true;
|
|
7255
|
+
}
|
|
7167
7256
|
}
|
|
7168
7257
|
dataInterface() {
|
|
7169
7258
|
return {
|
|
@@ -7381,6 +7470,9 @@ class MDedicacion extends MBasicModel {
|
|
|
7381
7470
|
this.denominacionDedicacion = e.dended;
|
|
7382
7471
|
this.tipoPersonal = e.detalles.map(e => new MTipoPersonal(e));
|
|
7383
7472
|
}
|
|
7473
|
+
else {
|
|
7474
|
+
this.isNew = true;
|
|
7475
|
+
}
|
|
7384
7476
|
}
|
|
7385
7477
|
dataInterface() {
|
|
7386
7478
|
return {
|
|
@@ -7413,6 +7505,9 @@ class MDefinicionesBasicas extends MBasicModel {
|
|
|
7413
7505
|
}
|
|
7414
7506
|
this.observacionRetenciones = e.obsconret;
|
|
7415
7507
|
}
|
|
7508
|
+
else {
|
|
7509
|
+
this.isNew = true;
|
|
7510
|
+
}
|
|
7416
7511
|
}
|
|
7417
7512
|
dataInterface() {
|
|
7418
7513
|
let tipo = '0';
|
|
@@ -7448,6 +7543,9 @@ class MDeudaAnterior extends MBasicModel {
|
|
|
7448
7543
|
this.montoDeudaAnterior = +e.monant;
|
|
7449
7544
|
this.montoAnticipoInteres = +e.monantint;
|
|
7450
7545
|
}
|
|
7546
|
+
else {
|
|
7547
|
+
this.isNew = true;
|
|
7548
|
+
}
|
|
7451
7549
|
}
|
|
7452
7550
|
dataInterface() {
|
|
7453
7551
|
return {
|
|
@@ -8892,6 +8990,9 @@ class MCodigoUnicoRac extends MBasicModel {
|
|
|
8892
8990
|
this.codigoUnicoRac = e.codunirac;
|
|
8893
8991
|
this.estatusUnicoRac == 1 ? 'NO DISPONIBLE' : 'DISPONIBLE';
|
|
8894
8992
|
}
|
|
8993
|
+
else {
|
|
8994
|
+
this.isNew = true;
|
|
8995
|
+
}
|
|
8895
8996
|
}
|
|
8896
8997
|
dataInterface() {
|
|
8897
8998
|
return {
|