sigesp 1.1.24-20241113 → 1.1.26-20241119

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.
@@ -2395,6 +2395,8 @@ class MUserDetail extends MBasicModel {
2395
2395
  this.telephone = '';
2396
2396
  this.admin = false;
2397
2397
  this.rights = [];
2398
+ this.ultcon = '';
2399
+ this.id_personal = 0;
2398
2400
  if (user) {
2399
2401
  this.idCompany = parseInt(user.id_empresa);
2400
2402
  this.idEnterprise = parseInt(user.id_enterprise);
@@ -2414,6 +2416,8 @@ class MUserDetail extends MBasicModel {
2414
2416
  this.password = user.pwdusu;
2415
2417
  this.telephone = user.telusu;
2416
2418
  this.admin = user.usuadm == "1";
2419
+ this.ultcon = user.ultcon;
2420
+ this.id_personal = +user.id_personal;
2417
2421
  this.rights = user.derechos ? user.derechos.map(e => new MRights(e)) : [];
2418
2422
  }
2419
2423
  else {
@@ -2440,6 +2444,8 @@ class MUserDetail extends MBasicModel {
2440
2444
  pwdusu: this.password,
2441
2445
  telusu: this.telephone,
2442
2446
  usuadm: this.admin ? '1' : '2',
2447
+ ultcon: this.ultcon,
2448
+ id_personal: this.id_personal.toString(),
2443
2449
  derechos: this.rights.map(e => e.interface())
2444
2450
  };
2445
2451
  }
@@ -7784,16 +7790,16 @@ class SigespService {
7784
7790
  return res;
7785
7791
  }));
7786
7792
  }
7787
- getCharges() {
7788
- return this.http.get(`${this.URL}/dao/stb/cargos_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7793
+ getCharges(idEnterprise) {
7794
+ return this.http.get(`${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7789
7795
  if (res.success) {
7790
7796
  res.data = res.data.map(e => new MCargo(e));
7791
7797
  }
7792
7798
  return res;
7793
7799
  }));
7794
7800
  }
7795
- getDeductions() {
7796
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7801
+ getDeductions(idEnterprise) {
7802
+ return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7797
7803
  if (res.success) {
7798
7804
  res.data = res.data.map(e => new MDeduction(e));
7799
7805
  }
@@ -7820,8 +7826,8 @@ class SigespService {
7820
7826
  * @author Dimaly Crespo
7821
7827
  * @date 20-07-2021
7822
7828
  */
7823
- getTiposDocumetos() {
7824
- return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&existen=${'existen'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7829
+ getTiposDocumetos(idEnterprise) {
7830
+ return this.http.get(`${this.URL}/dao/cxp/tipo_documento_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7825
7831
  if (res.success) {
7826
7832
  res.data = res.data.map(e => new MTipoDocumentoCXP(e));
7827
7833
  }
@@ -7854,8 +7860,8 @@ class SigespService {
7854
7860
  * @author Dimaly Crespo
7855
7861
  * @date 20-07-2021
7856
7862
  */
7857
- getConceptosCxP() {
7858
- return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7863
+ getConceptosCxP(idEnterprise) {
7864
+ return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}&i=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7859
7865
  if (res.success) {
7860
7866
  res.data = res.data.map(e => new MConceptosCXP(e));
7861
7867
  }
@@ -7868,8 +7874,8 @@ class SigespService {
7868
7874
  * @author Dimaly Crespo
7869
7875
  * @date 26-07-2021
7870
7876
  */
7871
- getConceptosRetencion() {
7872
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?code=${'conceptos'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7877
+ getConceptosRetencion(tipo, idTipoDeduccion) {
7878
+ return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?tipo=${tipo}&code=${idTipoDeduccion}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7873
7879
  if (res.success) {
7874
7880
  res.data = res.data.map(e => new MConceptoRetencion(e));
7875
7881
  }
@@ -7881,8 +7887,8 @@ class SigespService {
7881
7887
  * @return Observable<IResponse>
7882
7888
  * @author Dimaly Crespo
7883
7889
  */
7884
- obtenerConfiguracionSNO() {
7885
- return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7890
+ obtenerConfiguracionSNO(idEnterprise) {
7891
+ return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7886
7892
  if (res.success) {
7887
7893
  if (res.data.length > 0) {
7888
7894
  res.data = res.data.map(e => new MConfiguracionSNO(e));
@@ -7903,8 +7909,8 @@ class SigespService {
7903
7909
  * @actualizado 26-05-2024
7904
7910
  *
7905
7911
  */
7906
- getNomina(tipo, id, act) {
7907
- return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7912
+ getNomina(tipo, idEnterprise, id, act) {
7913
+ return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7908
7914
  if (res.success) {
7909
7915
  res.data = res.data.map(e => new MDefinicionNomina(e));
7910
7916
  }
@@ -7930,8 +7936,8 @@ class SigespService {
7930
7936
  * @return Observable<IResponse>
7931
7937
  * @author Dimaly Crespo
7932
7938
  */
7933
- getPersonalSRH(tipo, id) {
7934
- return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7939
+ getPersonalSRH(tipo, idEnterprise, id) {
7940
+ return this.http.get(`${this.URL}/dao/sno/personal_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7935
7941
  if (res.success) {
7936
7942
  res.data = res.data.map(e => new MPersonal(e));
7937
7943
  }
@@ -7943,8 +7949,8 @@ class SigespService {
7943
7949
  * @return Observable<IResponse>
7944
7950
  * @author Dimaly Crespo
7945
7951
  */
7946
- getAgenciaBanco(tipo, id) {
7947
- return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7952
+ getAgenciaBanco(tipo, idEnterprise, id) {
7953
+ return this.http.get(`${this.URL}/dao/scb/agencia_dao.php?code=${tipo}&id=${id}e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7948
7954
  if (res.success) {
7949
7955
  res.data = res.data.map(e => new MAgenciaBanco(e));
7950
7956
  }