sigesp 0.8.83-20220512 → 0.8.86-20220519

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.
@@ -5645,6 +5645,51 @@
5645
5645
  }
5646
5646
  return false;
5647
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
+ };
5648
5693
  /**
5649
5694
  * @description Abre el dialog de las comunidades
5650
5695
  * @return Promise<MComunidad>
@@ -6854,6 +6899,17 @@
6854
6899
  SigespService.prototype.getIpAdress = function () {
6855
6900
  this.ip_adress = sessionStorage.getItem('ip_adress');
6856
6901
  };
6902
+ /**
6903
+ * @description Obtiene el Ip del cliente
6904
+ * @return Json data
6905
+ * @dia 19-05-2022
6906
+ */
6907
+ SigespService.prototype.createAuditoria = function (sno) {
6908
+ var body = [];
6909
+ sno.forEach(function (e) { body.push(e.dataInteface()); });
6910
+ return this.http.post(this.URL + "/dao/sno/seguridad_dao.php?", body, { headers: this.getHttpHeaders() })
6911
+ .pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res; }));
6912
+ };
6857
6913
  return SigespService;
6858
6914
  }());
6859
6915
  SigespService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SigespService_Factory() { return new SigespService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i3.ToastrService)); }, token: SigespService, providedIn: "root" });
@@ -7897,7 +7953,6 @@
7897
7953
  _this.montoCompensacionGrado = 0;
7898
7954
  _this.estatusMPPPE = false;
7899
7955
  _this.detallesOrganigrama = [];
7900
- _this.organigramaEliminar = [];
7901
7956
  _this.detallesNomina = [];
7902
7957
  if (p) {
7903
7958
  _this.idPersonal = parseInt(p.id_personal);
@@ -7945,7 +8000,7 @@
7945
8000
  id_ubifis: this.idUbicacionFisica.toString(),
7946
8001
  id_personalcargo: this.idPersonalCargo.toString(),
7947
8002
  detalles_organigrama: this.detallesOrganigrama.map(function (e) { return e.dataInterface(); }),
7948
- eliminar_organigrama: this.organigramaEliminar,
8003
+ detalles_nomina: this.detallesNomina.map(function (e) { return e.dataInterface(); }),
7949
8004
  };
7950
8005
  };
7951
8006
  return MCargosPersonal;
@@ -12469,6 +12524,99 @@
12469
12524
  return MRRetenciones;
12470
12525
  }(MBasicModel));
12471
12526
 
