sigesp 0.8.48-211115 → 0.8.52-211212

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.
Files changed (34) hide show
  1. package/bundles/sigesp.umd.js +115 -6
  2. package/bundles/sigesp.umd.js.map +1 -1
  3. package/bundles/sigesp.umd.min.js +1 -15
  4. package/bundles/sigesp.umd.min.js.map +1 -1
  5. package/esm2015/lib/core/interfaces/Nomina.js +1 -1
  6. package/esm2015/lib/core/interfaces/RecursosHumanos.js +1 -1
  7. package/esm2015/lib/core/models/SNO/MAnticipoPrestaciones.model.js +4 -1
  8. package/esm2015/lib/core/models/SNO/MArchivoTxtCampo.model.js +4 -1
  9. package/esm2015/lib/core/models/SNO/MAsignacionCargo.model.js +4 -1
  10. package/esm2015/lib/core/models/SNO/MAspectoEvaluacion.model.js +4 -1
  11. package/esm2015/lib/core/models/SNO/MBeneficiario.model.js +4 -1
  12. package/esm2015/lib/core/models/SNO/MCargosPersonal.model.js +4 -1
  13. package/esm2015/lib/core/models/SNO/MClasificacionObrero.mdel.js +4 -1
  14. package/esm2015/lib/core/models/SNO/MCodigoUnicoRac.model.js +4 -1
  15. package/esm2015/lib/core/models/SNO/MComponete.model.js +4 -1
  16. package/esm2015/lib/core/models/SNO/MConfiguracionSNO.model.js +8 -2
  17. package/esm2015/lib/core/models/SNO/MConstanteNomina.model.js +4 -1
  18. package/esm2015/lib/core/models/SNO/MDedicacion.model.js +4 -1
  19. package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +4 -1
  20. package/esm2015/lib/core/models/SNO/MDefinicionesBasicas.model.js +4 -1
  21. package/esm2015/lib/core/models/SNO/MDeudaAnterior.model.js +4 -1
  22. package/esm2015/lib/core/models/SNO/MPersonal.model.js +29 -2
  23. package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +3 -1
  24. package/esm2015/lib/core/models/SNO/McargaFamiliar.model.js +4 -1
  25. package/esm2015/lib/sigesp.service.js +28 -1
  26. package/fesm2015/sigesp.js +109 -2
  27. package/fesm2015/sigesp.js.map +1 -1
  28. package/lib/core/interfaces/Nomina.d.ts +1 -0
  29. package/lib/core/interfaces/RecursosHumanos.d.ts +5 -0
  30. package/lib/core/models/SNO/MConfiguracionSNO.model.d.ts +1 -0
  31. package/lib/core/models/SNO/MPersonal.model.d.ts +5 -0
  32. package/lib/sigesp.service.d.ts +14 -0
  33. package/package.json +1 -1
  34. package/sigesp.metadata.json +1 -1
@@ -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
  }
