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.
@@ -3746,6 +3746,8 @@ class MNominaSimple extends MBasicModel {
3746
3746
  this.idOrganigrama = 0;
3747
3747
  this.codigoEstructuraOrganizativa = '';
3748
3748
  this.denominacionEstructuraOrganizativa = '';
3749
+ this.idPersonal = 0;
3750
+ this.idPersonalNomina = 0;
3749
3751
  if (e) {
3750
3752
  this.idEmpresa = parseInt(e.id_empresa);
3751
3753
  this.idNomina = parseInt(e.id_nomina);
@@ -3776,6 +3778,8 @@ class MNominaSimple extends MBasicModel {
3776
3778
  this.idOrganigrama = +e.id_organigrama;
3777
3779
  this.codigoEstructuraOrganizativa = e.codestorg;
3778
3780
  this.denominacionEstructuraOrganizativa = e.denestorg;
3781
+ this.idPersonal = +e.id_personal;
3782
+ this.idPersonalNomina = +e.id_personalnomina;
3779
3783
  }
3780
3784
  else {
3781
3785
  this.isNew = true;
@@ -3786,6 +3790,8 @@ class MNominaSimple extends MBasicModel {
3786
3790
  id_empresa: this.idEmpresa.toString(),
3787
3791
  id_nomina: this.idNomina.toString(),
3788
3792
  id_carper: this.idCargo.toString(),
3793
+ id_personal: this.idPersonal.toString(),
3794
+ id_personalnomina: this.idPersonalNomina.toString(),
3789
3795
  };
3790
3796
  }
3791
3797
  }
@@ -5131,6 +5137,51 @@ class SigespService {
5131
5137
  }
5132
5138
  return false;
5133
5139
  }
5140
+ /**
5141
+ * @description Permite (a-z A-Z á-ú ñÑ üÜ ',.) que se escriban numeros en el input (Usar en keypress)
5142
+ * @param event Evento del teclado
5143
+ * @return boolean
5144
+ * @date 14-05-2022
5145
+ *
5146
+ */
5147
+ typeName(event) {
5148
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5149
+ || (event.key >= 'á' && event.key <= 'ú') || event.key >= 'ü' || event.key >= 'Ü' || event.key == "'" || event.keyCode == 32
5150
+ || event.key == "." || event.key == ",") {
5151
+ return true;
5152
+ }
5153
+ return false;
5154
+ }
5155
+ /**
5156
+ * @description Permite (0-9 a-z A-Z á-ú ñÑ üÜ ',.-_/:()%#º&$€£¥) que se escriban en el input (Usar en keypress)
5157
+ * @param event Evento del teclado
5158
+ * @return boolean
5159
+ * @date 14-05-2022
5160
+ *
5161
+ */
5162
+ typeText(event) {
5163
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5164
+ || (event.key >= 'á' && event.key <= 'ú') || event.key == 'ü' || event.key == 'Ü' || event.key == "'" || isNaN(+event.key)
5165
+ || event.key == "." || event.key == "," || event.key == "&" || event.key == "_" || event.key == "-" || event.key == "#"
5166
+ || event.key == "º" || event.key == "$" || event.key == "(" || event.key == ")" || event.key == "%" || event.key == ' '
5167
+ || event.key == ':' || event.key == '/' || event.keyCode == 8364 || event.keyCode == 165 || event.keyCode == 163) {
5168
+ return true;
5169
+ }
5170
+ return false;
5171
+ }
5172
+ /**
5173
+ * @description Permite (0-9 a-z A-Z ñÑ .-_) que se escriban en el input (Usar en keypress)
5174
+ * @param event Evento del teclado
5175
+ * @return boolean
5176
+ * @date 14-05-2022
5177
+ */
5178
+ typeCode(event) {
5179
+ if ((event.key >= 'a' && event.key <= 'z') || (event.key >= 'A' && event.key <= 'Z') || event.key == "ñ" || event.key == "Ñ"
5180
+ || isNaN(+event.key) || event.key == "." || event.key == "_" || event.key == "-") {
5181
+ return true;
5182
+ }
5183
+ return false;
5184
+ }
5134
5185
  /**
5135
5186
  * @description Abre el dialog de las comunidades
5136
5187
  * @return Promise<MComunidad>
@@ -7206,7 +7257,6 @@ class MCargosPersonal extends MBasicModel {
7206
7257
  this.montoCompensacionGrado = 0;
7207
7258
  this.estatusMPPPE = false;
7208
7259
  this.detallesOrganigrama = [];
7209
- this.organigramaEliminar = [];
7210
7260
  this.detallesNomina = [];
7211
7261
  if (p) {
7212
7262
  this.idPersonal = parseInt(p.id_personal);
@@ -7253,7 +7303,7 @@ class MCargosPersonal extends MBasicModel {
7253
7303
  id_ubifis: this.idUbicacionFisica.toString(),
7254
7304
  id_personalcargo: this.idPersonalCargo.toString(),
7255
7305
  detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
7256
- eliminar_organigrama: this.organigramaEliminar,
7306
+ detalles_nomina: this.detallesNomina.map(function (e) { return e.dataInterface(); }),
7257
7307
  };
7258
7308
  }
7259
7309
  }