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.
@@ -1997,6 +1997,7 @@ class MCentroCosto extends MBasicModel {
1997
1997
  super();
1998
1998
  this.idEmpresa = 0;
1999
1999
  this.idEnterprise = 0;
2000
+ this.idCentroCosto = 0;
2000
2001
  this.usuarios = [];
2001
2002
  if (centroCosto) {
2002
2003
  this.idEmpresa = +centroCosto.id_empresa;
@@ -2015,6 +2016,7 @@ class MCentroCosto extends MBasicModel {
2015
2016
  dataInterface() {
2016
2017
  return {
2017
2018
  id_empresa: this.idEmpresa.toString(),
2019
+ id_cencos: this.idCentroCosto.toString(),
2018
2020
  id_enterprise: this.idEnterprise.toString(),
2019
2021
  codcencos: this.centro,
2020
2022
  denominacion: this.denominacion,
@@ -2027,6 +2029,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2027
2029
  super();
2028
2030
  this.idEmpresa = 0;
2029
2031
  this.idEnterprise = 0;
2032
+ this.idCentroCosto = 0;
2030
2033
  this.codigoCentroCosto = '';
2031
2034
  this.codigoUsuario = '';
2032
2035
  this.usuario = '';
@@ -2035,6 +2038,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2035
2038
  if (e) {
2036
2039
  this.idEmpresa = +e.id_empresa;
2037
2040
  this.idEnterprise = +e.id_enterprise;
2041
+ this.idCentroCosto = +e.id_cencos;
2038
2042
  this.codigoCentroCosto = e.codcencos;
2039
2043
  this.codigoUsuario = e.codusu;
2040
2044
  this.usuario = e.nomusu + ' ' + e.apeusu;
@@ -2048,6 +2052,7 @@ class MUsuarioCentroCosto extends MBasicModel {
2048
2052
  return {
2049
2053
  id_empresa: this.idEmpresa.toString(),
2050
2054
  id_enterprise: this.idEnterprise.toString(),
2055
+ id_cencos: this.idCentroCosto.toString(),
2051
2056
  codcencos: this.codigoCentroCosto,
2052
2057
  codusu: this.codigoUsuario,
2053
2058
  id_usuario: this.idUsuario.toString(),
@@ -6977,7 +6982,7 @@ class SigespService {
6977
6982
  * @author Carlos Albornoz
6978
6983
  */
6979
6984
  getCostCenters() {
6980
- return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6985
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
6981
6986
  if (res.success) {
6982
6987
  res.data = res.data.map(element => new MCentroCosto(element));
6983
6988
  }
@@ -6985,7 +6990,7 @@ class SigespService {
6985
6990
  }));
6986
6991
  }
6987
6992
  getUserCostCenters(codigo) {
6988
- 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) => {
6993
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
6989
6994
  if (res.success) {
6990
6995
  res.data = res.data.map(element => new MUsuarioCentroCosto(element));
6991
6996
  }