sigesp 0.8.49-211115 → 0.8.53-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.
@@ -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;
@@ -2694,6 +2696,7 @@ class MConfiguracionSNO extends MBasicModel {
2694
2696
  this.registroasistenciaincidencia = 'C00';
2695
2697
  this.manejoIndependienteModulo = 0;
2696
2698
  this.digitosCodigoConcepto = 10;
2699
+ this.segmentarPersonal = 10000;
2697
2700
  if (I) {
2698
2701
  this.idEmpresa = parseInt(I.id_empresa);
2699
2702
  this.idNomina = parseInt(I.id_sno);
@@ -2819,12 +2822,16 @@ class MConfiguracionSNO extends MBasicModel {
2819
2822
  this.registroasistenciaincidencia = I.regasiinc;
2820
2823
  this.manejoIndependienteModulo = parseInt(I.manindmod);
2821
2824
  this.digitosCodigoConcepto = parseInt(I.digcodcon);
2825
+ this.segmentarPersonal = parseInt(I.segper);
2822
2826
  }
2823
2827
  else {
2824
2828
  this.isNew = true;
2825
2829
  }
2826
2830
  }
2827
2831
  dataInterface() {
2832
+ if (this.segmentarPersonal == 0) {
2833
+ this.segmentarPersonal = 10000;
2834
+ }
2828
2835
  return {
2829
2836
  id_empresa: this.idEmpresa.toString(),
2830
2837
  id_sno: this.idNomina.toString(),
@@ -2940,16 +2947,17 @@ class MConfiguracionSNO extends MBasicModel {
2940
2947
  id_conceptofpj: this.idConceptoFondoPensionesJubilaciones.toString(),
2941
2948
  id_conceptorpvyh: this.idConceptoViviendaHabitad.toString(),
2942
2949
  id_conceptofpa: this.idConceptoFondoPlanAhorro.toString(),
2943
- codconvac: this.codigoConceptoVacacion.toString(),
2944
- codconfpj: this.codigoConceptoFondoPensionesJubilaciones.toString(),
2945
- codconrpvyh: this.codigoConceptoViviendaHabitad.toString(),
2946
- codconfpa: this.codigoConceptoFondoPlanAhorro.toString(),
2947
- cueconman: this.ConceptoMantenimientoCuentasConceptos.toString(),
2950
+ codconvac: this.codigoConceptoVacacion,
2951
+ codconfpj: this.codigoConceptoFondoPensionesJubilaciones,
2952
+ codconrpvyh: this.codigoConceptoViviendaHabitad,
2953
+ codconfpa: this.codigoConceptoFondoPlanAhorro,
2954
+ cueconman: this.ConceptoMantenimientoCuentasConceptos,
2948
2955
  regperinc: this.registropermisoincidencia,
2949
2956
  regferinc: this.registroferiadoincidencia,
2950
2957
  regasiinc: this.registroasistenciaincidencia,
2951
2958
  manindmod: this.manejoIndependienteModulo.toString(),
2952
- digcodcon: this.digitosCodigoConcepto.toString()
2959
+ digcodcon: this.digitosCodigoConcepto.toString(),
2960
+ segper: this.segmentarPersonal.toString(),
2953
2961
  };
2954
2962
  }
2955
2963
  }
@@ -3657,6 +3665,18 @@ class MPersonal extends MBasicModel {
3657
3665
  this.idSindicato = parseInt(p.id_sindicato);
3658
3666
  this.codigoSindicato = p.codsin;
3659
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;
3660
3680
  }
3661
3681
  else {
3662
3682
  this.isNew = true;
@@ -3753,6 +3773,7 @@ class MPersonal extends MBasicModel {
3753
3773
  id_sindicato: this.idSindicato.toString(),
3754
3774
  codsin: this.codigoSindicato,
3755
3775
  densin: this.denominacionSindicato,
3776
+ conapdis: this.conapdis ? '1' : '0',
3756
3777
  };
3757
3778
  }
3758
3779
  }
@@ -5527,6 +5548,32 @@ class SigespService {
5527
5548
  showToastError(message) {
5528
5549
  this.toast.error(message);
5529
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
+ }
5530
5577
  /**
5531
5578
  * @description Guarda el usuario logueado en el SessionStorage
5532
5579
  * @param user Usuario que se va a guardar en el SessionStorage