sigesp 0.9.20-20221228 → 0.9.22-20221229

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.
Files changed (29) hide show
  1. package/bundles/sigesp.umd.js +16 -2
  2. package/bundles/sigesp.umd.js.map +1 -1
  3. package/bundles/sigesp.umd.min.js +2 -2
  4. package/bundles/sigesp.umd.min.js.map +1 -1
  5. package/esm2015/lib/core/interfaces/CentroCosto.js +1 -1
  6. package/esm2015/lib/core/interfaces/Configuracion.js +1 -1
  7. package/esm2015/lib/core/interfaces/Seguridad.js +1 -1
  8. package/esm2015/lib/core/interfaces/Usuario.js +1 -1
  9. package/esm2015/lib/core/interfaces/UsuarioPrefijo.js +1 -1
  10. package/esm2015/lib/core/models/CFG/MPrefijo.model.js +4 -1
  11. package/esm2015/lib/core/models/CFG/comunidad.model.js +1 -1
  12. package/esm2015/lib/core/models/CFG/userPrefix.model.js +4 -1
  13. package/esm2015/lib/core/models/SCG/centroCosto.model.js +7 -3
  14. package/esm2015/lib/core/models/SSS/user.model.js +2 -1
  15. package/esm2015/lib/core/models/SSS/userDetail.model.js +4 -1
  16. package/fesm2015/sigesp.js +16 -2
  17. package/fesm2015/sigesp.js.map +1 -1
  18. package/lib/core/interfaces/CentroCosto.d.ts +3 -0
  19. package/lib/core/interfaces/Configuracion.d.ts +1 -0
  20. package/lib/core/interfaces/Seguridad.d.ts +1 -0
  21. package/lib/core/interfaces/Usuario.d.ts +1 -0
  22. package/lib/core/interfaces/UsuarioPrefijo.d.ts +1 -0
  23. package/lib/core/models/CFG/MPrefijo.model.d.ts +1 -0
  24. package/lib/core/models/CFG/comunidad.model.d.ts +1 -1
  25. package/lib/core/models/CFG/userPrefix.model.d.ts +1 -0
  26. package/lib/core/models/SCG/centroCosto.model.d.ts +6 -4
  27. package/lib/core/models/SSS/user.model.d.ts +1 -0
  28. package/lib/core/models/SSS/userDetail.model.d.ts +1 -0
  29. package/package.json +1 -1
