sigesp 1.0.24-20240902 → 1.1.2-20240905

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.
@@ -2004,6 +2004,7 @@ class MCentroCosto extends MBasicModel {
2004
2004
  super();
2005
2005
  this.idEmpresa = 0;
2006
2006
  this.idEnterprise = 0;
2007
+ this.idCentroCosto = 0;
2007
2008
  this.usuarios = [];
2008
2009
  if (centroCosto) {
2009
2010
  this.idEmpresa = +centroCosto.id_empresa;
@@ -2022,6 +2023,7 @@ class MCentroCosto extends MBasicModel {
2022
2023
  dataInterface() {
2023
2024
  return {
2024
2025
  id_empresa: this.idEmpresa.toString(),
2026
+ id_cencos: this.idCentroCosto.toString(),
2025
2027
  id_enterprise: this.idEnterprise.toString(),
2026
2028
  codcencos: this.centro,
2027
2029
  denominacion: this.denominacion,
@@ -2034,6 +2036,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2034
2036
  super();
2035
2037
  this.idEmpresa = 0;
2036
2038
  this.idEnterprise = 0;
2039
+ this.idCentroCosto = 0;
2037
2040
  this.codigoCentroCosto = '';
2038
2041
  this.codigoUsuario = '';
2039
2042
  this.usuario = '';
@@ -2042,6 +2045,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2042
2045
  if (e) {
2043
2046
  this.idEmpresa = +e.id_empresa;
2044
2047
  this.idEnterprise = +e.id_enterprise;
2048
+ this.idCentroCosto = +e.id_cencos;
2045
2049
  this.codigoCentroCosto = e.codcencos;
2046
2050
  this.codigoUsuario = e.codusu;
2047
2051
  this.usuario = e.nomusu + ' ' + e.apeusu;
@@ -2055,6 +2059,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2055
2059
  return {
2056
2060
  id_empresa: this.idEmpresa.toString(),
2057
2061
  id_enterprise: this.idEnterprise.toString(),
2062
+ id_cencos: this.idCentroCosto.toString(),
2058
2063
  codcencos: this.codigoCentroCosto,
2059
2064
  codusu: this.codigoUsuario,
2060
2065
  id_usuario: this.idUsuario.toString(),
@@ -6990,7 +6995,7 @@ class SigespService {
6990
6995
  * @author Carlos Albornoz
6991
6996
  */
6992
6997
  getCostCenters() {
6993
- return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6998
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
6994
6999
  if (res.success) {
6995
7000
  res.data = res.data.map(element => new MCentroCosto(element));
6996
7001
  }
@@ -6998,7 +7003,7 @@ class SigespService {
6998
7003
  }));
6999
7004
  }
7000
7005
  getUserCostCenters(codigo) {
7001
- return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7006
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7002
7007
  if (res.success) {
7003
7008
  res.data = res.data.map(element => new MUsuarioCentroCosto(element));
7004
7009
  }