sigesp 0.8.59-220113 → 0.8.63-220120
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 +216 -62
- 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/Lugares.js +1 -1
- package/esm2015/lib/core/interfaces/Nomina.js +1 -1
- package/esm2015/lib/core/models/SNO/MNominaSimple.model.js +57 -0
- package/esm2015/lib/core/models/SNO/MPeriodoNomina.model.js +17 -17
- package/esm2015/lib/core/models/SSS/log.model.js +14 -12
- package/esm2015/lib/core/models/locations.model.js +1 -1
- package/esm2015/lib/sigesp.service.js +126 -33
- package/esm2015/public-api.js +3 -2
- package/fesm2015/sigesp.js +210 -59
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Nomina.d.ts +17 -0
- package/lib/core/models/SNO/MNominaSimple.model.d.ts +21 -0
- package/lib/core/models/SNO/MPeriodoNomina.model.d.ts +2 -0
- package/lib/core/models/SSS/log.model.d.ts +1 -1
- package/lib/sigesp.service.d.ts +82 -14
- package/package.json +1 -1
- package/public-api.d.ts +3 -2
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('@angular/material/table'), require('@angular/material/paginator'), require('@angular/material/sort'), require('ngx-toastr'), require('@angular/cdk/collections'), require('moment'), require('sweetalert2'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/tree'), require('@angular/material-moment-adapter'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/cdk/drag-drop'), require('@angular/cdk/a11y'), require('@angular/cdk/stepper'), require('@angular/material/button'), require('@angular/material/toolbar'), require('@angular/material/core'), require('@angular/material/icon'), require('@angular/material/sidenav'), require('@angular/material/list'), require('@angular/material/select'), require('@angular/material/input'), require('@angular/material/progress-spinner'), require('@angular/material/divider'), require('@angular/material/expansion'), require('@angular/material/autocomplete'), require('@angular/material/badge'), require('@angular/material/bottom-sheet'), require('@angular/material/button-toggle'), require('@angular/material/card'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/stepper'), require('@angular/material/datepicker'), require('@angular/material/grid-list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/slider'), require('@angular/material/slide-toggle'), require('@angular/material/snack-bar'), require('@angular/material/tabs'), require('@angular/material/tooltip'), require('@angular/material/tree'), require('@angular/forms')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('sigesp', ['exports', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/material/dialog', '@angular/material/table', '@angular/material/paginator', '@angular/material/sort', 'ngx-toastr', '@angular/cdk/collections', 'moment', 'sweetalert2', '@angular/common', '@angular/cdk/table', '@angular/cdk/tree', '@angular/material-moment-adapter', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/cdk/drag-drop', '@angular/cdk/a11y', '@angular/cdk/stepper', '@angular/material/button', '@angular/material/toolbar', '@angular/material/core', '@angular/material/icon', '@angular/material/sidenav', '@angular/material/list', '@angular/material/select', '@angular/material/input', '@angular/material/progress-spinner', '@angular/material/divider', '@angular/material/expansion', '@angular/material/autocomplete', '@angular/material/badge', '@angular/material/bottom-sheet', '@angular/material/button-toggle', '@angular/material/card', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/stepper', '@angular/material/datepicker', '@angular/material/grid-list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/slider', '@angular/material/slide-toggle', '@angular/material/snack-bar', '@angular/material/tabs', '@angular/material/tooltip', '@angular/material/tree', '@angular/forms'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sigesp = {}, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.ng.material.table, global.ng.material.paginator, global.ng.material.sort, global.i3, global.ng.cdk.collections, global.moment, global.Swal, global.ng.common, global.ng.cdk.table, global.ng.cdk.tree, global.ng.materialMomentAdapter, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.cdk.dragDrop, global.ng.cdk.a11y, global.ng.cdk.stepper, global.ng.material.button, global.ng.material.toolbar, global.ng.material.core, global.ng.material.icon, global.ng.material.sidenav, global.ng.material.list, global.ng.material.select, global.ng.material.input, global.ng.material.progressSpinner, global.ng.material.divider, global.ng.material.expansion, global.ng.material.autocomplete, global.ng.material.badge, global.ng.material.bottomSheet, global.ng.material.buttonToggle, global.ng.material.card, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.stepper, global.ng.material.datepicker, global.ng.material.gridList, global.ng.material.menu, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.slider, global.ng.material.slideToggle, global.ng.material.snackBar, global.ng.material.tabs, global.ng.material.tooltip, global.ng.material.tree, global.ng.forms));
|
|
5
|
-
}(this, (function (exports, i0, i1, rxjs, operators, i2, table, paginator, sort, i3, collections, moment, Swal, common, table$1, tree, materialMomentAdapter, portal, scrolling, dragDrop, a11y, stepper, button, toolbar, core, icon, sidenav, list, select, input, progressSpinner, divider, expansion, autocomplete, badge, bottomSheet, buttonToggle, card, checkbox, chips, stepper$1, datepicker, gridList, menu, progressBar, radio, slider, slideToggle, snackBar, tabs, tooltip, tree$1, forms) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('rxjs/operators'), require('@angular/material/dialog'), require('@angular/material/table'), require('@angular/material/paginator'), require('@angular/material/sort'), require('ngx-toastr'), require('@angular/cdk/collections'), require('moment'), require('sweetalert2'), require('crypto-js'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/tree'), require('@angular/material-moment-adapter'), require('@angular/cdk/portal'), require('@angular/cdk/scrolling'), require('@angular/cdk/drag-drop'), require('@angular/cdk/a11y'), require('@angular/cdk/stepper'), require('@angular/material/button'), require('@angular/material/toolbar'), require('@angular/material/core'), require('@angular/material/icon'), require('@angular/material/sidenav'), require('@angular/material/list'), require('@angular/material/select'), require('@angular/material/input'), require('@angular/material/progress-spinner'), require('@angular/material/divider'), require('@angular/material/expansion'), require('@angular/material/autocomplete'), require('@angular/material/badge'), require('@angular/material/bottom-sheet'), require('@angular/material/button-toggle'), require('@angular/material/card'), require('@angular/material/checkbox'), require('@angular/material/chips'), require('@angular/material/stepper'), require('@angular/material/datepicker'), require('@angular/material/grid-list'), require('@angular/material/menu'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/slider'), require('@angular/material/slide-toggle'), require('@angular/material/snack-bar'), require('@angular/material/tabs'), require('@angular/material/tooltip'), require('@angular/material/tree'), require('@angular/forms')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('sigesp', ['exports', '@angular/core', '@angular/common/http', 'rxjs', 'rxjs/operators', '@angular/material/dialog', '@angular/material/table', '@angular/material/paginator', '@angular/material/sort', 'ngx-toastr', '@angular/cdk/collections', 'moment', 'sweetalert2', 'crypto-js', '@angular/common', '@angular/cdk/table', '@angular/cdk/tree', '@angular/material-moment-adapter', '@angular/cdk/portal', '@angular/cdk/scrolling', '@angular/cdk/drag-drop', '@angular/cdk/a11y', '@angular/cdk/stepper', '@angular/material/button', '@angular/material/toolbar', '@angular/material/core', '@angular/material/icon', '@angular/material/sidenav', '@angular/material/list', '@angular/material/select', '@angular/material/input', '@angular/material/progress-spinner', '@angular/material/divider', '@angular/material/expansion', '@angular/material/autocomplete', '@angular/material/badge', '@angular/material/bottom-sheet', '@angular/material/button-toggle', '@angular/material/card', '@angular/material/checkbox', '@angular/material/chips', '@angular/material/stepper', '@angular/material/datepicker', '@angular/material/grid-list', '@angular/material/menu', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/slider', '@angular/material/slide-toggle', '@angular/material/snack-bar', '@angular/material/tabs', '@angular/material/tooltip', '@angular/material/tree', '@angular/forms'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sigesp = {}, global.ng.core, global.ng.common.http, global.rxjs, global.rxjs.operators, global.ng.material.dialog, global.ng.material.table, global.ng.material.paginator, global.ng.material.sort, global.i3, global.ng.cdk.collections, global.moment, global.Swal, global.CryptoJS, global.ng.common, global.ng.cdk.table, global.ng.cdk.tree, global.ng.materialMomentAdapter, global.ng.cdk.portal, global.ng.cdk.scrolling, global.ng.cdk.dragDrop, global.ng.cdk.a11y, global.ng.cdk.stepper, global.ng.material.button, global.ng.material.toolbar, global.ng.material.core, global.ng.material.icon, global.ng.material.sidenav, global.ng.material.list, global.ng.material.select, global.ng.material.input, global.ng.material.progressSpinner, global.ng.material.divider, global.ng.material.expansion, global.ng.material.autocomplete, global.ng.material.badge, global.ng.material.bottomSheet, global.ng.material.buttonToggle, global.ng.material.card, global.ng.material.checkbox, global.ng.material.chips, global.ng.material.stepper, global.ng.material.datepicker, global.ng.material.gridList, global.ng.material.menu, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.slider, global.ng.material.slideToggle, global.ng.material.snackBar, global.ng.material.tabs, global.ng.material.tooltip, global.ng.material.tree, global.ng.forms));
|
|
5
|
+
}(this, (function (exports, i0, i1, rxjs, operators, i2, table, paginator, sort, i3, collections, moment, Swal, CryptoJS, common, table$1, tree, materialMomentAdapter, portal, scrolling, dragDrop, a11y, stepper, button, toolbar, core, icon, sidenav, list, select, input, progressSpinner, divider, expansion, autocomplete, badge, bottomSheet, buttonToggle, card, checkbox, chips, stepper$1, datepicker, gridList, menu, progressBar, radio, slider, slideToggle, snackBar, tabs, tooltip, tree$1, forms) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -3479,6 +3479,8 @@
|
|
|
3479
3479
|
_this.ingresoContabilizadoPeriodo = 0;
|
|
3480
3480
|
_this.fideicomisoContabilizado = 0;
|
|
3481
3481
|
_this.fideicomisoInteresContabilizadoPeriodo = 0;
|
|
3482
|
+
_this.prenomina = false;
|
|
3483
|
+
_this.calculado = false;
|
|
3482
3484
|
if (e) {
|
|
3483
3485
|
_this.idEmpresa = parseInt(e.id_empresa);
|
|
3484
3486
|
_this.idNomina = parseInt(e.id_nomina);
|
|
@@ -3495,6 +3497,8 @@
|
|
|
3495
3497
|
_this.ingresoContabilizadoPeriodo = parseInt(e.ingconper);
|
|
3496
3498
|
_this.fideicomisoContabilizado = parseInt(e.fidconper);
|
|
3497
3499
|
_this.fideicomisoInteresContabilizadoPeriodo = parseInt(e.fidintconper);
|
|
3500
|
+
_this.prenomina = e.prenomina == '1' ? true : false;
|
|
3501
|
+
_this.calculado = e.calculado == '1' ? true : false;
|
|
3498
3502
|
}
|
|
3499
3503
|
return _this;
|
|
3500
3504
|
}
|
|
@@ -3515,39 +3519,35 @@
|
|
|
3515
3519
|
ingconper: this.ingresoContabilizadoPeriodo.toString(),
|
|
3516
3520
|
fidconper: this.fideicomisoContabilizado.toString(),
|
|
3517
3521
|
fidintconper: this.fideicomisoInteresContabilizadoPeriodo.toString(),
|
|
3522
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
3523
|
+
calculado: this.calculado ? '1' : '0',
|
|
3518
3524
|
};
|
|
3519
3525
|
};
|
|
3520
3526
|
MPeriodoNomina.prototype.estatusPeriodo = function () {
|
|
3521
|
-
if (this.
|
|
3527
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3522
3528
|
return 'Sin Calcular';
|
|
3523
3529
|
}
|
|
3524
|
-
else if (this.
|
|
3530
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3525
3531
|
return 'Calculada';
|
|
3526
3532
|
}
|
|
3527
|
-
else if (this.
|
|
3533
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 0) {
|
|
3528
3534
|
return 'Periodo Contabilizado';
|
|
3529
3535
|
}
|
|
3530
|
-
else if (this.
|
|
3536
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 1) {
|
|
3531
3537
|
return 'Periodo y Aporte Contabilizado';
|
|
3532
3538
|
}
|
|
3533
|
-
else if (this.
|
|
3539
|
+
else if (this.calculado && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3534
3540
|
return 'Aporte Contabilizado';
|
|
3535
3541
|
}
|
|
3542
|
+
else if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3543
|
+
return 'Pre-Calculada';
|
|
3544
|
+
}
|
|
3536
3545
|
};
|
|
3537
3546
|
MPeriodoNomina.prototype.periodoEditable = function () {
|
|
3538
|
-
if (this.
|
|
3547
|
+
if (!this.calculado && !this.prenomina && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 0) {
|
|
3539
3548
|
return true;
|
|
3540
3549
|
}
|
|
3541
|
-
else
|
|
3542
|
-
return false;
|
|
3543
|
-
}
|
|
3544
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 0) {
|
|
3545
|
-
return false;
|
|
3546
|
-
}
|
|
3547
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 1 && this.aporteContabilizadoPeriodo == 1) {
|
|
3548
|
-
return false;
|
|
3549
|
-
}
|
|
3550
|
-
else if (this.totalPeriodo > 0 && this.contabiliazadoPeriodo == 0 && this.aporteContabilizadoPeriodo == 1) {
|
|
3550
|
+
else {
|
|
3551
3551
|
return false;
|
|
3552
3552
|
}
|
|
3553
3553
|
};
|
|
@@ -3988,6 +3988,65 @@
|
|
|
3988
3988
|
return MAsignacionCargo;
|
|
3989
3989
|
}(MBasicModel));
|
|
3990
3990
|
|
|
3991
|
+
var MNominaSimple = /** @class */ (function () {
|
|
3992
|
+
function MNominaSimple(e) {
|
|
3993
|
+
if (e === void 0) { e = null; }
|
|
3994
|
+
this.idEmpresa = 0;
|
|
3995
|
+
this.idNnomina = 0;
|
|
3996
|
+
this.codigoNomina = '';
|
|
3997
|
+
this.denominacioNomina = '';
|
|
3998
|
+
this.idPeriodoActual = 0;
|
|
3999
|
+
this.totalPeriodo = 0;
|
|
4000
|
+
this.estatus = '';
|
|
4001
|
+
this.estatusPeriodo = 0;
|
|
4002
|
+
this.calculada = false;
|
|
4003
|
+
this.prenomina = false;
|
|
4004
|
+
this.idCargo = 0;
|
|
4005
|
+
this.codigoCargo = '';
|
|
4006
|
+
this.denominacionCargo = '';
|
|
4007
|
+
this.nominaRac = 0;
|
|
4008
|
+
this.simbolo = '';
|
|
4009
|
+
this.color = '';
|
|
4010
|
+
if (e) {
|
|
4011
|
+
this.idEmpresa = parseInt(e.id_empresa);
|
|
4012
|
+
this.idNnomina = parseInt(e.id_nomina);
|
|
4013
|
+
this.codigoNomina = e.codnom;
|
|
4014
|
+
this.denominacioNomina = e.dennom;
|
|
4015
|
+
this.idPeriodoActual = +e.id_periodoactual;
|
|
4016
|
+
this.totalPeriodo = parseFloat(e.totper),
|
|
4017
|
+
this.estatusPeriodo = parseInt(e.cerper);
|
|
4018
|
+
this.calculada = e.calculado == '1' ? true : false;
|
|
4019
|
+
this.prenomina = e.prenomina == '1' ? true : false;
|
|
4020
|
+
this.estatus = this.calculada ? 'Calculada' :
|
|
4021
|
+
!this.calculada && this.prenomina ? 'Pre-Calculada' : 'Sin Calcular';
|
|
4022
|
+
this.idCargo = parseInt(e.id_carper);
|
|
4023
|
+
this.codigoCargo = e.codcar;
|
|
4024
|
+
this.denominacionCargo = e.descar;
|
|
4025
|
+
this.nominaRac = parseInt(e.racnom);
|
|
4026
|
+
this.nominaRac == 1 ? this.simbolo = 'check' : this.simbolo = '';
|
|
4027
|
+
this.nominaRac == 1 ? this.color = 'primary' : this.color = '';
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
MNominaSimple.prototype.dataInterface = function () {
|
|
4031
|
+
return {
|
|
4032
|
+
id_empresa: this.idEmpresa.toString(),
|
|
4033
|
+
id_nomina: this.idNnomina.toString(),
|
|
4034
|
+
codnom: this.codigoNomina,
|
|
4035
|
+
dennom: this.denominacioNomina,
|
|
4036
|
+
id_periodoactual: this.idPeriodoActual.toString(),
|
|
4037
|
+
totper: this.totalPeriodo.toString(),
|
|
4038
|
+
cerper: this.estatusPeriodo.toString(),
|
|
4039
|
+
prenomina: this.prenomina ? '1' : '0',
|
|
4040
|
+
calculado: this.calculada ? '1' : '0',
|
|
4041
|
+
id_carper: this.idCargo.toString(),
|
|
4042
|
+
descar: this.denominacionCargo,
|
|
4043
|
+
codcar: this.codigoCargo,
|
|
4044
|
+
racnom: this.nominaRac.toString(),
|
|
4045
|
+
};
|
|
4046
|
+
};
|
|
4047
|
+
return MNominaSimple;
|
|
4048
|
+
}());
|
|
4049
|
+
|
|
3991
4050
|
var MPersonal = /** @class */ (function (_super) {
|
|
3992
4051
|
__extends(MPersonal, _super);
|
|
3993
4052
|
function MPersonal(p) {
|
|
@@ -5702,36 +5761,56 @@
|
|
|
5702
5761
|
}));
|
|
5703
5762
|
};
|
|
5704
5763
|
/**
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5764
|
+
* @description Obtiene los paises
|
|
5765
|
+
* @return Observable<MCountry>
|
|
5766
|
+
* @author Carlos Albornoz
|
|
5767
|
+
* @modified 10-01-2022
|
|
5768
|
+
* @param codigo: Codigo del pais
|
|
5769
|
+
*/
|
|
5770
|
+
SigespService.prototype.getCountries = function (codigo) {
|
|
5771
|
+
return this.http.get(this.URL + "/dao/sigesp/pais_dao.php?codigo=" + codigo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCountry(e); }); }));
|
|
5711
5772
|
};
|
|
5712
5773
|
/**
|
|
5713
5774
|
* @description Obtiene los estados
|
|
5714
5775
|
* @return Observable<MState>
|
|
5715
5776
|
* @author Carlos Albornoz
|
|
5777
|
+
* @modificado 10-01-2022
|
|
5778
|
+
* @param codigo: Codigo del pais
|
|
5716
5779
|
*/
|
|
5717
|
-
SigespService.prototype.getStates = function () {
|
|
5718
|
-
return this.http.get(this.URL + "/dao/sigesp/estado_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MState(e); }); }));
|
|
5780
|
+
SigespService.prototype.getStates = function (codigo) {
|
|
5781
|
+
return this.http.get(this.URL + "/dao/sigesp/estado_dao.php?codigo=" + codigo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MState(e); }); }));
|
|
5719
5782
|
};
|
|
5720
5783
|
/**
|
|
5721
5784
|
* @description Obtiene los municipios
|
|
5722
5785
|
* @return Observable<MMunicipality>
|
|
5723
5786
|
* @author Carlos Albornoz
|
|
5787
|
+
* @modificado 10-01-2022
|
|
5788
|
+
* @param pais: Codigo del pais, estado:Codigo del estado
|
|
5789
|
+
|
|
5724
5790
|
*/
|
|
5725
|
-
SigespService.prototype.getMunicipalities = function () {
|
|
5726
|
-
return this.http.get(this.URL + "/dao/sigesp/municipio_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MMunicipality(e); }); }));
|
|
5791
|
+
SigespService.prototype.getMunicipalities = function (pais, estado) {
|
|
5792
|
+
return this.http.get(this.URL + "/dao/sigesp/municipio_dao.php?pais=" + pais + "&estado=" + estado, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MMunicipality(e); }); }));
|
|
5727
5793
|
};
|
|
5728
5794
|
/**
|
|
5729
5795
|
* @description Obtiene las parroquias
|
|
5730
5796
|
* @return Observable<MParish>
|
|
5731
5797
|
* @author Carlos Albornoz
|
|
5798
|
+
* @modificado 10-01-2022
|
|
5799
|
+
* @param codigo: Codigo del pais, estado:Codigo del estado, municipio:codigo Municipio
|
|
5800
|
+
*/
|
|
5801
|
+
SigespService.prototype.getParishes = function (codigo, estado, municipio) {
|
|
5802
|
+
return this.http.get(this.URL + "/dao/sigesp/parroquia_dao.php?codigo=" + codigo + "&estado=" + estado + "&municipio=" + municipio, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MParish(e); }); }));
|
|
5803
|
+
};
|
|
5804
|
+
/**
|
|
5805
|
+
* @description Obtiene las ciudades
|
|
5806
|
+
* @return Observable<MParish>
|
|
5807
|
+
* @author Carlos Albornoz
|
|
5808
|
+
* @modificado 10-01-2022
|
|
5809
|
+
* @param codigo: Codigo del pais
|
|
5810
|
+
|
|
5732
5811
|
*/
|
|
5733
|
-
SigespService.prototype.
|
|
5734
|
-
return this.http.get(this.URL + "/dao/sigesp/parroquia_dao.php", { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new
|
|
5812
|
+
SigespService.prototype.getCitys = function (codigo) {
|
|
5813
|
+
return this.http.get(this.URL + "/dao/sigesp/parroquia_dao.php?codigo=" + codigo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) { return res.data.map(function (e) { return new MCity(e); }); }));
|
|
5735
5814
|
};
|
|
5736
5815
|
/**
|
|
5737
5816
|
* @description Obtiene los sistemas activas
|
|
@@ -6306,9 +6385,11 @@
|
|
|
6306
6385
|
* @description obtiene el personal segun filtro
|
|
6307
6386
|
* @return Observable<IResponse>
|
|
6308
6387
|
* @date 15-11-2021
|
|
6388
|
+
* @param tipo: valores ['catalogo','default','nomina']
|
|
6389
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6309
6390
|
*/
|
|
6310
|
-
SigespService.prototype.getPersonal = function (dato) {
|
|
6311
|
-
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" +
|
|
6391
|
+
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
6392
|
+
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" + tipo + "&cedula=" + dato.cedula + "&nombre=" + dato.nombre + "&apellido=" + dato.apellido + "&expediente=" + dato.expediente + "&idTipo=" + dato.tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6312
6393
|
if (res.success) {
|
|
6313
6394
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
6314
6395
|
}
|
|
@@ -6319,9 +6400,12 @@
|
|
|
6319
6400
|
* @description obtener personal Nomina segun filtro
|
|
6320
6401
|
* @return Observable<IResponse>
|
|
6321
6402
|
* @date 15-11-2021
|
|
6403
|
+
* * @param tipo: valores ['catalogo','default','nomina']
|
|
6404
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6405
|
+
|
|
6322
6406
|
*/
|
|
6323
|
-
SigespService.prototype.getPersonalNomina = function (dato) {
|
|
6324
|
-
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" +
|
|
6407
|
+
SigespService.prototype.getPersonalNomina = function (tipo, dato) {
|
|
6408
|
+
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" + tipo + "&cedula=" + dato.cedula + "&nombre=" + dato.nombre + "&apellido=" + dato.apellido + "&expediente=" + dato.expediente + "&idTipo=" + dato.idTipo + "&idNomina=" + dato.idNomina, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6325
6409
|
if (res.success) {
|
|
6326
6410
|
res.data = res.data.map(function (e) { return new MPersonalNomina(e); });
|
|
6327
6411
|
}
|
|
@@ -6329,23 +6413,18 @@
|
|
|
6329
6413
|
}));
|
|
6330
6414
|
};
|
|
6331
6415
|
/**
|
|
6332
|
-
* @
|
|
6333
|
-
* @
|
|
6334
|
-
* @
|
|
6416
|
+
* @param idPersonal: id del personal
|
|
6417
|
+
* @param tipo: valores['nomina_personal']
|
|
6418
|
+
* @description Obtiene las nominas del personal resumida
|
|
6419
|
+
* @deprecated; 20-01-22
|
|
6420
|
+
* @returns
|
|
6335
6421
|
*/
|
|
6336
|
-
SigespService.prototype.
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
|
|
6343
|
-
//console.log('stringJson : ',this.stringifiedData );
|
|
6344
|
-
var string_menu = "[" + stringifiedData + "\"]";
|
|
6345
|
-
var menu = string_menu;
|
|
6346
|
-
menu = JSON.parse(menu);
|
|
6347
|
-
_this.userMenu = menu;
|
|
6348
|
-
return _this.userMenu;
|
|
6422
|
+
SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
|
|
6423
|
+
return this.http.get(this.URL + "/dao/sno/personal_dao.php?idPersonal=" + idPersonal + "&tipo=" + tipo, { headers: this.getHttpHeaders() }).pipe(operators.retry(3), operators.catchError(this.handlerError), operators.map(function (res) {
|
|
6424
|
+
if (res.success) {
|
|
6425
|
+
res.data = res.data.map(function (e) { return new MNominaSimple(e); });
|
|
6426
|
+
}
|
|
6427
|
+
return res;
|
|
6349
6428
|
}));
|
|
6350
6429
|
};
|
|
6351
6430
|
/**
|
|
@@ -6353,6 +6432,18 @@
|
|
|
6353
6432
|
* @return Json data
|
|
6354
6433
|
* @author Ing. Wilmer Briceno
|
|
6355
6434
|
*/
|
|
6435
|
+
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6436
|
+
var _this = this;
|
|
6437
|
+
return this.http.get(this.URL + "/dao/sss/menu_dao.php?id_usuario=" + id_usuario + "&sistema=" + sistema, { headers: this.getHttpHeaders() }).pipe(operators.map(function (res) {
|
|
6438
|
+
_this.userMenu = res.data;
|
|
6439
|
+
return _this.userMenu;
|
|
6440
|
+
}));
|
|
6441
|
+
};
|
|
6442
|
+
/**
|
|
6443
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6444
|
+
* @return Json data
|
|
6445
|
+
* @author Ing. Wilmer Briceno
|
|
6446
|
+
*/
|
|
6356
6447
|
SigespService.prototype.log = function (body) {
|
|
6357
6448
|
return this.http.post(this.URL + "/dao/sss/log_dao.php", body, {
|
|
6358
6449
|
headers: this.getHttpHeaders()
|
|
@@ -6361,6 +6452,65 @@
|
|
|
6361
6452
|
return res;
|
|
6362
6453
|
}));
|
|
6363
6454
|
};
|
|
6455
|
+
/**
|
|
6456
|
+
* @name EncryptData
|
|
6457
|
+
* @description Enscripta una expresion data
|
|
6458
|
+
* @author Ing. Wilmer Briceño
|
|
6459
|
+
*/
|
|
6460
|
+
SigespService.prototype.EncryptData = function (expresion) {
|
|
6461
|
+
var key = CryptoJS.enc.Utf8.parse("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
|
|
6462
|
+
var iv = CryptoJS.enc.Utf8.parse('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
|
|
6463
|
+
var srcs = CryptoJS.enc.Utf8.parse(expresion);
|
|
6464
|
+
var encrypted = CryptoJS.AES.encrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
|
|
6465
|
+
return encrypted.ciphertext.toString().toUpperCase();
|
|
6466
|
+
};
|
|
6467
|
+
/**
|
|
6468
|
+
* @name DecryptData
|
|
6469
|
+
* @description Desencripta una expresion data
|
|
6470
|
+
* @author Ing. Wilmer Briceño
|
|
6471
|
+
*/
|
|
6472
|
+
SigespService.prototype.DecryptData = function (expresion) {
|
|
6473
|
+
var key = CryptoJS.enc.Utf8.parse("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
|
|
6474
|
+
var iv = CryptoJS.enc.Utf8.parse('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
|
|
6475
|
+
var encryptedHexStr = CryptoJS.enc.Hex.parse(expresion);
|
|
6476
|
+
var srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr);
|
|
6477
|
+
var decrypt = CryptoJS.AES.decrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
|
|
6478
|
+
var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
|
|
6479
|
+
return decryptedStr.toString();
|
|
6480
|
+
};
|
|
6481
|
+
/**
|
|
6482
|
+
* @name getResponsePerfilToolbar
|
|
6483
|
+
* @description Metodo que obtiene una respuesta true o false basado en una estructura sring binanria segun
|
|
6484
|
+
* la posicion dada del toolbar. se pasa string binario que contiene 1 y 0 en representacion
|
|
6485
|
+
* de las propiestades administrador,consultar,ejecutar,imprimir etc ... cada posicion secuencial
|
|
6486
|
+
* si esta en 1 es true y 0 en false y devuleve el valor segun lo requiera el usuario:
|
|
6487
|
+
* stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
|
|
6488
|
+
* Estructura string binario:
|
|
6489
|
+
* Posición :
|
|
6490
|
+
* 0. Administrador 6. Descargar
|
|
6491
|
+
* 1. insertar 7. Ejecutar
|
|
6492
|
+
* 2. Actualizar 8. Enviar
|
|
6493
|
+
* 3. consultar 9. Imprimir
|
|
6494
|
+
* 4. Eliminar 10. Visible
|
|
6495
|
+
* 5. Anular
|
|
6496
|
+
*
|
|
6497
|
+
* @author Ing. Wilmer Briceño
|
|
6498
|
+
*/
|
|
6499
|
+
SigespService.prototype.getResponsePerfilToolbar = function (stringbinario, position) {
|
|
6500
|
+
var binario = stringbinario.substring(position, position + 1);
|
|
6501
|
+
if (binario == "1") {
|
|
6502
|
+
return true;
|
|
6503
|
+
}
|
|
6504
|
+
return false;
|
|
6505
|
+
};
|
|
6506
|
+
/**
|
|
6507
|
+
* @description Obtiene el Ip del cliente
|
|
6508
|
+
* @return Json data
|
|
6509
|
+
* @author Ing. Wilmer Briceno
|
|
6510
|
+
*/
|
|
6511
|
+
SigespService.prototype.getIPAddress = function () {
|
|
6512
|
+
return this.http.get("http://api.ipify.org/?format=json");
|
|
6513
|
+
};
|
|
6364
6514
|
return SigespService;
|
|
6365
6515
|
}());
|
|
6366
6516
|
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" });
|
|
@@ -6970,6 +7120,7 @@
|
|
|
6970
7120
|
var MLog = /** @class */ (function (_super) {
|
|
6971
7121
|
__extends(MLog, _super);
|
|
6972
7122
|
function MLog(record) {
|
|
7123
|
+
if (record === void 0) { record = null; }
|
|
6973
7124
|
var _this = _super.call(this) || this;
|
|
6974
7125
|
_this.id_usuario = 0;
|
|
6975
7126
|
_this.id_component = 0;
|
|
@@ -6981,16 +7132,18 @@
|
|
|
6981
7132
|
_this.feclog = '';
|
|
6982
7133
|
_this.id_empresa = 0;
|
|
6983
7134
|
_this.id_log = 0;
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
7135
|
+
if (record) {
|
|
7136
|
+
_this.id_usuario = record.id_usuario;
|
|
7137
|
+
_this.id_component = record.id_component;
|
|
7138
|
+
_this.codsis = record.codsis;
|
|
7139
|
+
_this.evento = record.evento;
|
|
7140
|
+
_this.deslog = record.deslog;
|
|
7141
|
+
_this.equlog = record.equlog;
|
|
7142
|
+
_this.fecsys = record.fecsys;
|
|
7143
|
+
_this.feclog = record.feclog;
|
|
7144
|
+
_this.id_empresa = record.id_empresa;
|
|
7145
|
+
_this.id_log = parseInt(record.id_log);
|
|
7146
|
+
}
|
|
6994
7147
|
return _this;
|
|
6995
7148
|
}
|
|
6996
7149
|
return MLog;
|
|
@@ -10076,6 +10229,7 @@
|
|
|
10076
10229
|
exports.MMoneda = MMoneda;
|
|
10077
10230
|
exports.MMonedaConfig = MMonedaConfig;
|
|
10078
10231
|
exports.MMunicipality = MMunicipality;
|
|
10232
|
+
exports.MNominaSimple = MNominaSimple;
|
|
10079
10233
|
exports.MOrganizationType = MOrganizationType;
|
|
10080
10234
|
exports.MParish = MParish;
|
|
10081
10235
|
exports.MPeriodoNomina = MPeriodoNomina;
|