sigesp 0.9.21-20221229 → 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.
@@ -951,6 +951,7 @@
951
951
  _this.apellido = user.apellido;
952
952
  _this.nombre = user.nombre;
953
953
  _this.conexionDB = user.conexionDB;
954
+ _this.enterprise = +user.id_enterprise;
954
955
  _this.empresa = user.empresa;
955
956
  _this.token = user.token;
956
957
  _this.procede = user.procede;
@@ -1689,13 +1690,16 @@
1689
1690
  _this.idEmpresa = 0;
1690
1691
  _this.idEnterprise = 0;
1691
1692
  _this.codigoCentroCosto = '';
1693
+ _this.codigoUsuario = '';
1692
1694
  _this.usuario = '';
1695
+ _this.idUsuario = 0;
1693
1696
  _this.idDtCentro = 0;
1694
1697
  if (e) {
1695
1698
  _this.idEmpresa = +e.id_empresa;
1696
1699
  _this.idEnterprise = +e.id_enterprise;
1697
1700
  _this.codigoCentroCosto = e.codcencos;
1698
- _this.usuario = e.codusu;
1701
+ _this.codigoUsuario = e.codusu;
1702
+ _this.usuario = e.nomusu + ' ' + e.apeusu;
1699
1703
  _this.idDtCentro = +e.id_dt_cencos;
1700
1704
  }
1701
1705
  else {
@@ -1708,7 +1712,8 @@
1708
1712
  id_empresa: this.idEmpresa.toString(),
1709
1713
  id_enterprise: this.idEnterprise.toString(),
1710
1714
  codcencos: this.codigoCentroCosto,
1711
- codusu: this.usuario,
1715
+ codusu: this.codigoUsuario,
1716
+ id_usuario: this.idUsuario.toString(),
1712
1717
  id_dt_cencos: this.idDtCentro.toString(),
1713
1718
  };
1714
1719
  };
@@ -2004,6 +2009,7 @@
2004
2009
  var _this = _super.call(this) || this;
2005
2010
  _this.id = 0;
2006
2011
  _this.idCompany = 0;
2012
+ _this.idEnterprise = 0;
2007
2013
  _this.lastName = '';
2008
2014
  _this.identification = '';
2009
2015
  _this.email = '';
@@ -2020,6 +2026,7 @@
2020
2026
  _this.rights = [];
2021
2027
  if (user) {
2022
2028
  _this.idCompany = parseInt(user.id_empresa);
2029
+ _this.idEnterprise = parseInt(user.id_enterprise);
2023
2030
  _this.id = parseInt(user.id_usuario);
2024
2031
  _this.lastName = user.apeusu;
2025
2032
  _this.identification = user.cedusu;
@@ -2056,6 +2063,7 @@
2056
2063
  fecregusu: this.registrationDate,
2057
2064
  fotusu: this.photo,
2058
2065
  id_empresa: this.idCompany.toString(),
2066
+ id_enterprise: this.idEnterprise.toString(),
2059
2067
  id_usuario: this.id.toString(),
2060
2068
  nomusu: this.name,
2061
2069
  obsusu: this.notes,