sigesp 0.8.53-211212 → 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.
@@ -4086,6 +4086,7 @@ class SigespService {
4086
4086
  this.toast = toast;
4087
4087
  this.usuarioActivo = null;
4088
4088
  this.currentComponent = null;
4089
+ this.userMenu = null;
4089
4090
  }
4090
4091
  /**
4091
4092
  * @description Valida que selo se escriban guiones y 9
@@ -5642,10 +5643,10 @@ class SigespService {
5642
5643
  }));
5643
5644
  }
5644
5645
  /**
5645
- * @description obtener personal Nomina segun filtro
5646
- * @return Observable<IResponse>
5647
- * @date 15-11-2021
5648
- */
5646
+ * @description obtener personal Nomina segun filtro
5647
+ * @return Observable<IResponse>
5648
+ * @date 15-11-2021
5649
+ */
5649
5650
  getPersonalNomina(dato) {
5650
5651
  return this.http.get(`${this.URL}/dao/sno/asignacion_personal_nomina_dao.php?
5651
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) => {
@@ -5655,6 +5656,19 @@ class SigespService {
5655
5656
  return res;
5656
5657
  }));
5657
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
+ }
5658
5672
  }
5659
5673
  SigespService.ɵprov = ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(ɵɵinject(HttpClient), ɵɵinject(MatDialog), ɵɵinject(ToastrService)); }, token: SigespService, providedIn: "root" });
5660
5674
  SigespService.decorators = [