sigesp 1.1.29-20241208 → 1.1.30-20241209

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.
@@ -9942,7 +9942,9 @@ class MCargosPersonal extends MBasicModel {
9942
9942
  this.idClasificadorPersonal = 0;
9943
9943
  this.codigoClasificadorPersonal = '';
9944
9944
  this.denominacionClasificadorPersonal = '';
9945
- this.detallesOrganigrama = [];
9945
+ this.idOrganigrama = 0;
9946
+ this.codigoEstructuraOrganizativa = '';
9947
+ this.denominacionEstructuraOrganizativa = '';
9946
9948
  this.detallesNomina = [];
9947
9949
  if (p) {
9948
9950
  this.idEnterprise = +p.id_enterprise;
@@ -9969,15 +9971,14 @@ class MCargosPersonal extends MBasicModel {
9969
9971
  this.montoSalarioGrado = parseFloat(p.monsalgra);
9970
9972
  this.montoCompensacionGrado = parseFloat(p.moncomgra);
9971
9973
  this.estatusMPPPE = p.estmpppe == '1' ? true : false;
9972
- this.idClasificadorDocente = +p.id_clasificacion_docente;
9973
9974
  this.codigoClasificador = p.codcladoc;
9974
9975
  this.denominacionClasificador = p.dencladec;
9975
9976
  this.idClasificadorPersonal = +p.id_claper;
9976
9977
  this.codigoClasificadorPersonal = p.codclaper;
9977
9978
  this.denominacionClasificadorPersonal = p.denclaper;
9978
- if (p.detalles_organigrama) {
9979
- this.detallesOrganigrama = p.detalles_organigrama.map(e => new MCargoEstructuraOrganizativa(e));
9980
- }
9979
+ this.idOrganigrama = +p.id_organigrama;
9980
+ this.codigoEstructuraOrganizativa = p.codestorg;
9981
+ this.denominacionEstructuraOrganizativa = p.denestorg;
9981
9982
  if (p.detalles_nomina) {
9982
9983
  this.detallesNomina = p.detalles_nomina.map(e => new MNominaSimple(e));
9983
9984
  }
@@ -9997,11 +9998,10 @@ class MCargosPersonal extends MBasicModel {
9997
9998
  codpas: this.codigoPaso,
9998
9999
  id_ubifis: this.idUbicacionFisica.toString(),
9999
10000
  id_personalcargo: this.idPersonalCargo.toString(),
10000
- id_clasificacion_docente: this.idClasificadorDocente.toString(),
10001
10001
  id_claper: this.idClasificadorPersonal.toString(),
10002
10002
  id_dedicacion: this.idDedicacion.toString(),
10003
10003
  id_tipopersonal: this.idTipoPersonalSno.toString(),
10004
- detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
10004
+ id_organigrama: this.idOrganigrama.toString(),
10005
10005
  detalles_nomina: this.detallesNomina.map(function (e) { return e.dataInterface(); }),
10006
10006
  };
10007
10007
  }
@@ -11405,39 +11405,27 @@ class MDefinicionesBasicas extends MBasicModel {
11405
11405
  this.idDefinicion = -1;
11406
11406
  this.codigo = '';
11407
11407
  this.denominacion = '';
11408
- this.tipoPersonalObrero = false;
11409
- this.observacionRetenciones = '';
11408
+ this.tipo = 0;
11410
11409
  if (e) {
11411
11410
  this.idEnterprise = +e.id_enterprise;
11412
11411
  this.idEmpresa = +e.id_empresa;
11413
11412
  this.idDefinicion = parseInt(e.id);
11414
11413
  this.codigo = e.coddef;
11415
11414
  this.denominacion = e.dendef;
11416
- if (e.tipperobr == '0') {
11417
- this.tipoPersonalObrero = false;
11418
- }
11419
- else if (e.tipperobr == '1') {
11420
- this.tipoPersonalObrero = true;
11421
- }
11422
- this.observacionRetenciones = e.obsconret;
11415
+ this.tipo = +e.tipo;
11423
11416
  }
11424
11417
  else {
11425
11418
  this.isNew = true;
11426
11419
  }
11427
11420
  }
11428
11421
  dataInterface() {
11429
- let tipo = '0';
11430
- if (this.tipoPersonalObrero) {
11431
- tipo = '1';
11432
- }
11433
11422
  return {
11434
11423
  id_enterprise: this.idEnterprise.toString(),
11435
11424
  id_empresa: this.idEmpresa,
11436
11425
  id: this.idDefinicion.toString(),
11437
11426
  coddef: this.codigo,
11438
11427
  dendef: this.denominacion,
11439
- tipperobr: tipo,
11440
- obsconret: this.observacionRetenciones,
11428
+ tipo: this.tipo.toString(),
11441
11429
  };
11442
11430
  }
11443
11431
  }