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.
@@ -4532,6 +4532,7 @@
4532
4532
  this.toast = toast;
4533
4533
  this.usuarioActivo = null;
4534
4534
  this.currentComponent = null;
4535
+ this.userMenu = null;
4535
4536
  }
4536
4537
  /**
4537
4538
  * @description Valida que selo se escriban guiones y 9
@@ -6217,10 +6218,10 @@
6217
6218
  }));
6218
6219
  };
6219
6220
  /**
6220
- * @description obtener personal Nomina segun filtro
6221
- * @return Observable<IResponse>
6222
- * @date 15-11-2021
6223
- */
6221
+ * @description obtener personal Nomina segun filtro
6222
+ * @return Observable<IResponse>
6223
+ * @date 15-11-2021
6224
+ */
6224
6225
  SigespService.prototype.getPersonalNomina = function (dato) {
6225
6226
  return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n 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(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6226
6227
  if (res.success) {
@@ -6229,6 +6230,19 @@
6229
6230
  return res;
6230
6231
  }));
6231
6232
  };
6233
+ /**
6234
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6235
+ * @return Json data
6236
+ * @author Ing. Wilmer Briceno
6237
+ */
6238
+ SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
6239
+ return this.http.get(this.URL + "/dao/sss/menu_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
6240
+ //console.log('respuesta :',res);
6241
+ //this.userMenu = res ;
6242
+ //sessionStorage.setItem('menu', this.userMenu);
6243
+ return res;
6244
+ }));
6245
+ };
6232
6246
  return SigespService;
6233
6247
  }());
6234
6248
  SigespService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i3.ToastrService)); }, token: SigespService, providedIn: "root" });