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/bundles/sigesp.umd.js
CHANGED
|
@@ -984,11 +984,12 @@
|
|
|
984
984
|
_this.procede = user.procede;
|
|
985
985
|
_this.codsis = user.codsis;
|
|
986
986
|
_this.foto = user.foto;
|
|
987
|
-
_this.id =
|
|
987
|
+
_this.id = +user.id_usuario;
|
|
988
988
|
_this.interface = user;
|
|
989
|
-
_this.nomina =
|
|
990
|
-
_this.periodo =
|
|
989
|
+
_this.nomina = +user.nomina;
|
|
990
|
+
_this.periodo = +user.periodo;
|
|
991
991
|
_this.carpeta = user.carpeta;
|
|
992
|
+
_this.sistema = user.sistema;
|
|
992
993
|
}
|
|
993
994
|
else {
|
|
994
995
|
_this.isNew = true;
|
|
@@ -7966,9 +7967,15 @@
|
|
|
7966
7967
|
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
7967
7968
|
*/
|
|
7968
7969
|
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
7969
|
-
var
|
|
7970
|
-
|
|
7971
|
-
|
|
7970
|
+
var cedula = '';
|
|
7971
|
+
var nombre = '';
|
|
7972
|
+
var apellido = '';
|
|
7973
|
+
if (dato) {
|
|
7974
|
+
cedula = dato.cedula;
|
|
7975
|
+
nombre = dato.nombre;
|
|
7976
|
+
apellido = dato.apellido;
|
|
7977
|
+
}
|
|
7978
|
+
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
7979
|
if (res.success) {
|
|
7973
7980
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
7974
7981
|
}
|