@@ -2693,6 +2696,7 @@ class MConfiguracionSNO extends MBasicModel {
2693
2696
  this.registroasistenciaincidencia = 'C00';
2694
2697
  this.manejoIndependienteModulo = 0;
2695
2698
  this.digitosCodigoConcepto = 10;
2699
+ this.segmentarPersonal = 10000;
2696
2700
  if (I) {
2697
2701
  this.idEmpresa = parseInt(I.id_empresa);
2698
2702
  this.idNomina = parseInt(I.id_sno);
@@ -2818,12 +2822,16 @@ class MConfiguracionSNO extends MBasicModel {
2818
2822
  this.registroasistenciaincidencia = I.regasiinc;
2819
2823
  this.manejoIndependienteModulo = parseInt(I.manindmod);
2820
2824
  this.digitosCodigoConcepto = parseInt(I.digcodcon);
2825
+ this.segmentarPersonal = parseInt(I.segper);
2821
2826
  }
2822
2827
  else {
2823
2828
  this.isNew = true;
2824
2829
  }
2825
2830
  }
2826
2831
  dataInterface() {
2832
+ if (this.segmentarPersonal == 0) {
2833
+ this.segmentarPersonal = 10000;
2834
+ }
2827
2835
  return {
2828
2836
  id_empresa: this.idEmpresa.toString(),
2829
2837
  id_sno: this.idNomina.toString(),
@@ -2948,7 +2956,8 @@ class MConfiguracionSNO extends MBasicModel {
2948
2956
  regferinc: this.registroferiadoincidencia,
2949
2957
  regasiinc: this.registroasistenciaincidencia,
2950
2958
  manindmod: this.manejoIndependienteModulo.toString(),
2951
- digcodcon: this.digitosCodigoConcepto.toString()
2959
+ digcodcon: this.digitosCodigoConcepto.toString(),
2960
+ segper: this.segmentarPersonal.toString(),
2952
2961
  };
2953
2962
  }
2954
2963
  }
@@ -3186,6 +3195,9 @@ class MDefinicionNomina extends MBasicModel {
3186
3195
  this.idPeriodoNomina = parseInt(e.id_periodoactual);
3187
3196
  this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
3188
3197
  }
3198
+ else {
3199
+ this.isNew = true;
3200
+ }
3189
3201
  }
3190
3202
  dataInterface() {
3191
3203
  this.getPeriodoNomina();
@@ -3425,6 +3437,9 @@ class MAsignacionCargo extends MBasicModel {
3425
3437
  this.numeroCargosOcupados = parseInt(e.numocucar);
3426
3438
  this.disponibilidadCargos = parseInt(e.disponibilidad);
3427
3439
  }
3440
+ else {
3441
+ this.isNew = true;
3442
+ }
3428
3443
  }
