sigesp 0.9.71-20230915 → 0.9.73-20231005

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.
@@ -13,7 +13,6 @@ import { MatSort, MatSortModule } from '@angular/material/sort';
13
13
  import * as i3 from 'ngx-toastr';
14
14
  import { ToastrService, ToastrModule } from 'ngx-toastr';
15
15
  import { SelectionModel } from '@angular/cdk/collections';
16
- import * as moment$3 from 'moment';
17
16
  import Swal from 'sweetalert2';
18
17
  import * as CryptoJS from 'crypto-js';
19
18
  import { CommonModule } from '@angular/common';
@@ -1034,6 +1033,7 @@ class MUsuario extends MBasicModel {
1034
1033
  this.periodo = +user.periodo;
1035
1034
  this.carpeta = user.carpeta;
1036
1035
  this.sistema = user.sistema;
1036
+ this.fuente = user.fuente;
1037
1037
  }
1038
1038
  else {
1039
1039
  this.isNew = true;
@@ -2073,7 +2073,7 @@ class MRights extends MBasicModel {
2073
2073
  }
2074
2074
  }
2075
2075
 
2076
- const moment$2 = require("moment");
2076
+ const moment$3 = require("moment");
2077
2077
  class MUserDetail extends MBasicModel {
2078
2078
  constructor(user) {
2079
2079
  super();
@@ -2086,7 +2086,7 @@ class MUserDetail extends MBasicModel {
2086
2086
  this.blockDate = '1900-01-01';
2087
2087
  this.passDate = '1900-01-01';
2088
2088
  this.birthday = '1900-01-01';
2089
- this.registrationDate = moment$2().format('YYYY-MM-DD');
2089
+ this.registrationDate = moment$3().format('YYYY-MM-DD');
2090
2090
  this.photo = 'default.png';
2091
2091
  this.name = '';
2092
2092
  this.notes = '';
@@ -3438,6 +3438,7 @@ class MEmpresa extends MBasicModel {
3438
3438
  this.codigoFuenteFinanciamintoMostrar = '';
3439
3439
  this.codigoCentroCosto = '';
3440
3440
  this.estructuraPresupuestaria = '';
3441
+ this.tipoEmpresa = 0;
3441
3442
  if (e) {
3442
3443
  this.idEmpresa = +e.id_empresa;
3443
3444
  this.rif = e.rifemp;
@@ -3484,6 +3485,7 @@ class MEmpresa extends MBasicModel {
3484
3485
  this.codigoFuenteFinanciamintoMostrar = e.codigoftefin;
3485
3486
  this.codigoCentroCosto = e.codcencos;
3486
3487
  this.estructuraPresupuestaria = e.estpre;
3488
+ this.tipoEmpresa = +e.tipoempresa;
3487
3489
  }
3488
3490
  else {
3489
3491
  this.isNew = true;
@@ -3533,6 +3535,7 @@ class MEmpresa extends MBasicModel {
3533
3535
  codcencos: this.codigoCentroCosto,
3534
3536
  codfuefin: this.codigoFuenteFinanciaminto.toString(),
3535
3537
  estpre: this.estructuraPresupuestaria,
3538
+ tipoempresa: this.tipoEmpresa.toString(),
3536
3539
  };
3537
3540
  }
3538
3541
  }
@@ -4111,6 +4114,7 @@ class MPeriodoNomina extends MBasicModel {
4111
4114
  }
4112
4115
  }
4113
4116
 
4117
+ const moment$2 = require("moment");
4114
4118
  class MDefinicionNomina extends MBasicModel {
4115
4119
  constructor(e = null) {
4116
4120
  super();
@@ -4383,7 +4387,7 @@ class MDefinicionNomina extends MBasicModel {
4383
4387
  fechaFinalNomina() {
4384
4388
  let i = this.periodosNomina.length - 1;
4385
4389
  let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
4386
- return moment$3(fechaFin).format('DD/MM/YYYY');
4390
+ return moment$2(fechaFin).format('DD/MM/YYYY');
4387
4391
  }
4388
4392
  /**
4389
4393
  * @returns fecha de inicio a fin de la nomina
@@ -4392,7 +4396,7 @@ class MDefinicionNomina extends MBasicModel {
4392
4396
  let i = this.periodosNomina.length - 1;
4393
4397
  let fechaFin = this.periodosNomina[i].fechaHastaperiodo;
4394
4398
  let fechaIni = this.periodosNomina[i].fechaDesdePeriodo;
4395
- return moment$3(fechaIni).format('DD/MM/YYYY') + ' al ' + moment$3(fechaFin).format('DD/MM/YYYY');
4399
+ return moment$2(fechaIni).format('DD/MM/YYYY') + ' al ' + moment$2(fechaFin).format('DD/MM/YYYY');
4396
4400
  }
4397
4401
  /**
4398
4402
  *
@@ -4675,6 +4679,9 @@ class MNominaSimple extends MBasicModel {
4675
4679
  this.denominacionEstructuraOrganizativa = '';
4676
4680
  this.idPersonal = 0;
4677
4681
  this.idPersonalNomina = 0;
4682
+ this.idPlanHorario = 0;
4683
+ this.codigoPlanHorario = '';
4684
+ this.denominacionPlanHorario = '';
4678
4685
  if (e) {
4679
4686
  this.idEnterprise = +e.id_enterprise;
4680
4687
  this.idEmpresa = +e.id_empresa;
@@ -4704,6 +4711,9 @@ class MNominaSimple extends MBasicModel {
4704
4711
  this.denominacionEstructuraOrganizativa = e.denestorg;
4705
4712
  this.idPersonal = +e.id_personal;
4706
4713
  this.idPersonalNomina = +e.id_personalnomina;
4714
+ this.idPlanHorario = +e.id_planhor;
4715
+ this.codigoPlanHorario = e.codplanhor;
4716
+ this.denominacionPlanHorario = e.denplanhor;
4707
4717
  }
4708
4718
  else {
4709
4719
  this.isNew = true;
@@ -4718,6 +4728,7 @@ class MNominaSimple extends MBasicModel {
4718
4728
  id_personal: this.idPersonal.toString(),
4719
4729
  id_personalnomina: this.idPersonalNomina.toString(),
4720
4730
  id_organigrama: this.idOrganigrama.toString(),
4731
+ id_planhor: this.idPlanHorario.toString()
4721
4732
  };
4722
4733
  }
4723
4734
  }