sigesp 0.9.53-20230830 → 0.9.54-20230904

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