3429
3444
  dataInterface() {
3430
3445
  return {
@@ -3501,7 +3516,7 @@ class MPersonal extends MBasicModel {
3501
3516
  this.idRango = 0;
3502
3517
  this.fotoPersonal = '';
3503
3518
  this.observacionPersonal = '';
3504
- this.estatusPersonal = '0';
3519
+ this.estatusPersonal = '1';
3505
3520
  this.idClasificacionPersonal = 0;
3506
3521
  this.centroMedicoIVVS = ''; //155
3507
3522
  this.turnoPersonal = ''; //1
@@ -3553,6 +3568,11 @@ class MPersonal extends MBasicModel {
3553
3568
  this.codigoCausaRetiro = '';
3554
3569
  this.denominacionCausaRetiro = '';
3555
3570
  this.idProveedorBeneficiario = 0;
3571
+ this.denominacionEstatus = '';
3572
+ this.conapdis = false;
3573
+ this.idSindicato = 0;
3574
+ this.codigoSindicato = '00000';
3575
+ this.denominacionSindicato = '';
3556
3576
  if (p) {
3557
3577
  this.idEmpresa = +p.id_empresa;
3558
3578
  this.idPersonal = +p.id_personal;
@@ -3642,6 +3662,24 @@ class MPersonal extends MBasicModel {
3642
3662
  this.codigoCausaRetiro = p.dencau;
3643
3663
  this.denominacionCausaRetiro = p.codcau;
3644
3664
  this.idProveedorBeneficiario = parseInt(p.id_proveedorbeneficiario);
3665
+ this.idSindicato = parseInt(p.id_sindicato);
3666
+ this.codigoSindicato = p.codsin;
3667
+ this.denominacionSindicato = p.densin;
3668
+ this.estatusPersonal == '0' ? this.denominacionEstatus = 'PRE-INGRESO' :
3669
+ this.estatusPersonal == '1' ? this.denominacionEstatus = 'ACTIVO' :
3670
+ this.estatusPersonal == '2' ? this.denominacionEstatus = 'NINGUNO' :
3671
+ this.estatusPersonal == '3' ? this.denominacionEstatus = 'EGRESADO' :
3672
+ this.estatusPersonal == '4' ? this.denominacionEstatus = 'REMOCIÓN' :
3673
+ this.estatusPersonal == '5' ? this.denominacionEstatus = 'RETIRO' :
3674
+ this.estatusPersonal == '6' ? this.denominacionEstatus = 'DESTITUCIÓN' :
3675
+ this.estatusPersonal == '7' ? this.denominacionEstatus = 'LIQUIDACIÓN' : '';
3676
+ this.conapdis = p.conapdis == '1' ? true : false;
3677
+ this.idSindicato = parseInt(p.id_sindicato);
3678
+ this.codigoSindicato = p.codsin;
3679
+ this.denominacionSindicato = p.densin;
3680
+ }
3681
+ else {
3682
+ this.isNew = true;
3645
3683
  }
3646
3684
  }
3647
3685
  dataInterface() {
@@ -3732,6 +3770,10 @@ class MPersonal extends MBasicModel {
3732
3770
  codcau: this.codigoCausaRetiro,
3733
3771
  dencau: this.denominacionCausaRetiro,
3734
3772
  id_proveedorbeneficiario: this.idProveedorBeneficiario.toString(),
3773
+ id_sindicato: this.idSindicato.toString(),
3774
+ codsin: this.codigoSindicato,
3775
+ densin: this.denominacionSindicato,
3776
+ conapdis: this.conapdis ? '1' : '0',
3735
3777
  };
3736
3778
  }
3737
3779
  }
@@ -5506,6 +5548,32 @@ class SigespService {
5506
5548
  showToastError(message) {
5507
5549
  this.toast.error(message);
5508
5550
  }
5551
+ /**
5552
+ * @description Muestra un sweetalert2 de éxito
5553
+ * @param message Mensaje que se va a mostrar
5554
+ * @return void
5555
+ * @date 22-11-2021
5556
+ */
5557
+ showToastSuccessSwal(message) {
5558
+ Swal.fire({
5559
+ icon: 'success',
5560
+ title: 'Éxito',
5561
+ text: message,
5562
+ });
5563
+ }
5564
+ /**
5565
+ * @description Muestra un sweetalert2 de error
5566
+ * @param message Mensaje que se va a mostrar
5567
+ * @return void
5568
+ * @date 22-11-2021
5569
+ */
5570
+ showToastErrorSwal(message) {
5571
+ Swal.fire({
5572
+ icon: 'error',
5573
+ title: '¡Error!',
5574
+ text: message,
5575
+ });
5576
+ }
5509
5577
  /**
5510
5578
  * @description Guarda el usuario logueado en el SessionStorage
5511
5579
  * @param user Usuario que se va a guardar en el SessionStorage
@@ -6187,6 +6255,9 @@ class MAnticipoPrestaciones extends MBasicModel {
6187
6255
  this.calcularAntiguedad();
6188
6256
  this.calcularInteres();
6189
6257
  }
6258
+ else {
6259
+ this.isNew = true;
6260
+ }
6190
6261
  }
6191
6262
  dataInterface() {
6192
6263
  return {
@@ -6268,6 +6339,9 @@ class MArchivoTxtCampo extends MBasicModel {
6268
6339
  this.tipoCampo = e.tipcam;
6269
6340
  this.idDtCampo = parseInt(e.id_dt_campo);
6270
6341
  }
6342
+ else {
6343
+ this.isNew = true;
6344
+ }
6271
6345
  }
6272
6346
  dataInterface() {
6273
6347
  return {
@@ -6308,6 +6382,9 @@ class MAspectoEvaluacion extends MBasicModel {
6308
6382
  this.codigoAspecto = e.codasp;
6309
6383
  this.denominacionAspecto = e.denasp;
6310
6384
  }
6385
+ else {
6386
+ this.isNew = true;
6387
+ }
6311
6388
  }
6312
6389
  dataInterface() {
6313
6390
  return {
@@ -6373,6 +6450,9 @@ class MBeneficiario extends MBasicModel {
6373
6450
  this.nombreBanco = e.nomban;
6374
6451
  this.denominacionTipoCuenta = e.nomtipcta;
6375
6452
  }
6453
+ else {
6454
+ this.isNew = true;
6455
+ }
6376
6456
  }
6377
6457
  dataInterface() {
6378
6458
  return {
@@ -6458,6 +6538,9 @@ class MCargosPersonal extends MBasicModel {
6458
6538
  this.montoCompensacionGrado = parseFloat(p.moncomgra);
6459
6539
  this.estatusMPPPE = p.estmpppe == '1' ? true : false;
6460
6540
  }
6541
+ else {
6542
+ this.isNew = true;
6543
+ }
6461
6544
  }
6462
6545
  dataInterface() {
6463
6546
  return {
@@ -6517,6 +6600,9 @@ class MCargaFamiliar extends MBasicModel {
6517
6600
  this.parentesco = e.nexfam;
6518
6601
  this.fechaNacimiento = e.fecnacfam;
6519
6602
  }
6603
+ else {
6604
+ this.isNew = true;
6605
+ }
6520
6606
  }
6521
6607
  dataInterface() {
6522
6608
  return {
@@ -6558,6 +6644,9 @@ class MClasificacionObrero extends MBasicModel {
6558
6644
  this.numeroGaceta = e.numgac;
6559
6645
  this.observacion = e.obscla;
6560
6646
  }
6647
+ else {
6648
+ this.isNew = true;
6649
+ }
6561
6650
  }
6562
6651
  dataInterface() {
6563
6652
  return {
@@ -7014,6 +7103,9 @@ class MConstanteNomina extends MBasicModel {
7014
7103
  this.registroIncidencia = e.regincidencia;
7015
7104
  this.valorInicialIncidencia = parseFloat(e.valincidencia);
7016
7105
  }
7106
+ else {
7107
+ this.isNew = true;
7108
+ }
7017
7109
  }
7018
7110
  dataInterface() {
7019
7111
  return {
@@ -7164,6 +7256,9 @@ class MComponete extends MBasicModel {
7164
7256
  this.nombreAbreviatura = e.nomabr;
7165
7257
  this.rangos = e.rangos.map(e => new MRango(e));
7166
7258
  }
7259
+ else {
7260
+ this.isNew = true;
7261
+ }
7167
7262
  }
7168
7263
  dataInterface() {
7169
7264
  return {
@@ -7381,6 +7476,9 @@ class MDedicacion extends MBasicModel {
7381
7476
  this.denominacionDedicacion = e.dended;
7382
7477
  this.tipoPersonal = e.detalles.map(e => new MTipoPersonal(e));
7383
7478
  }
7479
+ else {
7480
+ this.isNew = true;
7481
+ }
7384
7482
  }
7385
7483
  dataInterface() {
7386
7484
  return {
@@ -7413,6 +7511,9 @@ class MDefinicionesBasicas extends MBasicModel {
7413
7511
  }
7414
7512
  this.observacionRetenciones = e.obsconret;
7415
7513
  }
7514
+ else {
7515
+ this.isNew = true;
7516
+ }
7416
7517
  }
7417
7518
  dataInterface() {
7418
7519
  let tipo = '0';
@@ -7448,6 +7549,9 @@ class MDeudaAnterior extends MBasicModel {
7448
7549
  this.montoDeudaAnterior = +e.monant;
7449
7550
  this.montoAnticipoInteres = +e.monantint;
7450
7551
  }
7552
+ else {
7553
+ this.isNew = true;
7554
+ }
7451
7555
  }
7452
7556
  dataInterface() {
7453
7557
  return {
@@ -8892,6 +8996,9 @@ class MCodigoUnicoRac extends MBasicModel {
8892
8996
  this.codigoUnicoRac = e.codunirac;
8893
8997
  this.estatusUnicoRac == 1 ? 'NO DISPONIBLE' : 'DISPONIBLE';
8894
8998
  }
8999
+ else {
9000
+ this.isNew = true;
9001
+ }
8895
9002
  }
8896
9003
  dataInterface() {
8897
9004
  return {