sigesp 0.8.51-211122 → 0.8.55-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.
@@ -2696,6 +2696,7 @@ class MConfiguracionSNO extends MBasicModel {
2696
2696
  this.registroasistenciaincidencia = 'C00';
2697
2697
  this.manejoIndependienteModulo = 0;
2698
2698
  this.digitosCodigoConcepto = 10;
2699
+ this.segmentarPersonal = 10000;
2699
2700
  if (I) {
2700
2701
  this.idEmpresa = parseInt(I.id_empresa);
2701
2702
  this.idNomina = parseInt(I.id_sno);
@@ -2821,12 +2822,16 @@ class MConfiguracionSNO extends MBasicModel {
2821
2822
  this.registroasistenciaincidencia = I.regasiinc;
2822
2823
  this.manejoIndependienteModulo = parseInt(I.manindmod);
2823
2824
  this.digitosCodigoConcepto = parseInt(I.digcodcon);
2825
+ this.segmentarPersonal = parseInt(I.segper);
2824
2826
  }
2825
2827
  else {
2826
2828
  this.isNew = true;
2827
2829
  }
2828
2830
  }
2829
2831
  dataInterface() {
2832
+ if (this.segmentarPersonal == 0) {
2833
+ this.segmentarPersonal = 10000;
2834
+ }
2830
2835
  return {
2831
2836
  id_empresa: this.idEmpresa.toString(),
2832
2837
  id_sno: this.idNomina.toString(),
@@ -2942,16 +2947,17 @@ class MConfiguracionSNO extends MBasicModel {
2942
2947
  id_conceptofpj: this.idConceptoFondoPensionesJubilaciones.toString(),
2943
2948
  id_conceptorpvyh: this.idConceptoViviendaHabitad.toString(),
2944
2949
  id_conceptofpa: this.idConceptoFondoPlanAhorro.toString(),
2945
- codconvac: this.codigoConceptoVacacion.toString(),
2946
- codconfpj: this.codigoConceptoFondoPensionesJubilaciones.toString(),
2947
- codconrpvyh: this.codigoConceptoViviendaHabitad.toString(),
2948
- codconfpa: this.codigoConceptoFondoPlanAhorro.toString(),
2949
- cueconman: this.ConceptoMantenimientoCuentasConceptos.toString(),
2950
+ codconvac: this.codigoConceptoVacacion,
2951
+ codconfpj: this.codigoConceptoFondoPensionesJubilaciones,
2952
+ codconrpvyh: this.codigoConceptoViviendaHabitad,
2953
+ codconfpa: this.codigoConceptoFondoPlanAhorro,
2954
+ cueconman: this.ConceptoMantenimientoCuentasConceptos,
2950
2955
  regperinc: this.registropermisoincidencia,
2951
2956
  regferinc: this.registroferiadoincidencia,
2952
2957
  regasiinc: this.registroasistenciaincidencia,
2953
2958
  manindmod: this.manejoIndependienteModulo.toString(),
2954
- digcodcon: this.digitosCodigoConcepto.toString()
2959
+ digcodcon: this.digitosCodigoConcepto.toString(),
2960
+ segper: this.segmentarPersonal.toString(),
2955
2961
  };
2956
2962
  }
2957
2963
  }
@@ -4080,6 +4086,7 @@ class SigespService {
4080
4086
  this.toast = toast;
4081
4087
  this.usuarioActivo = null;
4082
4088
  this.currentComponent = null;
4089
+ this.userMenu = null;
4083
4090
  }
4084
4091
  /**
4085
4092
  * @description Valida que selo se escriban guiones y 9
@@ -5636,10 +5643,10 @@ class SigespService {
5636
5643
  }));
5637
5644
  }
5638
5645
  /**
5639
- * @description obtener personal Nomina segun filtro
5640
- * @return Observable<IResponse>
5641
- * @date 15-11-2021
5642
- */
5646
+ * @description obtener personal Nomina segun filtro
5647
+ * @return Observable<IResponse>
5648
+ * @date 15-11-2021
5649
+ */
5643
5650
  getPersonalNomina(dato) {
5644
5651
  return this.http.get(`${this.URL}/dao/sno/asignacion_personal_nomina_dao.php?
5645
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) => {
@@ -5649,6 +5656,25 @@ class SigespService {
5649
5656
  return res;
5650
5657
  }));
5651
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
+ var menuJson = res.data;
5667
+ var stringifiedData = JSON.stringify(menuJson);
5668
+ stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
5669
+ stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
5670
+ //console.log('stringJson : ',this.stringifiedData );
5671
+ var string_menu = "[" + stringifiedData + "\"]";
5672
+ var menu = string_menu;
5673
+ menu = JSON.parse(menu);
5674
+ this.userMenu = menu;
5675
+ return this.userMenu;
5676
+ }));
5677
+ }
5652
5678
  }
5653
5679
  SigespService.ɵprov = ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(ɵɵinject(HttpClient), ɵɵinject(MatDialog), ɵɵinject(ToastrService)); }, token: SigespService, providedIn: "root" });
5654
5680
  SigespService.decorators = [