sigesp 0.8.82-20220511 → 0.8.85-20220516

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.
@@ -4199,6 +4199,8 @@
4199
4199
  _this.idOrganigrama = 0;
4200
4200
  _this.codigoEstructuraOrganizativa = '';
4201
4201
  _this.denominacionEstructuraOrganizativa = '';
4202
+ _this.idPersonal = 0;
4203
+ _this.idPersonalNomina = 0;
4202
4204
  if (e) {
4203
4205
  _this.idEmpresa = parseInt(e.id_empresa);
4204
4206
  _this.idNomina = parseInt(e.id_nomina);
@@ -4229,6 +4231,8 @@
4229
4231
  _this.idOrganigrama = +e.id_organigrama;
4230
4232
  _this.codigoEstructuraOrganizativa = e.codestorg;
4231
4233
  _this.denominacionEstructuraOrganizativa = e.denestorg;
4234
+ _this.idPersonal = +e.id_personal;
4235
+ _this.idPersonalNomina = +e.id_personalnomina;
4232
4236
  }
4233
4237
  else {
4234
4238
  _this.isNew = true;
@@ -4240,6 +4244,8 @@
4240
4244
  id_empresa: this.idEmpresa.toString(),
4241
4245
  id_nomina: this.idNomina.toString(),
4242
4246
  id_carper: this.idCargo.toString(),
4247
+ id_personal: this.idPersonal.toString(),
4248
+ id_personalnomina: this.idPersonalNomina.toString(),
4243
4249
  };
4244
4250
  };
4245
4251
  return MNominaSimple;
@@ -5639,6 +5645,51 @@
5639
5645
  }
5640
5646
  return false;
5641
5647
  };
5648
+ /**
5649
+ * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
5650
+ * @param event Evento del teclado
5651
+ * @return boolean
5652
+ * @date 14-05-2022
5653
+ *
5654
+ */
5655
+ SigespService.prototype.typeName = function (event) {
5656
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5657
+ || (event.key >= 'á' && event.key <= 'ú') || event.key >= 'ü' || event.key >= 'Ü' || event.key == "'" || event.keyCode == 32
5658
+ || event.key == "." || event.key == ",") {
5659
+ return true;
5660
+ }
5661
+ return false;
5662
+ };
5663
+ /**
5664
+ * @description Permite (0-9 a-z A-Z á-ú ñÑ üÜ ',.-_/:()%#º&$€£¥) que se escriban en el input (Usar en keypress)
5665
+ * @param event Evento del teclado
5666
+ * @return boolean
5667
+ * @date 14-05-2022
5668
+ *
5669
+ */
5670
+ SigespService.prototype.typeText = function (event) {
5671
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5672
+ || (event.key >= 'á' && event.key <= 'ú') || event.key == 'ü' || event.key == 'Ü' || event.key == "'" || isNaN(+event.key)
5673
+ || event.key == "." || event.key == "," || event.key == "&" || event.key == "_" || event.key == "-" || event.key == "#"
5674
+ || event.key == "º" || event.key == "$" || event.key == "(" || event.key == ")" || event.key == "%" || event.key == ' '
5675
+ || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163) {
5676
+ return true;
5677
+ }
5678
+ return false;
5679
+ };
5680
+ /**
5681
+ * @description Permite (0-9 a-z A-Z ñÑ .-_) que se escriban en el input (Usar en keypress)
5682
+ * @param event Evento del teclado
5683
+ * @return boolean
5684
+ * @date 14-05-2022
5685
+ */
5686
+ SigespService.prototype.typeCode = function (event) {
5687
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5688
+ || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-") {
5689
+ return true;
5690
+ }
5691
+ return false;
5692
+ };
5642
5693
  /**
5643
5694
  * @description Abre el dialog de las comunidades
5644
5695
  * @return Promise<MComunidad>
@@ -7891,7 +7942,6 @@
7891
7942
  _this.montoCompensacionGrado = 0;
7892
7943
  _this.estatusMPPPE = false;
7893
7944
  _this.detallesOrganigrama = [];
7894
- _this.organigramaEliminar = [];
7895
7945
  _this.detallesNomina = [];
7896
7946
  if (p) {
7897
7947
  _this.idPersonal = parseInt(p.id_personal);
@@ -7939,7 +7989,7 @@
7939
7989
  id_ubifis: this.idUbicacionFisica.toString(),
7940
7990
  id_personalcargo: this.idPersonalCargo.toString(),
7941
7991
  detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
7942
- eliminar_organigrama: this.organigramaEliminar,
7992
+ detalles_nomina: this.detallesNomina.map(function (e) { return e.dataInterface(); }),
7943
7993
  };
7944
7994
  };
7945
7995
  return MCargosPersonal;