@@ -331,6 +331,7 @@
331
331
  function MUsuarioPrefijo(e) {
332
332
  var _this = _super.call(this) || this;
333
333
  _this.idEmpresa = 0;
334
+ _this.idEnteprise = 0;
334
335
  _this.id = 0;
335
336
  _this.idUsuario = 0;
336
337
  _this.idDtPrefijo = 0;
@@ -341,6 +342,7 @@
341
342
  _this.estatusActivo = true;
342
343
  if (e) {
343
344
  _this.idEmpresa = +e.id_empresa;
345
+ _this.idEnteprise = +e.id_enterprise;
344
346
  _this.id = +e.id;
345
347
  _this.idUsuario = +e.id_usuario;
346
348
  _this.idDtPrefijo = +e.id_dt_prefijo;
@@ -358,6 +360,7 @@
358
360
  MUsuarioPrefijo.prototype.dataInterface = function () {
359
361
  return {
360
362
  id_empresa: this.idEmpresa.toString(),
363
+ id_enterprise: this.idEnteprise.toString(),
361
364
  id: this.id.toString(),
362
365
  id_usuario: this.idUsuario.toString(),
363
366
  id_dt_prefijo: this.idDtPrefijo.toString(),
@@ -376,6 +379,7 @@
376
379
  function MPrefijo(e) {
377
380
  var _this = _super.call(this) || this;
378
381
  _this.idEmpresa = 0;
382
+ _this.idEnterprise = 0;
379
383
  _this.id = 0;
380
384
  _this.prefijo = '';
381
385
  _this.procede = '';
@@ -391,6 +395,7 @@
391
395
  _this.usuarios = [];
392
396
  if (e) {
393
397
  _this.idEmpresa = +e.id_empresa;
398
+ _this.idEnterprise = +e.id_enterprise;
394
399
  _this.id = +e.id;
395
400
  _this.prefijo = e.prefijo;
396
401
  _this.procede = e.procede;
@@ -415,6 +420,7 @@
415
420
  MPrefijo.prototype.dataInterface = function () {
416
421
  return {
417
422
  id_empresa: this.idEmpresa.toString(),
423
+ id_enterprise: this.idEnterprise.toString(),
418
424
  id: this.id.toString(),
419
425
  prefijo: this.prefijo,
420
426
  procede: this.procede,
@@ -945,6 +951,7 @@
945
951
  _this.apellido = user.apellido;
946
952
  _this.nombre = user.nombre;
947
953
  _this.conexionDB = user.conexionDB;
954
+ _this.enterprise = +user.id_enterprise;
948
955
  _this.empresa = user.empresa;
949
956
  _this.token = user.token;
950
957
  _this.procede = user.procede;
@@ -1683,13 +1690,16 @@
1683
1690
  _this.idEmpresa = 0;
1684
1691
  _this.idEnterprise = 0;
1685
1692
  _this.codigoCentroCosto = '';
1693
+ _this.codigoUsuario = '';
1686
1694
  _this.usuario = '';
1695
+ _this.idUsuario = 0;
1687
1696
  _this.idDtCentro = 0;
1688
1697
  if (e) {
1689
1698
  _this.idEmpresa = +e.id_empresa;
1690
1699
  _this.idEnterprise = +e.id_enterprise;
1691
1700
  _this.codigoCentroCosto = e.codcencos;
1692
- _this.usuario = e.codusu;
1701
+ _this.codigoUsuario = e.codusu;
1702
+ _this.usuario = e.nomusu + ' ' + e.apeusu;
1693
1703
  _this.idDtCentro = +e.id_dt_cencos;
1694
1704
  }
1695
1705
  else {
@@ -1702,7 +1712,8 @@
1702
1712
  id_empresa: this.idEmpresa.toString(),
1703
1713
  id_enterprise: this.idEnterprise.toString(),
1704
1714
  codcencos: this.codigoCentroCosto,
1705
- codusu: this.usuario,
1715
+ codusu: this.codigoUsuario,
1716
+ id_usuario: this.idUsuario.toString(),
1706
1717
  id_dt_cencos: this.idDtCentro.toString(),
1707
1718
  };
1708
1719
  };
@@ -1998,6 +2009,7 @@
1998
2009
  var _this = _super.call(this) || this;
1999
2010
  _this.id = 0;
2000
2011
  _this.idCompany = 0;
2012
+ _this.idEnterprise = 0;
2001
2013
  _this.lastName = '';
2002
2014
  _this.identification = '';
2003
2015
  _this.email = '';
@@ -2014,6 +2026,7 @@
2014
2026
  _this.rights = [];
2015
2027
  if (user) {
2016
2028
  _this.idCompany = parseInt(user.id_empresa);
2029
+ _this.idEnterprise = parseInt(user.id_enterprise);
2017
2030
  _this.id = parseInt(user.id_usuario);
2018
2031
  _this.lastName = user.apeusu;
2019
2032
  _this.identification = user.cedusu;
@@ -2050,6 +2063,7 @@
2050
2063
  fecregusu: this.registrationDate,
2051
2064
  fotusu: this.photo,
2052
2065
  id_empresa: this.idCompany.toString(),
2066
+ id_enterprise: this.idEnterprise.toString(),
2053
2067
  id_usuario: this.id.toString(),
2054
2068
  nomusu: this.name,
2055
2069
  obsusu: this.notes,