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.
@@ -5224,6 +5224,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5224
5224
  constructor(e = null) {
5225
5225
  super();
5226
5226
  this.idEmpresa = 0;
5227
+ this.idEnterprise = 0;
5227
5228
  this.idCargoPersonal = 0;
5228
5229
  this.codigoCargo = '';
5229
5230
  this.descripcionCargo = '';
@@ -5241,6 +5242,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5241
5242
  this.nivel = 0;
5242
5243
  if (e) {
5243
5244
  this.idEmpresa = parseInt(e.id_empresa);
5245
+ this.idEnterprise = parseInt(e.id_enterprise);
5244
5246
  this.idCargoPersonal = parseInt(e.id_carper);
5245
5247
  this.idOrganigrama = parseInt(e.id_organigrama);
5246
5248
  this.codigoEstructuraOrganizativa = e.codestorg;
@@ -5249,7 +5251,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5249
5251
  this.denominacionEstructuraOrganizativa = e.denestorg;
5250
5252
  this.idPersonal = parseInt(e.id_personal);
5251
5253
  this.nivel = parseInt(e.nivel);
5252
- this.codigoEstructuraPresupuestaria = e.codigo_estructura;
5254
+ this.codigoEstructuraPresupuestaria = e.estructura;
5253
5255
  this.codigoCentroCosto = e.codcencos;
5254
5256
  this.dnominacionCentroCosto = e.denominacion;
5255
5257
  this.idDtCargoEstructura = parseInt(e.id_dt);
@@ -5264,6 +5266,7 @@ class MCargoEstructuraOrganizativa extends MBasicModel {
5264
5266
  dataInterface() {
5265
5267
  return {
5266
5268
  id_empresa: this.idEmpresa.toString(),
5269
+ id_enterprise: this.idEnterprise.toString(),
5267
5270
  id_carper: this.idCargoPersonal.toString(),
5268
5271
  id_organigrama: this.idOrganigrama.toString(),
5269
5272
  id_dt: this.idDtCargoEstructura.toString(),
@@ -5277,6 +5280,7 @@ class MCargosNominas extends MBasicModel {
5277
5280
  super();
5278
5281
  this.idEmpresa = 0;
5279
5282
  this.idNomina = 0;
5283
+ this.idEnterprise = 0;
5280
5284
  this.idCargo = 0;
5281
5285
  this.codigoNomina = '';
5282
5286
  this.denominacionNomina = '';
@@ -5294,6 +5298,7 @@ class MCargosNominas extends MBasicModel {
5294
5298
  this.denominacionEstructuraOrganizativa = '';
5295
5299
  if (e) {
5296
5300
  this.idEmpresa = parseInt(e.id_empresa);
5301
+ this.idEnterprise = +e.id_enterprise;
5297
5302
  this.idNomina = parseInt(e.id_nomina);
5298
5303
  this.idCargo = parseInt(e.id_carper);
5299
5304
  this.codigoNomina = e.codnom;
@@ -5316,6 +5321,7 @@ class MCargosNominas extends MBasicModel {
5316
5321
  dataInterface() {
5317
5322
  return {
5318
5323
  id_empresa: this.idEmpresa.toString(),
5324
+ id_enterprise: this.idEnterprise.toString(),
5319
5325
  id_nomina: this.idNomina.toString(),
5320
5326
  id_carper: this.idCargo.toString(),
5321
5327
  id_dt_carnom: this.idDtNomina.toString(),
@@ -7790,16 +7796,16 @@ class SigespService {
7790
7796
  return res;
7791
7797
  }));
7792
7798
  }
7793
- getCharges() {
7794
- return this.http.get(`${this.URL}/dao/stb/cargos_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7799
+ getCharges(idEnterprise) {
7800
+ return this.http.get(`${this.URL}/dao/stb/cargos_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7795
7801
  if (res.success) {
7796
7802
  res.data = res.data.map(e => new MCargo(e));
7797
7803
  }
7798
7804
  return res;
7799
7805
  }));
7800
7806
  }
7801
- getDeductions() {
7802
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7807
+ getDeductions(idEnterprise) {
7808
+ return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?linea=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7803
7809
  if (res.success) {
7804
7810
  res.data = res.data.map(e => new MDeduction(e));
7805
7811
  }
@@ -7826,8 +7832,8 @@ class SigespService {
7826
7832
  * @author Dimaly Crespo
7827
7833
  * @date 20-07-2021
7828
7834
  */
7829
- getTiposDocumetos() {
7830
- 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) => {
7835
+ getTiposDocumetos(idEnterprise) {
7836
+ 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) => {
7831
7837
  if (res.success) {
7832
7838
  res.data = res.data.map(e => new MTipoDocumentoCXP(e));
7833
7839
  }
@@ -7860,8 +7866,8 @@ class SigespService {
7860
7866
  * @author Dimaly Crespo
7861
7867
  * @date 20-07-2021
7862
7868
  */
7863
- getConceptosCxP() {
7864
- return this.http.get(`${this.URL}/dao/cxp/concepto_dao.php?operacion=${'buscar'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7869
+ getConceptosCxP(idEnterprise) {
7870
+ 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) => {
7865
7871
  if (res.success) {
7866
7872
  res.data = res.data.map(e => new MConceptosCXP(e));
7867
7873
  }
@@ -7874,8 +7880,8 @@ class SigespService {
7874
7880
  * @author Dimaly Crespo
7875
7881
  * @date 26-07-2021
7876
7882
  */
7877
- getConceptosRetencion() {
7878
- return this.http.get(`${this.URL}/dao/stb/deducciones_dao.php?code=${'conceptos'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7883
+ getConceptosRetencion(tipo, idTipoDeduccion) {
7884
+ 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) => {
7879
7885
  if (res.success) {
7880
7886
  res.data = res.data.map(e => new MConceptoRetencion(e));
7881
7887
  }
@@ -7887,8 +7893,8 @@ class SigespService {
7887
7893
  * @return Observable<IResponse>
7888
7894
  * @author Dimaly Crespo
7889
7895
  */
7890
- obtenerConfiguracionSNO() {
7891
- return this.http.get(`${this.URL}/dao/sno/configuracion_dao.php?tipo=${'configuracion'}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7896
+ obtenerConfiguracionSNO(idEnterprise) {
7897
+ 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) => {
7892
7898
  if (res.success) {
7893
7899
  if (res.data.length > 0) {
7894
7900
  res.data = res.data.map(e => new MConfiguracionSNO(e));
@@ -7909,8 +7915,8 @@ class SigespService {
7909
7915
  * @actualizado 26-05-2024
7910
7916
  *
7911
7917
  */
7912
- getNomina(tipo, id, act) {
7913
- return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7918
+ getNomina(tipo, idEnterprise, id, act) {
7919
+ return this.http.get(`${this.URL}/dao/sno/definicion_nomina_dao.php?tipo=${tipo}&id=${id}&e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7914
7920
  if (res.success) {
7915
7921
  res.data = res.data.map(e => new MDefinicionNomina(e));
7916
7922
  }
@@ -7936,8 +7942,8 @@ class SigespService {
7936
7942
  * @return Observable<IResponse>
7937
7943
  * @author Dimaly Crespo
7938
7944
  */
7939
- getPersonalSRH(tipo, id) {
7940
- 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) => {
7945
+ getPersonalSRH(tipo, idEnterprise, id) {
7946
+ 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) => {
7941
7947
  if (res.success) {
7942
7948
  res.data = res.data.map(e => new MPersonal(e));
7943
7949
  }
@@ -7949,8 +7955,8 @@ class SigespService {
7949
7955
  * @return Observable<IResponse>
7950
7956
  * @author Dimaly Crespo
7951
7957
  */
7952
- getAgenciaBanco(tipo, id) {
7953
- 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) => {
7958
+ getAgenciaBanco(tipo, idEnterprise, id) {
7959
+ 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) => {
7954
7960
  if (res.success) {
7955
7961
  res.data = res.data.map(e => new MAgenciaBanco(e));
7956
7962
  }
@@ -11632,12 +11638,14 @@ class MEstructuraOrganizativa extends MBasicModel {
11632
11638
  this.nivel = 0;
11633
11639
  this.nivelPadre = 0;
11634
11640
  this.codigoCentroCosto = '---';
11641
+ this.denominacionCentroCosto = '---';
11635
11642
  this.idEp1 = 0;
11636
11643
  this.idEp2 = 0;
11637
11644
  this.idEp3 = 0;
11638
11645
  this.idEp4 = 0;
11639
11646
  this.idEp5 = 0;
11640
11647
  this.codigoPadre = '';
11648
+ this.denominacionPadre = '';
11641
11649
  this.codigoPais = '000058';
11642
11650
  this.nombrePais = 'Venezuela';
11643
11651
  this.codigoEstado = '';
@@ -11661,21 +11669,22 @@ class MEstructuraOrganizativa extends MBasicModel {
11661
11669
  this.codigoUnidadAdministrativa = '';
11662
11670
  this.denominacionUnidadAdministraiva = '';
11663
11671
  this.idCentroCosto = 0;
11672
+ this.estructura = '';
11664
11673
  if (e) {
11665
11674
  this.idEnterprise = +e.id_enterprise;
11666
11675
  this.idEmpresa = +e.id_empresa;
11667
11676
  this.idOrganigrama = parseInt(e.id_organigrama);
11677
+ this.idCentroCosto = +e.id_cencos;
11668
11678
  this.codigoEstructuraOrganizativa = e.codestorg;
11669
11679
  this.denominacionEstructuraOrganizativa = e.denestorg;
11670
- this.nivel = parseInt(e.nivel);
11671
- this.nivelPadre = parseInt(e.nivpad);
11672
- this.idCentroCosto = +e.id_cencos;
11680
+ this.nivel = +e.nivel;
11681
+ this.nivelPadre = +e.nivpad;
11673
11682
  this.codigoCentroCosto = e.codcencos;
11674
- this.idEp1 = parseInt(e.id_ep1);
11675
- this.idEp2 = parseInt(e.id_ep2);
11676
- this.idEp3 = parseInt(e.id_ep3);
11677
- this.idEp4 = parseInt(e.id_ep4);
11678
- this.idEp5 = parseInt(e.id_ep5);
11683
+ this.idEp1 = +e.id_ep1;
11684
+ this.idEp2 = +e.id_ep2;
11685
+ this.idEp3 = +e.id_ep3;
11686
+ this.idEp4 = +e.id_ep4;
11687
+ this.idEp5 = +e.id_ep5;
11679
11688
  this.codigoPadre = e.codpadre;
11680
11689
  this.codigoPais = e.codpai;
11681
11690
  this.nombrePais = e.despai;
@@ -11699,6 +11708,8 @@ class MEstructuraOrganizativa extends MBasicModel {
11699
11708
  this.idUnidadAdministrativa = +e.id_uniadm;
11700
11709
  this.codigoUnidadAdministrativa = e.coduniadm;
11701
11710
  this.denominacionUnidadAdministraiva = e.denuniadm;
11711
+ this.estructura = e.estructura;
11712
+ this.denominacionPadre = e.denpadre;
11702
11713
  }
11703
11714
  }
11704
11715
  dataInterface() {
@@ -11738,6 +11749,9 @@ class MEstructuraOrganizativa extends MBasicModel {
11738
11749
  ubizona: this.ubicacionZona,
11739
11750
  ubinoaplica: this.ubicacionNoAplica,
11740
11751
  id_uniadm: this.idUnidadAdministrativa.toString(),
11752
+ dencencos: this.denominacionCentroCosto,
11753
+ denpadre: this.denominacionPadre,
11754
+ estructura: this.estructura
11741
11755
  };
11742
11756
  }
11743
11757
  }
@@ -12321,48 +12335,6 @@ class MFormacionAcademica extends MBasicModel {
12321
12335
  }
12322
12336
  }
12323
12337
 
12324
- class MPrimaGrados extends MBasicModel {
12325
- constructor(e = null) {
12326
- super();
12327
- this.idEnterprise = 0;
12328
- this.idEmpresa = 0;
12329
- this.idTabulador = 0;
12330
- this.codigoGrado = '';
12331
- this.codigoPaso = '';
12332
- this.codigoPrima = '';
12333
- this.descripcionPrima = '';
12334
- this.montoPrima = 0;
12335
- this.IdDetallePrima = 0;
12336
- if (e) {
12337
- this.idEnterprise = +e.id_enterprise;
12338
- this.idEmpresa = +e.id_empresa;
12339
- this.idTabulador = parseInt(e.id_tabulador);
12340
- this.codigoGrado = e.codgra;
12341
- this.codigoPaso = e.codpas;
12342
- this.codigoPrima = e.codpri;
12343
- this.descripcionPrima = e.despri;
12344
- this.montoPrima = parseInt(e.monpri);
12345
- this.IdDetallePrima = parseInt(e.id_dt_prima);
12346
- }
12347
- else {
12348
- this.isNew = true;
12349
- }
12350
- }
12351
- dataInterface() {
12352
- return {
12353
- id_enterprise: this.idEnterprise.toString(),
12354
- id_empresa: this.idEmpresa,
12355
- id_tabulador: this.idTabulador.toString(),
12356
- codgra: this.codigoGrado,
12357
- codpas: this.codigoPaso,
12358
- codpri: this.codigoPrima,
12359
- despri: this.descripcionPrima,
12360
- monpri: this.montoPrima.toString(),
12361
- id_dt_prima: this.IdDetallePrima.toString(),
12362
- };
12363
- }
12364
- }
12365
-
12366
12338
  class MGrados extends MBasicModel {
12367
12339
  constructor(e = null) {
12368
12340
  super();
@@ -12388,7 +12360,6 @@ class MGrados extends MBasicModel {
12388
12360
  this.yearDesde = parseInt(e.aniodes);
12389
12361
  this.yearHasta = parseInt(e.aniohas);
12390
12362
  this.IdDetalleGrado = parseInt(e.id_dt_grado);
12391
- this.detallePrima = e.detalles_prima.map(e => new MPrimaGrados(e));
12392
12363
  }
12393
12364
  }
12394
12365
  dataInterface() {
@@ -12403,7 +12374,6 @@ class MGrados extends MBasicModel {
12403
12374
  aniodes: this.yearDesde.toString(),
12404
12375
  aniohas: this.yearHasta.toString(),
12405
12376
  id_dt_grado: this.IdDetalleGrado.toString(),
12406
- detalles_prima: this.detallePrima.map(function (e) { return e.dataInterface(); })
12407
12377
  };
12408
12378
  }
12409
12379
  }
@@ -12450,6 +12420,48 @@ class MPrimasConcepto extends MBasicModel {
12450
12420
  }
12451
12421
  }
12452
12422
 
12423
+ class MPrimaGrados extends MBasicModel {
12424
+ constructor(e = null) {
12425
+ super();
12426
+ this.idEnterprise = 0;
12427
+ this.idEmpresa = 0;
12428
+ this.idTabulador = 0;
12429
+ this.codigoGrado = '';
12430
+ this.codigoPaso = '';
12431
+ this.codigoPrima = '';
12432
+ this.descripcionPrima = '';
12433
+ this.montoPrima = 0;
12434
+ this.IdDetallePrima = 0;
12435
+ if (e) {
12436
+ this.idEnterprise = +e.id_enterprise;
12437
+ this.idEmpresa = +e.id_empresa;
12438
+ this.idTabulador = parseInt(e.id_tabulador);
12439
+ this.codigoGrado = e.codgra;
12440
+ this.codigoPaso = e.codpas;
12441
+ this.codigoPrima = e.codpri;
12442
+ this.descripcionPrima = e.despri;
12443
+ this.montoPrima = parseInt(e.monpri);
12444
+ this.IdDetallePrima = parseInt(e.id_dt_prima);
12445
+ }
12446
+ else {
12447
+ this.isNew = true;
12448
+ }
12449
+ }
12450
+ dataInterface() {
12451
+ return {
12452
+ id_enterprise: this.idEnterprise.toString(),
12453
+ id_empresa: this.idEmpresa,
12454
+ id_tabulador: this.idTabulador.toString(),
12455
+ codgra: this.codigoGrado,
12456
+ codpas: this.codigoPaso,
12457
+ codpri: this.codigoPrima,
12458
+ despri: this.descripcionPrima,
12459
+ monpri: this.montoPrima.toString(),
12460
+ id_dt_prima: this.IdDetallePrima.toString(),
12461
+ };
12462
+ }
12463
+ }
12464
+
12453
12465
  class MRequisitosConcursantes extends MBasicModel {
12454
12466
  constructor(e = null) {
12455
12467
  super();