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.
@@ -678,12 +678,11 @@ class MUsuario extends MBasicModel {
678
678
  this.procede = user.procede;
679
679
  this.codsis = user.codsis;
680
680
  this.foto = user.foto;
681
- this.id = +user.id_usuario;
681
+ this.id = parseInt(user.id_usuario);
682
682
  this.interface = user;
683
- this.nomina = +user.nomina;
684
- this.periodo = +user.periodo;
683
+ this.nomina = parseInt(user.nomina);
684
+ this.periodo = parseInt(user.periodo);
685
685
  this.carpeta = user.carpeta;
686
- this.sistema = user.sistema;
687
686
  }
688
687
  else {
689
688
  this.isNew = true;
@@ -7318,10 +7317,8 @@ class SigespService {
7318
7317
  * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
7319
7318
  */
7320
7319
  getPersonal(tipo, dato) {
7321
- let cadena = '';
7322
- if (dato) {
7323
- cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}";
7324
- }
7320
+ let cadena;
7321
+ dato ? cadena = "cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}" : cadena = '';
7325
7322
  return this.http.get(`${this.URL}/dao/sno/personal_dao.php?
7326
7323
  tipo=${tipo}&cadena`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7327
7324
  if (res.success) {