sigesp 0.8.85-20220516 → 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.
- package/bundles/sigesp.umd.js +105 -0
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +1 -1
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Auditoria.js +36 -0
- package/esm2015/lib/core/interfaces/Constantes.js +336 -0
- package/esm2015/lib/core/models/SNO/MAuditoria.model.js +56 -0
- package/esm2015/lib/sigesp.service.js +12 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/sigesp.js +101 -1
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Auditoria.d.ts +17 -0
- package/lib/core/interfaces/Constantes.d.ts +73 -0
- package/lib/core/models/SNO/MAuditoria.model.d.ts +19 -0
- package/lib/sigesp.service.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -6899,6 +6899,17 @@
|
|
|
6899
6899
|
SigespService.prototype.getIpAdress = function () {
|
|
6900
6900
|
this.ip_adress = sessionStorage.getItem('ip_adress');
|
|
6901
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
|
+
};
|
|
6902
6913
|
return SigespService;
|
|
6903
6914
|
}());
|
|
6904
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" });
|
|
@@ -12513,6 +12524,99 @@
|
|
|
12513
12524
|
return MRRetenciones;
|
|
12514
12525
|
}(MBasicModel));
|
|
12515
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
|
+
|
|
12516
12620
|
var customPaginator = /** @class */ (function (_super) {
|
|
12517
12621
|
__extends(customPaginator, _super);
|
|
12518
12622
|
function customPaginator() {
|
|
@@ -12686,6 +12790,7 @@
|
|
|
12686
12790
|
exports.MServiceType = MServiceType;
|
|
12687
12791
|
exports.MSigecofBank = MSigecofBank;
|
|
12688
12792
|
exports.MSistema = MSistema;
|
|
12793
|
+
exports.MSnoLog = MSnoLog;
|
|
12689
12794
|
exports.MSolicitudEmpleo = MSolicitudEmpleo;
|
|
12690
12795
|
exports.MSpecialty = MSpecialty;
|
|
12691
12796
|
exports.MState = MState;
|