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.
- package/bundles/sigesp.umd.js +13 -6
- 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 +5 -4
- package/esm2015/lib/sigesp.service.js +10 -4
- package/fesm2015/sigesp.js +13 -6
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Usuario.d.ts +1 -0
- package/lib/core/models/SSS/user.model.d.ts +1 -0
- package/package.json +1 -1
package/fesm2015/sigesp.js
CHANGED
|
@@ -678,11 +678,12 @@ 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 = +user.id_usuario;
|
|
682
682
|
this.interface = user;
|
|
683
|
-
this.nomina =
|
|
684
|
-
this.periodo =
|
|
683
|
+
this.nomina = +user.nomina;
|
|
684
|
+
this.periodo = +user.periodo;
|
|
685
685
|
this.carpeta = user.carpeta;
|
|
686
|
+
this.sistema = user.sistema;
|
|
686
687
|
}
|
|
687
688
|
else {
|
|
688
689
|
this.isNew = true;
|
|
@@ -7317,9 +7318,15 @@ class SigespService {
|
|
|
7317
7318
|
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
7318
7319
|
*/
|
|
7319
7320
|
getPersonal(tipo, dato) {
|
|
7320
|
-
let
|
|
7321
|
-
|
|
7322
|
-
|
|
7321
|
+
let cedula = '';
|
|
7322
|
+
let nombre = '';
|
|
7323
|
+
let apellido = '';
|
|
7324
|
+
if (dato) {
|
|
7325
|
+
cedula = dato.cedula;
|
|
7326
|
+
nombre = dato.nombre;
|
|
7327
|
+
apellido = dato.apellido;
|
|
7328
|
+
}
|
|
7329
|
+
return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&cedula=${cedula}&nombre=${nombre}&apellido=${apellido}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7323
7330
|
if (res.success) {
|
|
7324
7331
|
res.data = res.data.map(e => new MPersonal(e));
|
|
7325
7332
|
}
|