sigesp 1.1.25-20241118 → 1.1.27-20240512

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.
@@ -5213,6 +5213,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5213
5213
  constructor(e = null) {
5214
5214
  super();
5215
5215
  this.idEmpresa = 0;
5216
+ this.idEnterprise = 0;
5216
5217
  this.idCargoPersonal = 0;
5217
5218
  this.codigoCargo = '';
5218
5219
  this.descripcionCargo = '';
@@ -5230,6 +5231,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5230
5231
  this.nivel = 0;
5231
5232
  if (e) {
5232
5233
  this.idEmpresa = parseInt(e.id_empresa);
5234
+ this.idEnterprise = parseInt(e.id_enterprise);
5233
5235
  this.idCargoPersonal = parseInt(e.id_carper);
5234
5236
  this.idOrganigrama = parseInt(e.id_organigrama);
5235
5237
  this.codigoEstructuraOrganizativa = e.codestorg;
@@ -5238,7 +5240,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5238
5240
  this.denominacionEstructuraOrganizativa = e.denestorg;
5239
5241
  this.idPersonal = parseInt(e.id_personal);
5240
5242
  this.nivel = parseInt(e.nivel);
5241
- this.codigoEstructuraPresupuestaria = e.codigo_estructura;
5243
+ this.codigoEstructuraPresupuestaria = e.estructura;
5242
5244
  this.codigoCentroCosto = e.codcencos;
5243
5245
  this.dnominacionCentroCosto = e.denominacion;
5244
5246
  this.idDtCargoEstructura = parseInt(e.id_dt);
@@ -5253,6 +5255,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5253
5255
  dataInterface() {
5254
5256
  return {
5255
5257
  id_empresa: this.idEmpresa.toString(),
5258
+ id_enterprise: this.idEnterprise.toString(),
5256
5259
  id_carper: this.idCargoPersonal.toString(),
5257
5260
  id_organigrama: this.idOrganigrama.toString(),
5258
5261
  id_dt: this.idDtCargoEstructura.toString(),
@@ -5266,6 +5269,7 @@ class MCargosNominas extends MBasicModel {
5266
5269
  super();
5267
5270
  this.idEmpresa = 0;
5268
5271
  this.idNomina = 0;
5272
+ this.idEnterprise = 0;
5269
5273
  this.idCargo = 0;
5270
5274
  this.codigoNomina = '';
5271
5275
  this.denominacionNomina = '';
@@ -5283,6 +5287,7 @@ class MCargosNominas extends MBasicModel {
5283
5287
  this.denominacionEstructuraOrganizativa = '';
5284
5288
  if (e) {
5285
5289
  this.idEmpresa = parseInt(e.id_empresa);
5290
+ this.idEnterprise = +e.id_enterprise;
5286
5291
  this.idNomina = parseInt(e.id_nomina);
5287
5292
  this.idCargo = parseInt(e.id_carper);
5288
5293
  this.codigoNomina = e.codnom;
@@ -5305,6 +5310,7 @@ class MCargosNominas extends MBasicModel {
5305
5310
  dataInterface() {
5306
5311
  return {
5307
5312
  id_empresa: this.idEmpresa.toString(),
5313
+ id_enterprise: this.idEnterprise.toString(),
5308
5314
  id_nomina: this.idNomina.toString(),
5309
5315
  id_carper: this.idCargo.toString(),
5310
5316
  id_dt_carnom: this.idDtNomina.toString(),
@@ -7757,16 +7763,16 @@ class SigespService {
7757
7763
  return res;
7758
7764
  }));
7759
7765
  }
7760
- getCharges() {
7761
- return this.http.get(`${this.URL}/dao/stb/cargos_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7766
+ getCharges(idEnterprise) {
7767
+ return this.http.get(`${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7762
7768
  if (res.success) {
7763
7769
  res.data = res.data.map(e => new MCargo(e));
7764
7770
  }
7765
7771
  return res;
7766
7772
  }));
7767
7773
  }
7768
- getDeductions() {
7769
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7774
+ getDeductions(idEnterprise) {
7775
+ return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7770
7776
  if (res.success) {
7771
7777
  res.data = res.data.map(e => new MDeduction(e));
7772
7778
  }
@@ -7793,8 +7799,8 @@ class SigespService {
7793
7799
  * @author Dimaly Crespo
7794
7800
  * @date 20-07-2021
7795
7801
  */
7796
- getTiposDocumetos() {
7797
- 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) => {
7802
+ getTiposDocumetos(idEnterprise) {
7803
+ 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) => {
7798
7804
  if (res.success) {
7799
7805
  res.data = res.data.map(e => new MTipoDocumentoCXP(e));
7800
7806
  }
@@ -7827,8 +7833,8 @@ class SigespService {
7827
7833
  * @author Dimaly Crespo
7828
7834
  * @date 20-07-2021
7829
7835
  */
7830
- getConceptosCxP() {
7831
- return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7836
+ getConceptosCxP(idEnterprise) {
7837
+ 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) => {
7832
7838
  if (res.success) {
7833
7839
  res.data = res.data.map(e => new MConceptosCXP(e));
7834
7840
  }
@@ -7841,8 +7847,8 @@ class SigespService {
7841
7847
  * @author Dimaly Crespo
7842
7848
  * @date 26-07-2021
7843
7849
  */
7844
- getConceptosRetencion() {
7845
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?code=${'conceptos'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7850
+ getConceptosRetencion(tipo, idTipoDeduccion) {
7851
+ 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) => {
7846
7852
  if (res.success) {
7847
7853
  res.data = res.data.map(e => new MConceptoRetencion(e));
7848
7854
  }
@@ -7854,8 +7860,8 @@ class SigespService {
7854
7860
  * @return Observable<IResponse>
7855
7861
  * @author Dimaly Crespo
7856
7862
  */
7857
- obtenerConfiguracionSNO() {
7858
- return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7863
+ obtenerConfiguracionSNO(idEnterprise) {
7864
+ 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) => {
7859
7865
  if (res.success) {
7860
7866
  if (res.data.length > 0) {
7861
7867
  res.data = res.data.map(e => new MConfiguracionSNO(e));
@@ -7876,8 +7882,8 @@ class SigespService {
7876
7882
  * @actualizado 26-05-2024
7877
7883
  *
7878
7884
  */
7879
- getNomina(tipo, id, act) {
7880
- return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7885
+ getNomina(tipo, idEnterprise, id, act) {
7886
+ return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7881
7887
  if (res.success) {
7882
7888
  res.data = res.data.map(e => new MDefinicionNomina(e));
7883
7889
  }
@@ -7903,8 +7909,8 @@ class SigespService {
7903
7909
  * @return Observable<IResponse>
7904
7910
  * @author Dimaly Crespo
7905
7911
  */
7906
- getPersonalSRH(tipo, id) {
7907
- 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) => {
7912
+ getPersonalSRH(tipo, idEnterprise, id) {
7913
+ 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) => {
7908
7914
  if (res.success) {
7909
7915
  res.data = res.data.map(e => new MPersonal(e));
7910
7916
  }
@@ -7916,8 +7922,8 @@ class SigespService {
7916
7922
  * @return Observable<IResponse>
7917
7923
  * @author Dimaly Crespo
7918
7924
  */
7919
- getAgenciaBanco(tipo, id) {
7920
- 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) => {
7925
+ getAgenciaBanco(tipo, idEnterprise, id) {
7926
+ 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) => {
7921
7927
  if (res.success) {
7922
7928
  res.data = res.data.map(e => new MAgenciaBanco(e));
7923
7929
  }
@@ -11595,12 +11601,14 @@ class MEstructuraOrganizativa extends MBasicModel {
11595
11601
  this.nivel = 0;
11596
11602
  this.nivelPadre = 0;
11597
11603
  this.codigoCentroCosto = '---';
11604
+ this.denominacionCentroCosto = '---';
11598
11605
  this.idEp1 = 0;
11599
11606
  this.idEp2 = 0;
11600
11607
  this.idEp3 = 0;
11601
11608
  this.idEp4 = 0;
11602
11609
  this.idEp5 = 0;
11603
11610
  this.codigoPadre = '';
11611
+ this.denominacionPadre = '';
11604
11612
  this.codigoPais = '000058';
11605
11613
  this.nombrePais = 'Venezuela';
11606
11614
  this.codigoEstado = '';
@@ -11624,21 +11632,22 @@ class MEstructuraOrganizativa extends MBasicModel {
11624
11632
  this.codigoUnidadAdministrativa = '';
11625
11633
  this.denominacionUnidadAdministraiva = '';
11626
11634
  this.idCentroCosto = 0;
11635
+ this.estructura = '';
11627
11636
  if (e) {
11628
11637
  this.idEnterprise = +e.id_enterprise;
11629
11638
  this.idEmpresa = +e.id_empresa;
11630
11639
  this.idOrganigrama = parseInt(e.id_organigrama);
11640
+ this.idCentroCosto = +e.id_cencos;
11631
11641
  this.codigoEstructuraOrganizativa = e.codestorg;
11632
11642
  this.denominacionEstructuraOrganizativa = e.denestorg;
11633
- this.nivel = parseInt(e.nivel);
11634
- this.nivelPadre = parseInt(e.nivpad);
11635
- this.idCentroCosto = +e.id_cencos;
11643
+ this.nivel = +e.nivel;
11644
+ this.nivelPadre = +e.nivpad;
11636
11645
  this.codigoCentroCosto = e.codcencos;
11637
- this.idEp1 = parseInt(e.id_ep1);
11638
- this.idEp2 = parseInt(e.id_ep2);
11639
- this.idEp3 = parseInt(e.id_ep3);
11640
- this.idEp4 = parseInt(e.id_ep4);
11641
- this.idEp5 = parseInt(e.id_ep5);
11646
+ this.idEp1 = +e.id_ep1;
11647
+ this.idEp2 = +e.id_ep2;
11648
+ this.idEp3 = +e.id_ep3;
11649
+ this.idEp4 = +e.id_ep4;
11650
+ this.idEp5 = +e.id_ep5;
11642
11651
  this.codigoPadre = e.codpadre;
11643
11652
  this.codigoPais = e.codpai;
11644
11653
  this.nombrePais = e.despai;
@@ -11662,6 +11671,8 @@ class MEstructuraOrganizativa extends MBasicModel {
11662
11671
  this.idUnidadAdministrativa = +e.id_uniadm;
11663
11672
  this.codigoUnidadAdministrativa = e.coduniadm;
11664
11673
  this.denominacionUnidadAdministraiva = e.denuniadm;
11674
+ this.estructura = e.estructura;
11675
+ this.denominacionPadre = e.denpadre;
11665
11676
  }
11666
11677
  }
11667
11678
  dataInterface() {
@@ -11701,6 +11712,9 @@ class MEstructuraOrganizativa extends MBasicModel {
11701
11712
  ubizona: this.ubicacionZona,
11702
11713
  ubinoaplica: this.ubicacionNoAplica,
11703
11714
  id_uniadm: this.idUnidadAdministrativa.toString(),
11715
+ dencencos: this.denominacionCentroCosto,
11716
+ denpadre: this.denominacionPadre,
11717
+ estructura: this.estructura
11704
11718
  };
11705
11719
  }
11706
11720
  }
@@ -12284,48 +12298,6 @@ class MFormacionAcademica extends MBasicModel {
12284
12298
  }
12285
12299
  }
12286
12300
 
12287
- class MPrimaGrados extends MBasicModel {
12288
- constructor(e = null) {
12289
- super();
12290
- this.idEnterprise = 0;
12291
- this.idEmpresa = 0;
12292
- this.idTabulador = 0;
12293
- this.codigoGrado = '';
12294
- this.codigoPaso = '';
12295
- this.codigoPrima = '';
12296
- this.descripcionPrima = '';
12297
- this.montoPrima = 0;
12298
- this.IdDetallePrima = 0;
12299
- if (e) {
12300
- this.idEnterprise = +e.id_enterprise;
12301
- this.idEmpresa = +e.id_empresa;
12302
- this.idTabulador = parseInt(e.id_tabulador);
12303
- this.codigoGrado = e.codgra;
12304
- this.codigoPaso = e.codpas;
12305
- this.codigoPrima = e.codpri;
12306
- this.descripcionPrima = e.despri;
12307
- this.montoPrima = parseInt(e.monpri);
12308
- this.IdDetallePrima = parseInt(e.id_dt_prima);
12309
- }
12310
- else {
12311
- this.isNew = true;
12312
- }
12313
- }
12314
- dataInterface() {
12315
- return {
12316
- id_enterprise: this.idEnterprise.toString(),
12317
- id_empresa: this.idEmpresa,
12318
- id_tabulador: this.idTabulador.toString(),
12319
- codgra: this.codigoGrado,
12320
- codpas: this.codigoPaso,
12321
- codpri: this.codigoPrima,
12322
- despri: this.descripcionPrima,
12323
- monpri: this.montoPrima.toString(),
12324
- id_dt_prima: this.IdDetallePrima.toString(),
12325
- };
12326
- }
12327
- }
12328
-
12329
12301
  class MGrados extends MBasicModel {
12330
12302
  constructor(e = null) {
12331
12303
  super();
@@ -12351,7 +12323,6 @@ class MGrados extends MBasicModel {
12351
12323
  this.yearDesde = parseInt(e.aniodes);
12352
12324
  this.yearHasta = parseInt(e.aniohas);
12353
12325
  this.IdDetalleGrado = parseInt(e.id_dt_grado);
12354
- this.detallePrima = e.detalles_prima.map(e => new MPrimaGrados(e));
12355
12326
  }
12356
12327
  }
12357
12328
  dataInterface() {
@@ -12366,7 +12337,6 @@ class MGrados extends MBasicModel {
12366
12337
  aniodes: this.yearDesde.toString(),
12367
12338
  aniohas: this.yearHasta.toString(),
12368
12339
  id_dt_grado: this.IdDetalleGrado.toString(),
12369
- detalles_prima: this.detallePrima.map(function (e) { return e.dataInterface(); })
12370
12340
  };
12371
12341
  }
12372
12342
  }
@@ -12413,6 +12383,48 @@ class MPrimasConcepto extends MBasicModel {
12413
12383
  }
12414
12384
  }
12415
12385
 
12386
+ class MPrimaGrados extends MBasicModel {
12387
+ constructor(e = null) {
12388
+ super();
12389
+ this.idEnterprise = 0;
12390
+ this.idEmpresa = 0;
12391
+ this.idTabulador = 0;
12392
+ this.codigoGrado = '';
12393
+ this.codigoPaso = '';
12394
+ this.codigoPrima = '';
12395
+ this.descripcionPrima = '';
12396
+ this.montoPrima = 0;
12397
+ this.IdDetallePrima = 0;
12398
+ if (e) {
12399
+ this.idEnterprise = +e.id_enterprise;
12400
+ this.idEmpresa = +e.id_empresa;
12401
+ this.idTabulador = parseInt(e.id_tabulador);
12402
+ this.codigoGrado = e.codgra;
12403
+ this.codigoPaso = e.codpas;
12404
+ this.codigoPrima = e.codpri;
12405
+ this.descripcionPrima = e.despri;
12406
+ this.montoPrima = parseInt(e.monpri);
12407
+ this.IdDetallePrima = parseInt(e.id_dt_prima);
12408
+ }
12409
+ else {
12410
+ this.isNew = true;
12411
+ }
12412
+ }
12413
+ dataInterface() {
12414
+ return {
12415
+ id_enterprise: this.idEnterprise.toString(),
12416
+ id_empresa: this.idEmpresa,
12417
+ id_tabulador: this.idTabulador.toString(),
12418
+ codgra: this.codigoGrado,
12419
+ codpas: this.codigoPaso,
12420
+ codpri: this.codigoPrima,
12421
+ despri: this.descripcionPrima,
12422
+ monpri: this.montoPrima.toString(),
12423
+ id_dt_prima: this.IdDetallePrima.toString(),
12424
+ };
12425
+ }
12426
+ }
12427
+
12416
12428
  class MRequisitosConcursantes extends MBasicModel {
12417
12429
  constructor(e = null) {
12418
12430
  super();