sigesp 0.9.55-20230904 → 0.9.57-20230905

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.
@@ -984,11 +984,12 @@
984
984
  _this.procede = user.procede;
985
985
  _this.codsis = user.codsis;
986
986
  _this.foto = user.foto;
987
- _this.id = parseInt(user.id_usuario);
987
+ _this.id = +user.id_usuario;
988
988
  _this.interface = user;
989
- _this.nomina = parseInt(user.nomina);
990
- _this.periodo = parseInt(user.periodo);
989
+ _this.nomina = +user.nomina;
990
+ _this.periodo = +user.periodo;
991
991
  _this.carpeta = user.carpeta;
992
+ _this.sistema = user.sistema;
992
993
  }
993
994
  else {
994
995
  _this.isNew = true;
@@ -7966,9 +7967,15 @@
7966
7967
  * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
7967
7968
  */
7968
7969
  SigespService.prototype.getPersonal = function (tipo, dato) {
7969
- var cadena;
7970
- dato ? cadena = "&cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}" : cadena = '';
7971
- return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + cadena, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7970
+ var cedula = '';
7971
+ var nombre = '';
7972
+ var apellido = '';
7973
+ if (dato) {
7974
+ cedula = dato.cedula;
7975
+ nombre = dato.nombre;
7976
+ apellido = dato.apellido;
7977
+ }
7978
+ return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + "&cedula=" + cedula + "&nombre=" + nombre + "&apellido=" + apellido, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
7972
7979
  if (res.success) {
7973
7980
  res.data = res.data.map(function (e) { return new MPersonal(e); });
7974
7981
  }