sigesp 0.8.72-220304 → 0.8.75-20220504

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.
Files changed (81) hide show
  1. package/bundles/sigesp.umd.js +2597 -289
  2. package/bundles/sigesp.umd.js.map +1 -1
  3. package/bundles/sigesp.umd.min.js +1 -1
  4. package/bundles/sigesp.umd.min.js.map +1 -1
  5. package/esm2015/lib/core/interfaces/Nomina.js +1 -1
  6. package/esm2015/lib/core/interfaces/RecursosHumanos.js +1 -1
  7. package/esm2015/lib/core/interfaces/Seguridad.js +1 -1
  8. package/esm2015/lib/core/interfaces/Usuario.js +1 -1
  9. package/esm2015/lib/core/models/SNO/MArchivosTxt.model.js +38 -0
  10. package/esm2015/lib/core/models/SNO/MAsignacionCargo.model.js +93 -21
  11. package/esm2015/lib/core/models/SNO/MAspectoEvaluacion.model.js +48 -1
  12. package/esm2015/lib/core/models/SNO/MBeneficiario.model.js +7 -11
  13. package/esm2015/lib/core/models/SNO/MCargaMasiva.model.js +34 -0
  14. package/esm2015/lib/core/models/SNO/MCargosPersonal.model.js +18 -27
  15. package/esm2015/lib/core/models/SNO/MConceptosNomina.model.js +7 -1
  16. package/esm2015/lib/core/models/SNO/MConcursante.model.js +245 -13
  17. package/esm2015/lib/core/models/SNO/MConcurso.model.js +176 -1
  18. package/esm2015/lib/core/models/SNO/MConfiguracionSNO.model.js +1 -6
  19. package/esm2015/lib/core/models/SNO/MDefinicionNomina.model.js +84 -1
  20. package/esm2015/lib/core/models/SNO/MEstructuraOrganizativa.model.js +58 -1
  21. package/esm2015/lib/core/models/SNO/MFamiliares.model.js +7 -1
  22. package/esm2015/lib/core/models/SNO/MFideicomiso.model.js +333 -6
  23. package/esm2015/lib/core/models/SNO/MHojaTiempo.model.js +45 -1
  24. package/esm2015/lib/core/models/SNO/MImpuestoSobreRenta.model.js +70 -0
  25. package/esm2015/lib/core/models/SNO/MMetodoBanco.model.js +99 -0
  26. package/esm2015/lib/core/models/SNO/MNominaSimple.model.js +24 -15
  27. package/esm2015/lib/core/models/SNO/MPeriodosPlan.model.js +46 -0
  28. package/esm2015/lib/core/models/SNO/MPermisos.model.js +61 -0
  29. package/esm2015/lib/core/models/SNO/MPersonal.model.js +90 -1
  30. package/esm2015/lib/core/models/SNO/MPlantillaConstancia.model.js +31 -0
  31. package/esm2015/lib/core/models/SNO/MPrestamo.model.js +212 -0
  32. package/esm2015/lib/core/models/SNO/MPrimaGrados.model.js +4 -3
  33. package/esm2015/lib/core/models/SNO/MPrimasConcepto.model.js +4 -1
  34. package/esm2015/lib/core/models/SNO/MRango.model.js +7 -2
  35. package/esm2015/lib/core/models/SNO/MReportesRRHH.js +402 -0
  36. package/esm2015/lib/core/models/SNO/MRequisitosConcursante.model.js +5 -2
  37. package/esm2015/lib/core/models/SNO/MTabulador.model.js +15 -20
  38. package/esm2015/lib/core/models/SNO/MVacacionesPersonal.model.js +4 -1
  39. package/esm2015/lib/core/models/SSS/userPermit.model.js +5 -1
  40. package/esm2015/lib/sigesp.service.js +1 -2
  41. package/esm2015/public-api.js +17 -7
  42. package/esm2015/sigesp.js +11 -11
  43. package/fesm2015/sigesp.js +2345 -223
  44. package/fesm2015/sigesp.js.map +1 -1
  45. package/lib/core/interfaces/Nomina.d.ts +62 -30
  46. package/lib/core/interfaces/RecursosHumanos.d.ts +490 -65
  47. package/lib/core/interfaces/Seguridad.d.ts +2 -0
  48. package/lib/core/interfaces/Usuario.d.ts +13 -0
  49. package/lib/core/models/SNO/MArchivosTxt.model.d.ts +14 -0
  50. package/lib/core/models/SNO/MAsignacionCargo.model.d.ts +35 -4
  51. package/lib/core/models/SNO/MAspectoEvaluacion.model.d.ts +16 -1
  52. package/lib/core/models/SNO/MBeneficiario.model.d.ts +2 -0
  53. package/lib/core/models/SNO/MCargaMasiva.model.d.ts +12 -0
  54. package/lib/core/models/SNO/MCargosPersonal.model.d.ts +6 -3
  55. package/lib/core/models/SNO/MConceptosNomina.model.d.ts +2 -0
  56. package/lib/core/models/SNO/MConcursante.model.d.ts +78 -4
  57. package/lib/core/models/SNO/MConcurso.model.d.ts +58 -1
  58. package/lib/core/models/SNO/MDefinicionNomina.model.d.ts +27 -1
  59. package/lib/core/models/SNO/MEstructuraOrganizativa.model.d.ts +19 -0
  60. package/lib/core/models/SNO/MFamiliares.model.d.ts +1 -0
  61. package/lib/core/models/SNO/MFideicomiso.model.d.ts +115 -2
  62. package/lib/core/models/SNO/MHojaTiempo.model.d.ts +14 -0
  63. package/lib/core/models/SNO/MImpuestoSobreRenta.model.d.ts +24 -0
  64. package/lib/core/models/SNO/MMetodoBanco.model.d.ts +33 -0
  65. package/lib/core/models/SNO/MNominaSimple.model.d.ts +8 -2
  66. package/lib/core/models/SNO/MPeriodosPlan.model.d.ts +16 -0
  67. package/lib/core/models/SNO/MPermisos.model.d.ts +21 -0
  68. package/lib/core/models/SNO/MPersonal.model.d.ts +31 -1
  69. package/lib/core/models/SNO/MPlantillaConstancia.model.d.ts +11 -0
  70. package/lib/core/models/SNO/MPrestamo.model.d.ts +66 -0
  71. package/lib/core/models/SNO/MPrimaGrados.model.d.ts +0 -1
  72. package/lib/core/models/SNO/MRango.model.d.ts +2 -1
  73. package/lib/core/models/SNO/MReportesRRHH.d.ts +130 -0
  74. package/lib/core/models/SNO/MRequisitosConcursante.model.d.ts +1 -1
  75. package/lib/core/models/SNO/MTabulador.model.d.ts +7 -5
  76. package/lib/core/models/SNO/MVacacionesPersonal.model.d.ts +1 -0
  77. package/lib/core/models/SSS/userPermit.model.d.ts +2 -0
  78. package/package.json +1 -1
  79. package/public-api.d.ts +17 -7
  80. package/sigesp.d.ts +26 -25
  81. package/sigesp.metadata.json +1 -1
@@ -391,6 +391,9 @@ class MHojaTiempo extends MBasicModel {
391
391
  this.fechaHastaPeriodo = e.fechasper;
392
392
  this.codigoPeriodo = e.codperi;
393
393
  }
394
+ else {
395
+ this.isNew = true;
396
+ }
394
397
  }
395
398
  dataInterface() {
396
399
  return {
@@ -414,6 +417,47 @@ class MHojaTiempo extends MBasicModel {
414
417
  codperi: this.codigoPeriodo,
415
418
  };
416
419
  }
420
+ }
421
+ class MHorario extends MBasicModel {
422
+ constructor(e) {
423
+ super();
424
+ this.idEmpresa = 0;
425
+ this.idHora = 0;
426
+ this.codigoHorario = '';
427
+ this.denominacionHorario = '';
428
+ this.tipoHorario = 'F';
429
+ this.horaInicial = '0';
430
+ this.horaFinal = '0';
431
+ this.horasLaborales = '0';
432
+ this.horaDescanco = '0';
433
+ if (e) {
434
+ this.idEmpresa = +e.id_empresa;
435
+ this.idHora = +e.id_hora;
436
+ this.codigoHorario = e.codhor;
437
+ this.denominacionHorario = e.denhor;
438
+ this.tipoHorario = e.tiphor;
439
+ this.horaInicial = e.horini;
440
+ this.horaFinal = e.horfin;
441
+ this.horasLaborales = e.horlab;
442
+ this.horaDescanco = e.hordes;
443
+ }
444
+ else {
445
+ this.isNew = true;
446
+ }
447
+ }
448
+ dataInterface() {
449
+ return {
450
+ id_empresa: this.idEmpresa,
451
+ id_hora: this.idHora,
452
+ codhor: this.codigoHorario,
453
+ denhor: this.denominacionHorario,
454
+ tiphor: this.tipoHorario,
455
+ horini: this.horaInicial,
456
+ horfin: this.horaFinal,
457
+ horlab: this.horasLaborales,
458
+ hordes: this.horaDescanco,
459
+ };
460
+ }
417
461
  }
418
462
 
419
463
  class MUsuario {
@@ -2934,16 +2978,12 @@ class MConfiguracionSNO extends MBasicModel {
2934
2978
  this.registroasistenciaincidencia = I.regasiinc;
2935
2979
  this.manejoIndependienteModulo = parseInt(I.manindmod);
2936
2980
  this.digitosCodigoConcepto = parseInt(I.digcodcon);
2937
- this.segmentarPersonal = parseInt(I.segper);
2938
2981
  }
2939
2982
  else {
2940
2983
  this.isNew = true;
2941
2984
  }
2942
2985
  }
2943
2986
  dataInterface() {
2944
- if (this.segmentarPersonal == 0) {
2945
- this.segmentarPersonal = 10000;
2946
- }
2947
2987
  return {
2948
2988
  id_empresa: this.idEmpresa.toString(),
2949
2989
  id_sno: this.idNomina.toString(),
@@ -3069,7 +3109,6 @@ class MConfiguracionSNO extends MBasicModel {
3069
3109
  regasiinc: this.registroasistenciaincidencia,
3070
3110
  manindmod: this.manejoIndependienteModulo.toString(),
3071
3111
  digcodcon: this.digitosCodigoConcepto.toString(),
3072
- segper: this.segmentarPersonal.toString(),
3073
3112
  };
3074
3113
  }
3075
3114
  }
