sigesp 0.9.55-20230904 → 0.9.56-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.
@@ -7966,9 +7966,15 @@
7966
7966
  * @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
7967
7967
  */
7968
7968
  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) {
7969
+ var cedula = '';
7970
+ var nombre = '';
7971
+ var apellido = '';
7972
+ if (dato) {
7973
+ cedula = dato.cedula;
7974
+ nombre = dato.nombre;
7975
+ apellido = dato.apellido;
7976
+ }
7977
+ 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
7978
  if (res.success) {
7973
7979
  res.data = res.data.map(function (e) { return new MPersonal(e); });
7974
7980
  }