sigesp 0.8.92-202205267 → 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 +63 -47
- 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 +2 -1
- package/esm2015/lib/core/models/SNO/MAuditoria.model.js +1 -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 +56 -44
- package/fesm2015/sigesp.js.map +1 -1
- 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
|
*
|
|
@@ -13097,13 +13114,14 @@
|
|
|
13097
13114
|
{ value: "horper", denominacion: "horaPerersonal" },
|
|
13098
13115
|
{ value: "horper1", denominacion: "horaAdicional1" },
|
|
13099
13116
|
{ value: "horper2", denominacion: "horaAdicional2" },
|
|
13117
|
+
{ value: "id_organigrama", denominacion: "idOrganigrama" },
|
|
13100
13118
|
];
|
|
13101
13119
|
var Eventos = [
|
|
13102
13120
|
{ value: "UPDATE" },
|
|
13103
13121
|
{ value: "DELETE" }
|
|
13104
13122
|
];
|
|
13105
13123
|
|
|
13106
|
-
var moment$
|
|
13124
|
+
var moment$2 = require("moment");
|
|
13107
13125
|
var MSnoLog = /** @class */ (function (_super) {
|
|
13108
13126
|
__extends(MSnoLog, _super);
|
|
13109
13127
|
function MSnoLog(e) {
|
|
@@ -13144,16 +13162,14 @@
|
|
|
13144
13162
|
}
|
|
13145
13163
|
MSnoLog.prototype.dataInteface = function () {
|
|
13146
13164
|
var _this = this;
|
|
13147
|
-
var obs = '';
|
|
13148
|
-
this.idNomina == 0 ? obs = '' : obs = ' en la nómina:' + this.idNomina;
|
|
13149
13165
|
return {
|
|
13150
13166
|
id_empresa: this.idEmpresa.toString(),
|
|
13151
13167
|
id_personal: this.idPersonal.toString(),
|
|
13152
13168
|
id_auditoria_personal: this.idAuditoriaPersonal.toString(),
|
|
13153
13169
|
id_registro: this.idRegistro.toString(),
|
|
13154
13170
|
id_nomina: this.idNomina.toString(),
|
|
13155
|
-
fecha: moment$
|
|
13156
|
-
hora: moment$
|
|
13171
|
+
fecha: moment$2().format('YYYY-MM-DD'),
|
|
13172
|
+
hora: moment$2().format('h:mm:ss a'),
|
|
13157
13173
|
campo: this.campoPermitido.find(function (e) { return e.denominacion == _this.campo; }).value,
|
|
13158
13174
|
valor_anterior: this.valorAnterior,
|
|
13159
13175
|
valor_nuevo: this.evento == 'DELETE' ? '-' : this.valorNuevo,
|