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.
@@ -3111,6 +3111,7 @@
3111
3111
  _this.registroasistenciaincidencia = 'C00';
3112
3112
  _this.manejoIndependienteModulo = 0;
3113
3113
  _this.digitosCodigoConcepto = 10;
3114
+ _this.segmentarPersonal = 10000;
3114
3115
  if (I) {
3115
3116
  _this.idEmpresa = parseInt(I.id_empresa);
3116
3117
  _this.idNomina = parseInt(I.id_sno);
@@ -3236,6 +3237,7 @@
3236
3237
  _this.registroasistenciaincidencia = I.regasiinc;
3237
3238
  _this.manejoIndependienteModulo = parseInt(I.manindmod);
3238
3239
  _this.digitosCodigoConcepto = parseInt(I.digcodcon);
3240
+ _this.segmentarPersonal = parseInt(I.segper);
3239
3241
  }
3240
3242
  else {
3241
3243
  _this.isNew = true;
@@ -3243,6 +3245,9 @@
3243
3245
  return _this;
3244
3246
  }
3245
3247
  MConfiguracionSNO.prototype.dataInterface = function () {
3248
+ if (this.segmentarPersonal == 0) {
3249
+ this.segmentarPersonal = 10000;
3250
+ }
3246
3251
  return {
3247
3252
  id_empresa: this.idEmpresa.toString(),
3248
3253
  id_sno: this.idNomina.toString(),
@@ -3358,16 +3363,17 @@
3358
3363
  id_conceptofpj: this.idConceptoFondoPensionesJubilaciones.toString(),
3359
3364
  id_conceptorpvyh: this.idConceptoViviendaHabitad.toString(),
3360
3365
  id_conceptofpa: this.idConceptoFondoPlanAhorro.toString(),
3361
- codconvac: this.codigoConceptoVacacion.toString(),
3362
- codconfpj: this.codigoConceptoFondoPensionesJubilaciones.toString(),
3363
- codconrpvyh: this.codigoConceptoViviendaHabitad.toString(),
3364
- codconfpa: this.codigoConceptoFondoPlanAhorro.toString(),
3365
- cueconman: this.ConceptoMantenimientoCuentasConceptos.toString(),
3366
+ codconvac: this.codigoConceptoVacacion,
3367
+ codconfpj: this.codigoConceptoFondoPensionesJubilaciones,
3368
+ codconrpvyh: this.codigoConceptoViviendaHabitad,
3369
+ codconfpa: this.codigoConceptoFondoPlanAhorro,
3370
+ cueconman: this.ConceptoMantenimientoCuentasConceptos,
3366
3371
  regperinc: this.registropermisoincidencia,
3367
3372
  regferinc: this.registroferiadoincidencia,
3368
3373
  regasiinc: this.registroasistenciaincidencia,
3369
3374
  manindmod: this.manejoIndependienteModulo.toString(),
3370
- digcodcon: this.digitosCodigoConcepto.toString()
3375
+ digcodcon: this.digitosCodigoConcepto.toString(),
3376
+ segper: this.segmentarPersonal.toString(),
3371
3377
  };
3372
3378
  };
3373
3379
  return MConfiguracionSNO;
@@ -4526,6 +4532,7 @@
4526
4532
  this.toast = toast;
4527
4533
  this.usuarioActivo = null;
4528
4534
  this.currentComponent = null;
4535
+ this.userMenu = null;
4529
4536
  }
4530
4537
  /**
4531
4538
  * @description Valida que selo se escriban guiones y 9
@@ -6211,10 +6218,10 @@
6211
6218
  }));
6212
6219
  };
6213
6220
  /**
6214
- * @description obtener personal Nomina segun filtro
6215
- * @return Observable<IResponse>
6216
- * @date 15-11-2021
6217
- */
6221
+ * @description obtener personal Nomina segun filtro
6222
+ * @return Observable<IResponse>
6223
+ * @date 15-11-2021
6224
+ */
6218
6225
  SigespService.prototype.getPersonalNomina = function (dato) {
6219
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) {
6220
6227
  if (res.success) {
@@ -6223,6 +6230,26 @@
6223
6230
  return res;
6224
6231
  }));
6225
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
+ var _this = this;
6240
+ 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) {
6241
+ var menuJson = res.data;
6242
+ var stringifiedData = JSON.stringify(menuJson);
6243
+ stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
6244
+ stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
6245
+ //console.log('stringJson : ',this.stringifiedData );
6246
+ var string_menu = "[" + stringifiedData + "\"]";
6247
+ var menu = string_menu;
6248
+ menu = JSON.parse(menu);
6249
+ _this.userMenu = menu;
6250
+ return _this.userMenu;
6251
+ }));
6252
+ };
6226
6253
  return SigespService;
6227
6254
  }());
6228
6255
  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" });