sigesp 0.8.79-20220510 → 0.8.82-20220511

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.
@@ -480,6 +480,7 @@
480
480
  _this.codigoUsuario = e.codusu;
481
481
  _this.nombrePersonal = e.nomper;
482
482
  _this.codigoPersonal = e.codper;
483
+ _this.nacionalidad = e.nacper.toUpperCase();
483
484
  _this.cedulaPersonal = e.cedper;
484
485
  _this.codigoTablaVacaciones = e.codtabvac;
485
486
  _this.denominacionTablaVacaciones = e.dentabvac;
@@ -3964,87 +3965,6 @@
3964
3965
  return this.periodosNomina[this.indice()].fechaHastaperiodo;
3965
3966
  };
3966
3967
  return MDefinicionNomina;
3967
- }(MBasicModel));
3968
- var MNominaSimple = /** @class */ (function (_super) {
3969
- __extends(MNominaSimple, _super);
3970
- function MNominaSimple(e) {
3971
- if (e === void 0) { e = null; }
3972
- var _this = _super.call(this) || this;
3973
- _this.idEmpresa = 0;
3974
- _this.idNomina = 0;
3975
- _this.codigoNomina = '';
3976
- _this.denominacioNomina = '';
3977
- _this.idPeriodoActual = 0;
3978
- _this.totalPeriodo = 0;
3979
- _this.estatus = '';
3980
- _this.estatusPeriodo = 0;
3981
- _this.calculada = false;
3982
- _this.prenomina = false;
3983
- _this.idCargo = 0;
3984
- _this.codigoCargo = '';
3985
- _this.denominacionCargo = '';
3986
- _this.nominaRac = 0;
3987
- _this.simbolo = '';
3988
- _this.color = '';
3989
- _this.estatusPersonal = 0;
3990
- _this.denominacionEstatuspersonal = '';
3991
- _this.descripcionPeriodoNomina = '';
3992
- _this.periodoActualNomina = '';
3993
- _this.editable = false;
3994
- if (e) {
3995
- _this.idEmpresa = parseInt(e.id_empresa);
3996
- _this.idNomina = parseInt(e.id_nomina);
3997
- _this.codigoNomina = e.codnom;
3998
- _this.denominacioNomina = e.dennom;
3999
- _this.idPeriodoActual = +e.id_periodoactual;
4000
- _this.totalPeriodo = parseFloat(e.totper),
4001
- _this.estatusPeriodo = parseInt(e.cerper);
4002
- _this.calculada = e.calculado == '1' ? true : false;
4003
- _this.prenomina = e.prenomina == '1' ? true : false;
4004
- _this.estatus = _this.calculada ? 'Calculada' :
4005
- !_this.calculada && _this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
4006
- _this.editable = (_this.calculada || _this.prenomina) ? false : true;
4007
- _this.idCargo = parseInt(e.id_carper);
4008
- _this.codigoCargo = e.codcar;
4009
- _this.denominacionCargo = e.descar;
4010
- _this.nominaRac = parseInt(e.racnom);
4011
- _this.nominaRac == 1 ? _this.simbolo = 'check' : _this.simbolo = '';
4012
- _this.nominaRac == 1 ? _this.color = 'primary' : _this.color = '';
4013
- _this.estatusPersonal = parseInt(e.staper);
4014
- _this.estatusPersonal == 0 ? _this.denominacionEstatuspersonal = "NO ASIGNADO" :
4015
- _this.estatusPersonal == 1 ? _this.denominacionEstatuspersonal = "ACTIVO" :
4016
- _this.estatusPersonal == 2 ? _this.denominacionEstatuspersonal = "VACACIONES" :
4017
- _this.estatusPersonal == 3 ? _this.denominacionEstatuspersonal = "EGRESADO" :
4018
- _this.denominacionEstatuspersonal = "SUSPENDIDO";
4019
- _this.descripcionPeriodoNomina = e.despernom;
4020
- _this.periodoActualNomina = e.peractnom;
4021
- }
4022
- else {
4023
- _this.isNew = false;
4024
- }
4025
- return _this;
4026
- }
4027
- MNominaSimple.prototype.dataInterface = function () {
4028
- return {
4029
- id_empresa: this.idEmpresa.toString(),
4030
- id_nomina: this.idNomina.toString(),
4031
- codnom: this.codigoNomina,
4032
- dennom: this.denominacioNomina,
4033
- id_periodoactual: this.idPeriodoActual.toString(),
4034
- totper: this.totalPeriodo.toString(),
4035
- cerper: this.estatusPeriodo.toString(),
4036
- prenomina: this.prenomina ? '1' : '0',
4037
- calculado: this.calculada ? '1' : '0',
4038
- id_carper: this.idCargo.toString(),
4039
- descar: this.denominacionCargo,
4040
- codcar: this.codigoCargo,
4041
- racnom: this.nominaRac.toString(),
4042
- staper: this.estatusPersonal.toString(),
4043
- despernom: this.descripcionPeriodoNomina,
4044
- peractnom: this.periodoActualNomina,
4045
- };
4046
- };
4047
- return MNominaSimple;
4048
3968
  }(MBasicModel));
