sigesp 0.9.53-20230830 → 0.9.55-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.
- package/bundles/sigesp.umd.js +6 -9
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Usuario.js +1 -1
- package/esm2015/lib/core/models/SSS/user.model.js +4 -5
- package/esm2015/lib/sigesp.service.js +4 -7
- package/fesm2015/sigesp.js +6 -10
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Usuario.d.ts +0 -1
- package/lib/core/models/SSS/user.model.d.ts +0 -1
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -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 =
|
|
681
|
+
this.id = parseInt(user.id_usuario);
|
|
682
682
|
this.interface = user;
|
|
683
|
-
this.nomina =
|
|
684
|
-
this.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,12 +7317,9 @@ 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
|
-
|
|
7323
|
-
|
|
7324
|
-
}
|
|
7325
|
-
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?
|
|
7326
|
-
tipo=${tipo}&cadena`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7320
|
+
let cadena;
|
|
7321
|
+
dato ? cadena = "&cedula=${dato.cedula}&nombre=${dato.nombre}&apellido=${dato.apellido}&expediente=${dato.expediente}&idTipo=${dato.tipo}" : cadena = '';
|
|
7322
|
+
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}${cadena}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7327
7323
|
if (res.success) {
|
|
7328
7324
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7329
7325
|
}
|