12527
+ var Campos = [
12528
+ { value: "nomper", denominacion: "nombrePersonal" },
12529
+ { value: "apeper", denominacion: "apellidoPersonal" },
12530
+ { value: "fecnacper", denominacion: "fechaNacimientoPersonal" },
12531
+ { value: "nacper", denominacion: "nacionalidadPersonal" },
12532
+ { value: "fecingper", denominacion: "fechaIngerosPersonal" },
12533
+ { value: "estper", denominacion: "estatusPersonal" },
12534
+ { value: "id_carper", denominacion: "idCargo" },
12535
+ { value: "id_tabulador", denominacion: "idTabulador" },
12536
+ { value: "codgra", denominacion: "codigoGrado" },
12537
+ { value: "codpas", denominacion: "codigoPaso" },
12538
+ { value: "id_ubifis", denominacion: "idUbicacionFisica" },
12539
+ { value: "emptraant", denominacion: "empresaTrabajoAnterior" },
12540
+ { value: "ultcartraant", denominacion: "apellidoPersonal" },
12541
+ { value: "ultsuetraant", denominacion: "ultcartraant" },
12542
+ { value: "fecingtraant", denominacion: "fechaIngresoTrabajoAnterior" },
12543
+ { value: "fecrettraant", denominacion: "fechaRetiroTrabajoAnterior" },
12544
+ { value: "emppubtraant", denominacion: "empresaPublicaTrabajoAnterior" },
12545
+ { value: "id_dedicacion", denominacion: "idDedicacion" },
12546
+ { value: "anolab", denominacion: "anoLaborados" },
12547
+ { value: "meslab", denominacion: "mesLaborado" },
12548
+ { value: "dialab", denominacion: "diaLaborado" },
12549
+ { value: "denctabanper", denominacion: "denominacionCuentaBancoPersonal" },
12550
+ { value: "id_banco", denominacion: "idBanco" },
12551
+ { value: "id_tipocta", denominacion: "idTipoCuentaBanco" },
12552
+ { value: "ctabanper", denominacion: "cuentaBancoPersonal" },
12553
+ { value: "estctabco", denominacion: "estatusCuentaBanco" },
12554
+ { value: "tipctapri", denominacion: "tipoCuentaPrincipal" },
12555
+ { value: "sueper", denominacion: "sueldoPersonal" },
12556
+ { value: "staper", denominacion: "statusPersonal" },
12557
+ ];
12558
+ var Eventos = [
12559
+ { value: "UPDATE" },
12560
+ { value: "DELETE" }
12561
+ ];
12562
+
12563
+ var MSnoLog = /** @class */ (function (_super) {
12564
+ __extends(MSnoLog, _super);
12565
+ function MSnoLog(e) {
12566
+ var _this = _super.call(this) || this;
12567
+ _this.idEmpresa = 0;
12568
+ _this.idPersonal = 0;
12569
+ _this.idAuditoriaPersonal = 0;
12570
+ _this.idNomina = 0;
12571
+ _this.fecha = "1900-01-01";
12572
+ _this.hora = "";
12573
+ _this.campo = "";
12574
+ _this.valorAnterior = "";
12575
+ _this.valorNuevo = "";
12576
+ _this.codigoUsuario = "";
12577
+ _this.observacion = '';
12578
+ _this.evento = '';
12579
+ _this.campoPermitido = Campos;
12580
+ if (e) {
12581
+ _this.idEmpresa = +e.id_empresa;
12582
+ _this.idPersonal = +e.id_personal;
12583
+ _this.idAuditoriaPersonal = +e.id_auditoria_personal;
12584
+ _this.idNomina = +e.id_nomina;
12585
+ _this.fecha = e.fecha;
12586
+ _this.hora = e.hora;
12587
+ _this.campo = e.campo;
12588
+ _this.valorAnterior = e.valor_anterior;
12589
+ _this.valorNuevo = e.valor_nuevo;
12590
+ _this.codigoUsuario = e.codusu;
12591
+ _this.observacion = e.observacion;
12592
+ _this.evento = e.evento;
12593
+ }
12594
+ else {
12595
+ _this.isNew = true;
12596
+ }
12597
+ return _this;
12598
+ }
12599
+ MSnoLog.prototype.dataInteface = function () {
12600
+ var _this = this;
12601
+ return {
12602
+ id_empresa: this.idEmpresa.toString(),
12603
+ id_personal: this.idPersonal.toString(),
12604
+ id_auditoria_personal: this.idAuditoriaPersonal.toString(),
12605
+ id_nomina: this.idNomina.toString(),
12606
+ fecha: moment__namespace().format('YYYY-MM-DD'),
12607
+ hora: moment__namespace().format('h:mm:ss a'),
12608
+ campo: this.campoPermitido.find(function (e) { return e.denominacion == _this.campo; }).value,
12609
+ valor_anterior: this.valorAnterior,
12610
+ valor_nuevo: this.evento == 'DELETE' ? '-' : this.valorNuevo,
12611
+ codusu: this.codigoUsuario,
12612
+ evento: this.evento.toUpperCase(),
12613
+ observacion: this.evento == 'DELETE' ? "Eliminado el registro relacionado al campo: " + this.campo :
12614
+ "Actualizado el registro relacionado al campo: " + this.campo,
12615
+ };
12616
+ };
12617
+ return MSnoLog;
12618
+ }(MBasicModel));
12619
+
12472
12620
  var customPaginator = /** @class */ (function (_super) {
12473
12621
  __extends(customPaginator, _super);
12474
12622
  function customPaginator() {
@@ -12642,6 +12790,7 @@
12642
12790
  exports.MServiceType = MServiceType;
12643
12791
  exports.MSigecofBank = MSigecofBank;
12644
12792
  exports.MSistema = MSistema;
12793
+ exports.MSnoLog = MSnoLog;
12645
12794
  exports.MSolicitudEmpleo = MSolicitudEmpleo;
12646
12795
  exports.MSpecialty = MSpecialty;
12647
12796
  exports.MState = MState;