4049
3969
 
4050
3970
  var MAsignacionCargo = /** @class */ (function (_super) {
@@ -4214,6 +4134,9 @@
4214
4134
  _this.prenomina = false;
4215
4135
  _this.editables = false;
4216
4136
  _this.calculada = false;
4137
+ _this.idOrganigrama = 0;
4138
+ _this.codigoEstructuraOrganizativa = '';
4139
+ _this.denominacionEstructuraOrganizativa = '';
4217
4140
  if (e) {
4218
4141
  _this.idEmpresa = parseInt(e.id_empresa);
4219
4142
  _this.idNomina = parseInt(e.id_nomina);
@@ -4227,6 +4150,9 @@
4227
4150
  _this.estatus = _this.calculada ? 'Calculada' :
4228
4151
  !_this.calculada && _this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
4229
4152
  _this.editables = (_this.calculada || _this.prenomina) ? false : true;
4153
+ _this.idOrganigrama = +e.id_organigrama;
4154
+ _this.codigoEstructuraOrganizativa = e.codestorg;
4155
+ _this.denominacionEstructuraOrganizativa = e.denestorg;
4230
4156
  }
4231
4157
  else {
4232
4158
  _this.isNew = true;
@@ -4244,7 +4170,7 @@
4244
4170
  return MCargosNominas;
4245
4171
  }(MBasicModel));
4246
4172
 
4247
- var MNominaSimple$1 = /** @class */ (function (_super) {
4173
+ var MNominaSimple = /** @class */ (function (_super) {
4248
4174
  __extends(MNominaSimple, _super);
4249
4175
  function MNominaSimple(e) {
4250
4176
  if (e === void 0) { e = null; }
@@ -4270,6 +4196,9 @@
4270
4196
  _this.descripcionPeriodoNomina = '';
4271
4197
  _this.periodoActualNomina = '';
4272
4198
  _this.editable = false;
4199
+ _this.idOrganigrama = 0;
4200
+ _this.codigoEstructuraOrganizativa = '';
4201
+ _this.denominacionEstructuraOrganizativa = '';
4273
4202
  if (e) {
4274
4203
  _this.idEmpresa = parseInt(e.id_empresa);
4275
4204
  _this.idNomina = parseInt(e.id_nomina);
@@ -4297,6 +4226,9 @@
4297
4226
  _this.denominacionEstatuspersonal = "SUSPENDIDO";
4298
4227
  _this.descripcionPeriodoNomina = e.despernom;
4299
4228
  _this.periodoActualNomina = e.peractnom;
4229
+ _this.idOrganigrama = +e.id_organigrama;
4230
+ _this.codigoEstructuraOrganizativa = e.codestorg;
4231
+ _this.denominacionEstructuraOrganizativa = e.denestorg;
4300
4232
  }
4301
4233
  else {
4302
4234
  _this.isNew = true;
@@ -6544,7 +6476,7 @@
6544
6476
  *
6545
6477
  */
6546
6478
  SigespService.prototype.getNomina = function (tipo, id) {
6547
- return this.http.get(this.URL + "/dao/sno/definicion_nomina_dao.php?tipo=" + tipo + "$id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6479
+ return this.http.get(this.URL + "/dao/sno/definicion_nomina_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6548
6480
  if (res.success) {
6549
6481
  res.data = res.data.map(function (e) { return new MDefinicionNomina(e); });
6550
6482
  }
@@ -6558,7 +6490,7 @@
6558
6490
  * @returns array()
6559
6491
  */
6560
6492
  SigespService.prototype.getCargosNomina = function (tipo, id) {
6561
- return this.http.get(this.URL + "/dao/sno/asignacion_cargos_dao.php?tipo=" + tipo + "$id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6493
+ return this.http.get(this.URL + "/dao/sno/asignacion_cargos_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6562
6494
  if (res.success) {
6563
6495
  res.data = res.data.map(function (e) { return new MAsignacionCargo(e); });
6564
6496
  }
@@ -6571,7 +6503,7 @@
6571
6503
  * @author Dimaly Crespo
6572
6504
  */
6573
6505
  SigespService.prototype.getPersonalSRH = function (tipo, id) {
6574
- return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + "$id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6506
+ return this.http.get(this.URL + "/dao/sno/personal_dao.php?tipo=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6575
6507
  if (res.success) {
6576
6508
  res.data = res.data.map(function (e) { return new MPersonal(e); });
6577
6509
  }
@@ -6584,7 +6516,7 @@
6584
6516
  * @author Dimaly Crespo
6585
6517
  */
6586
6518
  SigespService.prototype.getAgenciaBanco = function (tipo, id) {
6587
- return this.http.get(this.URL + "/dao/scb/agencia_dao.php?code=" + tipo + "$id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6519
+ return this.http.get(this.URL + "/dao/scb/agencia_dao.php?code=" + tipo + "&id=" + id, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6588
6520
  if (res.success) {
6589
6521
  res.data = res.data.map(function (e) { return new MAgenciaBanco(e); });
6590
6522
  }
@@ -6791,7 +6723,7 @@
6791
6723
  SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
6792
6724
  return this.http.get(this.URL + "/dao/sno/personal_dao.php?idPersonal=" + idPersonal + "&tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
6793
6725
  if (res.success) {
6794
- res.data = res.data.map(function (e) { return new MNominaSimple$1(e); });
6726
+ res.data = res.data.map(function (e) { return new MNominaSimple(e); });
6795
6727
  }
6796
6728
  return res;
6797
6729
  }));
@@ -8352,10 +8284,10 @@
8352
8284
  _this.formulaIncidencia = e.forincidencia;
8353
8285
  _this.orden = parseInt(e.orden);
8354
8286
  if (e.forcon.length > 40) {
8355
- _this.formulaReducida = e.forcon.substr(0, 40) + '...';
8287
+ _this.formulaReducida = e.forcon.substring(0, 40) + '...';
8356
8288
  }
8357
8289
  else {
8358
- _this.formulaReducida = e.forcon.substr(0, 40);
8290
+ _this.formulaReducida = e.forcon.substring(0, 40);
8359
8291
  }
8360
8292
  _this.nombreSigno = _this.denominacionSigno(_this.signoConcepto);
8361
8293
  _this.evaluarEnPrenomina = +e.evaprenom;
@@ -12667,7 +12599,7 @@
12667
12599
  exports.MMoneda = MMoneda;
12668
12600
  exports.MMonedaConfig = MMonedaConfig;
12669
12601
  exports.MMunicipality = MMunicipality;
12670
- exports.MNominaSimple = MNominaSimple$1;
12602
+ exports.MNominaSimple = MNominaSimple;
12671
12603
  exports.MOrganizationType = MOrganizationType;
12672
12604
  exports.MParish = MParish;
12673
12605
  exports.MPeriodoNomina = MPeriodoNomina;