sigesp 0.8.90-20220526 → 0.8.93-202205268
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 +77 -47
- package/bundles/sigesp.umd.js.map +1 -1
- package/bundles/sigesp.umd.min.js +2 -2
- package/bundles/sigesp.umd.min.js.map +1 -1
- package/esm2015/lib/core/interfaces/Auditoria.js +12 -1
- package/esm2015/lib/core/models/SNO/MAuditoria.model.js +5 -3
- package/esm2015/lib/core/models/SSS/user.model.js +22 -15
- package/esm2015/lib/core/models/SSS/userDetail.model.js +20 -16
- package/esm2015/lib/core/models/SSS/userPrefix.model.js +12 -8
- package/fesm2015/sigesp.js +70 -44
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Auditoria.d.ts +1 -0
- package/lib/core/models/SNO/MAuditoria.model.d.ts +1 -0
- package/lib/core/models/SSS/user.model.d.ts +3 -2
- package/lib/core/models/SSS/userDetail.model.d.ts +5 -4
- package/lib/core/models/SSS/userPrefix.model.d.ts +3 -2
- package/package.json +1 -1
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -738,28 +738,36 @@
|
|
|
738
738
|
return MHorario;
|
|
739
739
|
}(MBasicModel));
|
|
740
740
|
|
|
741
|
-
var MUsuario = /** @class */ (function () {
|
|
741
|
+
var MUsuario = /** @class */ (function (_super) {
|
|
742
|
+
__extends(MUsuario, _super);
|
|
742
743
|
function MUsuario(user) {
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
744
|
+
var _this = _super.call(this) || this;
|
|
745
|
+
_this.interface = null;
|
|
746
|
+
if (user) {
|
|
747
|
+
_this.apellido = user.apellido;
|
|
748
|
+
_this.nombre = user.nombre;
|
|
749
|
+
_this.conexionDB = user.conexionDB;
|
|
750
|
+
_this.empresa = user.empresa;
|
|
751
|
+
_this.token = user.token;
|
|
752
|
+
_this.procede = user.procede;
|
|
753
|
+
_this.codsis = user.codsis;
|
|
754
|
+
_this.foto = user.foto;
|
|
755
|
+
_this.id = parseInt(user.id_usuario);
|
|
756
|
+
_this.interface = user;
|
|
757
|
+
_this.nomina = parseInt(user.nomina);
|
|
758
|
+
_this.periodo = parseInt(user.periodo);
|
|
759
|
+
_this.carpeta = user.carpeta;
|
|
760
|
+
}
|
|
761
|
+
else {
|
|
762
|
+
_this.isNew = true;
|
|
763
|
+
}
|
|
764
|
+
return _this;
|
|
757
765
|
}
|
|
758
766
|
MUsuario.prototype.getInterface = function () {
|
|
759
767
|
return this.interface;
|
|
760
768
|
};
|
|
761
769
|
return MUsuario;
|
|
762
|
-
}());
|
|
770
|
+
}(MBasicModel));
|
|
763
771
|
|
|
764
772
|
var MProveedor = /** @class */ (function () {
|
|
765
773
|
function MProveedor(proveedor) {
|
|
@@ -771,17 +779,22 @@
|
|
|
771
779
|
return MProveedor;
|
|
772
780
|
}());
|
|
773
781
|
|
|
774
|
-
var MUsuarioPrefijo = /** @class */ (function () {
|
|
782
|
+
var MUsuarioPrefijo = /** @class */ (function (_super) {
|
|
783
|
+
__extends(MUsuarioPrefijo, _super);
|
|
775
784
|
function MUsuarioPrefijo(prefijo) {
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
785
|
+
var _this = _super.call(this) || this;
|
|
786
|
+
if (prefijo) {
|
|
787
|
+
_this.codsis = prefijo.codsis;
|
|
788
|
+
_this.codusu = prefijo.codusu;
|
|
789
|
+
_this.id = prefijo.id;
|
|
790
|
+
_this.id_empresa = prefijo.id_empresa;
|
|
791
|
+
_this.prefijo = prefijo.prefijo;
|
|
792
|
+
_this.procede = prefijo.procede;
|
|
793
|
+
}
|
|
794
|
+
return _this;
|
|
782
795
|
}
|
|
783
796
|
return MUsuarioPrefijo;
|
|
784
|
-
}());
|
|
797
|
+
}(MBasicModel));
|
|
785
798
|
|
|
786
799
|
var CatalogoComponent = /** @class */ (function () {
|
|
787
800
|
function CatalogoComponent(dialogRef, dialogData) {
|
|
@@ -1728,17 +1741,20 @@
|
|
|
1728
1741
|
return MRights;
|
|
1729
1742
|
}(MBasicModel));
|
|
1730
1743
|
|
|
1744
|
+
var moment = require("moment");
|
|
1731
1745
|
var MUserDetail = /** @class */ (function (_super) {
|
|
1732
1746
|
__extends(MUserDetail, _super);
|
|
1733
1747
|
function MUserDetail(user) {
|
|
1734
1748
|
var _this = _super.call(this) || this;
|
|
1735
|
-
_this.id =
|
|
1749
|
+
_this.id = 0;
|
|
1750
|
+
_this.idCompany = 0;
|
|
1736
1751
|
_this.lastName = '';
|
|
1737
1752
|
_this.identification = '';
|
|
1738
|
-
_this.
|
|
1739
|
-
_this.
|
|
1740
|
-
_this.
|
|
1741
|
-
_this.
|
|
1753
|
+
_this.email = '';
|
|
1754
|
+
_this.blockDate = '1900-01-01';
|
|
1755
|
+
_this.passDate = '1900-01-01';
|
|
1756
|
+
_this.birthday = '1900-01-01';
|
|
1757
|
+
_this.registrationDate = moment().format('YYYY-MM-DD');
|
|
1742
1758
|
_this.photo = 'default.png';
|
|
1743
1759
|
_this.name = '';
|
|
1744
1760
|
_this.notes = '';
|
|
@@ -1747,17 +1763,18 @@
|
|
|
1747
1763
|
_this.admin = false;
|
|
1748
1764
|
_this.rights = [];
|
|
1749
1765
|
if (user) {
|
|
1766
|
+
_this.idCompany = parseInt(user.id_empresa);
|
|
1750
1767
|
_this.id = parseInt(user.id_usuario);
|
|
1751
1768
|
_this.lastName = user.apeusu;
|
|
1752
1769
|
_this.identification = user.cedusu;
|
|
1753
1770
|
_this.username = user.codusu;
|
|
1754
1771
|
_this.email = user.emausu;
|
|
1755
1772
|
_this.status = parseInt(user.estusu);
|
|
1756
|
-
_this.blockDate =
|
|
1757
|
-
_this.passDate =
|
|
1758
|
-
_this.birthday =
|
|
1759
|
-
_this.registrationDate =
|
|
1760
|
-
|
|
1773
|
+
_this.blockDate = user.fecblousu;
|
|
1774
|
+
_this.passDate = user.feccampwd;
|
|
1775
|
+
_this.birthday = user.fecnac;
|
|
1776
|
+
_this.registrationDate = user.fecregusu,
|
|
1777
|
+
_this.photo = user.fotusu;
|
|
1761
1778
|
_this.name = user.nomusu;
|
|
1762
1779
|
_this.notes = user.obsusu;
|
|
1763
1780
|
_this.password = user.pwdusu;
|
|
@@ -1777,12 +1794,12 @@
|
|
|
1777
1794
|
codusu: this.username,
|
|
1778
1795
|
emausu: this.email,
|
|
1779
1796
|
estusu: this.status.toString(),
|
|
1780
|
-
fecblousu:
|
|
1781
|
-
feccampwd:
|
|
1782
|
-
fecnac:
|
|
1783
|
-
fecregusu:
|
|
1797
|
+
fecblousu: this.blockDate,
|
|
1798
|
+
feccampwd: this.passDate,
|
|
1799
|
+
fecnac: this.birthday,
|
|
1800
|
+
fecregusu: this.registrationDate,
|
|
1784
1801
|
fotusu: this.photo,
|
|
1785
|
-
id_empresa:
|
|
1802
|
+
id_empresa: this.idCompany.toString(),
|
|
1786
1803
|
id_usuario: this.id.toString(),
|
|
1787
1804
|
nomusu: this.name,
|
|
1788
1805
|
obsusu: this.notes,
|
|
@@ -3619,7 +3636,7 @@
|
|
|
3619
3636
|
return MPeriodoNomina;
|
|
3620
3637
|
}(MBasicModel));
|
|
3621
3638
|
|
|
3622
|
-
var moment = require("moment");
|
|
3639
|
+
var moment$1 = require("moment");
|
|
3623
3640
|
var MDefinicionNomina = /** @class */ (function (_super) {
|
|
3624
3641
|
__extends(MDefinicionNomina, _super);
|
|
3625
3642
|
function MDefinicionNomina(e) {
|
|
@@ -3893,7 +3910,7 @@
|
|
|
3893
3910
|
MDefinicionNomina.prototype.fechaFinalNomina = function () {
|
|
3894
3911
|
var i = this.periodosNomina.length - 1;
|
|
3895
3912
|
var fechaFin = this.periodosNomina[i].fechaHastaperiodo;
|
|
3896
|
-
return moment(fechaFin).format('DD/MM/YYYY');
|
|
3913
|
+
return moment$1(fechaFin).format('DD/MM/YYYY');
|
|
3897
3914
|
};
|
|
3898
3915
|
/**
|
|
3899
3916
|
* @returns fecha de inicio a fin de la nomina
|
|
@@ -3901,7 +3918,7 @@
|
|
|
3901
3918
|
MDefinicionNomina.prototype.fechaNomina = function () {
|
|
3902
3919
|
var i = this.periodosNomina.length - 1;
|
|
3903
3920
|
var fechaFin = this.periodosNomina[i].fechaHastaperiodo;
|
|
3904
|
-
return moment(this.fechaInicioNomina).format('DD/MM/YYYY') + ' al ' + moment(fechaFin).format('DD/MM/YYYY');
|
|
3921
|
+
return moment$1(this.fechaInicioNomina).format('DD/MM/YYYY') + ' al ' + moment$1(fechaFin).format('DD/MM/YYYY');
|
|
3905
3922
|
};
|
|
3906
3923
|
/**
|
|
3907
3924
|
*
|
|
@@ -13087,13 +13104,24 @@
|
|
|
13087
13104
|
{ value: "tipctapri", denominacion: "tipoCuentaPrincipal" },
|
|
13088
13105
|
{ value: "sueper", denominacion: "sueldoPersonal" },
|
|
13089
13106
|
{ value: "staper", denominacion: "statusPersonal" },
|
|
13107
|
+
{ value: "id_ctabanper", denominacion: "idCuentaBancoPersonal" },
|
|
13108
|
+
{ value: "id_personalcargo", denominacion: "idPersonalCargo" },
|
|
13109
|
+
{ value: "id_dt_carperest", denominacion: "idDtCargoEstructura" },
|
|
13110
|
+
{ value: "id_carper", denominacion: "idPersonalCargo" },
|
|
13111
|
+
{ value: "id_nomina", denominacion: "idNomina" },
|
|
13112
|
+
{ value: "id_personalnomina", denominacion: "idPersonalNomina" },
|
|
13113
|
+
{ value: "cedper", denominacion: "cedulaPersonal" },
|
|
13114
|
+
{ value: "horper", denominacion: "horaPerersonal" },
|
|
13115
|
+
{ value: "horper1", denominacion: "horaAdicional1" },
|
|
13116
|
+
{ value: "horper2", denominacion: "horaAdicional2" },
|
|
13117
|
+
{ value: "id_organigrama", denominacion: "idOrganigrama" },
|
|
13090
13118
|
];
|
|
13091
13119
|
var Eventos = [
|
|
13092
13120
|
{ value: "UPDATE" },
|
|
13093
13121
|
{ value: "DELETE" }
|
|
13094
13122
|
];
|
|
13095
13123
|
|
|
13096
|
-
var moment$
|
|
13124
|
+
var moment$2 = require("moment");
|
|
13097
13125
|
var MSnoLog = /** @class */ (function (_super) {
|
|
13098
13126
|
__extends(MSnoLog, _super);
|
|
13099
13127
|
function MSnoLog(e) {
|
|
@@ -13102,6 +13130,7 @@
|
|
|
13102
13130
|
_this.idPersonal = 0;
|
|
13103
13131
|
_this.idAuditoriaPersonal = 0;
|
|
13104
13132
|
_this.idRegistro = 0;
|
|
13133
|
+
_this.idNomina = 0;
|
|
13105
13134
|
_this.fecha = "1900-01-01";
|
|
13106
13135
|
_this.hora = "";
|
|
13107
13136
|
_this.campo = "";
|
|
@@ -13116,6 +13145,7 @@
|
|
|
13116
13145
|
_this.idPersonal = +e.id_personal;
|
|
13117
13146
|
_this.idAuditoriaPersonal = +e.id_auditoria_personal;
|
|
13118
13147
|
_this.idRegistro = +e.id_registro;
|
|
13148
|
+
_this.idNomina = +e.id_nomina;
|
|
13119
13149
|
_this.fecha = e.fecha;
|
|
13120
13150
|
_this.hora = e.hora;
|
|
13121
13151
|
_this.campo = e.campo;
|
|
@@ -13137,15 +13167,15 @@
|
|
|
13137
13167
|
id_personal: this.idPersonal.toString(),
|
|
13138
13168
|
id_auditoria_personal: this.idAuditoriaPersonal.toString(),
|
|
13139
13169
|
id_registro: this.idRegistro.toString(),
|
|
13140
|
-
|
|
13141
|
-
|
|
13170
|
+
id_nomina: this.idNomina.toString(),
|
|
13171
|
+
fecha: moment$2().format('YYYY-MM-DD'),
|
|
13172
|
+
hora: moment$2().format('h:mm:ss a'),
|
|
13142
13173
|
campo: this.campoPermitido.find(function (e) { return e.denominacion == _this.campo; }).value,
|
|
13143
13174
|
valor_anterior: this.valorAnterior,
|
|
13144
13175
|
valor_nuevo: this.evento == 'DELETE' ? '-' : this.valorNuevo,
|
|
13145
13176
|
codusu: this.codigoUsuario,
|
|
13146
13177
|
evento: this.evento.toUpperCase(),
|
|
13147
|
-
observacion: this.
|
|
13148
|
-
"Actualizado el registro relacionado al campo: " + this.campo,
|
|
13178
|
+
observacion: this.observacion
|
|
13149
13179
|
};
|
|
13150
13180
|
};
|
|
13151
13181
|
return MSnoLog;
|