sigesp 1.0.0-20240419 → 1.0.2-20240419
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/esm2020/lib/core/models/SNO/MAuditoria.model.mjs +4 -4
- package/esm2020/lib/core/models/SNO/MDefinicionNomina.model.mjs +4 -4
- package/esm2020/lib/core/models/SSS/userDetail.model.mjs +3 -3
- package/esm2020/public-api.mjs +1 -1
- package/fesm2015/sigesp.mjs +6 -9
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +6 -9
- package/fesm2020/sigesp.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
|
13
13
|
import * as i1 from '@angular/material/dialog';
|
|
14
14
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
15
15
|
import * as i2 from '@angular/common';
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
16
|
+
import { formatDate, CommonModule } from '@angular/common';
|
|
17
17
|
import * as i3 from '@angular/material/icon';
|
|
18
18
|
import { MatIconModule } from '@angular/material/icon';
|
|
19
19
|
import * as i4 from '@angular/material/form-field';
|
|
@@ -2405,7 +2405,6 @@ class MRights extends MBasicModel {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
|
|
2408
|
-
const moment$3 = require("moment");
|
|
2409
2408
|
class MUserDetail extends MBasicModel {
|
|
2410
2409
|
constructor(user) {
|
|
2411
2410
|
super();
|
|
@@ -2418,7 +2417,7 @@ class MUserDetail extends MBasicModel {
|
|
|
2418
2417
|
this.blockDate = '1900-01-01';
|
|
2419
2418
|
this.passDate = '1900-01-01';
|
|
2420
2419
|
this.birthday = '1900-01-01';
|
|
2421
|
-
this.registrationDate =
|
|
2420
|
+
this.registrationDate = formatDate(new Date(), 'yyyy-MM-dd', 'en-US');
|
|
2422
2421
|
this.photo = 'default.png';
|
|
2423
2422
|
this.name = '';
|
|
2424
2423
|
this.notes = '';
|
|
@@ -4516,7 +4515,6 @@ class MPeriodoNomina extends MBasicModel {
|
|
|
4516
4515
|
}
|
|
4517
4516
|
}
|
|
4518
4517
|
|
|
4519
|
-
const moment$2 = require("moment");
|
|
4520
4518
|
class MDefinicionNomina extends MBasicModel {
|
|
4521
4519
|
constructor(e = null) {
|
|
4522
4520
|
super();
|
|
@@ -4789,7 +4787,7 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4789
4787
|
fechaFinalNomina() {
|
|
4790
4788
|
let i = this.periodosNomina.length - 1;
|
|
4791
4789
|
let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
|
|
4792
|
-
return
|
|
4790
|
+
return formatDate(fechaFin, 'yyyy-MM-dd', 'en-US');
|
|
4793
4791
|
}
|
|
4794
4792
|
/**
|
|
4795
4793
|
* @returns fecha de inicio a fin de la nomina
|
|
@@ -4798,7 +4796,7 @@ class MDefinicionNomina extends MBasicModel {
|
|
|
4798
4796
|
let i = this.periodosNomina.length - 1;
|
|
4799
4797
|
let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
|
|
4800
4798
|
let fechaIni = this.periodosNomina[i].fechaDesdePeriodo;
|
|
4801
|
-
return
|
|
4799
|
+
return formatDate(fechaFin, 'dd-MM-yyyy', 'es-ES') + ' al ' + formatDate(fechaIni, 'dd-MM-yyyy', 'es-ES');
|
|
4802
4800
|
}
|
|
4803
4801
|
/**
|
|
4804
4802
|
*
|
|
@@ -14275,7 +14273,6 @@ const Eventos = [
|
|
|
14275
14273
|
{ value: "DELETE" }
|
|
14276
14274
|
];
|
|
14277
14275
|
|
|
14278
|
-
const moment$1 = require("moment");
|
|
14279
14276
|
class MSnoLog extends MBasicModel {
|
|
14280
14277
|
constructor(e) {
|
|
14281
14278
|
super();
|
|
@@ -14322,8 +14319,8 @@ class MSnoLog extends MBasicModel {
|
|
|
14322
14319
|
id_auditoria_personal: this.idAuditoriaPersonal.toString(),
|
|
14323
14320
|
id_registro: this.idRegistro.toString(),
|
|
14324
14321
|
id_nomina: this.idNomina.toString(),
|
|
14325
|
-
fecha:
|
|
14326
|
-
hora:
|
|
14322
|
+
fecha: formatDate(new Date(), 'yyyy-MM-dd', 'en-US'),
|
|
14323
|
+
hora: formatDate(new Date(), 'yyyy-MM-dd', 'en-US'),
|
|
14327
14324
|
campo: this.campoPermitido.find(e => e.denominacion == this.campo).value,
|
|
14328
14325
|
valor_anterior: this.valorAnterior,
|
|
14329
14326
|
valor_nuevo: this.evento == 'DELETE' ? '-' : this.valorNuevo,
|