sigesp 0.8.50-211115 → 0.8.54-220105
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 +64 -15
- 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/RecursosHumanos.js +1 -1
- package/esm2015/lib/core/models/SNO/MConfiguracionSNO.model.js +13 -7
- package/esm2015/lib/core/models/SNO/MPersonalNomina.model.js +2 -2
- package/esm2015/lib/sigesp.service.js +46 -5
- package/fesm2015/sigesp.js +58 -11
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/RecursosHumanos.d.ts +1 -0
- package/lib/core/models/SNO/MConfiguracionSNO.model.d.ts +1 -0
- package/lib/sigesp.service.d.ts +25 -4
- 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
|
}
|
|
@@ -2695,6 +2696,7 @@ class MConfiguracionSNO extends MBasicModel {
|
|
|
2695
2696
|
this.registroasistenciaincidencia = 'C00';
|
|
2696
2697
|
this.manejoIndependienteModulo = 0;
|
|
2697
2698
|
this.digitosCodigoConcepto = 10;
|
|
2699
|
+
this.segmentarPersonal = 10000;
|
|
2698
2700
|
if (I) {
|
|
2699
2701
|
this.idEmpresa = parseInt(I.id_empresa);
|
|
2700
2702
|
this.idNomina = parseInt(I.id_sno);
|
|
@@ -2820,12 +2822,16 @@ class MConfiguracionSNO extends MBasicModel {
|
|
|
2820
2822
|
this.registroasistenciaincidencia = I.regasiinc;
|
|
2821
2823
|
this.manejoIndependienteModulo = parseInt(I.manindmod);
|
|
2822
2824
|
this.digitosCodigoConcepto = parseInt(I.digcodcon);
|
|
2825
|
+
this.segmentarPersonal = parseInt(I.segper);
|
|
2823
2826
|
}
|
|
2824
2827
|
else {
|
|
2825
2828
|
this.isNew = true;
|
|
2826
2829
|
}
|
|
2827
2830
|
}
|
|
2828
2831
|
dataInterface() {
|
|
2832
|
+
if (this.segmentarPersonal == 0) {
|
|
2833
|
+
this.segmentarPersonal = 10000;
|
|
2834
|
+
}
|
|
2829
2835
|
return {
|
|
2830
2836
|
id_empresa: this.idEmpresa.toString(),
|
|
2831
2837
|
id_sno: this.idNomina.toString(),
|
|
@@ -2941,16 +2947,17 @@ class MConfiguracionSNO extends MBasicModel {
|
|
|
2941
2947
|
id_conceptofpj: this.idConceptoFondoPensionesJubilaciones.toString(),
|
|
2942
2948
|
id_conceptorpvyh: this.idConceptoViviendaHabitad.toString(),
|
|
2943
2949
|
id_conceptofpa: this.idConceptoFondoPlanAhorro.toString(),
|
|
2944
|
-
codconvac: this.codigoConceptoVacacion
|
|
2945
|
-
codconfpj: this.codigoConceptoFondoPensionesJubilaciones
|
|
2946
|
-
codconrpvyh: this.codigoConceptoViviendaHabitad
|
|
2947
|
-
codconfpa: this.codigoConceptoFondoPlanAhorro
|
|
2948
|
-
cueconman: this.ConceptoMantenimientoCuentasConceptos
|
|
2950
|
+
codconvac: this.codigoConceptoVacacion,
|
|
2951
|
+
codconfpj: this.codigoConceptoFondoPensionesJubilaciones,
|
|
2952
|
+
codconrpvyh: this.codigoConceptoViviendaHabitad,
|
|
2953
|
+
codconfpa: this.codigoConceptoFondoPlanAhorro,
|
|
2954
|
+
cueconman: this.ConceptoMantenimientoCuentasConceptos,
|
|
2949
2955
|
regperinc: this.registropermisoincidencia,
|
|
2950
2956
|
regferinc: this.registroferiadoincidencia,
|
|
2951
2957
|
regasiinc: this.registroasistenciaincidencia,
|
|
2952
2958
|
manindmod: this.manejoIndependienteModulo.toString(),
|
|
2953
|
-
digcodcon: this.digitosCodigoConcepto.toString()
|
|
2959
|
+
digcodcon: this.digitosCodigoConcepto.toString(),
|
|
2960
|
+
segper: this.segmentarPersonal.toString(),
|
|
2954
2961
|
};
|
|
2955
2962
|
}
|
|
2956
2963
|
}
|
|
@@ -4079,6 +4086,7 @@ class SigespService {
|
|
|
4079
4086
|
this.toast = toast;
|
|
4080
4087
|
this.usuarioActivo = null;
|
|
4081
4088
|
this.currentComponent = null;
|
|
4089
|
+
this.userMenu = null;
|
|
4082
4090
|
}
|
|
4083
4091
|
/**
|
|
4084
4092
|
* @description Valida que selo se escriban guiones y 9
|
|
@@ -5541,6 +5549,32 @@ class SigespService {
|
|
|
5541
5549
|
showToastError(message) {
|
|
5542
5550
|
this.toast.error(message);
|
|
5543
5551
|
}
|
|
5552
|
+
/**
|
|
5553
|
+
* @description Muestra un sweetalert2 de éxito
|
|
5554
|
+
* @param message Mensaje que se va a mostrar
|
|
5555
|
+
* @return void
|
|
5556
|
+
* @date 22-11-2021
|
|
5557
|
+
*/
|
|
5558
|
+
showToastSuccessSwal(message) {
|
|
5559
|
+
Swal.fire({
|
|
5560
|
+
icon: 'success',
|
|
5561
|
+
title: 'Éxito',
|
|
5562
|
+
text: message,
|
|
5563
|
+
});
|
|
5564
|
+
}
|
|
5565
|
+
/**
|
|
5566
|
+
* @description Muestra un sweetalert2 de error
|
|
5567
|
+
* @param message Mensaje que se va a mostrar
|
|
5568
|
+
* @return void
|
|
5569
|
+
* @date 22-11-2021
|
|
5570
|
+
*/
|
|
5571
|
+
showToastErrorSwal(message) {
|
|
5572
|
+
Swal.fire({
|
|
5573
|
+
icon: 'error',
|
|
5574
|
+
title: '¡Error!',
|
|
5575
|
+
text: message,
|
|
5576
|
+
});
|
|
5577
|
+
}
|
|
5544
5578
|
/**
|
|
5545
5579
|
* @description Guarda el usuario logueado en el SessionStorage
|
|
5546
5580
|
* @param user Usuario que se va a guardar en el SessionStorage
|
|
@@ -5609,10 +5643,10 @@ class SigespService {
|
|
|
5609
5643
|
}));
|
|
5610
5644
|
}
|
|
5611
5645
|
/**
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5646
|
+
* @description obtener personal Nomina segun filtro
|
|
5647
|
+
* @return Observable<IResponse>
|
|
5648
|
+
* @date 15-11-2021
|
|
5649
|
+
*/
|
|
5616
5650
|
getPersonalNomina(dato) {
|
|
5617
5651
|
return this.http.get(`${this.URL}/dao/sno/asignacion_personal_nomina_dao.php?
|
|
5618
5652
|
tipo=${'personal_asignado'}&cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.idTipo}&idNomina=${dato.idNomina}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
@@ -5622,6 +5656,19 @@ class SigespService {
|
|
|
5622
5656
|
return res;
|
|
5623
5657
|
}));
|
|
5624
5658
|
}
|
|
5659
|
+
/**
|
|
5660
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
5661
|
+
* @return Json data
|
|
5662
|
+
* @author Ing. Wilmer Briceno
|
|
5663
|
+
*/
|
|
5664
|
+
getJsonMenu(id_usuario, sistema) {
|
|
5665
|
+
return this.http.get(`${this.URL}/dao/sss/menu_dao.php?id_usuario=${id_usuario}&sistema=${sistema}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
5666
|
+
//console.log('respuesta :',res);
|
|
5667
|
+
//this.userMenu = res ;
|
|
5668
|
+
//sessionStorage.setItem('menu', this.userMenu);
|
|
5669
|
+
return res;
|
|
5670
|
+
}));
|
|
5671
|
+
}
|
|
5625
5672
|
}
|
|
5626
5673
|
SigespService.ɵprov = ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(ɵɵinject(HttpClient), ɵɵinject(MatDialog), ɵɵinject(ToastrService)); }, token: SigespService, providedIn: "root" });
|
|
5627
5674
|
SigespService.decorators = [
|