@@ -3243,6 +3282,7 @@ class MDefinicionNomina extends MBasicModel {
3243
3282
  this.idPeriodoNomina = 0;
3244
3283
  this.idPeriodoRestablecerNomina = 0;
3245
3284
  this.estatusIncidencia = 0;
3285
+ this.segmentarPersonal = 3000;
3246
3286
  this.periodosNomina = [];
3247
3287
  if (e) {
3248
3288
  this.idEmpresa = parseInt(e.id_empresa);
@@ -3308,6 +3348,7 @@ class MDefinicionNomina extends MBasicModel {
3308
3348
  this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
3309
3349
  this.idPeriodoNomina = parseInt(e.id_periodoactual);
3310
3350
  this.idPeriodoRestablecerNomina = parseInt(e.id_perresnom);
3351
+ this.segmentarPersonal = parseInt(e.segper);
3311
3352
  }
3312
3353
  else {
3313
3354
  this.isNew = true;
@@ -3315,6 +3356,9 @@ class MDefinicionNomina extends MBasicModel {
3315
3356
  }
3316
3357
  dataInterface() {
3317
3358
  this.getPeriodoNomina();
3359
+ if (this.segmentarPersonal == 0) {
3360
+ this.segmentarPersonal = 10000;
3361
+ }
3318
3362
  return {
3319
3363
  id_empresa: this.idEmpresa.toString(),
3320
3364
  id_nomina: this.idNomina.toString(),
@@ -3380,6 +3424,7 @@ class MDefinicionNomina extends MBasicModel {
3380
3424
  id_periodoactual: this.idPeriodoNomina.toString(),
3381
3425
  id_perresnom: this.idPeriodoRestablecerNomina.toString(),
3382
3426
  estincidencia: this.estatusIncidencia.toString(),
3427
+ segper: this.segmentarPersonal.toString(),
3383
3428
  periodos: this.periodosNomina.map((function (e) { return e.dataInterface(); })),
3384
3429
  };
3385
3430
  }
@@ -3479,6 +3524,83 @@ class MDefinicionNomina extends MBasicModel {
3479
3524
  fechaFinaPeriodoActual() {
3480
3525
  return this.periodosNomina[this.indice()].fechaHastaperiodo;
3481
3526
  }
3527
+ }
3528
+ class MNominaSimple extends MBasicModel {
3529
+ constructor(e = null) {
3530
+ super();
3531
+ this.idEmpresa = 0;
3532
+ this.idNomina = 0;
3533
+ this.codigoNomina = '';
3534
+ this.denominacioNomina = '';
3535
+ this.idPeriodoActual = 0;
3536
+ this.totalPeriodo = 0;
3537
+ this.estatus = '';
3538
+ this.estatusPeriodo = 0;
3539
+ this.calculada = false;
3540
+ this.prenomina = false;
3541
+ this.idCargo = 0;
3542
+ this.codigoCargo = '';
3543
+ this.denominacionCargo = '';
3544
+ this.nominaRac = 0;
3545
+ this.simbolo = '';
3546
+ this.color = '';
3547
+ this.estatusPersonal = 0;
3548
+ this.denominacionEstatuspersonal = '';
3549
+ this.descripcionPeriodoNomina = '';
3550
+ this.periodoActualNomina = '';
3551
+ this.editable = false;
3552
+ if (e) {
3553
+ this.idEmpresa = parseInt(e.id_empresa);
3554
+ this.idNomina = parseInt(e.id_nomina);
3555
+ this.codigoNomina = e.codnom;
3556
+ this.denominacioNomina = e.dennom;
3557
+ this.idPeriodoActual = +e.id_periodoactual;
3558
+ this.totalPeriodo = parseFloat(e.totper),
3559
+ this.estatusPeriodo = parseInt(e.cerper);
3560
+ this.calculada = e.calculado == '1' ? true : false;
3561
+ this.prenomina = e.prenomina == '1' ? true : false;
3562
+ this.estatus = this.calculada ? 'Calculada' :
3563
+ !this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
3564
+ this.editable = (this.calculada || this.prenomina) ? false : true;
3565
+ this.idCargo = parseInt(e.id_carper);
3566
+ this.codigoCargo = e.codcar;
3567
+ this.denominacionCargo = e.descar;
3568
+ this.nominaRac = parseInt(e.racnom);
3569
+ this.nominaRac == 1 ? this.simbolo = 'check' : this.simbolo = '';
3570
+ this.nominaRac == 1 ? this.color = 'primary' : this.color = '';
3571
+ this.estatusPersonal = parseInt(e.staper);
3572
+ this.estatusPersonal == 0 ? this.denominacionEstatuspersonal = "NO ASIGNADO" :
3573
+ this.estatusPersonal == 1 ? this.denominacionEstatuspersonal = "ACTIVO" :
3574
+ this.estatusPersonal == 2 ? this.denominacionEstatuspersonal = "VACACIONES" :
3575
+ this.estatusPersonal == 3 ? this.denominacionEstatuspersonal = "EGRESADO" :
3576
+ this.denominacionEstatuspersonal = "SUSPENDIDO";
3577
+ this.descripcionPeriodoNomina = e.despernom;
3578
+ this.periodoActualNomina = e.peractnom;
3579
+ }
3580
+ else {
3581
+ this.isNew = false;
3582
+ }
3583
+ }
3584
+ dataInterface() {
3585
+ return {
3586
+ id_empresa: this.idEmpresa.toString(),
3587
+ id_nomina: this.idNomina.toString(),
3588
+ codnom: this.codigoNomina,
3589
+ dennom: this.denominacioNomina,
3590
+ id_periodoactual: this.idPeriodoActual.toString(),
3591
+ totper: this.totalPeriodo.toString(),
3592
+ cerper: this.estatusPeriodo.toString(),
3593
+ prenomina: this.prenomina ? '1' : '0',
3594
+ calculado: this.calculada ? '1' : '0',
3595
+ id_carper: this.idCargo.toString(),
3596
+ descar: this.denominacionCargo,
3597
+ codcar: this.codigoCargo,
3598
+ racnom: this.nominaRac.toString(),
3599
+ staper: this.estatusPersonal.toString(),
3600
+ despernom: this.descripcionPeriodoNomina,
3601
+ peractnom: this.periodoActualNomina,
3602
+ };
3603
+ }
3482
3604
  }
3483
3605
 
3484
3606
  class MAsignacionCargo extends MBasicModel {
@@ -3488,9 +3610,6 @@ class MAsignacionCargo extends MBasicModel {
3488
3610
  this.idAsignacionCargo = 0;
3489
3611
  this.codigoAsignacionCargo = '';
3490
3612
  this.denominacionAsignacionCargo = '';
3491
- this.idOrganigrama = 0;
3492
- this.codigoOrganigrama = '';
3493
- this.denominacionOrganigrama = '';
3494
3613
  this.idEp1 = 0;
3495
3614
  this.idEp2 = 0;
3496
3615
  this.idEp3 = 0;
@@ -3515,14 +3634,15 @@ class MAsignacionCargo extends MBasicModel {
3515
3634
  this.totalCargos = 0;
3516
3635
  this.numeroCargosOcupados = 0;
3517
3636
  this.disponibilidadCargos = 0;
3637
+ this.detallesNominas = [];
3638
+ this.nominaEliminar = [];
3639
+ this.detallesOrganigrama = [];
3640
+ this.organigramaEliminar = [];
3518
3641
  if (e) {
3519
3642
  this.idEmpresa = parseInt(e.id_empresa);
3520
3643
  this.idAsignacionCargo = parseInt(e.id_carper);
3521
3644
  this.codigoAsignacionCargo = e.codcar;
3522
3645
  this.denominacionAsignacionCargo = e.descar;
3523
- this.idOrganigrama = parseInt(e.id_organigrama);
3524
- this.codigoOrganigrama = e.codestorg;
3525
- this.denominacionOrganigrama = e.denestorg;
3526
3646
  this.idEp1 = parseInt(e.id_ep1);
3527
3647
  this.idEp2 = parseInt(e.id_ep2);
3528
3648
  this.idEp3 = parseInt(e.id_ep3);
@@ -3547,6 +3667,12 @@ class MAsignacionCargo extends MBasicModel {
3547
3667
  this.totalCargos = parseInt(e.totcar);
3548
3668
  this.numeroCargosOcupados = parseInt(e.numocucar);
3549
3669
  this.disponibilidadCargos = parseInt(e.disponibilidad);
3670
+ if (e.detalles_nomina) {
3671
+ this.detallesNominas = e.detalles_nomina.map(e => new MCargosNominas(e));
3672
+ }
3673
+ if (e.detalles_organigrama) {
3674
+ this.detallesOrganigrama = e.detalles_organigrama.map(e => new MCargoEstructuraOrganizativa(e));
3675
+ }
3550
3676
  }
3551
3677
  else {
3552
3678
  this.isNew = true;
@@ -3558,41 +3684,110 @@ class MAsignacionCargo extends MBasicModel {
3558
3684
  id_carper: this.idAsignacionCargo.toString(),
3559
3685
  codcar: this.codigoAsignacionCargo,
3560
3686
  descar: this.denominacionAsignacionCargo,
3561
- id_organigrama: this.idOrganigrama.toString(),
3562
- codestorg: this.codigoOrganigrama,
3563
- denestorg: this.denominacionOrganigrama,
3564
3687
  id_ep1: this.idEp1.toString(),
3565
3688
  id_ep2: this.idEp2.toString(),
3566
3689
  id_ep3: this.idEp3.toString(),
3567
3690
  id_ep4: this.idEp4.toString(),
3568
3691
  id_ep5: this.idEp5.toString(),
3569
- codigo_estructura: this.codigoEstructura,
3570
- denominacion_estructura: this.denominacionEstructura,
3571
3692
  clacar: this.claseCargo,
3572
3693
  id_dedicacion: this.idDedicacion.toString(),
3573
- codded: this.codigoDedicacion,
3574
- dended: this.denominacionDedicacion,
3575
3694
  id_tipopersonal: this.idTipoPersonal.toString(),
3576
- codtipper: this.codigoTipoPersonal,
3577
- dentipper: this.denominacionTipoPersonal,
3578
3695
  id_tabulador: this.idTabulador.toString(),
3579
- codtab: this.codigoTipoPersonal,
3580
- destab: this.denominacionTabulador,
3581
3696
  codgra: this.codigoGrado,
3582
3697
  codpas: this.codigoPaso,
3583
- monsalgra: this.salario.toString(),
3584
- moncomgra: this.compensacion.toString(),
3585
3698
  totcar: this.totalCargos.toString(),
3586
3699
  numocucar: this.numeroCargosOcupados.toString(),
3587
- disponibilidad: this.disponibilidadCargos.toString(),
3700
+ detalles_nomina: this.detallesNominas.map(function (e) { return e.dataInterface(); }),
3701
+ detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
3702
+ eliminar_nomina: this.nominaEliminar,
3703
+ eliminar_organigrama: this.organigramaEliminar,
3704
+ };
3705
+ }
3706
+ }
3707
+ class MCargoEstructuraOrganizativa extends MBasicModel {
3708
+ constructor(e = null) {
3709
+ super();
3710
+ this.idEmpresa = 0;
3711
+ this.idCargoPersonal = 0;
3712
+ this.idOrganigrama = 0;
3713
+ this.idDtCargoEstructura = 0;
3714
+ this.idPersonal = 0;
3715
+ this.codigoEstructuraOrganizativa = '';
3716
+ this.denominacionEstructuraOrganizativa = '';
3717
+ this.nivel = 0;
3718
+ if (e) {
3719
+ this.idEmpresa = parseInt(e.id_empresa);
3720
+ this.idCargoPersonal = parseInt(e.id_carper);
3721
+ this.idOrganigrama = parseInt(e.id_organigrama);
3722
+ this.codigoEstructuraOrganizativa = e.codestorg;
3723
+ this.denominacionEstructuraOrganizativa = e.denestorg;
3724
+ this.idPersonal = parseInt(e.id_personal);
3725
+ this.nivel = parseInt(e.nivel);
3726
+ }
3727
+ else {
3728
+ this.isNew = true;
3729
+ }
3730
+ }
3731
+ dataInterface() {
3732
+ return {
3733
+ id_empresa: this.idEmpresa.toString(),
3734
+ id_carper: this.idCargoPersonal.toString(),
3735
+ id_organigrama: this.idOrganigrama.toString(),
3736
+ id_dt: this.idDtCargoEstructura.toString(),
3737
+ id_personal: this.idPersonal.toString(),
3738
+ };
3739
+ }
3740
+ }
3741
+ class MCargosNominas extends MBasicModel {
3742
+ constructor(e = null) {
3743
+ super();
3744
+ this.idEmpresa = 0;
3745
+ this.idNomina = 0;
3746
+ this.idCargo = 0;
3747
+ this.codigoNomina = '';
3748
+ this.denominacionNomina = '';
3749
+ this.estatus = '';
3750
+ this.idDtNomina = 0;
3751
+ this.periodoActualNomina = '001';
3752
+ this.idPeriodoActual = 0;
3753
+ this.nominaRac = 0;
3754
+ this.descripcionPeriodoNomina = '';
3755
+ this.prenomina = false;
3756
+ this.editables = false;
3757
+ this.calculada = false;
3758
+ if (e) {
3759
+ this.idEmpresa = parseInt(e.id_empresa);
3760
+ this.idNomina = parseInt(e.id_nomina);
3761
+ this.idCargo = parseInt(e.id_carper);
3762
+ this.codigoNomina = e.codnom;
3763
+ this.denominacionNomina = e.dennom;
3764
+ this.idDtNomina = parseInt(e.id_dt_carnom);
3765
+ this.periodoActualNomina = e.peractnom;
3766
+ this.calculada = e.calculado == '1' ? true : false;
3767
+ this.prenomina = e.prenomina == '1' ? true : false;
3768
+ this.estatus = this.calculada ? 'Calculada' :
3769
+ !this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
3770
+ this.editables = (this.calculada || this.prenomina) ? false : true;
3771
+ }
3772
+ else {
3773
+ this.isNew = true;
3774
+ }
3775
+ }
3776
+ dataInterface() {
3777
+ return {
3778
+ id_empresa: this.idEmpresa.toString(),
3779
+ id_nomina: this.idNomina.toString(),
3780
+ id_carper: this.idCargo.toString(),
3781
+ id_dt_carnom: this.idDtNomina.toString(),
3588
3782
  };
3589
3783
  }
3590
3784
  }
3591
3785
 
3592
- class MNominaSimple {
3786
+ class MNominaSimple$1 extends MBasicModel {
3593
3787
  constructor(e = null) {
3788
+ super();
3594
3789
  this.idEmpresa = 0;
3595
- this.idNnomina = 0;
3790
+ this.idNomina = 0;
3596
3791
  this.codigoNomina = '';
3597
3792
  this.denominacioNomina = '';
3598
3793
  this.idPeriodoActual = 0;
@@ -3607,9 +3802,14 @@ class MNominaSimple {
3607
3802
  this.nominaRac = 0;
3608
3803
  this.simbolo = '';
3609
3804
  this.color = '';
3805
+ this.estatusPersonal = 0;
3806
+ this.denominacionEstatuspersonal = '';
3807
+ this.descripcionPeriodoNomina = '';
3808
+ this.periodoActualNomina = '';
3809
+ this.editable = false;
3610
3810
  if (e) {
3611
3811
  this.idEmpresa = parseInt(e.id_empresa);
3612
- this.idNnomina = parseInt(e.id_nomina);
3812
+ this.idNomina = parseInt(e.id_nomina);
3613
3813
  this.codigoNomina = e.codnom;
3614
3814
  this.denominacioNomina = e.dennom;
3615
3815
  this.idPeriodoActual = +e.id_periodoactual;
@@ -3619,29 +3819,31 @@ class MNominaSimple {
3619
3819
  this.prenomina = e.prenomina == '1' ? true : false;
3620
3820
  this.estatus = this.calculada ? 'Calculada' :
3621
3821
  !this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
3822
+ this.editable = (this.calculada || this.prenomina) ? false : true;
3622
3823
  this.idCargo = parseInt(e.id_carper);
3623
3824
  this.codigoCargo = e.codcar;
3624
3825
  this.denominacionCargo = e.descar;
3625
3826
  this.nominaRac = parseInt(e.racnom);
3626
3827
  this.nominaRac == 1 ? this.simbolo = 'check' : this.simbolo = '';
3627
3828
  this.nominaRac == 1 ? this.color = 'primary' : this.color = '';
3829
+ this.estatusPersonal = parseInt(e.staper);
3830
+ this.estatusPersonal == 0 ? this.denominacionEstatuspersonal = "NO ASIGNADO" :
3831
+ this.estatusPersonal == 1 ? this.denominacionEstatuspersonal = "ACTIVO" :
3832
+ this.estatusPersonal == 2 ? this.denominacionEstatuspersonal = "VACACIONES" :
3833
+ this.estatusPersonal == 3 ? this.denominacionEstatuspersonal = "EGRESADO" :
3834
+ this.denominacionEstatuspersonal = "SUSPENDIDO";
3835
+ this.descripcionPeriodoNomina = e.despernom;
3836
+ this.periodoActualNomina = e.peractnom;
3837
+ }
3838
+ else {
3839
+ this.isNew = true;
3628
3840
  }
3629
3841
  }
3630
3842
  dataInterface() {
3631
3843
  return {
3632
3844
  id_empresa: this.idEmpresa.toString(),
3633
- id_nomina: this.idNnomina.toString(),
3634
- codnom: this.codigoNomina,
3635
- dennom: this.denominacioNomina,
3636
- id_periodoactual: this.idPeriodoActual.toString(),
3637
- totper: this.totalPeriodo.toString(),
3638
- cerper: this.estatusPeriodo.toString(),
3639
- prenomina: this.prenomina ? '1' : '0',
3640
- calculado: this.calculada ? '1' : '0',
3845
+ id_nomina: this.idNomina.toString(),
3641
3846
  id_carper: this.idCargo.toString(),
3642
- descar: this.denominacionCargo,
3643
- codcar: this.codigoCargo,
3644
- racnom: this.nominaRac.toString(),
3645
3847
  };
3646
3848
  }
3647
3849
  }
@@ -3968,6 +4170,95 @@ class MPersonal extends MBasicModel {
3968
4170
  despai_nac: this.nombrePaisNacimiento,
3969
4171
  };
3970
4172
  }
4173
+ }
4174
+ class MCambioEstatusPersonal extends MBasicModel {
4175
+ constructor(e = null) {
4176
+ super();
4177
+ this.idPersonal = 0;
4178
+ this.codigoPersonal = '';
4179
+ this.estatusActual = '2';
4180
+ this.estatusNuevo = '2';
4181
+ this.fechaEgreso = '';
4182
+ this.causaEgreso = '';
4183
+ this.preaviso = '1';
4184
+ this.idCausales = 0;
4185
+ this.observacion = '';
4186
+ this.fechaReingreso = '1900-01-01';
4187
+ if (e) {
4188
+ this.idPersonal = e.idPersonal;
4189
+ this.codigoPersonal = e.codigoPersonal;
4190
+ this.estatusActual = e.estatusActual;
4191
+ this.estatusNuevo = e.estatusNuevo;
4192
+ this.fechaEgreso = e.fechaEgreso;
4193
+ this.causaEgreso = e.causaEgreso;
4194
+ this.preaviso = e.preaviso;
4195
+ this.idCausales = e.idCausales;
4196
+ this.observacion = e.observacion;
4197
+ this.fechaReingreso = e.fechaReingreso;
4198
+ }
4199
+ }
4200
+ dataInterface() {
4201
+ return {
4202
+ idPersonal: this.idPersonal,
4203
+ codigoPersonal: this.codigoPersonal,
4204
+ estatusActual: this.estatusActual,
4205
+ estatusNuevo: this.estatusNuevo,
4206
+ fechaEgreso: this.fechaEgreso,
4207
+ causaEgreso: this.causaEgreso,
4208
+ preaviso: this.preaviso,
4209
+ idCausales: this.idCausales,
4210
+ observacion: this.observacion,
4211
+ fechaReingreso: this.fechaReingreso,
4212
+ };
4213
+ }
4214
+ }
4215
+ class MPersonalCuentaBanco extends MBasicModel {
4216
+ constructor(e) {
4217
+ super();
4218
+ this.idEmpresa = 0;
4219
+ this.idPersonal = 0;
4220
+ this.idCuentaBancoPersonal = -1;
4221
+ this.codigoCuentaBancoPersonal = '';
4222
+ this.denominacionCuentaBancoPersonal = '';
4223
+ this.idBanco = 0;
4224
+ this.idTipoCuentaBanco = 0;
4225
+ this.cuentaBancoPersonal = '';
4226
+ this.estatusCuentaBanco = '1';
4227
+ this.tipoCuentaPrincipal = '0';
4228
+ this.codigoBanco = '';
4229
+ this.cuentaReducida = '';
4230
+ if (e) {
4231
+ this.idEmpresa = parseInt(e.id_empresa);
4232
+ this.idPersonal = parseInt(e.id_personal);
4233
+ this.idCuentaBancoPersonal = parseInt(e.id_ctabanper);
4234
+ this.codigoCuentaBancoPersonal = e.codctabanper;
4235
+ this.denominacionCuentaBancoPersonal = e.denctabanper;
4236
+ this.idBanco = parseInt(e.id_banco);
4237
+ this.idTipoCuentaBanco = parseInt(e.id_tipocta);
4238
+ this.cuentaBancoPersonal = e.ctabanper;
4239
+ this.estatusCuentaBanco = e.estctabco;
4240
+ this.tipoCuentaPrincipal = e.tipctapri;
4241
+ this.codigoBanco = this.cuentaBancoPersonal.substring(0, 4);
4242
+ this.cuentaReducida = this.cuentaBancoPersonal.slice(4);
4243
+ }
4244
+ else {
4245
+ this.isNew = true;
4246
+ }
4247
+ }
4248
+ dataInterface() {
4249
+ return {
4250
+ id_empresa: this.idEmpresa.toString(),
4251
+ id_personal: this.idPersonal.toString(),
4252
+ id_ctabanper: this.idCuentaBancoPersonal.toString(),
4253
+ codctabanper: this.codigoCuentaBancoPersonal,
4254
+ denctabanper: this.denominacionCuentaBancoPersonal,
4255
+ id_banco: this.idBanco.toString(),
4256
+ id_tipocta: this.idTipoCuentaBanco.toString(),
4257
+ ctabanper: this.cuentaBancoPersonal,
4258
+ estctabco: this.estatusCuentaBanco,
4259
+ tipctapri: this.tipoCuentaPrincipal,
4260
+ };
4261
+ }
3971
4262
  }
3972
4263
 
3973
4264
  class MDetaContable extends MBasicModel {
@@ -5884,7 +6175,7 @@ class SigespService {
5884
6175
  getPersonalNominaResumida(idPersonal, tipo) {
5885
6176
  return this.http.get(`${this.URL}/dao/sno/personal_dao.php?idPersonal=${idPersonal}&tipo=${tipo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
5886
6177
  if (res.success) {
5887
- res.data = res.data.map(e => new MNominaSimple(e));
6178
+ res.data = res.data.map(e => new MNominaSimple$1(e));
5888
6179
  }
5889
6180
  return res;
5890
6181
  }));
@@ -5919,7 +6210,6 @@ class SigespService {
5919
6210
  return this.http.post(`${this.URL}/dao/sss/log_dao.php`, body, {
5920
6211
  headers: this.getHttpHeaders()
5921
6212
  }).pipe(map((res) => {
5922
- console.log("Log : ", res);
5923
6213
  return res;
5924
6214
  }));
5925
6215
  }
@@ -6543,6 +6833,8 @@ class MUserPermit extends MBasicModel {
6543
6833
  this.userData.name = permit.nomusu;
6544
6834
  this.userData.lastname = permit.apeusu;
6545
6835
  this.userData.username = permit.codusu;
6836
+ this.descripcion = permit.descripcion;
6837
+ this.id_record = parseInt(permit.id_record);
6546
6838
  }
6547
6839
  else {
6548
6840
  this.isNew = true;
@@ -6553,6 +6845,8 @@ class MUserPermit extends MBasicModel {
6553
6845
  activo: this.active ? '1' : '0',
6554
6846
  codintper: this.internalPermit,
6555
6847
  codsis: this.systemCode,
6848
+ descripcion: this.descripcion,
6849
+ id_record: this.id_record.toString(),
6556
6850
  id_permiso: this.id.toString(),
6557
6851
  id_usuario: this.userData.id ? this.userData.id.toString() : null,
6558
6852
  apeusu: this.userData.lastname ? this.userData.lastname : null,
@@ -6744,20 +7038,99 @@ class MArchivoTxtCampo extends MBasicModel {
6744
7038
  }
6745
7039
  }
6746
7040
 
6747
- class MAspectoEvaluacion extends MBasicModel {
6748
- constructor(e) {
7041
+ class MArchivosTxt extends MBasicModel {
7042
+ constructor(e = null) {
6749
7043
  super();
6750
7044
  this.idEmpresa = 0;
6751
- this.idTipoEvaluacion = 0;
6752
- this.idAspectoEvaluacion = 0;
6753
- this.codigoTipoEvaluacion = '';
6754
- this.denominacionTipoEvaluacion = '';
6755
- this.codigoAspecto = '';
6756
- this.denominacionAspecto = '';
7045
+ this.idArchivoTxt = 0;
7046
+ this.codigoArchivo = '';
7047
+ this.denominacionArchivo = '';
7048
+ this.tipoArchivo = 'I';
7049
+ this.acumularMonto = false;
7050
+ this.campos = [];
7051
+ if (e) {
7052
+ e.acumon == '1' ? this.acumularMonto = true : this.acumularMonto = false;
7053
+ this.idEmpresa = parseInt(e.id_empresa);
7054
+ this.idArchivoTxt = parseInt(e.id_archivotxt);
7055
+ this.codigoArchivo = e.codarch;
7056
+ this.denominacionArchivo = e.denarch;
7057
+ this.tipoArchivo = e.tiparch;
7058
+ this.campos = e.campos.map(e => new MArchivoTxtCampo(e));
7059
+ }
7060
+ else {
7061
+ this.isNew = true;
7062
+ }
7063
+ }
7064
+ dataInterface() {
7065
+ return {
7066
+ id_empresa: this.idEmpresa.toString(),
7067
+ id_archivotxt: this.idArchivoTxt.toString(),
7068
+ codarch: this.codigoArchivo,
7069
+ denarch: this.denominacionArchivo,
7070
+ tiparch: this.tipoArchivo,
7071
+ acumon: this.acumularMonto ? '1' : '0',
7072
+ campos: this.campos.map(function (e) { return e.dataInterface(); }),
7073
+ };
7074
+ }
7075
+ }
7076
+
7077
+ class MAspectoEvaluacion extends MBasicModel {
7078
+ constructor(e) {
7079
+ super();
7080
+ this.idEmpresa = 0;
7081
+ this.idTipoEvaluacion = 0;
7082
+ this.idAspectoEvaluacion = 0;
7083
+ this.codigoTipoEvaluacion = '';
7084
+ this.denominacionTipoEvaluacion = '';
7085
+ this.codigoAspecto = '';
7086
+ this.denominacionAspecto = '';
7087
+ if (e) {
7088
+ this.idEmpresa = parseInt(e.id_empresa);
7089
+ this.idTipoEvaluacion = parseInt(e.id_tipoeval);
7090
+ this.idAspectoEvaluacion = parseInt(e.id_aspecto);
7091
+ this.codigoTipoEvaluacion = e.codtipeval;
7092
+ this.denominacionTipoEvaluacion = e.dentipeval;
7093
+ this.codigoAspecto = e.codasp;
7094
+ this.denominacionAspecto = e.denasp;
7095
+ }
7096
+ else {
7097
+ this.isNew = true;
7098
+ }
7099
+ }
7100
+ dataInterface() {
7101
+ return {
7102
+ id_empresa: this.idEmpresa.toString(),
7103
+ id_tipoeval: this.idTipoEvaluacion.toString(),
7104
+ id_aspecto: this.idAspectoEvaluacion.toString(),
7105
+ codasp: this.codigoAspecto,
7106
+ denasp: this.denominacionAspecto,
7107
+ codtipeval: this.codigoTipoEvaluacion,
7108
+ dentipeval: this.denominacionTipoEvaluacion,
7109
+ };
7110
+ }
7111
+ }
7112
+ class MItemsEvalucion extends MBasicModel {
7113
+ constructor(e = null) {
7114
+ super();
7115
+ this.idEmpresa = 0;
7116
+ this.idTipoEvaluacion = 0;
7117
+ this.idAspectoEvaluacion = 0;
7118
+ this.idItems = 0;
7119
+ this.codigoItems = '';
7120
+ this.denominacionItems = '';
7121
+ this.valorMaximo = 0;
7122
+ this.codigoTipoEvaluacion = '';
7123
+ this.denominacionTipoEvaluacion = '';
7124
+ this.codigoAspecto = '';
7125
+ this.denominacionAspecto = '';
6757
7126
  if (e) {
6758
7127
  this.idEmpresa = parseInt(e.id_empresa);
6759
7128
  this.idTipoEvaluacion = parseInt(e.id_tipoeval);
6760
7129
  this.idAspectoEvaluacion = parseInt(e.id_aspecto);
7130
+ this.idItems = parseInt(e.id_item);
7131
+ this.codigoItems = e.codite;
7132
+ this.denominacionItems = e.denite;
7133
+ this.valorMaximo = e.valormax;
6761
7134
  this.codigoTipoEvaluacion = e.codtipeval;
6762
7135
  this.denominacionTipoEvaluacion = e.dentipeval;
6763
7136
  this.codigoAspecto = e.codasp;
@@ -6772,6 +7145,10 @@ class MAspectoEvaluacion extends MBasicModel {
6772
7145
  id_empresa: this.idEmpresa.toString(),
6773
7146
  id_tipoeval: this.idTipoEvaluacion.toString(),
6774
7147
  id_aspecto: this.idAspectoEvaluacion.toString(),
7148
+ id_item: this.idItems.toString(),
7149
+ codite: this.codigoItems,
7150
+ denite: this.denominacionItems,
7151
+ valormax: this.valorMaximo,
6775
7152
  codasp: this.codigoAspecto,
6776
7153
  denasp: this.denominacionAspecto,
6777
7154
  codtipeval: this.codigoTipoEvaluacion,
@@ -6806,6 +7183,8 @@ class MBeneficiario extends MBasicModel {
6806
7183
  this.nexoFamiliar = '';
6807
7184
  this.nombreBanco = '';
6808
7185
  this.denominacionTipoCuenta = '';
7186
+ this.medidaActiva = false;
7187
+ this.tribunal = '';
6809
7188
  if (e) {
6810
7189
  this.idEmpresa = parseInt(e.id_empresa);
6811
7190
  this.idPersonal = parseInt(e.id_personal);
@@ -6820,6 +7199,8 @@ class MBeneficiario extends MBasicModel {
6820
7199
  this.numeroExpedienteBeneficiario = e.numexpben;
6821
7200
  this.porcentajePagoBeneficiario = parseFloat(e.porpagben);
6822
7201
  this.montoPagoBeneficiario = parseFloat(e.monpagben);
7202
+ this.medidaActiva = e.medact == '1' ? true : false;
7203
+ this.tribunal = e.tribunal;
6823
7204
  this.nombreCheque = e.nompro;
6824
7205
  this.cedulaAutorizado = e.cedpro;
6825
7206
  this.nombreFamiliar = e.nomfam;
@@ -6850,16 +7231,8 @@ class MBeneficiario extends MBasicModel {
6850
7231
  ctabanben: this.cuentaBancoBeneficiario,
6851
7232
  forpagben: this.formaPagoBeneficiario,
6852
7233
  numexpben: this.numeroExpedienteBeneficiario,
6853
- cedpro: this.cedulaAutorizado,
6854
- nompro: this.nombreCheque,
6855
- nomfam: this.nombreFamiliar,
6856
- apefam: this.apellidoFamiliar,
6857
- cedfam: this.cedulaFamiliar,
6858
- dirfam: this.direccionFamiliar,
6859
- telfam: this.telefonoFamiliar,
6860
- nexfam: this.nexoFamiliar,
6861
- nomban: this.nombreBanco,
6862
- nomtipcta: this.denominacionTipoCuenta
7234
+ medact: this.medidaActiva ? '1' : '0',
7235
+ tribunal: this.tribunal,
6863
7236
  };
6864
7237
  }
6865
7238
  }
@@ -6867,6 +7240,7 @@ class MBeneficiario extends MBasicModel {
6867
7240
  class MCargosPersonal extends MBasicModel {
6868
7241
  constructor(p = null) {
6869
7242
  super();
7243
+ this.idEmpresa = 0;
6870
7244
  this.idPersonal = 0;
6871
7245
  this.idCargo = 0;
6872
7246
  this.codigoCargo = '';
@@ -6874,7 +7248,6 @@ class MCargosPersonal extends MBasicModel {
6874
7248
  this.codigoDedicacion = '';
6875
7249
  this.denominacionDedicacion = '';
6876
7250
  this.denominacionTipoPersonalSno = '';
6877
- this.idOrganigrama = 0;
6878
7251
  this.idUbicacionFisica = 0;
6879
7252
  this.denominacionUbicacionFisica = '';
6880
7253
  this.codigoUbicacionFisica = '';
@@ -6886,17 +7259,15 @@ class MCargosPersonal extends MBasicModel {
6886
7259
  this.codigoPaso = '0';
6887
7260
  this.codigoTabulador = '';
6888
7261
  this.denominacionTabulador = '';
6889
- this.codigoOrganigrama = '';
6890
- this.denominacionOrganigrama = '';
6891
7262
  this.idPersonalCargo = 0;
6892
7263
  this.montoSalarioGrado = 0;
6893
7264
  this.montoCompensacionGrado = 0;
6894
7265
  this.estatusMPPPE = false;
7266
+ this.detallesOrganigrama = [];
7267
+ this.organigramaEliminar = [];
7268
+ this.detallesNomina = [];
6895
7269
  if (p) {
6896
7270
  this.idPersonal = parseInt(p.id_personal);
6897
- this.idOrganigrama = parseInt(p.id_organigrama);
6898
- this.codigoOrganigrama = p.codestorg;
6899
- this.denominacionOrganigrama = p.denestorg;
6900
7271
  this.idCargo = +p.id_carper;
6901
7272
  this.codigoCargo = p.codcar;
6902
7273
  this.descripcionCargo = p.descar;
@@ -6918,6 +7289,12 @@ class MCargosPersonal extends MBasicModel {
6918
7289
  this.montoSalarioGrado = parseFloat(p.moncomgra);
6919
7290
  this.montoCompensacionGrado = parseFloat(p.moncomgra);
6920
7291
  this.estatusMPPPE = p.estmpppe == '1' ? true : false;
7292
+ if (p.detalles_organigrama) {
7293
+ this.detallesOrganigrama = p.detalles_organigrama.map(e => new MCargoEstructuraOrganizativa(e));
7294
+ }
7295
+ if (p.detalles_nomina) {
7296
+ this.detallesNomina = p.detalles_nomina.map(e => new MNominaSimple(e));
7297
+ }
6921
7298
  }
6922
7299
  else {
6923
7300
  this.isNew = true;
@@ -6925,31 +7302,16 @@ class MCargosPersonal extends MBasicModel {
6925
7302
  }
6926
7303
  dataInterface() {
6927
7304
  return {
6928
- id_organigrama: this.idOrganigrama.toString(),
6929
- codestorg: this.codigoOrganigrama,
6930
- denestorg: this.denominacionOrganigrama,
7305
+ id_empresa: this.idEmpresa.toString(),
7306
+ id_personal: this.idPersonal.toString(),
6931
7307
  id_carper: this.idCargo.toString(),
6932
- descar: this.descripcionCargo.toString(),
6933
- codcar: this.codigoCargo,
6934
- codded: this.codigoDedicacion,
6935
- dended: this.denominacionDedicacion,
6936
- dentipper: this.denominacionTipoPersonalSno,
6937
- id_ubifis: this.idUbicacionFisica.toString(),
6938
- codubifis: this.codigoUbicacionFisica,
6939
- denubifis: this.denominacionUbicacionFisica,
6940
- codtipper: this.codigoTipoPersonalSno,
6941
- id_dedicacion: this.idDedicacion.toString(),
6942
- id_tipopersonal: this.idTipoPersonalSno.toString(),
6943
7308
  id_tabulador: this.idTabulador.toString(),
6944
7309
  codgra: this.codigoGrado,
6945
7310
  codpas: this.codigoPaso,
6946
- codtab: this.codigoTabulador,
6947
- destab: this.denominacionTabulador,
7311
+ id_ubifis: this.idUbicacionFisica.toString(),
6948
7312
  id_personalcargo: this.idPersonalCargo.toString(),
6949
- id_personal: this.idPersonal.toString(),
6950
- moncomgra: this.montoCompensacionGrado.toString(),
6951
- monsalgra: this.montoSalarioGrado.toString(),
6952
- estmpppe: this.estatusMPPPE ? '1' : '0',
7313
+ detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
7314
+ eliminar_organigrama: this.organigramaEliminar,
6953
7315
  };
6954
7316
  }
6955
7317
  }
@@ -7217,6 +7579,8 @@ class MConceptosNomina extends MBasicModel {
7217
7579
  this.formulaReducida = '';
7218
7580
  this.nombreSigno = '';
7219
7581
  this.orden = 0;
7582
+ this.evaluarEnPrenomina = 0;
7583
+ this.antiguedadComplementaria = 0;
7220
7584
  if (e) {
7221
7585
  this.idEmpresa = +e.id_empresa;
7222
7586
  this.idNomina = +e.id_nomina;
@@ -7285,6 +7649,8 @@ class MConceptosNomina extends MBasicModel {
7285
7649
  this.formulaReducida = e.forcon.substr(0, 40);
7286
7650
  }
7287
7651
  this.nombreSigno = this.denominacionSigno(this.signoConcepto);
7652
+ this.evaluarEnPrenomina = +e.evaprenom;
7653
+ this.antiguedadComplementaria = +e.antigcomp;
7288
7654
  }
7289
7655
  else {
7290
7656
  this.isNew = true;
@@ -7352,6 +7718,8 @@ class MConceptosNomina extends MBasicModel {
7352
7718
  regincidencia: this.registroIncidencia,
7353
7719
  forincidencia: this.formulaIncidencia,
7354
7720
  orden: this.orden.toString(),
7721
+ evaprenom: this.evaluarEnPrenomina.toString(),
7722
+ antigcomp: this.antiguedadComplementaria.toString(),
7355
7723
  };
7356
7724
  }
7357
7725
  denominacionSigno(sig) {
@@ -7585,8 +7953,9 @@ class MConstantePersonalNomina extends MBasicModel {
7585
7953
  }
7586
7954
  }
7587
7955
 
7588
- class MRango {
7956
+ class MRango extends MBasicModel {
7589
7957
  constructor(e = null) {
7958
+ super();
7590
7959
  this.idEmpresa = 0;
7591
7960
  this.idComponente = 0;
7592
7961
  this.IdRango = 0;
@@ -7605,6 +7974,9 @@ class MRango {
7605
7974
  this.nombreAbreviatura = e.nomabr;
7606
7975
  this.codigoCategoriaRango = e.codcatran;
7607
7976
  }
7977
+ else {
7978
+ this.isNew = true;
7979
+ }
7608
7980
  }
7609
7981
  dataInterface() {
7610
7982
  return {
@@ -7658,66 +8030,298 @@ class MConcursante extends MBasicModel {
7658
8030
  super();
7659
8031
  this.idEmpresa = 0;
7660
8032
  this.idConcurso = 0;
8033
+ this.codigoConcurso = '';
7661
8034
  this.idConcursante = 0;
7662
8035
  this.cedula = '';
7663
8036
  this.idProfesion = 0;
7664
- this.fechaRegistro = '';
7665
- this.nombre = '';
7666
- this.apellido = '';
8037
+ this.profesion = '';
8038
+ this.nombreProfesion = '';
8039
+ this.fechaInscripcion = '';
8040
+ this.nombres = '';
8041
+ this.apellidos = '';
7667
8042
  this.direccion = '';
7668
8043
  this.fechaNacimiento = '';
7669
8044
  this.estadoCivil = '';
7670
8045
  this.codigoPais = '';
8046
+ this.nombrePais = '';
7671
8047
  this.codigoEstado = '';
8048
+ this.nombreEstado = '';
7672
8049
  this.nacionalidad = '';
7673
8050
  this.telefono = '';
7674
8051
  this.celular = '';
7675
8052
  this.correo = '';
7676
8053
  this.genero = '';
7677
8054
  this.nivelAcademico = 0;
8055
+ this.estatusRequisitos = 1;
7678
8056
  if (e) {
7679
8057
  this.idEmpresa = parseInt(e.id_empresa);
7680
- this.idConcursante = parseInt(e.id_concurso);
8058
+ this.idConcurso = parseInt(e.id_concurso);
8059
+ this.codigoConcurso = e.codcon;
7681
8060
  this.idConcursante = parseInt(e.id_concursante);
7682
8061
  this.cedula = e.cedper;
7683
8062
  this.idProfesion = parseInt(e.id_profesion);
7684
- this.fechaRegistro = e.fecreg;
7685
- this.nombre = e.nomper;
7686
- this.apellido = e.apeper;
8063
+ this.profesion = e.profesion;
8064
+ this.nombreProfesion = e.nombre_profesion;
8065
+ this.fechaInscripcion = e.fecreg;
8066
+ this.nombres = e.nomper;
8067
+ this.apellidos = e.apeper;
7687
8068
  this.direccion = e.dirper;
7688
8069
  this.fechaNacimiento = e.fecnacper;
7689
8070
  this.estadoCivil = e.estcivper;
7690
8071
  this.codigoPais = e.codpai;
8072
+ this.nombrePais = e.nombre_pais;
7691
8073
  this.codigoEstado = e.codest;
8074
+ this.nombreEstado = e.nombre_estado;
7692
8075
  this.nacionalidad = e.nacper;
7693
8076
  this.telefono = e.telhabper;
7694
8077
  this.celular = e.telmovper;
7695
8078
  this.correo = e.emaper;
7696
8079
  this.genero = e.sexper;
7697
8080
  this.nivelAcademico = parseInt(e.nivacaper);
8081
+ this.estatusRequisitos = parseInt(e.estconper);
7698
8082
  }
7699
8083
  }
7700
8084
  dataInterface() {
7701
8085
  return {
7702
8086
  id_empresa: this.idEmpresa.toString(),
7703
8087
  id_concurso: this.idConcurso.toString(),
7704
- id_concursante: this.idConcurso.toString(),
8088
+ codcon: this.codigoConcurso,
8089
+ id_concursante: this.idConcursante.toString(),
7705
8090
  cedper: this.cedula,
7706
8091
  id_profesion: this.idProfesion.toString(),
7707
- fecreg: this.fechaRegistro,
7708
- nomper: this.nombre,
7709
- apeper: this.apellido,
8092
+ profesion: this.profesion,
8093
+ nombre_profesion: this.nombreProfesion,
8094
+ fecreg: this.fechaInscripcion,
8095
+ nomper: this.nombres,
8096
+ apeper: this.apellidos,
7710
8097
  dirper: this.direccion,
7711
8098
  fecnacper: this.fechaNacimiento,
7712
8099
  estcivper: this.estadoCivil,
7713
8100
  codpai: this.codigoPais,
8101
+ nombre_pais: this.nombrePais,
7714
8102
  codest: this.codigoEstado,
8103
+ nombre_estado: this.nombreEstado,
7715
8104
  nacper: this.nacionalidad,
7716
8105
  telhabper: this.telefono,
7717
8106
  telmovper: this.celular,
7718
8107
  emaper: this.correo,
7719
8108
  sexper: this.genero,
7720
- nivacaper: this.nivelAcademico.toString()
8109
+ nivacaper: this.nivelAcademico.toString(),
8110
+ estconper: this.estatusRequisitos.toString()
8111
+ };
8112
+ }
8113
+ }
8114
+ class MTrabajosConcursantes extends MBasicModel {
8115
+ constructor(e) {
8116
+ super();
8117
+ this.idEmpresa = 0;
8118
+ this.idConcurso = 0;
8119
+ this.idConcursante = 0;
8120
+ this.idTrabajo = 0;
8121
+ this.codigo = '';
8122
+ this.empresaTrabajoAnterior = '';
8123
+ this.cargoTrabajoAnterior = '';
8124
+ this.fechaIngreso = '';
8125
+ this.fechaRetiro = '';
8126
+ if (e) {
8127
+ this.idEmpresa = parseInt(e.id_empresa);
8128
+ this.idConcurso = parseInt(e.id_concurso);
8129
+ this.idConcursante = parseInt(e.id_concursante);
8130
+ this.idTrabajo = parseInt(e.id_trabajocon);
8131
+ this.codigo = e.codtraper;
8132
+ this.empresaTrabajoAnterior = e.emptraper;
8133
+ this.cargoTrabajoAnterior = e.cartraant;
8134
+ this.fechaIngreso = e.fecingtraant;
8135
+ this.fechaRetiro = e.fecrettraant;
8136
+ }
8137
+ else {
8138
+ this.isNew = true;
8139
+ }
8140
+ }
8141
+ dataInterface() {
8142
+ return {
8143
+ id_empresa: this.idEmpresa.toString(),
8144
+ id_concurso: this.idConcurso.toString(),
8145
+ id_concursante: this.idConcursante.toString(),
8146
+ id_trabajocon: this.idTrabajo.toString(),
8147
+ codtraper: this.codigo,
8148
+ emptraper: this.empresaTrabajoAnterior,
8149
+ cartraant: this.cargoTrabajoAnterior,
8150
+ fecingtraant: this.fechaIngreso,
8151
+ fecrettraant: this.fechaRetiro
8152
+ };
8153
+ }
8154
+ }
8155
+ class MEstudiosConcursantes extends MBasicModel {
8156
+ constructor(e = null) {
8157
+ super();
8158
+ this.idEmpresa = 0;
8159
+ this.idConcurso = 0;
8160
+ this.idConcursante = 0;
8161
+ this.idEstudio = 0;
8162
+ this.codigoEstudio = '';
8163
+ this.institutoEstudio = '';
8164
+ this.descripcionEstudio = '';
8165
+ this.fechaInicioEstudio = '';
8166
+ this.fechaFinEstudio = '';
8167
+ this.tituloObtenido = 0;
8168
+ this.yearAprobados = 0;
8169
+ this.horasEstudiosRealizadas = 0;
8170
+ if (e) {
8171
+ this.idEmpresa = parseInt(e.id_empresa);
8172
+ this.idConcurso = parseInt(e.id_concurso);
8173
+ this.idConcursante = parseInt(e.id_concursante);
8174
+ this.idEstudio = parseInt(e.id_estudiocon);
8175
+ this.codigoEstudio = e.codestrea;
8176
+ this.institutoEstudio = e.insestper;
8177
+ this.descripcionEstudio = e.desestper;
8178
+ this.fechaInicioEstudio = e.fecinireaest;
8179
+ this.fechaFinEstudio = e.fecfinestrea;
8180
+ this.tituloObtenido = parseInt(e.titestper);
8181
+ this.yearAprobados = parseInt(e.anoaprestper);
8182
+ this.horasEstudiosRealizadas = parseInt(e.horestrea);
8183
+ }
8184
+ else {
8185
+ this.isNew = true;
8186
+ }
8187
+ }
8188
+ dataInterface() {
8189
+ return {
8190
+ id_empresa: this.idEmpresa.toString(),
8191
+ id_concurso: this.idConcurso.toString(),
8192
+ id_concursante: this.idConcursante.toString(),
8193
+ id_estudiocon: this.idEstudio.toString(),
8194
+ codestrea: this.codigoEstudio,
8195
+ insestper: this.institutoEstudio,
8196
+ desestper: this.descripcionEstudio,
8197
+ fecinireaest: this.fechaInicioEstudio,
8198
+ fecfinestrea: this.fechaFinEstudio,
8199
+ titestper: this.tituloObtenido.toString(),
8200
+ anoaprestper: this.yearAprobados.toString(),
8201
+ horestrea: this.horasEstudiosRealizadas.toString(),
8202
+ };
8203
+ }
8204
+ }
8205
+ class MExperienciaLaboral extends MBasicModel {
8206
+ constructor(e = null) {
8207
+ super();
8208
+ this.idEmpresa = 0;
8209
+ this.idConcurso = 0;
8210
+ this.idConcursante = 0;
8211
+ this.idTrabajoConcursante = 0;
8212
+ this.codigoTrabajo = '';
8213
+ this.empresa = '';
8214
+ this.cargo = '';
8215
+ this.fechaIngreso = '';
8216
+ this.fechaRetiro = '';
8217
+ if (e) {
8218
+ this.idEmpresa = parseInt(e.id_empresa);
8219
+ this.idConcursante = parseInt(e.id_concurso);
8220
+ this.idConcursante = parseInt(e.id_concursante);
8221
+ this.idTrabajoConcursante = parseInt(e.id_trabajocon);
8222
+ this.codigoTrabajo = e.codtra;
8223
+ this.empresa = e.emptraper;
8224
+ this.cargo = e.cartraant;
8225
+ this.fechaIngreso = e.fecingtraant;
8226
+ this.fechaRetiro = e.fecrettraant;
8227
+ }
8228
+ else {
8229
+ this.isNew = true;
8230
+ }
8231
+ }
8232
+ dataInterface() {
8233
+ return {
8234
+ id_empresa: this.idEmpresa.toString(),
8235
+ id_concurso: this.idConcurso.toString(),
8236
+ id_concursante: this.idConcursante.toString(),
8237
+ id_trabajocon: this.idTrabajoConcursante.toString(),
8238
+ codtra: this.codigoTrabajo,
8239
+ emptraper: this.empresa,
8240
+ cartraant: this.cargo,
8241
+ fecingtraant: this.fechaIngreso,
8242
+ fecrettraant: this.fechaRetiro
8243
+ };
8244
+ }
8245
+ }
8246
+ class MFamiliaConcursante extends MBasicModel {
8247
+ constructor(e = null) {
8248
+ super();
8249
+ this.idEmpresa = 0;
8250
+ this.idConcurso = 0;
8251
+ this.idConcursante = 0;
8252
+ this.idFamiliar = 0;
8253
+ this.codigo = '';
8254
+ this.cedula = '';
8255
+ this.nombre = '';
8256
+ this.apellido = '';
8257
+ this.sexo = '';
8258
+ this.nexo = '';
8259
+ this.fecha = '';
8260
+ if (e) {
8261
+ this.idEmpresa = parseInt(e.id_empresa);
8262
+ this.idConcurso = parseInt(e.id_concurso);
8263
+ this.idConcursante = parseInt(e.id_concursante);
8264
+ this.idFamiliar = parseInt(e.id_familiacon);
8265
+ this.codigo = e.codfam;
8266
+ this.cedula = e.cedfam;
8267
+ this.nombre = e.nomfam;
8268
+ this.apellido = e.apefam;
8269
+ this.sexo = e.sexfam;
8270
+ this.nexo = e.nexfam;
8271
+ this.fecha = e.fecnacfam;
8272
+ }
8273
+ else {
8274
+ this.isNew = true;
8275
+ }
8276
+ }
8277
+ dataInterface() {
8278
+ return {
8279
+ id_empresa: this.idEmpresa.toString(),
8280
+ id_concurso: this.idConcurso.toString(),
8281
+ id_concursante: this.idConcursante.toString(),
8282
+ id_familiacon: this.idFamiliar.toString(),
8283
+ codfam: this.codigo,
8284
+ cedfam: this.cedula,
8285
+ nomfam: this.nombre,
8286
+ apefam: this.apellido,
8287
+ sexfam: this.sexo,
8288
+ nexfam: this.nexo,
8289
+ fecnacfam: this.fecha,
8290
+ };
8291
+ }
8292
+ }
8293
+ class MFormacionInformal extends MBasicModel {
8294
+ constructor(e = null) {
8295
+ super();
8296
+ this.idEmpresa = 0;
8297
+ this.idConcurso = 0;
8298
+ this.idConcursante = 0;
8299
+ this.idCurso = 0;
8300
+ this.codigoCurso = '';
8301
+ this.descripcionCurso = '';
8302
+ this.horasCurso = 0;
8303
+ if (e) {
8304
+ this.idEmpresa = parseInt(e.id_empresa);
8305
+ this.idConcursante = parseInt(e.id_concurso);
8306
+ this.idConcursante = parseInt(e.id_concursante);
8307
+ this.idCurso = parseInt(e.id_curso);
8308
+ this.codigoCurso = e.codcur;
8309
+ this.descripcionCurso = e.desestrea;
8310
+ this.horasCurso = parseInt(e.horestrea);
8311
+ }
8312
+ else {
8313
+ this.isNew = true;
8314
+ }
8315
+ }
8316
+ dataInterface() {
8317
+ return {
8318
+ id_empresa: this.idEmpresa.toString(),
8319
+ id_concurso: this.idConcurso.toString(),
8320
+ id_concursante: this.idConcurso.toString(),
8321
+ id_curso: this.idCurso.toString(),
8322
+ codcur: this.codigoCurso,
8323
+ desestrea: this.descripcionCurso,
8324
+ horestrea: this.horasCurso.toString()
7721
8325
  };
7722
8326
  }
7723
8327
  }
@@ -7810,16 +8414,191 @@ class MConcurso extends MBasicModel {
7810
8414
  eliminar_detalles: this.eliminarDetalles,
7811
8415
  };
7812
8416
  }
7813
- }
7814
-
7815
- class MTipoPersonal extends MBasicModel {
7816
- constructor(e) {
8417
+ }
8418
+ class MPrevioEvaluacion extends MBasicModel {
8419
+ constructor(e = null) {
7817
8420
  super();
7818
8421
  this.idEmpresa = 0;
7819
- this.idDedicacion = 0;
7820
- this.idTipoPersonal = 0;
7821
- this.idDtTipoPersonal = 0;
7822
- this.codigoTipoPersonal = '';
8422
+ this.idPrevio = 0;
8423
+ this.proceso = '';
8424
+ this.idConcurso = 0;
8425
+ this.codigoConcurso = '';
8426
+ this.nombreConcurso = '';
8427
+ this.idConcursante = 0;
8428
+ this.codigoConcursante = '';
8429
+ this.nombreConcursante = '';
8430
+ this.idTipoEvaluacion = 0;
8431
+ this.codigoTipoEvaluacion = '';
8432
+ this.nombreTipoEvaluacion = '';
8433
+ this.fechaRegistro = '';
8434
+ this.valorMinimoRequerido = 0;
8435
+ this.usuarioRegistro = '';
8436
+ this.horaRegistro = '';
8437
+ this.estatusRegistro = 0;
8438
+ this.detallesRegistro = [];
8439
+ if (e) {
8440
+ this.idEmpresa = parseInt(e.id_empresa);
8441
+ this.idPrevio = parseInt(e.id_previo);
8442
+ this.proceso = e.proceso;
8443
+ this.idConcurso = parseInt(e.id_concurso);
8444
+ this.codigoConcurso = e.codcon,
8445
+ this.nombreConcurso = e.dencon,
8446
+ this.idConcursante = parseInt(e.id_concursante);
8447
+ this.codigoConcursante = e.cedper,
8448
+ this.nombreConcursante = e.nomper,
8449
+ this.idTipoEvaluacion = parseInt(e.id_tipoeval);
8450
+ this.codigoTipoEvaluacion = e.codtipeval;
8451
+ this.nombreTipoEvaluacion = e.dentipeval;
8452
+ this.fechaRegistro = e.fecha;
8453
+ this.valorMinimoRequerido = parseFloat(e.punreqmin);
8454
+ this.usuarioRegistro = e.usuario;
8455
+ this.horaRegistro = e.hora;
8456
+ this.estatusRegistro = parseInt(e.estatus);
8457
+ this.tipo = e.tipo;
8458
+ this.detallesRegistro = e.detalles.map(e => new MPrevioEvaluacionDt(e));
8459
+ }
8460
+ else {
8461
+ this.isNew = true;
8462
+ }
8463
+ }
8464
+ dataInterface() {
8465
+ return {
8466
+ id_empresa: this.idEmpresa.toString(),
8467
+ id_previo: this.idPrevio.toString(),
8468
+ proceso: this.proceso,
8469
+ id_concurso: this.idConcurso.toString(),
8470
+ codcon: this.codigoConcurso,
8471
+ dencon: this.nombreConcurso,
8472
+ id_concursante: this.idConcursante.toString(),
8473
+ cedper: this.codigoConcursante,
8474
+ nomper: this.nombreConcursante,
8475
+ id_tipoeval: this.idTipoEvaluacion.toString(),
8476
+ codtipeval: this.codigoTipoEvaluacion,
8477
+ dentipeval: this.nombreTipoEvaluacion,
8478
+ fecha: this.fechaRegistro,
8479
+ punreqmin: this.valorMinimoRequerido.toString(),
8480
+ usuario: this.usuarioRegistro,
8481
+ hora: this.horaRegistro,
8482
+ estatus: this.estatusRegistro.toString(),
8483
+ tipo: this.tipo,
8484
+ detalles: this.detallesRegistro.map(function (e) { return e.dataInterface(); })
8485
+ };
8486
+ }
8487
+ }
8488
+ class MPrevioEvaluacionDt extends MBasicModel {
8489
+ constructor(e = null) {
8490
+ super();
8491
+ this.idEmpresa = 0;
8492
+ this.idPrevio = 0;
8493
+ this.idAspecto = 0;
8494
+ this.idTipoEvaluacion = 0;
8495
+ this.idItem = 0;
8496
+ this.idDtPrevio = 0;
8497
+ this.codigo = '';
8498
+ this.descripcion = '';
8499
+ this.puntos = 0;
8500
+ this.valorMaximo = 0;
8501
+ if (e) {
8502
+ this.idEmpresa = parseInt(e.id_empresa);
8503
+ this.idPrevio = parseInt(e.id_previo);
8504
+ this.idAspecto = parseInt(e.id_aspecto);
8505
+ this.idTipoEvaluacion = parseInt(e.id_tipoeval);
8506
+ this.idItem = parseInt(e.id_item);
8507
+ this.idDtPrevio = parseInt(e.id_dt_previo);
8508
+ this.codigo = e.codite;
8509
+ this.descripcion = e.denite;
8510
+ this.puntos = parseInt(e.puntos);
8511
+ this.valorMaximo = parseInt(e.valormax);
8512
+ }
8513
+ else {
8514
+ this.isNew = true;
8515
+ }
8516
+ }
8517
+ dataInterface() {
8518
+ return {
8519
+ id_empresa: this.idEmpresa.toString(),
8520
+ id_previo: this.idPrevio.toString(),
8521
+ id_tipoeval: this.idTipoEvaluacion.toString(),
8522
+ id_aspecto: this.idAspecto.toString(),
8523
+ id_item: this.idItem.toString(),
8524
+ codite: this.codigo,
8525
+ denite: this.descripcion,
8526
+ puntos: this.puntos.toString(),
8527
+ valormax: this.valorMaximo.toString(),
8528
+ id_dt_previo: this.idDtPrevio.toString(),
8529
+ };
8530
+ }
8531
+ }
8532
+ class MResultadosEvaluacion extends MBasicModel {
8533
+ constructor(e) {
8534
+ super();
8535
+ this.idEmpresa = 0;
8536
+ this.idEvaluacion = 0;
8537
+ this.idConcurso = 0;
8538
+ this.codigoConcurso = '';
8539
+ this.nombreConcurso = '';
8540
+ this.idConcursante = 0;
8541
+ this.codigoConcursante = '';
8542
+ this.nombreConcursante = '';
8543
+ this.observacion = '';
8544
+ this.fechaRegistro = '';
8545
+ this.resultado_tec = 0;
8546
+ this.resultado_total = 0;
8547
+ this.resultado_psi = 0;
8548
+ this.resultado_rqm = 0;
8549
+ this.usuarioRegistro = '';
8550
+ if (e) {
8551
+ this.idEmpresa = parseInt(e.id_empresa);
8552
+ this.idEvaluacion = parseInt(e.id_evaluacion);
8553
+ this.idConcurso = parseInt(e.id_concurso);
8554
+ this.codigoConcurso = e.codcon,
8555
+ this.nombreConcurso = e.dencon,
8556
+ this.idConcursante = parseInt(e.id_concursante);
8557
+ this.codigoConcursante = e.cedper,
8558
+ this.nombreConcursante = e.nomper,
8559
+ this.observacion = e.observacion,
8560
+ this.fechaRegistro = e.fecha;
8561
+ this.usuarioRegistro = e.usuario;
8562
+ this.resultado_tec = parseFloat(e.resultado_tec);
8563
+ this.resultado_total = parseFloat(e.resultado_total);
8564
+ this.resultado_psi = parseFloat(e.resultado_psi);
8565
+ this.resultado_rqm = parseFloat(e.resultado_rqm);
8566
+ this.conclusion = e.conclusion;
8567
+ }
8568
+ else {
8569
+ this.isNew = true;
8570
+ }
8571
+ }
8572
+ dataInterface() {
8573
+ return {
8574
+ id_empresa: this.idEmpresa.toString(),
8575
+ id_evaluacion: this.idEvaluacion.toString(),
8576
+ id_concurso: this.idConcurso.toString(),
8577
+ codcon: this.codigoConcurso,
8578
+ dencon: this.nombreConcurso,
8579
+ id_concursante: this.idConcursante.toString(),
8580
+ cedper: this.codigoConcursante,
8581
+ nomper: this.nombreConcursante,
8582
+ observacion: this.observacion,
8583
+ fecha: this.fechaRegistro,
8584
+ usuario: this.usuarioRegistro,
8585
+ resultado_tec: this.resultado_tec.toString(),
8586
+ resultado_psi: this.resultado_psi.toString(),
8587
+ resultado_total: this.resultado_total.toString(),
8588
+ resultado_rqm: this.resultado_rqm.toString(),
8589
+ conclusion: this.conclusion,
8590
+ };
8591
+ }
8592
+ }
8593
+
8594
+ class MTipoPersonal extends MBasicModel {
8595
+ constructor(e) {
8596
+ super();
8597
+ this.idEmpresa = 0;
8598
+ this.idDedicacion = 0;
8599
+ this.idTipoPersonal = 0;
8600
+ this.idDtTipoPersonal = 0;
8601
+ this.codigoTipoPersonal = '';
7823
8602
  this.denominacionTipoPersonal = '';
7824
8603
  if (e) {
7825
8604
  this.idEmpresa = parseInt(e.id_empresa);
@@ -8029,6 +8808,25 @@ class MEstructuraOrganizativa extends MBasicModel {
8029
8808
  this.idEp4 = 0;
8030
8809
  this.idEp5 = 0;
8031
8810
  this.codigoPadre = '';
8811
+ this.codigoPais = '000058';
8812
+ this.nombrePais = 'Venezuela';
8813
+ this.codigoEstado = '';
8814
+ this.nombreEstado = '';
8815
+ this.codigoMunicipio = '';
8816
+ this.nombreMunicipio = '';
8817
+ this.codigoParroquia = '';
8818
+ this.nombreParroquia = '';
8819
+ this.estatusmpppe = 0;
8820
+ this.ubicacionBolivariana = 0;
8821
+ this.ubicacionFrontera = 0;
8822
+ this.ubicacionIndigena = 0;
8823
+ this.ubicacionInsular = 0;
8824
+ this.ubicacionMarginal = 0;
8825
+ this.ubicacionNocturno = 0;
8826
+ this.ubicacionPlanta = 0;
8827
+ this.ubicacionRobinson = 0;
8828
+ this.ubicacionZona = 0;
8829
+ this.ubicacionNoAplica = 0;
8032
8830
  if (e) {
8033
8831
  this.idEmpresa = parseInt(e.id_empresa);
8034
8832
  this.idOrganigrama = parseInt(e.id_organigrama);
@@ -8043,6 +8841,25 @@ class MEstructuraOrganizativa extends MBasicModel {
8043
8841
  this.idEp4 = parseInt(e.id_ep4);
8044
8842
  this.idEp5 = parseInt(e.id_ep5);
8045
8843
  this.codigoPadre = e.codpadre;
8844
+ this.codigoPais = e.codpai;
8845
+ this.nombrePais = e.despai;
8846
+ this.codigoEstado = e.codest;
8847
+ this.nombreEstado = e.desest;
8848
+ this.codigoMunicipio = e.codmun;
8849
+ this.nombreMunicipio = e.desmun;
8850
+ this.codigoParroquia = e.codpar;
8851
+ this.nombreParroquia = e.despar;
8852
+ this.estatusmpppe = e.estmpppe;
8853
+ this.ubicacionBolivariana = e.ubibolivariana;
8854
+ this.ubicacionFrontera = e.ubifrontera;
8855
+ this.ubicacionIndigena = e.ubiindigena;
8856
+ this.ubicacionInsular = e.ubiinsular;
8857
+ this.ubicacionMarginal = e.ubimarginal;
8858
+ this.ubicacionNocturno = e.ubinocturno;
8859
+ this.ubicacionPlanta = e.ubiplanta;
8860
+ this.ubicacionRobinson = e.ubirobinson;
8861
+ this.ubicacionZona = e.ubizona;
8862
+ this.ubicacionNoAplica = e.ubinoaplica;
8046
8863
  }
8047
8864
  }
8048
8865
  dataInterface() {
@@ -8060,6 +8877,25 @@ class MEstructuraOrganizativa extends MBasicModel {
8060
8877
  id_ep4: this.idEp4.toString(),
8061
8878
  id_ep5: this.idEp5.toString(),
8062
8879
  codpadre: this.codigoPadre,
8880
+ codpai: this.codigoPais,
8881
+ despai: this.nombrePais,
8882
+ codest: this.codigoEstado,
8883
+ desest: this.nombreEstado,
8884
+ codmun: this.codigoMunicipio,
8885
+ desmun: this.nombreMunicipio,
8886
+ codpar: this.codigoParroquia,
8887
+ despar: this.nombreParroquia,
8888
+ estmpppe: this.estatusmpppe,
8889
+ ubibolivariana: this.ubicacionBolivariana,
8890
+ ubifrontera: this.ubicacionFrontera,
8891
+ ubiindigena: this.ubicacionIndigena,
8892
+ ubiinsular: this.ubicacionInsular,
8893
+ ubimarginal: this.ubicacionMarginal,
8894
+ ubinocturno: this.ubicacionNocturno,
8895
+ ubiplanta: this.ubicacionPlanta,
8896
+ ubirobinson: this.ubicacionRobinson,
8897
+ ubizona: this.ubicacionZona,
8898
+ ubinoaplica: this.ubicacionNoAplica
8063
8899
  };
8064
8900
  }
8065
8901
  }
@@ -8086,6 +8922,7 @@ class MFamiliares extends MBasicModel {
8086
8922
  this.codigoFamiliar = '';
8087
8923
  this.direccionFamiliar = '';
8088
8924
  this.telefonoFamiliar = '';
8925
+ this.hijoDiscapacidad = '0';
8089
8926
  if (e) {
8090
8927
  this.idEmpresa = parseInt(e.id_empresa);
8091
8928
  this.idPersonal = parseInt(e.id_personal);
@@ -8106,6 +8943,10 @@ class MFamiliares extends MBasicModel {
8106
8943
  this.codigoFamiliar = e.codfam;
8107
8944
  this.direccionFamiliar = e.dirfam;
8108
8945
  this.telefonoFamiliar = e.telfam;
8946
+ this.hijoDiscapacidad = e.hijodiscapacitado;
8947
+ }
8948
+ else {
8949
+ this.isNew = true;
8109
8950
  }
8110
8951
  }
8111
8952
  dataInterface() {
@@ -8129,6 +8970,7 @@ class MFamiliares extends MBasicModel {
8129
8970
  codfam: this.codigoFamiliar,
8130
8971
  dirfam: this.direccionFamiliar,
8131
8972
  telfam: this.telefonoFamiliar,
8973
+ hijodiscapacitado: this.hijoDiscapacidad,
8132
8974
  };
8133
8975
  }
8134
8976
  }
@@ -8183,8 +9025,8 @@ class MFideicomiso extends MBasicModel {
8183
9025
  this.idfideicomiso = 0;
8184
9026
  this.codigoFideicomiso = '';
8185
9027
  this.fichaFideicomico = '';
8186
- this.ubicacionFideicomiso = '';
8187
9028
  this.cuentaFideicomiso = '';
9029
+ this.idCuentaFideicomiso = 0;
8188
9030
  this.fechaIngresoFideicomiso = '1900-01-01';
8189
9031
  this.capitalizacionFideicomiso = 'N';
8190
9032
  this.capitalizarAntiguedadComplementaria = 0;
@@ -8194,14 +9036,17 @@ class MFideicomiso extends MBasicModel {
8194
9036
  this.scgCuentaAntiguedadFideicomiso = '';
8195
9037
  this.scgcuentaInteresFideicomiso = '';
8196
9038
  this.calcularIteresFideicomiso = 0;
9039
+ this.idUbicacionFisica = 0;
9040
+ this.denominacionUbicacionFisica = '';
9041
+ this.codigoUbicacionFisica = '';
8197
9042
  if (e) {
8198
9043
  this.idEmpresa = parseInt(e.id_empresa);
8199
9044
  this.idPersonal = parseInt(e.id_personal);
8200
9045
  this.idfideicomiso = parseInt(e.id_fideicomiso);
8201
9046
  this.codigoFideicomiso = e.codfid;
8202
9047
  this.fichaFideicomico = e.ficfid;
8203
- this.ubicacionFideicomiso = e.ubifid;
8204
- this.cuentaFideicomiso = e.cuefid;
9048
+ this.idCuentaFideicomiso = parseInt(e.id_ctabanper);
9049
+ this.cuentaFideicomiso = e.ctabanper;
8205
9050
  this.fechaIngresoFideicomiso = e.fecingfid;
8206
9051
  this.capitalizacionFideicomiso = e.capfid;
8207
9052
  this.capitalizarAntiguedadComplementaria = parseInt(e.capantcom);
@@ -8211,6 +9056,12 @@ class MFideicomiso extends MBasicModel {
8211
9056
  this.scgCuentaAntiguedadFideicomiso = e.scg_cuentafid;
8212
9057
  this.scgcuentaInteresFideicomiso = e.scg_cuentaintfid;
8213
9058
  this.calcularIteresFideicomiso = +e.calintfid;
9059
+ this.idUbicacionFisica = parseInt(e.id_ubifis);
9060
+ this.denominacionUbicacionFisica = e.denubifis;
9061
+ this.codigoUbicacionFisica = e.codubifis;
9062
+ }
9063
+ else {
9064
+ this.isNew = true;
8214
9065
  }
8215
9066
  }
8216
9067
  dataInterface() {
@@ -8220,8 +9071,7 @@ class MFideicomiso extends MBasicModel {
8220
9071
  id_fideicomiso: this.idfideicomiso.toString(),
8221
9072
  codfid: this.codigoFideicomiso,
8222
9073
  ficfid: this.fichaFideicomico,
8223
- ubifid: this.ubicacionFideicomiso,
8224
- cuefid: this.cuentaFideicomiso,
9074
+ id_ctabanper: this.idCuentaFideicomiso.toString(),
8225
9075
  fecingfid: this.fechaIngresoFideicomiso,
8226
9076
  capfid: this.capitalizacionFideicomiso,
8227
9077
  capantcom: this.capitalizarAntiguedadComplementaria.toString(),
@@ -8231,135 +9081,455 @@ class MFideicomiso extends MBasicModel {
8231
9081
  scg_cuentafid: this.scgCuentaAntiguedadFideicomiso,
8232
9082
  scg_cuentaintfid: this.scgcuentaInteresFideicomiso,
8233
9083
  calintfid: +this.calcularIteresFideicomiso,
9084
+ id_ubifis: this.idUbicacionFisica.toString(),
8234
9085
  };
8235
9086
  }
8236
- }
8237
-
8238
- class MFormacionAcademica extends MBasicModel {
9087
+ }
9088
+ class MConfiguracionFideicomiso extends MBasicModel {
8239
9089
  constructor(e) {
8240
9090
  super();
8241
9091
  this.idEmpresa = 0;
8242
- this.idConcurso = 0;
8243
- this.idConcursante = 0;
8244
- this.idEstudioConcursante = 0;
8245
- this.codigoEstudio = '';
8246
- this.institutoEstudio = '';
8247
- this.descripcionEstudio = '';
8248
- this.fechaInicial = '';
8249
- this.fechaFin = '';
8250
- this.tituloObtenido = '';
8251
- this.yearAprobados = 0;
9092
+ this.idFideicomisoConfiguracion = 0;
9093
+ this.idDedicacion = 0;
9094
+ this.idTipoPersonal = 0;
9095
+ this.anioCursoFideicomiso = '';
9096
+ this.diaBonoVacacionalFideicomiso = 0;
9097
+ this.diasBonoFinAnio = 0;
9098
+ this.cuentaFideicomiso = '';
9099
+ this.denominacionDedicacion = '';
9100
+ this.codigoDedicacion = '';
9101
+ this.codigoTipoPersonal = '';
9102
+ this.denominacionTipoPersonal = '';
9103
+ this.formulaFideicomiso = 'xxx';
8252
9104
  if (e) {
8253
9105
  this.idEmpresa = parseInt(e.id_empresa);
8254
- this.idConcurso = parseInt(e.id_concurso);
8255
- this.idConcursante = parseInt(e.id_concursante);
8256
- this.idEstudioConcursante = parseInt(e.id_estudiocon);
8257
- this.codigoEstudio = e.codestrea;
8258
- this.institutoEstudio = e.insestper;
8259
- this.descripcionEstudio = e.desestper;
8260
- this.fechaInicial = e.fecinireaest;
8261
- this.fechaFin = e.fecfinestrea;
8262
- this.tituloObtenido = e.titestper;
8263
- this.yearAprobados = parseInt(e.anoaprestper);
9106
+ this.idDedicacion = parseInt(e.id_dedicacion);
9107
+ this.idTipoPersonal = parseInt(e.id_tipopersonal);
9108
+ this.anioCursoFideicomiso = e.anocurfid;
9109
+ this.diaBonoVacacionalFideicomiso = parseInt(e.diabonvacfid);
9110
+ this.diasBonoFinAnio = parseInt(e.diabonfinfid);
9111
+ this.cuentaFideicomiso = e.cuefid;
9112
+ this.denominacionDedicacion = e.dended;
9113
+ this.codigoDedicacion = e.codded;
9114
+ this.codigoTipoPersonal = e.codtipper;
9115
+ this.denominacionTipoPersonal = e.dentipper;
9116
+ this.idFideicomisoConfiguracion = parseInt(e.id_fidconfig);
9117
+ this.formulaFideicomiso = e.forfid;
9118
+ }
9119
+ else {
9120
+ this.isNew = true;
8264
9121
  }
8265
9122
  }
8266
9123
  dataInterface() {
8267
9124
  return {
8268
9125
  id_empresa: this.idEmpresa.toString(),
8269
- id_concurso: this.idConcurso.toString(),
8270
- id_concursante: this.idConcursante.toString(),
8271
- id_estudiocon: this.idEstudioConcursante.toString(),
8272
- codestrea: this.codigoEstudio,
8273
- insestper: this.institutoEstudio,
8274
- desestper: this.descripcionEstudio,
8275
- fecinireaest: this.fechaInicial,
8276
- fecfinestrea: this.fechaFin,
8277
- titestper: this.tituloObtenido,
8278
- anoaprestper: this.yearAprobados.toString()
9126
+ id_fidconfig: this.idFideicomisoConfiguracion.toString(),
9127
+ id_dedicacion: this.idDedicacion.toString(),
9128
+ id_tipopersonal: this.idTipoPersonal.toString(),
9129
+ anocurfid: this.anioCursoFideicomiso,
9130
+ diabonvacfid: this.diaBonoVacacionalFideicomiso.toString(),
9131
+ diabonfinfid: this.diasBonoFinAnio.toString(),
9132
+ cuefid: this.cuentaFideicomiso,
9133
+ forfid: this.formulaFideicomiso,
8279
9134
  };
8280
9135
  }
8281
- }
8282
-
8283
- class MPrimaGrados extends MBasicModel {
8284
- constructor(e = null) {
9136
+ }
9137
+ class MFideicomisoInteres extends MBasicModel {
9138
+ constructor(e) {
8285
9139
  super();
8286
9140
  this.idEmpresa = 0;
8287
- this.idTabulador = 0;
8288
- this.codigoGrado = '';
8289
- this.codigoPaso = '';
8290
- this.codigoPrima = '';
8291
- this.descripcionPrima = '';
8292
- this.montoPrima = 0;
8293
- this.IdDetallePrima = 0;
8294
- this.isNew = true;
9141
+ this.idInteresFideicomiso = 0;
9142
+ this.mesInteres = 0;
9143
+ this.anioInteres = 0;
9144
+ this.numeroGacetaInteres = '';
9145
+ this.fechaVigenciaGacetaInteres = '1900-01-01';
9146
+ this.montoTasaInteres = 0;
8295
9147
  if (e) {
8296
9148
  this.idEmpresa = parseInt(e.id_empresa);
8297
- this.idTabulador = parseInt(e.id_tabulador);
8298
- this.codigoGrado = e.codgra;
8299
- this.codigoPaso = e.codpas;
8300
- this.codigoPrima = e.codpri;
8301
- this.descripcionPrima = e.despri;
8302
- this.montoPrima = parseInt(e.monpri);
8303
- this.IdDetallePrima = parseInt(e.id_dt_prima);
8304
- this.isNew = false;
9149
+ this.idInteresFideicomiso = parseInt(e.id_intfide);
9150
+ this.mesInteres = parseInt(e.mesint);
9151
+ this.anioInteres = parseInt(e.anoint);
9152
+ this.numeroGacetaInteres = e.nrogacint;
9153
+ this.fechaVigenciaGacetaInteres = e.fecviggacint;
9154
+ this.montoTasaInteres = +e.montasint;
9155
+ }
9156
+ else {
9157
+ this.isNew = true;
8305
9158
  }
8306
9159
  }
8307
9160
  dataInterface() {
8308
9161
  return {
8309
9162
  id_empresa: this.idEmpresa.toString(),
8310
- id_tabulador: this.idTabulador.toString(),
8311
- codgra: this.codigoGrado,
8312
- codpas: this.codigoPaso,
8313
- codpri: this.codigoPrima,
8314
- despri: this.descripcionPrima,
8315
- monpri: this.montoPrima.toString(),
8316
- id_dt_prima: this.IdDetallePrima.toString(),
9163
+ id_intfide: this.idInteresFideicomiso.toString(),
9164
+ mesint: this.mesInteres.toString(),
9165
+ anoint: this.anioInteres.toString(),
9166
+ nrogacint: this.numeroGacetaInteres,
9167
+ fecviggacint: this.fechaVigenciaGacetaInteres,
9168
+ montasint: this.montoTasaInteres.toString(),
8317
9169
  };
8318
9170
  }
8319
- }
8320
-
8321
- class MGrados extends MBasicModel {
9171
+ }
9172
+ class MCalculoPrestacion extends MBasicModel {
8322
9173
  constructor(e = null) {
8323
9174
  super();
8324
9175
  this.idEmpresa = 0;
8325
- this.idTabulador = 0;
8326
- this.codigoGrado = 0;
8327
- this.codigoPaso = 0;
8328
- this.montoSalario = 0;
8329
- this.montoCompensacion = 0;
8330
- this.yearDesde = 0;
8331
- this.yearHasta = 0;
8332
- this.IdDetalleGrado = 0;
8333
- this.detallePrima = [];
9176
+ this.mes = '';
9177
+ this.anio = '';
9178
+ this.cedulaDesde = '';
9179
+ this.cedulaHasta = '';
9180
+ this.mesCalculado = '';
9181
+ this.anioCalculado = '';
8334
9182
  if (e) {
8335
9183
  this.idEmpresa = parseInt(e.id_empresa);
8336
- this.idTabulador = parseInt(e.id_tabulador);
8337
- this.codigoGrado = parseInt(e.codgra);
8338
- this.codigoPaso = parseInt(e.codpas);
8339
- this.montoSalario = parseFloat(e.monsalgra);
8340
- this.montoCompensacion = parseFloat(e.moncomgra);
8341
- this.yearDesde = parseInt(e.aniodes);
8342
- this.yearHasta = parseInt(e.aniohas);
8343
- this.IdDetalleGrado = parseInt(e.id_dt_grado);
8344
- this.detallePrima = e.detalles_prima.map(e => new MPrimaGrados(e));
9184
+ this.mes = e.mes;
9185
+ this.anio = e.anio;
9186
+ this.cedulaDesde = e.cedula_desde;
9187
+ this.cedulaDesde = e.cedula_hasta;
9188
+ this.mesCalculado = e.mescal;
9189
+ this.anioCalculado = e.aniocal;
9190
+ }
9191
+ else {
9192
+ this.isNew = true;
8345
9193
  }
8346
9194
  }
8347
9195
  dataInterface() {
8348
9196
  return {
8349
9197
  id_empresa: this.idEmpresa.toString(),
8350
- id_tabulador: this.idTabulador.toString(),
8351
- codgra: this.codigoGrado.toString(),
8352
- codpas: this.codigoPaso.toString(),
8353
- monsalgra: this.montoSalario.toString(),
8354
- moncomgra: this.montoCompensacion.toString(),
8355
- aniodes: this.yearDesde.toString(),
8356
- aniohas: this.yearHasta.toString(),
8357
- id_dt_grado: this.IdDetalleGrado.toString(),
8358
- detalles_prima: this.detallePrima.map(function (e) { return e.dataInterface(); })
9198
+ mes: this.mes,
9199
+ anio: this.anio,
9200
+ cedula_desde: this.cedulaDesde,
9201
+ cedula_hasta: this.cedulaHasta,
9202
+ mescal: this.mesCalculado,
9203
+ aniocal: this.anioCalculado,
8359
9204
  };
8360
9205
  }
8361
- }
8362
-
9206
+ }
9207
+ class MFideicomisoPeriodo extends MBasicModel {
9208
+ constructor(e = null) {
9209
+ super();
9210
+ this.idEmpresa = 0;
9211
+ this.idPersonal = 0;
9212
+ this.idNomina = 0;
9213
+ this.codigoNomina = '';
9214
+ this.idFideicomiso = 0;
9215
+ this.anioCursoPeriodo = '';
9216
+ this.mesCursoPeriodo = '';
9217
+ this.sueldointergralPeronal = 0;
9218
+ this.bonoExtraPersonal = 0;
9219
+ this.bonoVacacionalPersonal = 0;
9220
+ this.bonoFinPersonal = 0;
9221
+ this.aportePersonal = 0;
9222
+ this.diaFideicomiso = 0;
9223
+ this.diaAdicional = 0;
9224
+ this.metodoPrestacion = 0;
9225
+ this.metodoAdicional = 0;
9226
+ this.bonoVacionalAdicional = 0;
9227
+ this.bonoFinAdicional = 0;
9228
+ this.sueldoIntegralAdicional = 0;
9229
+ this.aportePrestacion = 0;
9230
+ this.aporteAdicionalPersonal = 0;
9231
+ this.codigoUsuario = '';
9232
+ this.idDtFideicomisoPeriodo = 0;
9233
+ this.cedulaPersonal = '';
9234
+ this.nombrePersonal = '';
9235
+ this.apellidoPersonal = '';
9236
+ this.fechaIngresoPersonal = '1900-01-01';
9237
+ this.estatusPersonal = '';
9238
+ this.codigoPersonal = '';
9239
+ this.denominacionEstatus = '';
9240
+ this.denominacionMes = '';
9241
+ if (e) {
9242
+ this.idEmpresa = +e.id_empresa;
9243
+ this.idPersonal = +e.id_personal;
9244
+ this.idNomina = +e.id_nomina;
9245
+ this.codigoNomina = e.codnom;
9246
+ this.idFideicomiso = +e.id_dt_fideiperiodo;
9247
+ this.anioCursoPeriodo = e.anocurper;
9248
+ this.mesCursoPeriodo = e.mescurper;
9249
+ this.sueldointergralPeronal = +e.sueintper;
9250
+ this.bonoExtraPersonal = +e.bonextper;
9251
+ this.bonoVacacionalPersonal = +e.bonvacper;
9252
+ this.bonoFinPersonal = +e.bonfinper;
9253
+ this.aportePersonal = +e.apoper;
9254
+ this.diaFideicomiso = +e.diafid;
9255
+ this.diaAdicional = +e.diaadi;
9256
+ this.metodoPrestacion = +e.metodopre;
9257
+ this.metodoAdicional = +e.metodoadi;
9258
+ this.bonoVacionalAdicional = +e.bonvacadiper;
9259
+ this.bonoFinAdicional = +e.bonfinadiper;
9260
+ this.sueldoIntegralAdicional = +e.sueintadiper;
9261
+ this.aportePrestacion = +e.apopreper;
9262
+ this.aporteAdicionalPersonal = +e.apoadiper;
9263
+ this.codigoUsuario = e.codusu;
9264
+ this.idDtFideicomisoPeriodo = +e.id_dt_fideiperiodo;
9265
+ this.cedulaPersonal = e.cedper;
9266
+ this.nombrePersonal = e.nomper;
9267
+ this.apellidoPersonal = e.apeper;
9268
+ this.fechaIngresoPersonal = e.fecingper;
9269
+ this.estatusPersonal = e.estper;
9270
+ this.codigoPersonal = e.codper;
9271
+ this.estatusPersonal == '0' ? this.denominacionEstatus = 'PRE-INGRESO' :
9272
+ this.estatusPersonal == '1' ? this.denominacionEstatus = 'ACTIVO' :
9273
+ this.estatusPersonal == '2' ? this.denominacionEstatus = 'NINGUNO' :
9274
+ this.estatusPersonal == '3' ? this.denominacionEstatus = 'EGRESADO' :
9275
+ this.estatusPersonal == '4' ? this.denominacionEstatus = 'REMOCIÓN' :
9276
+ this.estatusPersonal == '5' ? this.denominacionEstatus = 'RETIRO' :
9277
+ this.estatusPersonal == '6' ? this.denominacionEstatus = 'DESTITUCIÓN' :
9278
+ this.estatusPersonal == '7' ? this.denominacionEstatus = 'LIQUIDACIÓN' : '';
9279
+ this.mesCursoPeriodo == '01' ? this.denominacionMes = 'ENERO' :
9280
+ this.mesCursoPeriodo == '02' ? this.denominacionMes = 'FEBREO' :
9281
+ this.mesCursoPeriodo == '03' ? this.denominacionMes = 'MARZO' :
9282
+ this.mesCursoPeriodo == '04' ? this.denominacionMes = 'ABRIL' :
9283
+ this.mesCursoPeriodo == '05' ? this.denominacionMes = 'MAYO' :
9284
+ this.mesCursoPeriodo == '06' ? this.denominacionMes = 'JUNIO' :
9285
+ this.mesCursoPeriodo == '07' ? this.denominacionMes = 'JULIO' : '';
9286
+ this.mesCursoPeriodo == '08' ? this.denominacionMes = 'AGOSTO' :
9287
+ this.mesCursoPeriodo == '09' ? this.denominacionMes = 'SEPTIEMBRE' :
9288
+ this.mesCursoPeriodo == '10' ? this.denominacionMes = 'OCTUBRE' :
9289
+ this.mesCursoPeriodo == '11' ? this.denominacionMes = 'NOVIEMBRE' :
9290
+ this.mesCursoPeriodo == '12' ? this.denominacionMes = 'DICIEMBRE' : '';
9291
+ }
9292
+ else {
9293
+ this.isNew = true;
9294
+ }
9295
+ }
9296
+ }
9297
+ class MFideicomisoPeriodoInteresCatalogo extends MBasicModel {
9298
+ constructor(e = null) {
9299
+ super();
9300
+ this.idPersonal = 0;
9301
+ this.codigoPersonal = '';
9302
+ this.cedulaPersonal = '';
9303
+ this.nombrePersonal = '';
9304
+ this.apellidoPersonal = '';
9305
+ this.fechaIngresoPersonal = '1900-01-01';
9306
+ this.estatusPersonal = '';
9307
+ this.denominacionEstatus = '';
9308
+ this.interes = [];
9309
+ if (e) {
9310
+ this.idPersonal = +e.id_personal;
9311
+ this.codigoPersonal = e.codper;
9312
+ this.cedulaPersonal = e.cedper;
9313
+ this.nombrePersonal = e.nomper;
9314
+ this.apellidoPersonal = e.apeper;
9315
+ this.estatusPersonal = e.estper;
9316
+ this.fechaIngresoPersonal = e.fecingper;
9317
+ this.estatusPersonal == '0' ? this.denominacionEstatus = 'PRE-INGRESO' :
9318
+ this.estatusPersonal == '1' ? this.denominacionEstatus = 'ACTIVO' :
9319
+ this.estatusPersonal == '2' ? this.denominacionEstatus = 'NINGUNO' :
9320
+ this.estatusPersonal == '3' ? this.denominacionEstatus = 'EGRESADO' :
9321
+ this.estatusPersonal == '4' ? this.denominacionEstatus = 'REMOCIÓN' :
9322
+ this.estatusPersonal == '5' ? this.denominacionEstatus = 'RETIRO' :
9323
+ this.estatusPersonal == '6' ? this.denominacionEstatus = 'DESTITUCIÓN' :
9324
+ this.estatusPersonal == '7' ? this.denominacionEstatus = 'LIQUIDACIÓN' : '';
9325
+ if (e.intereses) {
9326
+ this.interes = e.intereses.map(e => new MFideicomisoPeriodoInteres(e));
9327
+ }
9328
+ }
9329
+ else {
9330
+ this.isNew = true;
9331
+ }
9332
+ }
9333
+ }
9334
+ class MFideicomisoPeriodoInteres extends MBasicModel {
9335
+ constructor(e = null) {
9336
+ super();
9337
+ this.idEmpresa = 0;
9338
+ this.idPersonal = 0;
9339
+ this.idNomina = 0;
9340
+ this.mesInteres = 0;
9341
+ this.anioInteres = '';
9342
+ this.montoAnteriorAcumulado = 0;
9343
+ this.montoAnterior = 0;
9344
+ this.porcentajeInteres = 0;
9345
+ this.montoInteres = 0;
9346
+ this.montoCapital = 0;
9347
+ this.anticipoPrestamo = 0;
9348
+ this.idDtFide = 0;
9349
+ this.cedulaPersonal = '';
9350
+ this.nombrePersonal = '';
9351
+ this.apellidoPersonal = '';
9352
+ this.fechaIngresoPersonal = '1900-01-01';
9353
+ this.estatusPersonal = '';
9354
+ this.codigoPersonal = '';
9355
+ this.denominacionEstatus = '';
9356
+ this.denominacionMes = '';
9357
+ this.capital = 0;
9358
+ this.codigoNomina = '';
9359
+ if (e) {
9360
+ this.idEmpresa = +e.id_empresa;
9361
+ this.idPersonal = +e.id_personal;
9362
+ this.idNomina = +e.id_nomina;
9363
+ this.mesInteres = +e.mesint;
9364
+ this.anioInteres = e.anoint;
9365
+ this.montoAnteriorAcumulado = +e.monantacu;
9366
+ this.montoAnterior = +e.monant;
9367
+ this.porcentajeInteres = +e.porint;
9368
+ this.montoInteres = +e.monint;
9369
+ this.montoCapital = +e.moncap;
9370
+ this.anticipoPrestamo = +e.antpre;
9371
+ this.capital = +e.capital;
9372
+ this.idDtFide = +e.id_dt_fidperint;
9373
+ this.cedulaPersonal = e.cedper;
9374
+ this.nombrePersonal = e.nomper;
9375
+ this.apellidoPersonal = e.apeper;
9376
+ this.fechaIngresoPersonal = e.fecingper;
9377
+ this.estatusPersonal = e.estper;
9378
+ this.codigoPersonal = e.codper;
9379
+ this.estatusPersonal == '0' ? this.denominacionEstatus = 'PRE-INGRESO' :
9380
+ this.estatusPersonal == '1' ? this.denominacionEstatus = 'ACTIVO' :
9381
+ this.estatusPersonal == '2' ? this.denominacionEstatus = 'NINGUNO' :
9382
+ this.estatusPersonal == '3' ? this.denominacionEstatus = 'EGRESADO' :
9383
+ this.estatusPersonal == '4' ? this.denominacionEstatus = 'REMOCIÓN' :
9384
+ this.estatusPersonal == '5' ? this.denominacionEstatus = 'RETIRO' :
9385
+ this.estatusPersonal == '6' ? this.denominacionEstatus = 'DESTITUCIÓN' :
9386
+ this.estatusPersonal == '7' ? this.denominacionEstatus = 'LIQUIDACIÓN' : '';
9387
+ this.mesInteres == 1 ? this.denominacionMes = 'ENERO' :
9388
+ this.mesInteres == 2 ? this.denominacionMes = 'FEBREO' :
9389
+ this.mesInteres == 3 ? this.denominacionMes = 'MARZO' :
9390
+ this.mesInteres == 4 ? this.denominacionMes = 'ABRIL' :
9391
+ this.mesInteres == 5 ? this.denominacionMes = 'MAYO' :
9392
+ this.mesInteres == 6 ? this.denominacionMes = 'JUNIO' :
9393
+ this.mesInteres == 7 ? this.denominacionMes = 'JULIO' : '';
9394
+ this.mesInteres == 8 ? this.denominacionMes = 'AGOSTO' :
9395
+ this.mesInteres == 9 ? this.denominacionMes = 'SEPTIEMBRE' :
9396
+ this.mesInteres == 10 ? this.denominacionMes = 'OCTUBRE' :
9397
+ this.mesInteres == 11 ? this.denominacionMes = 'NOVIEMBRE' :
9398
+ this.mesInteres == 12 ? this.denominacionMes = 'DICIEMBRE' : '';
9399
+ this.codigoNomina = e.codnom;
9400
+ }
9401
+ else {
9402
+ this.isNew = true;
9403
+ }
9404
+ }
9405
+ }
9406
+
9407
+ class MFormacionAcademica extends MBasicModel {
9408
+ constructor(e) {
9409
+ super();
9410
+ this.idEmpresa = 0;
9411
+ this.idConcurso = 0;
9412
+ this.idConcursante = 0;
9413
+ this.idEstudioConcursante = 0;
9414
+ this.codigoEstudio = '';
9415
+ this.institutoEstudio = '';
9416
+ this.descripcionEstudio = '';
9417
+ this.fechaInicial = '';
9418
+ this.fechaFin = '';
9419
+ this.tituloObtenido = '';
9420
+ this.yearAprobados = 0;
9421
+ if (e) {
9422
+ this.idEmpresa = parseInt(e.id_empresa);
9423
+ this.idConcurso = parseInt(e.id_concurso);
9424
+ this.idConcursante = parseInt(e.id_concursante);
9425
+ this.idEstudioConcursante = parseInt(e.id_estudiocon);
9426
+ this.codigoEstudio = e.codestrea;
9427
+ this.institutoEstudio = e.insestper;
9428
+ this.descripcionEstudio = e.desestper;
9429
+ this.fechaInicial = e.fecinireaest;
9430
+ this.fechaFin = e.fecfinestrea;
9431
+ this.tituloObtenido = e.titestper;
9432
+ this.yearAprobados = parseInt(e.anoaprestper);
9433
+ }
9434
+ }
9435
+ dataInterface() {
9436
+ return {
9437
+ id_empresa: this.idEmpresa.toString(),
9438
+ id_concurso: this.idConcurso.toString(),
9439
+ id_concursante: this.idConcursante.toString(),
9440
+ id_estudiocon: this.idEstudioConcursante.toString(),
9441
+ codestrea: this.codigoEstudio,
9442
+ insestper: this.institutoEstudio,
9443
+ desestper: this.descripcionEstudio,
9444
+ fecinireaest: this.fechaInicial,
9445
+ fecfinestrea: this.fechaFin,
9446
+ titestper: this.tituloObtenido,
9447
+ anoaprestper: this.yearAprobados.toString()
9448
+ };
9449
+ }
9450
+ }
9451
+
9452
+ class MPrimaGrados extends MBasicModel {
9453
+ constructor(e = null) {
9454
+ super();
9455
+ this.idEmpresa = 0;
9456
+ this.idTabulador = 0;
9457
+ this.codigoGrado = '';
9458
+ this.codigoPaso = '';
9459
+ this.codigoPrima = '';
9460
+ this.descripcionPrima = '';
9461
+ this.montoPrima = 0;
9462
+ this.IdDetallePrima = 0;
9463
+ if (e) {
9464
+ this.idEmpresa = parseInt(e.id_empresa);
9465
+ this.idTabulador = parseInt(e.id_tabulador);
9466
+ this.codigoGrado = e.codgra;
9467
+ this.codigoPaso = e.codpas;
9468
+ this.codigoPrima = e.codpri;
9469
+ this.descripcionPrima = e.despri;
9470
+ this.montoPrima = parseInt(e.monpri);
9471
+ this.IdDetallePrima = parseInt(e.id_dt_prima);
9472
+ }
9473
+ else {
9474
+ this.isNew = true;
9475
+ }
9476
+ }
9477
+ dataInterface() {
9478
+ return {
9479
+ id_empresa: this.idEmpresa.toString(),
9480
+ id_tabulador: this.idTabulador.toString(),
9481
+ codgra: this.codigoGrado,
9482
+ codpas: this.codigoPaso,
9483
+ codpri: this.codigoPrima,
9484
+ despri: this.descripcionPrima,
9485
+ monpri: this.montoPrima.toString(),
9486
+ id_dt_prima: this.IdDetallePrima.toString(),
9487
+ };
9488
+ }
9489
+ }
9490
+
9491
+ class MGrados extends MBasicModel {
9492
+ constructor(e = null) {
9493
+ super();
9494
+ this.idEmpresa = 0;
9495
+ this.idTabulador = 0;
9496
+ this.codigoGrado = 0;
9497
+ this.codigoPaso = 0;
9498
+ this.montoSalario = 0;
9499
+ this.montoCompensacion = 0;
9500
+ this.yearDesde = 0;
9501
+ this.yearHasta = 0;
9502
+ this.IdDetalleGrado = 0;
9503
+ this.detallePrima = [];
9504
+ if (e) {
9505
+ this.idEmpresa = parseInt(e.id_empresa);
9506
+ this.idTabulador = parseInt(e.id_tabulador);
9507
+ this.codigoGrado = parseInt(e.codgra);
9508
+ this.codigoPaso = parseInt(e.codpas);
9509
+ this.montoSalario = parseFloat(e.monsalgra);
9510
+ this.montoCompensacion = parseFloat(e.moncomgra);
9511
+ this.yearDesde = parseInt(e.aniodes);
9512
+ this.yearHasta = parseInt(e.aniohas);
9513
+ this.IdDetalleGrado = parseInt(e.id_dt_grado);
9514
+ this.detallePrima = e.detalles_prima.map(e => new MPrimaGrados(e));
9515
+ }
9516
+ }
9517
+ dataInterface() {
9518
+ return {
9519
+ id_empresa: this.idEmpresa.toString(),
9520
+ id_tabulador: this.idTabulador.toString(),
9521
+ codgra: this.codigoGrado.toString(),
9522
+ codpas: this.codigoPaso.toString(),
9523
+ monsalgra: this.montoSalario.toString(),
9524
+ moncomgra: this.montoCompensacion.toString(),
9525
+ aniodes: this.yearDesde.toString(),
9526
+ aniohas: this.yearHasta.toString(),
9527
+ id_dt_grado: this.IdDetalleGrado.toString(),
9528
+ detalles_prima: this.detallePrima.map(function (e) { return e.dataInterface(); })
9529
+ };
9530
+ }
9531
+ }
9532
+
8363
9533
  class MPrimasConcepto extends MBasicModel {
8364
9534
  constructor(e = null) {
8365
9535
  super();
@@ -8381,6 +9551,9 @@ class MPrimasConcepto extends MBasicModel {
8381
9551
  this.codigoConcepto = e.codconc;
8382
9552
  this.nombreConcepto = e.nomcon;
8383
9553
  }
9554
+ else {
9555
+ this.isNew = true;
9556
+ }
8384
9557
  }
8385
9558
  dataInterface() {
8386
9559
  return {
@@ -8396,7 +9569,7 @@ class MPrimasConcepto extends MBasicModel {
8396
9569
  }
8397
9570
  }
8398
9571
 
8399
- class MRequisitosConcursante extends MBasicModel {
9572
+ class MRequisitosConcursantes extends MBasicModel {
8400
9573
  constructor(e = null) {
8401
9574
  super();
8402
9575
  this.idEmpresa = 0;
@@ -8419,6 +9592,9 @@ class MRequisitosConcursante extends MBasicModel {
8419
9592
  this.requisitosEntregado = e.entreqcon;
8420
9593
  this.cantidadEntregado = parseInt(e.canentreqcon);
8421
9594
  }
9595
+ else {
9596
+ this.isNew = true;
9597
+ }
8422
9598
  }
8423
9599
  dataInterface() {
8424
9600
  return {
@@ -8817,7 +9993,7 @@ class MTabulador extends MBasicModel {
8817
9993
  constructor(e = null) {
8818
9994
  super();
8819
9995
  this.idEmpresa = 0;
8820
- this.idTabulador = 0;
9996
+ this.idTabulador = -1;
8821
9997
  this.codigoTabulador = '';
8822
9998
  this.descripcionTabulador = '';
8823
9999
  this.totalPasosXGrados = 0;
@@ -8867,20 +10043,28 @@ class MTabuladorNominas {
8867
10043
  this.idTabulador = 0;
8868
10044
  this.codigoNomina = '';
8869
10045
  this.denominacionNomina = '';
8870
- this.estatusNomina = '';
10046
+ this.estatus = '';
8871
10047
  this.idDtNomina = 0;
8872
10048
  this.periodoActualNomina = '001';
8873
- this.periodosNomina = [];
10049
+ this.idPeriodoActual = 0;
10050
+ this.nominaRac = 0;
10051
+ this.descripcionPeriodoNomina = '';
10052
+ this.prenomina = false;
10053
+ this.editable = false;
10054
+ this.calculada = false;
8874
10055
  if (e) {
8875
10056
  this.idEmpresa = parseInt(e.id_empresa);
8876
10057
  this.idNomina = parseInt(e.id_nomina);
8877
10058
  this.idTabulador = parseInt(e.id_tabulador);
8878
10059
  this.codigoNomina = e.codnom;
8879
10060
  this.denominacionNomina = e.dennom;
8880
- this.estatusNomina = e.estnom;
8881
10061
  this.idDtNomina = parseInt(e.id_dt_tabnom);
8882
10062
  this.periodoActualNomina = e.peractnom;
8883
- this.periodosNomina = e.periodos.map(e => new MPeriodoNomina(e));
10063
+ this.calculada = e.calculado == '1' ? true : false;
10064
+ this.prenomina = e.prenomina == '1' ? true : false;
10065
+ this.estatus = this.calculada ? 'Calculada' :
10066
+ !this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
10067
+ this.editable = (this.calculada || this.prenomina) ? false : true;
8884
10068
  }
8885
10069
  }
8886
10070
  dataInterface() {
@@ -8888,21 +10072,9 @@ class MTabuladorNominas {
8888
10072
  id_empresa: this.idEmpresa.toString(),
8889
10073
  id_nomina: this.idNomina.toString(),
8890
10074
  id_tabulador: this.idTabulador.toString(),
8891
- codnom: this.codigoNomina,
8892
- dennom: this.denominacionNomina,
8893
- estnom: this.estatusNomina,
8894
- id_dt_tabnom: this.idDtNomina.toString(),
8895
- periodos: this.periodosNomina.map((function (e) { return e.dataInterface(); })),
8896
- peractnom: this.periodoActualNomina,
10075
+ id_dt_tabnom: this.idDtNomina.toString()
8897
10076
  };
8898
10077
  }
8899
- indice() {
8900
- return this.periodosNomina.findIndex(e => e.codigoPeriodo == this.periodoActualNomina);
8901
- }
8902
- editable() {
8903
- let i = this.indice();
8904
- return this.periodosNomina[i].periodoEditable();
8905
- }
8906
10078
  }
8907
10079
 
8908
10080
  class MTipoEvaluacion extends MBasicModel {
@@ -9154,6 +10326,7 @@ class MVacacionesPersonal extends MBasicModel {
9154
10326
  this.codigoUsuario = '';
9155
10327
  this.diaVacacionesCalendario = 0;
9156
10328
  this.diasHabiles = 0;
10329
+ this.procesarFueraPeriodo = 0;
9157
10330
  if (e) {
9158
10331
  this.idEmpresa = parseInt(e.id_empresa);
9159
10332
  this.idPersonal = parseInt(e.id_personal);
@@ -9187,6 +10360,7 @@ class MVacacionesPersonal extends MBasicModel {
9187
10360
  this.codigoUsuario = (e.codusu);
9188
10361
  this.diaVacacionesCalendario = parseInt(e.diavaccal);
9189
10362
  this.diasHabiles = parseInt(e.diahab);
10363
+ this.procesarFueraPeriodo = parseInt(e.profueper);
9190
10364
  }
9191
10365
  }
9192
10366
  dataInterface() {
@@ -9223,6 +10397,7 @@ class MVacacionesPersonal extends MBasicModel {
9223
10397
  codusu: this.codigoUsuario,
9224
10398
  diavaccal: this.diaVacacionesCalendario.toString(),
9225
10399
  diahab: this.diasHabiles.toString(),
10400
+ profueper: this.procesarFueraPeriodo.toString(),
9226
10401
  };
9227
10402
  }
9228
10403
  }
@@ -9441,6 +10616,953 @@ class MPersonalJubilado extends MBasicModel {
9441
10616
  }
9442
10617
  }
9443
10618
 
10619
+ class MPermisos extends MBasicModel {
10620
+ constructor(e) {
10621
+ super();
10622
+ this.idEmpresa = 0;
10623
+ this.idPersonal = 0;
10624
+ this.idPermiso = 0;
10625
+ this.fechaInicioPermiso = '';
10626
+ this.fechaFinPermiso = '';
10627
+ this.numeroDiasPermiso = 0;
10628
+ this.afectaVacaionesPermiso = '0';
10629
+ this.tipoPermiso = '2';
10630
+ this.observacionPermiso = '';
10631
+ this.remuneradoPermiso = '1';
10632
+ this.totalHorasPermiso = 0;
10633
+ this.descontarVacaciones = 0;
10634
+ this.codigoPermiso = '';
10635
+ this.idTipoEnfermedad = 0;
10636
+ this.denominacionEnfermedad = '';
10637
+ if (e) {
10638
+ this.idEmpresa = +e.id_empresa;
10639
+ this.idPersonal = +e.id_personal;
10640
+ this.idPermiso = +e.id_permiso;
10641
+ this.fechaInicioPermiso = e.fecfinper;
10642
+ this.fechaFinPermiso = e.fecfinper;
10643
+ this.numeroDiasPermiso = +e.numdiapero;
10644
+ this.afectaVacaionesPermiso = e.afevacper.toString();
10645
+ this.tipoPermiso = e.tipper.toString();
10646
+ this.observacionPermiso = e.obsper;
10647
+ this.remuneradoPermiso = e.remper.toString();
10648
+ this.totalHorasPermiso = +e.tothorper;
10649
+ this.descontarVacaciones = +e.desvacper;
10650
+ this.codigoPermiso = e.codpermiso;
10651
+ this.idTipoEnfermedad = parseInt(e.id_enfermedad);
10652
+ this.denominacionEnfermedad = e.denenf;
10653
+ }
10654
+ else {
10655
+ this.isNew = true;
10656
+ }
10657
+ }
10658
+ dataInterface() {
10659
+ return {
10660
+ id_empresa: this.idEmpresa,
10661
+ id_personal: this.idPersonal,
10662
+ id_permiso: this.idPermiso,
10663
+ feciniper: this.fechaInicioPermiso,
10664
+ fecfinper: this.fechaFinPermiso,
10665
+ numdiapero: this.numeroDiasPermiso,
10666
+ afevacper: +this.afectaVacaionesPermiso,
10667
+ tipper: +this.tipoPermiso,
10668
+ obsper: this.observacionPermiso,
10669
+ remper: +this.remuneradoPermiso,
10670
+ tothorper: this.totalHorasPermiso,
10671
+ desvacper: this.descontarVacaciones,
10672
+ codpermiso: this.codigoPermiso,
10673
+ id_enfermedad: this.idTipoEnfermedad.toString(),
10674
+ denenf: this.denominacionEnfermedad
10675
+ };
10676
+ }
10677
+ }
10678
+
10679
+ class MCargaMasiva extends MBasicModel {
10680
+ constructor(e = null) {
10681
+ super();
10682
+ this.proceso = '';
10683
+ this.id_nomina = 0;
10684
+ this.tipo = '';
10685
+ this.nombreArchivo = '';
10686
+ this.base64textString = '';
10687
+ this.modulo = '';
10688
+ if (e) {
10689
+ this.proceso = e.proceso;
10690
+ this.id_nomina = e.id_nomina;
10691
+ this.tipo = e.tipo;
10692
+ this.nombreArchivo = e.nombreArchivo;
10693
+ this.base64textString = e.base64textString;
10694
+ this.modulo = e.modulo;
10695
+ }
10696
+ else {
10697
+ this.isNew;
10698
+ }
10699
+ }
10700
+ dataInterface() {
10701
+ return {
10702
+ proceso: this.proceso,
10703
+ id_nomina: this.id_nomina,
10704
+ tipo: this.tipo,
10705
+ nombreArchivo: this.nombreArchivo,
10706
+ base64textString: this.base64textString,
10707
+ modulo: this.modulo
10708
+ };
10709
+ }
10710
+ }
10711
+
10712
+ class MPlantillasConstancia extends MBasicModel {
10713
+ constructor(e = null) {
10714
+ super();
10715
+ this.idConstancia = 0;
10716
+ this.codigoConstancia = '';
10717
+ this.descripcionConstancia = '';
10718
+ this.plantillaRTF = '';
10719
+ this.archivoConstancia = '';
10720
+ if (e) {
10721
+ this.idConstancia = e.id_constancia;
10722
+ this.codigoConstancia = e.codconstra;
10723
+ this.descripcionConstancia = e.desconstra;
10724
+ this.plantillaRTF = e.plantilla_rtf;
10725
+ this.archivoConstancia = e.archivo;
10726
+ }
10727
+ else {
10728
+ this.isNew = true;
10729
+ }
10730
+ }
10731
+ dataInterface() {
10732
+ return {
10733
+ id_constancia: this.idConstancia,
10734
+ codconstra: this.codigoConstancia,
10735
+ desconstra: this.descripcionConstancia,
10736
+ plantilla_rtf: this.plantillaRTF,
10737
+ archivo: this.archivoConstancia
10738
+ };
10739
+ }
10740
+ }
10741
+
10742
+ class MImpuestoSobreRenta extends MBasicModel {
10743
+ constructor(e) {
10744
+ super();
10745
+ this.idEmpresa = 0;
10746
+ this.idPersonal = 0;
10747
+ this.idImpuestoSobreRenta = 0;
10748
+ this.porcentajeIsr = 0;
10749
+ this.idConcepto = 0;
10750
+ this.enero = 0;
10751
+ this.febrero = 0;
10752
+ this.marzo = 0;
10753
+ this.abril = 0;
10754
+ this.mayo = 0;
10755
+ this.junio = 0;
10756
+ this.julio = 0;
10757
+ this.agosto = 0;
10758
+ this.septiembre = 0;
10759
+ this.octubre = 0;
10760
+ this.noviembre = 0;
10761
+ this.diciembre = 0;
10762
+ this.denominacionConcepto = '';
10763
+ if (e) {
10764
+ this.idEmpresa = +e.id_empresa;
10765
+ this.idPersonal = +e.id_personal;
10766
+ this.idImpuestoSobreRenta = +e.id_isr;
10767
+ this.porcentajeIsr = +e.porisr;
10768
+ this.idConcepto = +e.id_conret;
10769
+ this.enero = +e.enero;
10770
+ this.febrero = +e.febrero;
10771
+ this.marzo = +e.marzo;
10772
+ this.abril = +e.abril;
10773
+ this.mayo = +e.mayo;
10774
+ this.junio = +e.junio;
10775
+ this.julio = +e.julio;
10776
+ this.agosto = +e.agosto;
10777
+ this.septiembre = +e.septiembre;
10778
+ this.octubre = +e.octubre;
10779
+ this.noviembre = +e.noviembre;
10780
+ this.diciembre = +e.diciembre;
10781
+ this.denominacionConcepto = e.desact;
10782
+ }
10783
+ else {
10784
+ this.isNew = true;
10785
+ }
10786
+ }
10787
+ dataInterface() {
10788
+ return {
10789
+ id_empresa: this.idEmpresa,
10790
+ id_personal: this.idPersonal,
10791
+ id_isr: this.idImpuestoSobreRenta,
10792
+ porisr: this.porcentajeIsr,
10793
+ id_conret: this.idConcepto,
10794
+ enero: this.enero,
10795
+ febrero: this.febrero,
10796
+ marzo: this.marzo,
10797
+ abril: this.abril,
10798
+ mayo: this.mayo,
10799
+ junio: this.junio,
10800
+ julio: this.julio,
10801
+ agosto: this.agosto,
10802
+ septiembre: this.septiembre,
10803
+ octubre: this.octubre,
10804
+ noviembre: this.noviembre,
10805
+ diciembre: this.diciembre,
10806
+ desact: this.denominacionConcepto
10807
+ };
10808
+ }
10809
+ }
10810
+
10811
+ class MMetodoBanco extends MBasicModel {
10812
+ constructor(e = null) {
10813
+ super();
10814
+ this.idEmpresa = 0;
10815
+ this.idMetodoBanco = 0;
10816
+ this.id = 0;
10817
+ this.codigoMetodo = '';
10818
+ this.denominacionMetodo = '';
10819
+ this.tipoMetodo = '';
10820
+ this.codigoEmpresaNominal = '';
10821
+ this.tipoCuentaCreditoNominal = '';
10822
+ this.tipoCuentaDebitoNominal = '';
10823
+ this.codigoOficinaNomina = '';
10824
+ this.pagoTaquillaNomina = 0;
10825
+ this.numeroReferencia = 0;
10826
+ this.numeroConvenio = '';
10827
+ this.activo = 0;
10828
+ if (e) {
10829
+ this.idEmpresa = parseInt(e.id_empresa);
10830
+ this.idMetodoBanco = parseInt(e.id_metbco);
10831
+ this.codigoMetodo = e.codmet;
10832
+ this.denominacionMetodo = e.denmet;
10833
+ this.tipoMetodo = e.tipmet;
10834
+ this.id = parseInt(e.id_banco);
10835
+ this.codigoEmpresaNominal = e.codempnom;
10836
+ this.tipoCuentaCreditoNominal = e.tipcuecrenom;
10837
+ this.tipoCuentaDebitoNominal = e.tipcuedebnom;
10838
+ this.codigoOficinaNomina = e.codofinom;
10839
+ this.pagoTaquillaNomina = parseInt(e.pagtaqnom);
10840
+ this.numeroReferencia = parseInt(e.nroref);
10841
+ this.activo = parseInt(e.activo);
10842
+ this.numeroConvenio = e.numconnom;
10843
+ }
10844
+ else {
10845
+ this.isNew = true;
10846
+ }
10847
+ }
10848
+ dataInterface() {
10849
+ return {
10850
+ id_empresa: this.idEmpresa.toString(),
10851
+ id_metbco: this.idMetodoBanco.toString(),
10852
+ codmet: this.codigoMetodo,
10853
+ denmet: this.denominacionMetodo,
10854
+ tipmet: this.tipoMetodo,
10855
+ id_banco: this.id.toString(),
10856
+ codempnom: this.codigoEmpresaNominal,
10857
+ tipcuecrenom: this.tipoCuentaCreditoNominal,
10858
+ tipcuedebnom: this.tipoCuentaDebitoNominal,
10859
+ codofinom: this.codigoOficinaNomina,
10860
+ pagtaqnom: this.pagoTaquillaNomina.toString(),
10861
+ nroref: this.numeroReferencia.toString(),
10862
+ activo: this.activo.toString(),
10863
+ numconnom: this.numeroConvenio,
10864
+ };
10865
+ }
10866
+ }
10867
+ class MMetodos extends MBasicModel {
10868
+ constructor(e = null) {
10869
+ super();
10870
+ this.idEmpresa = 0;
10871
+ this.idMetodo = 0;
10872
+ this.codigoMetodo = '';
10873
+ this.denominacionMetodo = '';
10874
+ this.montoMetodo = 0;
10875
+ this.metodoCestaTicket = '';
10876
+ this.codigoProducto = '';
10877
+ this.montoDescuentoDia = 0;
10878
+ this.numeroTarjeta = '';
10879
+ if (e) {
10880
+ this.idEmpresa = parseInt(e.id_empresa);
10881
+ this.idMetodo = parseInt(e.id_metodo);
10882
+ this.codigoMetodo = e.codmet;
10883
+ this.denominacionMetodo = e.denmet;
10884
+ this.montoMetodo = +e.monmet;
10885
+ this.metodoCestaTicket = e.metcestic;
10886
+ this.codigoProducto = e.codprod;
10887
+ this.montoDescuentoDia = +e.mondesdia;
10888
+ this.numeroTarjeta = e.nrotarjeta;
10889
+ }
10890
+ else {
10891
+ this.isNew = true;
10892
+ }
10893
+ }
10894
+ dataInterface() {
10895
+ return {
10896
+ id_empresa: this.idEmpresa.toString(),
10897
+ id_metodo: this.idMetodo.toString(),
10898
+ codmet: this.codigoMetodo,
10899
+ denmet: this.denominacionMetodo,
10900
+ monmet: this.montoMetodo,
10901
+ metcestic: this.metodoCestaTicket,
10902
+ codprod: this.codigoProducto,
10903
+ mondesdia: this.montoDescuentoDia,
10904
+ nrotarjeta: this.numeroTarjeta,
10905
+ };
10906
+ }
10907
+ }
10908
+
10909
+ class MPeriodosPlan extends MBasicModel {
10910
+ constructor(e = null) {
10911
+ super();
10912
+ this.idEmpresa = 0;
10913
+ this.idPlanHorario = 0;
10914
+ this.codigoPeriodoPlan = '';
10915
+ this.denominacionPeriodoPlan = '';
10916
+ this.fechaPeriodoPlan = '1900-01-01';
10917
+ this.idPeriodo = 0;
10918
+ this.codigoPeriodo = '';
10919
+ this.idHorario = 0;
10920
+ this.incidencias = '';
10921
+ this.idDetalle = 0;
10922
+ if (e) {
10923
+ this.idEmpresa = +e.id_empresa;
10924
+ this.idPlanHorario = +e.id_planhor;
10925
+ this.codigoPeriodo = e.codperplan;
10926
+ this.denominacionPeriodoPlan = e.denperplan;
10927
+ this.fechaPeriodoPlan = e.fecperplan;
10928
+ this.idPeriodo = +e.id_periodo;
10929
+ this.codigoPeriodo = e.codperi;
10930
+ this.idHorario = +e.id_hora;
10931
+ this.incidencias = e.incidencias;
10932
+ this.idDetalle = +e.id_detalle;
10933
+ }
10934
+ else {
10935
+ this.isNew = true;
10936
+ }
10937
+ }
10938
+ dataInterface() {
10939
+ return {
10940
+ id_empresa: this.idEmpresa.toString(),
10941
+ id_planhor: this.idPlanHorario.toString(),
10942
+ codperplan: this.codigoPeriodoPlan,
10943
+ denperplan: this.denominacionPeriodoPlan,
10944
+ fecperplan: this.fechaPeriodoPlan,
10945
+ id_periodo: this.idPeriodo.toString(),
10946
+ codperi: this.codigoPeriodo,
10947
+ id_hora: this.idHorario.toString(),
10948
+ incidencias: this.incidencias,
10949
+ id_detalle: this.idDetalle.toString(),
10950
+ };
10951
+ }
10952
+ }
10953
+
10954
+ class MPrestamo extends MBasicModel {
10955
+ constructor(e = null) {
10956
+ super();
10957
+ this.idEmpresa = 0;
10958
+ this.idPersonal = 0;
10959
+ this.idPrestamo = 0;
10960
+ this.numeroPrestamo = 0;
10961
+ this.idTipoPrestamo = 0;
10962
+ this.idNomina = 0;
10963
+ this.idConcepto = 0;
10964
+ this.montoPrestamo = 0;
10965
+ this.numeroCuotasPrestamo = 0;
10966
+ this.idPeriodo = 0;
10967
+ this.motoAmortizacionPrestamo = 0;
10968
+ this.estatusPrestamo = 1;
10969
+ this.fechaPrestamo = '1900-01-01';
10970
+ this.observacionRecalculoPrestamo = '';
10971
+ this.observacionSuspencionPrestamo = '';
10972
+ this.tipoCuota = '0';
10973
+ this.denominacionTipoPrestamo = '';
10974
+ this.codigoTipoPrestamo = '';
10975
+ this.denominacionNomina = '';
10976
+ this.codigoNomina = '';
10977
+ this.denominacionConcepto = '';
10978
+ this.codigoConcepto = '';
10979
+ this.codigoPeriodo = '';
10980
+ this.fechaFinPeriodo = '1900-01-01';
10981
+ this.montoCuotaPrestamo = 0;
10982
+ this.saldoPrestamo = 0;
10983
+ this.numeroPeriodoNomina = 0;
10984
+ this.periodos = [];
10985
+ this.amortizacion = [];
10986
+ if (e) {
10987
+ this.idEmpresa = +e.id_empresa;
10988
+ this.idPrestamo = +e.id_prestamo;
10989
+ this.idPersonal = +e.id_personal;
10990
+ this.numeroPrestamo = +e.numpre;
10991
+ this.idTipoPrestamo = +e.id_tipoprestamo;
10992
+ this.idNomina = +e.id_nomina;
10993
+ this.idConcepto = +e.id_concepto;
10994
+ this.montoPrestamo = +e.monpre;
10995
+ this.numeroCuotasPrestamo = +e.numcuopre;
10996
+ this.idPeriodo = +e.id_periodo;
10997
+ this.motoAmortizacionPrestamo = +e.monamopre;
10998
+ this.estatusPrestamo = +e.estpre;
10999
+ this.fechaPrestamo = e.fecpre;
11000
+ this.observacionRecalculoPrestamo = e.obsrecpre;
11001
+ this.observacionSuspencionPrestamo = e.obssuspre;
11002
+ this.tipoCuota = e.tipcuopre;
11003
+ this.denominacionTipoPrestamo = e.destippre;
11004
+ this.codigoTipoPrestamo = e.codtippre;
11005
+ this.denominacionNomina = e.dennom;
11006
+ this.codigoNomina = e.codnom;
11007
+ this.denominacionConcepto = e.nomcon;
11008
+ this.codigoConcepto = e.codconc;
11009
+ this.codigoPeriodo = e.codperi;
11010
+ this.fechaFinPeriodo = e.fechasper;
11011
+ this.numeroPeriodoNomina = +e.numpernom;
11012
+ this.periodos = e.periodos.map(e => new MPrestamosPeriodo(e));
11013
+ this.amortizacion = e.amortizacion.map(e => new MPrestamoAmortizacion(e));
11014
+ this.montoCuotaPrestamo = this.calcularCuotas();
11015
+ this.saldoPrestamo = this.calcularSaldo();
11016
+ }
11017
+ else {
11018
+ this.isNew = true;
11019
+ }
11020
+ }
11021
+ dataInterface() {
11022
+ return {
11023
+ id_empresa: this.idEmpresa,
11024
+ id_personal: this.idPersonal,
11025
+ id_prestamo: this.idPrestamo,
11026
+ numpre: this.numeroPrestamo,
11027
+ id_tipoprestamo: this.idTipoPrestamo,
11028
+ id_nomina: this.idNomina,
11029
+ id_concepto: this.idConcepto,
11030
+ monpre: this.montoPrestamo,
11031
+ numcuopre: this.numeroCuotasPrestamo,
11032
+ id_periodo: this.idPeriodo,
11033
+ monamopre: this.motoAmortizacionPrestamo,
11034
+ estpre: this.estatusPrestamo,
11035
+ fecpre: this.fechaPrestamo,
11036
+ obsrecpre: this.observacionRecalculoPrestamo,
11037
+ obssuspre: this.observacionSuspencionPrestamo,
11038
+ tipcuopre: this.tipoCuota,
11039
+ dennom: this.denominacionNomina,
11040
+ codnom: this.codigoNomina,
11041
+ destippre: this.denominacionTipoPrestamo,
11042
+ codtippre: this.codigoTipoPrestamo,
11043
+ nomcon: this.denominacionConcepto,
11044
+ codconc: this.codigoConcepto,
11045
+ codperi: this.codigoPeriodo,
11046
+ fechasper: this.fechaFinPeriodo,
11047
+ numpernom: this.numeroPeriodoNomina,
11048
+ periodos: this.periodos.map((function (e) { return e.dataInterface(); })),
11049
+ amortizacion: this.amortizacion.map((function (e) { return e.dataInterface(); }))
11050
+ };
11051
+ }
11052
+ calcularCuotas() {
11053
+ let i = this.periodos.length - 1;
11054
+ if (i > 0) {
11055
+ return this.periodos[i].montoCuota;
11056
+ }
11057
+ return 0;
11058
+ }
11059
+ calcularSaldo() {
11060
+ let montoPago = 0;
11061
+ this.periodos.forEach(element => {
11062
+ if (element.estatusCuota == 1) {
11063
+ montoPago = montoPago + element.montoCuota;
11064
+ }
11065
+ });
11066
+ return this.montoPrestamo - this.motoAmortizacionPrestamo - montoPago;
11067
+ }
11068
+ cuotasCanceladas() {
11069
+ let cuotas = 0;
11070
+ this.periodos.forEach(element => {
11071
+ if (element.estatusCuota == 1) {
11072
+ cuotas = cuotas + 1;
11073
+ }
11074
+ });
11075
+ return cuotas;
11076
+ }
11077
+ }
11078
+ class MPrestamosPeriodo extends MBasicModel {
11079
+ constructor(e) {
11080
+ super();
11081
+ this.idEmpresa = 0;
11082
+ this.idPersonal = 0;
11083
+ this.idPrestamo = 0;
11084
+ this.numeroCuota = 0;
11085
+ this.idPeriodo = 0;
11086
+ this.fechaInicioPeriodo = '';
11087
+ this.fechaFinPeriodo = '';
11088
+ this.montoCuota = 0;
11089
+ this.estatusCuota = 0;
11090
+ if (e) {
11091
+ this.idEmpresa = +e.id_empresa;
11092
+ this.idPersonal = +e.id_personal;
11093
+ this.idPrestamo = +e.id_prestamo;
11094
+ this.numeroCuota = +e.numcuo;
11095
+ this.idPeriodo = +e.id_periodocob;
11096
+ this.fechaInicioPeriodo = e.feciniper;
11097
+ this.fechaFinPeriodo = e.fecfinper;
11098
+ this.montoCuota = +e.moncuo;
11099
+ this.estatusCuota = +e.estcuo;
11100
+ this.codigoPeriodo = e.codperipre;
11101
+ this.denominacionEstatus = this.denominacion();
11102
+ }
11103
+ else {
11104
+ this.isNew = true;
11105
+ }
11106
+ }
11107
+ dataInterface() {
11108
+ return {
11109
+ id_empresa: this.idEmpresa,
11110
+ id_personal: this.idPersonal,
11111
+ id_prestamo: this.idPrestamo,
11112
+ numcuo: this.numeroCuota,
11113
+ id_periodocob: this.idPeriodo,
11114
+ feciniper: this.fechaInicioPeriodo,
11115
+ fecfinper: this.fechaFinPeriodo,
11116
+ moncuo: this.montoCuota,
11117
+ estcuo: this.estatusCuota,
11118
+ codperipre: this.codigoPeriodo
11119
+ };
11120
+ }
11121
+ denominacion() {
11122
+ if (this.estatusCuota == 1) {
11123
+ return 'Cancelado';
11124
+ }
11125
+ else
11126
+ return 'No Cancelado';
11127
+ }
11128
+ }
11129
+ class MPrestamoAmortizacion extends MBasicModel {
11130
+ constructor(e) {
11131
+ super();
11132
+ this.idEmpresa = 0;
11133
+ this.idPersonal = 0;
11134
+ this.idPrestamo = 0;
11135
+ this.numeroAmortizacion = 0;
11136
+ this.idPeriodoAmortizacion = 0;
11137
+ this.fecchaAmortizacion = '1900-01-01';
11138
+ this.montoAmortizacion = 0;
11139
+ this.descripcionAmortizacion = '';
11140
+ if (e) {
11141
+ this.idEmpresa = +e.id_empresa;
11142
+ this.idPersonal = +e.id_personal;
11143
+ this.idPrestamo = +e.id_prestamo;
11144
+ this.numeroAmortizacion = +e.numamo;
11145
+ this.idPeriodoAmortizacion = +e.id_periodoamo;
11146
+ this.fecchaAmortizacion = e.fecamo;
11147
+ this.montoAmortizacion = +e.monamo;
11148
+ this.descripcionAmortizacion = e.desamo;
11149
+ }
11150
+ }
11151
+ dataInterface() {
11152
+ return {
11153
+ id_empresa: this.idEmpresa,
11154
+ id_personal: this.idPersonal,
11155
+ id_prestamo: this.idPrestamo,
11156
+ numamo: this.numeroAmortizacion,
11157
+ id_periodoamo: this.idPeriodoAmortizacion,
11158
+ fecamo: this.fecchaAmortizacion,
11159
+ monamo: this.montoAmortizacion,
11160
+ desamo: this.descripcionAmortizacion,
11161
+ };
11162
+ }
11163
+ }
11164
+
11165
+ class MRConsolidadoConceptos extends MBasicModel {
11166
+ constructor(e = null) {
11167
+ super();
11168
+ this.idNominaDes = 0;
11169
+ this.idNominaHas = 0;
11170
+ this.codigoNominaDes = "";
11171
+ this.codigoNominaHas = "";
11172
+ this.idPersonalDes = 0;
11173
+ this.idPersonalHas = 0;
11174
+ this.codigoPersonalDes = "";
11175
+ this.codigoPersonalHas = "";
11176
+ this.ordenDesde = 0;
11177
+ this.ordenHasta = 0;
11178
+ this.idConceptoDes = 0;
11179
+ this.idConceptoHas = 0;
11180
+ this.codigoConceptoDes = "";
11181
+ this.codigoConceptoHas = "";
11182
+ this.tipoConcepto = "";
11183
+ this.idPeriodoDes = 0;
11184
+ this.idPeriodoHas = 0;
11185
+ this.codidoPeriodoDes = "";
11186
+ this.codidoPeriodoHas = "";
11187
+ this.annocurso = 0;
11188
+ this.orden = "1";
11189
+ this.reporte = "";
11190
+ if (e) {
11191
+ this.idNominaDes = e.id_nominaDes;
11192
+ this.idNominaHas = e.id_nominaHas;
11193
+ this.codigoNominaDes = e.codnomDes;
11194
+ this.codigoNominaHas = e.codnomHas;
11195
+ this.idPersonalDes = e.id_personalDes;
11196
+ this.idPersonalHas = e.id_personalHas;
11197
+ this.codigoPersonalDes = e.codperDes;
11198
+ this.codigoPersonalHas = e.codperHas;
11199
+ this.ordenDesde = e.ordenDesde;
11200
+ this.ordenHasta = e.ordenHasta;
11201
+ this.idConceptoDes = e.id_conceptoDes;
11202
+ this.idConceptoHas = e.id_conceptoHas;
11203
+ this.codigoConceptoDes = e.codconcDes;
11204
+ this.codigoConceptoHas = e.codconcHas;
11205
+ this.tipoConcepto = e.tipconc;
11206
+ this.idPeriodoDes = e.id_periodoDes;
11207
+ this.idPeriodoHas = e.id_periodoHas;
11208
+ this.codidoPeriodoDes = e.codperiDes;
11209
+ this.codidoPeriodoHas = e.codperiHas;
11210
+ this.annocurso = e.anocur;
11211
+ this.orden = e.orden;
11212
+ this.reporte = e.reporte;
11213
+ }
11214
+ else {
11215
+ this.isNew = true;
11216
+ }
11217
+ }
11218
+ dataInterface() {
11219
+ return {
11220
+ id_nominaDes: this.idNominaDes,
11221
+ id_nominaHas: this.idNominaHas,
11222
+ codnomDes: this.codigoNominaDes,
11223
+ codnomHas: this.codigoNominaHas,
11224
+ id_personalDes: this.idPersonalDes,
11225
+ id_personalHas: this.idPersonalHas,
11226
+ codperDes: this.codigoPersonalDes,
11227
+ codperHas: this.codigoPersonalHas,
11228
+ ordenDesde: this.ordenDesde,
11229
+ ordenHasta: this.ordenHasta,
11230
+ id_conceptoDes: this.idConceptoDes,
11231
+ id_conceptoHas: this.idConceptoHas,
11232
+ codconcDes: this.codigoConceptoDes,
11233
+ codconcHas: this.codigoConceptoHas,
11234
+ tipconc: this.tipoConcepto,
11235
+ id_periodoDes: this.idPeriodoDes,
11236
+ id_periodoHas: this.idPeriodoHas,
11237
+ codperiDes: this.codidoPeriodoDes,
11238
+ codperiHas: this.codidoPeriodoHas,
11239
+ anocur: this.annocurso,
11240
+ orden: this.orden,
11241
+ reporte: this.reporte
11242
+ };
11243
+ }
11244
+ }
11245
+ class MRConstanciaTrabajo extends MBasicModel {
11246
+ constructor(e = null) {
11247
+ super();
11248
+ this.id_constancia = 0;
11249
+ this.codigoconstancia = '';
11250
+ this.plantilla_rtf = '';
11251
+ this.archivo = '';
11252
+ this.id_nomina = 0;
11253
+ this.codigonomina = '';
11254
+ this.id_personalDes = 0;
11255
+ this.id_personalHas = 0;
11256
+ this.codigopersonalDes = '';
11257
+ this.codigopersonalHas = '';
11258
+ this.orden = '1';
11259
+ if (e) {
11260
+ this.id_constancia = e.id_constancia;
11261
+ this.codigoconstancia = e.codconstra;
11262
+ this.plantilla_rtf = e.plantilla_rtf;
11263
+ this.archivo = e.archivo;
11264
+ this.id_nomina = e.id_nomina;
11265
+ this.codigonomina = e.codnom;
11266
+ this.id_personalDes = e.id_personalDes;
11267
+ this.id_personalHas = e.id_personalHas;
11268
+ this.codigopersonalDes = e.codperDes;
11269
+ this.codigopersonalHas = e.codperHas;
11270
+ this.orden = e.orden;
11271
+ }
11272
+ else {
11273
+ this.isNew = true;
11274
+ }
11275
+ }
11276
+ dataInterface() {
11277
+ return {
11278
+ id_constancia: this.id_constancia,
11279
+ codconstra: this.codigoconstancia,
11280
+ plantilla_rtf: this.plantilla_rtf,
11281
+ archivo: this.archivo,
11282
+ id_nomina: this.id_nomina,
11283
+ codnom: this.codigonomina,
11284
+ id_personalDes: this.id_personalDes,
11285
+ id_personalHas: this.id_personalHas,
11286
+ codperDes: this.codigopersonalDes,
11287
+ codperHas: this.codigopersonalHas,
11288
+ orden: this.orden,
11289
+ };
11290
+ }
11291
+ }
11292
+ class MRArchivoTXT extends MBasicModel {
11293
+ constructor(e = null) {
11294
+ super();
11295
+ this.nombrearchivo = '';
11296
+ if (e) {
11297
+ this.nombrearchivo = e.nombrearchivo;
11298
+ }
11299
+ else {
11300
+ this.isNew = true;
11301
+ }
11302
+ }
11303
+ dataInterface() {
11304
+ return {
11305
+ nombrearchivo: this.nombrearchivo
11306
+ };
11307
+ }
11308
+ }
11309
+ class MRListadoPersonal extends MBasicModel {
11310
+ constructor(e = null) {
11311
+ super();
11312
+ this.idNominaDes = 0;
11313
+ this.idNominaHas = 0;
11314
+ this.codigoNominaDes = "";
11315
+ this.codigoNominaHas = "";
11316
+ this.denominacionNominaDes = "";
11317
+ this.denominacionNominaHas = "";
11318
+ this.id_personalDes = 0;
11319
+ this.id_personalHas = 0;
11320
+ this.codigoPersonalDes = "";
11321
+ this.codigoPersonalHas = "";
11322
+ this.nombrePersonalDes = "";
11323
+ this.nombrePersonalHas = "";
11324
+ this.estatusPersonal = 1;
11325
+ this.causaEgresoPer = "";
11326
+ this.sexo = "";
11327
+ this.codigoPais = "000058";
11328
+ this.codigoEstado = "";
11329
+ this.codigoMunicipio = "";
11330
+ this.codigoParroquia = "";
11331
+ this.nombrePais = "Venezuela";
11332
+ this.nombreEstado = "";
11333
+ this.nombreMunicipio = "";
11334
+ this.nombreParroquia = "";
11335
+ this.statusPersonalNomina = "";
11336
+ this.fechaDesde = "";
11337
+ this.fechaHasta = "";
11338
+ this.orden = "1";
11339
+ this.reporte = "";
11340
+ if (e) {
11341
+ this.idNominaDes = e.id_nominaDes;
11342
+ this.idNominaHas = e.id_nominaHas;
11343
+ this.codigoNominaDes = e.codnomDes;
11344
+ this.codigoNominaHas = e.codnomHas;
11345
+ this.denominacionNominaDes = e.dennomDes;
11346
+ this.denominacionNominaHas = e.dennomHas;
11347
+ this.id_personalDes = e.id_personalDes;
11348
+ this.id_personalHas = e.id_personalHas;
11349
+ this.codigoPersonalDes = e.codperDes;
11350
+ this.codigoPersonalHas = e.codperHas;
11351
+ this.nombrePersonalDes = e.nomperDes;
11352
+ this.nombrePersonalHas = e.nomperHas;
11353
+ this.estatusPersonal = e.estper;
11354
+ this.causaEgresoPer = e.cauegrper;
11355
+ this.sexo = e.sexper;
11356
+ this.codigoPais = e.codpai;
11357
+ this.codigoEstado = e.codest;
11358
+ this.codigoMunicipio = e.codmun;
11359
+ this.codigoParroquia = e.codpar;
11360
+ this.nombrePais = e.despai;
11361
+ this.nombreEstado = e.desest;
11362
+ this.nombreMunicipio = e.desmun;
11363
+ this.nombreParroquia = e.despar;
11364
+ this.statusPersonalNomina = e.staper;
11365
+ this.fechaDesde = e.fechaDes;
11366
+ this.fechaHasta = e.fechaHas;
11367
+ this.orden = e.orden;
11368
+ this.reporte = e.reporte;
11369
+ }
11370
+ else {
11371
+ this.isNew = true;
11372
+ }
11373
+ }
11374
+ dataInterface() {
11375
+ return {
11376
+ id_nominaDes: this.idNominaDes,
11377
+ id_nominaHas: this.idNominaHas,
11378
+ codnomDes: this.codigoNominaDes,
11379
+ codnomHas: this.codigoNominaHas,
11380
+ dennomDes: this.denominacionNominaDes,
11381
+ dennomHas: this.denominacionNominaHas,
11382
+ id_personalDes: this.id_personalDes,
11383
+ id_personalHas: this.id_personalHas,
11384
+ codperDes: this.codigoPersonalDes,
11385
+ codperHas: this.codigoPersonalHas,
11386
+ nomperDes: this.nombrePersonalDes,
11387
+ nomperHas: this.nombrePersonalHas,
11388
+ estper: this.estatusPersonal,
11389
+ cauegrper: this.causaEgresoPer,
11390
+ sexper: this.sexo,
11391
+ codpai: this.codigoPais,
11392
+ codest: this.codigoEstado,
11393
+ codmun: this.codigoMunicipio,
11394
+ codpar: this.codigoParroquia,
11395
+ despai: this.nombrePais,
11396
+ desest: this.nombreEstado,
11397
+ desmun: this.nombreMunicipio,
11398
+ despar: this.nombreParroquia,
11399
+ staper: this.statusPersonalNomina,
11400
+ fechaDes: this.fechaDesde,
11401
+ fechaHas: this.fechaHasta,
11402
+ orden: this.orden,
11403
+ reporte: this.reporte
11404
+ };
11405
+ }
11406
+ }
11407
+ class MRListadoSindicato extends MBasicModel {
11408
+ constructor(e = null) {
11409
+ super();
11410
+ this.idSindicatoDes = 0;
11411
+ this.idSindicatoHas = 0;
11412
+ this.codigoSindicatoDes = '';
11413
+ this.codigoSindicatoHas = '';
11414
+ this.reporte = '';
11415
+ if (e) {
11416
+ this.idSindicatoDes = e.id_sindicatoDes;
11417
+ this.idSindicatoHas = e.id_sindicatoHas;
11418
+ this.codigoSindicatoDes = e.codSindicatoDes;
11419
+ this.codigoSindicatoHas = e.codSindicatoHas;
11420
+ this.reporte = e.reporte;
11421
+ }
11422
+ else {
11423
+ this.isNew = true;
11424
+ }
11425
+ }
11426
+ dataInterface() {
11427
+ return {
11428
+ id_sindicatoDes: this.idSindicatoDes,
11429
+ id_sindicatoHas: this.idSindicatoHas,
11430
+ codSindicatoDes: this.codigoSindicatoDes,
11431
+ codSindicatoHas: this.codigoSindicatoHas,
11432
+ reporte: this.reporte,
11433
+ };
11434
+ }
11435
+ }
11436
+ class MRListadoTipoPersonal extends MBasicModel {
11437
+ constructor(e = null) {
11438
+ super();
11439
+ this.idUbicacionFisica = 0;
11440
+ this.codigoUbicacionFisica = "";
11441
+ this.denominacionUbicacionFisica = "";
11442
+ this.codigoPais = '000058';
11443
+ this.nombrePais = 'Venezuela';
11444
+ this.codigoEstado = '---';
11445
+ this.nombreEstado = '';
11446
+ this.codigoMunicipio = '---';
11447
+ this.nombreMunicipio = '';
11448
+ this.codigoParroquia = '---';
11449
+ this.nombreParroquia = '';
11450
+ this.reporte = '';
11451
+ this.estatusPersonal = '';
11452
+ this.idOrganigrama = 0;
11453
+ this.codigoEstOrganizativa = '';
11454
+ this.denominacionEstOrganizativa = '';
11455
+ this.orden = '1';
11456
+ if (e) {
11457
+ this.idUbicacionFisica = e.id_ubifis;
11458
+ this.codigoUbicacionFisica = e.codubifis;
11459
+ this.denominacionUbicacionFisica = e.denubifis;
11460
+ this.codigoPais = '000058';
11461
+ this.nombrePais = 'Venezuela';
11462
+ this.codigoEstado = e.codest;
11463
+ this.nombreEstado = e.desest;
11464
+ this.codigoMunicipio = e.codmun;
11465
+ this.nombreMunicipio = e.desmun;
11466
+ this.codigoParroquia = e.codpar;
11467
+ this.nombreParroquia = e.despar;
11468
+ this.estatusPersonal = e.estper;
11469
+ this.idOrganigrama = e.id_organigrama;
11470
+ this.codigoEstOrganizativa = e.codestorg;
11471
+ this.denominacionEstOrganizativa = e.denestorg;
11472
+ this.reporte = e.reporte;
11473
+ this.orden = e.orden;
11474
+ }
11475
+ else {
11476
+ this.isNew = true;
11477
+ }
11478
+ }
11479
+ dataInterface() {
11480
+ return {
11481
+ id_ubifis: this.idUbicacionFisica,
11482
+ codubifis: this.codigoUbicacionFisica,
11483
+ denubifis: this.denominacionUbicacionFisica,
11484
+ codpai: this.codigoPais,
11485
+ despai: this.nombrePais,
11486
+ codest: this.codigoEstado,
11487
+ desest: this.nombreEstado,
11488
+ codmun: this.codigoMunicipio,
11489
+ desmun: this.nombreMunicipio,
11490
+ codpar: this.codigoParroquia,
11491
+ despar: this.nombreParroquia,
11492
+ estper: this.estatusPersonal,
11493
+ id_organigrama: this.idOrganigrama,
11494
+ codestorg: this.codigoEstOrganizativa,
11495
+ denestorg: this.denominacionEstOrganizativa,
11496
+ reporte: this.reporte,
11497
+ orden: this.orden
11498
+ };
11499
+ }
11500
+ }
11501
+ class MRPeriodo extends MBasicModel {
11502
+ constructor(e = null) {
11503
+ super();
11504
+ this.idPeriodo = 0;
11505
+ this.codigoPeriodo = '';
11506
+ this.fechaDesdePeriodo = '1900-01-01';
11507
+ this.fechaHastaperiodo = '1900-01-01';
11508
+ if (e) {
11509
+ this.idPeriodo = parseInt(e.id_periodo);
11510
+ this.codigoPeriodo = e.codperi;
11511
+ this.fechaDesdePeriodo = e.fecdesper;
11512
+ this.fechaHastaperiodo = e.fechasper;
11513
+ }
11514
+ else {
11515
+ this.isNew = true;
11516
+ }
11517
+ }
11518
+ dataInterface() {
11519
+ return {
11520
+ id_periodo: this.idPeriodo.toString(),
11521
+ codperi: this.codigoPeriodo,
11522
+ fecdesper: this.fechaDesdePeriodo,
11523
+ fechasper: this.fechaHastaperiodo
11524
+ };
11525
+ }
11526
+ }
11527
+ class MRRetenciones extends MBasicModel {
11528
+ constructor(e = null) {
11529
+ super();
11530
+ this.id_nomina = 0;
11531
+ this.codigonomina = '';
11532
+ this.id_personalDes = 0;
11533
+ this.id_personalHas = 0;
11534
+ this.codigopersonalDes = "";
11535
+ this.codigopersonalHas = "";
11536
+ this.annocurso = "";
11537
+ this.reporte = "";
11538
+ if (e) {
11539
+ this.id_nomina = e.id_nomina;
11540
+ this.codigonomina = e.codnom;
11541
+ this.id_personalDes = e.id_personalDes;
11542
+ this.id_personalHas = e.id_personalHas;
11543
+ this.codigopersonalDes = e.codperDes;
11544
+ this.codigopersonalHas = e.codperHas;
11545
+ this.annocurso = e.annocurso;
11546
+ this.reporte = e.reporte;
11547
+ }
11548
+ else {
11549
+ this.isNew = true;
11550
+ }
11551
+ }
11552
+ dataInterface() {
11553
+ return {
11554
+ id_nomina: this.id_nomina,
11555
+ codnom: this.codigonomina,
11556
+ id_personalDes: this.id_personalDes,
11557
+ id_personalHas: this.id_personalHas,
11558
+ codperDes: this.codigopersonalDes,
11559
+ codperHas: this.codigopersonalHas,
11560
+ annocurso: this.annocurso,
11561
+ reporte: this.reporte
11562
+ };
11563
+ }
11564
+ }
11565
+
9444
11566
  class customPaginator extends MatPaginatorIntl {
9445
11567
  constructor() {
9446
11568
  super(...arguments);
@@ -9472,5 +11594,5 @@ class customPaginator extends MatPaginatorIntl {
9472
11594
  * Generated bundle index. Do not edit.
9473
11595
  */
9474
11596
 
9475
- export { AppModule, CurrencyService, MAccountMarriage, MAdministrativeUnit, MAgenciaBanco, MAllStructure, MAnticipoPrestaciones, MArchivoTxtCampo, MAsignacionCargo, MAspectoEvaluacion, MBank, MBankAccountType, MBasicModel, MBeneficiario, MCargaFamiliar, MCargo, MCargosPersonal, MCentroCosto, MCity, MClasificacionObrero, MClasification, MClause, MClauseModality, MCodigoUnicoRac, MComponent, MComponete, MComprobantePresupuestarioEgresos, MComprobantePresupuestarioIngresos, MComunidad, MConceptoRetencion, MConceptoVacaciones, MConceptosCXP, MConceptosNomina, MConceptosPersonalNomina, MConcursante, MConcurso, MConfigSOC, MConfigSSS, MConfiguracionSCG, MConfiguracionSNO, MConfigurationRPC, MConfigurationSPG, MConstanteNomina, MConstantePersonalNomina, MCountry, MCuentaBanco, MCuentaEgresos, MCuentaIngresos, MCuentaInstitucional, MCuentaPresupuesto, MDedicacion, MDeduction, MDeductionType, MDefinicionNomina, MDefinicionesBasicas, MDetaContable, MDetaEntrada, MDeudaAnterior, MDocument, MEmpresa, MEncargaduria, MEntradaSuministros, MEscalaEvaluacion, MEscalaEvaluacionDt, MEstructuraOrganizativa, MEstructuraPresupuestariaFive, MEstructuraPresupuestariaFiveComplete, MEstructuraPresupuestariaFour, MEstructuraPresupuestariaOne, MEstructuraPresupuestariaThree, MEstructuraPresupuestariaTwo, MFamiliares, MFeriados, MFideicomiso, MFormacionAcademica, MFuenteFinanciamiento, MGrados, MGroup, MHojaTiempo, MLog, MMoneda, MMonedaConfig, MMunicipality, MNominaSimple, MOrganizationType, MParish, MPeriodoNomina, MPersonal, MPersonalJubilado, MPersonalNomina, MPlanUnicoCuenta, MPrimaGrados, MPrimasConcepto, MProveedor, MProviderBankAccount, MProviderBeneficiary, MRango, MRequisitosConcursante, MRequisitosConcursos, MRequisitosMinimos, MRights, MSalarioHistorico, MService, MServiceCharge, MServiceType, MSigecofBank, MSistema, MSolicitudEmpleo, MSpecialty, MState, MTablaVacaciones, MTablaVacacionesPeriodo, MTabulador, MTabuladorNominas, MTipoDocumentoCXP, MTipoEvaluacion, MTipoPersonal, MTiposEnfermedad, MTrabajoAnterior, MUbicacionFisica, MUnidadTributaria, MUserDetail, MUserPermit, MUsuario, MUsuarioPrefijo, MVacacionesPersonal, Reporte, SalarioNormal, SigespService, Signo, TipoCestaTicket, customPaginator, AppComponent as ɵc, SharedModule as ɵd, CatalogoComponent as ɵe, ConfirmComponent as ɵg, IconComponent as ɵh, TableSelectComponent as ɵi, CatalogoEstructurasComponent as ɵj, CatalogoDobleInputComponent as ɵk, IsoCurrencyPipe as ɵl, CustonMaterialModule as ɵm };
11597
+ export { AppModule, CurrencyService, MAccountMarriage, MAdministrativeUnit, MAgenciaBanco, MAllStructure, MAnticipoPrestaciones, MArchivoTxtCampo, MArchivosTxt, MAsignacionCargo, MAspectoEvaluacion, MBank, MBankAccountType, MBasicModel, MBeneficiario, MCalculoPrestacion, MCambioEstatusPersonal, MCargaFamiliar, MCargaMasiva, MCargo, MCargoEstructuraOrganizativa, MCargosNominas, MCargosPersonal, MCentroCosto, MCity, MClasificacionObrero, MClasification, MClause, MClauseModality, MCodigoUnicoRac, MComponent, MComponete, MComprobantePresupuestarioEgresos, MComprobantePresupuestarioIngresos, MComunidad, MConceptoRetencion, MConceptoVacaciones, MConceptosCXP, MConceptosNomina, MConceptosPersonalNomina, MConcursante, MConcurso, MConfigSOC, MConfigSSS, MConfiguracionFideicomiso, MConfiguracionSCG, MConfiguracionSNO, MConfigurationRPC, MConfigurationSPG, MConstanteNomina, MConstantePersonalNomina, MCountry, MCuentaBanco, MCuentaEgresos, MCuentaIngresos, MCuentaInstitucional, MCuentaPresupuesto, MDedicacion, MDeduction, MDeductionType, MDefinicionNomina, MDefinicionesBasicas, MDetaContable, MDetaEntrada, MDeudaAnterior, MDocument, MEmpresa, MEncargaduria, MEntradaSuministros, MEscalaEvaluacion, MEscalaEvaluacionDt, MEstructuraOrganizativa, MEstructuraPresupuestariaFive, MEstructuraPresupuestariaFiveComplete, MEstructuraPresupuestariaFour, MEstructuraPresupuestariaOne, MEstructuraPresupuestariaThree, MEstructuraPresupuestariaTwo, MEstudiosConcursantes, MExperienciaLaboral, MFamiliaConcursante, MFamiliares, MFeriados, MFideicomiso, MFideicomisoInteres, MFideicomisoPeriodo, MFideicomisoPeriodoInteres, MFideicomisoPeriodoInteresCatalogo, MFormacionAcademica, MFormacionInformal, MFuenteFinanciamiento, MGrados, MGroup, MHojaTiempo, MImpuestoSobreRenta, MItemsEvalucion, MLog, MMetodoBanco, MMetodos, MMoneda, MMonedaConfig, MMunicipality, MNominaSimple$1 as MNominaSimple, MOrganizationType, MParish, MPeriodoNomina, MPeriodosPlan, MPermisos, MPersonal, MPersonalCuentaBanco, MPersonalJubilado, MPersonalNomina, MPlanUnicoCuenta, MPlantillasConstancia, MPrestamo, MPrestamoAmortizacion, MPrestamosPeriodo, MPrevioEvaluacion, MPrevioEvaluacionDt, MPrimaGrados, MPrimasConcepto, MProveedor, MProviderBankAccount, MProviderBeneficiary, MRArchivoTXT, MRConsolidadoConceptos, MRConstanciaTrabajo, MRango, MRequisitosConcursantes, MRequisitosConcursos, MRequisitosMinimos, MResultadosEvaluacion, MRights, MSalarioHistorico, MService, MServiceCharge, MServiceType, MSigecofBank, MSistema, MSolicitudEmpleo, MSpecialty, MState, MTablaVacaciones, MTablaVacacionesPeriodo, MTabulador, MTabuladorNominas, MTipoDocumentoCXP, MTipoEvaluacion, MTipoPersonal, MTiposEnfermedad, MTrabajoAnterior, MTrabajosConcursantes, MUbicacionFisica, MUnidadTributaria, MUserDetail, MUserPermit, MUsuario, MUsuarioPrefijo, MVacacionesPersonal, Reporte, SalarioNormal, SigespService, Signo, TipoCestaTicket, customPaginator, AppComponent as ɵe, SharedModule as ɵf, CatalogoComponent as ɵg, ConfirmComponent as ɵi, IconComponent as ɵj, TableSelectComponent as ɵk, CatalogoEstructurasComponent as ɵl, CatalogoDobleInputComponent as ɵm, IsoCurrencyPipe as ɵn, CustonMaterialModule as ɵo };
9476
11598
  //# sourceMappingURL=sigesp.js.map