sigesp 0.8.61-220113 → 0.8.65-220124
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 +227 -40
- 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/locations.model.js +1 -1
- package/esm2015/lib/sigesp.service.js +150 -22
- package/esm2015/public-api.js +3 -2
- package/fesm2015/sigesp.js +221 -37
- 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/sigesp.service.d.ts +95 -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) {
|
|
@@ -4631,6 +4690,7 @@
|
|
|
4631
4690
|
this.usuarioActivo = null;
|
|
4632
4691
|
this.currentComponent = null;
|
|
4633
4692
|
this.userMenu = null;
|
|
4693
|
+
this.ip_adress = '127.0.0.1';
|
|
4634
4694
|
}
|
|
4635
4695
|
/**
|
|
4636
4696
|
* @description Valida que selo se escriban guiones y 9
|
|
@@ -5702,36 +5762,56 @@
|
|
|
5702
5762
|
}));
|
|
5703
5763
|
};
|
|
5704
5764
|
/**
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5765
|
+
* @description Obtiene los paises
|
|
5766
|
+
* @return Observable<MCountry>
|
|
5767
|
+
* @author Carlos Albornoz
|
|
5768
|
+
* @modified 10-01-2022
|
|
5769
|
+
* @param codigo: Codigo del pais
|
|
5770
|
+
*/
|
|
5771
|
+
SigespService.prototype.getCountries = function (codigo) {
|
|
5772
|
+
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
5773
|
};
|
|
5712
5774
|
/**
|
|
5713
5775
|
* @description Obtiene los estados
|
|
5714
5776
|
* @return Observable<MState>
|
|
5715
5777
|
* @author Carlos Albornoz
|
|
5778
|
+
* @modificado 10-01-2022
|
|
5779
|
+
* @param codigo: Codigo del pais
|
|
5716
5780
|
*/
|
|
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); }); }));
|
|
5781
|
+
SigespService.prototype.getStates = function (codigo) {
|
|
5782
|
+
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
5783
|
};
|
|
5720
5784
|
/**
|
|
5721
5785
|
* @description Obtiene los municipios
|
|
5722
5786
|
* @return Observable<MMunicipality>
|
|
5723
5787
|
* @author Carlos Albornoz
|
|
5788
|
+
* @modificado 10-01-2022
|
|
5789
|
+
* @param pais: Codigo del pais, estado:Codigo del estado
|
|
5790
|
+
|
|
5724
5791
|
*/
|
|
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); }); }));
|
|
5792
|
+
SigespService.prototype.getMunicipalities = function (pais, estado) {
|
|
5793
|
+
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
5794
|
};
|
|
5728
5795
|
/**
|
|
5729
5796
|
* @description Obtiene las parroquias
|
|
5730
5797
|
* @return Observable<MParish>
|
|
5731
5798
|
* @author Carlos Albornoz
|
|
5799
|
+
* @modificado 10-01-2022
|
|
5800
|
+
* @param codigo: Codigo del pais, estado:Codigo del estado, municipio:codigo Municipio
|
|
5801
|
+
*/
|
|
5802
|
+
SigespService.prototype.getParishes = function (codigo, estado, municipio) {
|
|
5803
|
+
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); }); }));
|
|
5804
|
+
};
|
|
5805
|
+
/**
|
|
5806
|
+
* @description Obtiene las ciudades
|
|
5807
|
+
* @return Observable<MParish>
|
|
5808
|
+
* @author Carlos Albornoz
|
|
5809
|
+
* @modificado 10-01-2022
|
|
5810
|
+
* @param codigo: Codigo del pais
|
|
5811
|
+
|
|
5732
5812
|
*/
|
|
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
|
|
5813
|
+
SigespService.prototype.getCitys = function (codigo) {
|
|
5814
|
+
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
5815
|
};
|
|
5736
5816
|
/**
|
|
5737
5817
|
* @description Obtiene los sistemas activas
|
|
@@ -6306,9 +6386,11 @@
|
|
|
6306
6386
|
* @description obtiene el personal segun filtro
|
|
6307
6387
|
* @return Observable<IResponse>
|
|
6308
6388
|
* @date 15-11-2021
|
|
6389
|
+
* @param tipo: valores ['catalogo','default','nomina']
|
|
6390
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6309
6391
|
*/
|
|
6310
|
-
SigespService.prototype.getPersonal = function (dato) {
|
|
6311
|
-
return this.http.get(this.URL + "/dao/sno/personal_dao.php?\n tipo=" +
|
|
6392
|
+
SigespService.prototype.getPersonal = function (tipo, dato) {
|
|
6393
|
+
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
6394
|
if (res.success) {
|
|
6313
6395
|
res.data = res.data.map(function (e) { return new MPersonal(e); });
|
|
6314
6396
|
}
|
|
@@ -6319,15 +6401,33 @@
|
|
|
6319
6401
|
* @description obtener personal Nomina segun filtro
|
|
6320
6402
|
* @return Observable<IResponse>
|
|
6321
6403
|
* @date 15-11-2021
|
|
6404
|
+
* * @param tipo: valores ['catalogo','default','nomina']
|
|
6405
|
+
* @params dato:object {nombre:string, apellido:string, cedula.string} use para la opcion 'catalogo'
|
|
6406
|
+
|
|
6322
6407
|
*/
|
|
6323
|
-
SigespService.prototype.getPersonalNomina = function (dato) {
|
|
6324
|
-
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" +
|
|
6408
|
+
SigespService.prototype.getPersonalNomina = function (tipo, dato) {
|
|
6409
|
+
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
6410
|
if (res.success) {
|
|
6326
6411
|
res.data = res.data.map(function (e) { return new MPersonalNomina(e); });
|
|
6327
6412
|
}
|
|
6328
6413
|
return res;
|
|
6329
6414
|
}));
|
|
6330
6415
|
};
|
|
6416
|
+
/**
|
|
6417
|
+
* @param idPersonal: id del personal
|
|
6418
|
+
* @param tipo: valores['nomina_personal']
|
|
6419
|
+
* @description Obtiene las nominas del personal resumida
|
|
6420
|
+
* @deprecated; 20-01-22
|
|
6421
|
+
* @returns
|
|
6422
|
+
*/
|
|
6423
|
+
SigespService.prototype.getPersonalNominaResumida = function (idPersonal, tipo) {
|
|
6424
|
+
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) {
|
|
6425
|
+
if (res.success) {
|
|
6426
|
+
res.data = res.data.map(function (e) { return new MNominaSimple(e); });
|
|
6427
|
+
}
|
|
6428
|
+
return res;
|
|
6429
|
+
}));
|
|
6430
|
+
};
|
|
6331
6431
|
/**
|
|
6332
6432
|
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6333
6433
|
* @return Json data
|
|
@@ -6341,10 +6441,10 @@
|
|
|
6341
6441
|
}));
|
|
6342
6442
|
};
|
|
6343
6443
|
/**
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6444
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6445
|
+
* @return Json data
|
|
6446
|
+
* @author Ing. Wilmer Briceno
|
|
6447
|
+
*/
|
|
6348
6448
|
SigespService.prototype.log = function (body) {
|
|
6349
6449
|
return this.http.post(this.URL + "/dao/sss/log_dao.php", body, {
|
|
6350
6450
|
headers: this.getHttpHeaders()
|
|
@@ -6353,6 +6453,92 @@
|
|
|
6353
6453
|
return res;
|
|
6354
6454
|
}));
|
|
6355
6455
|
};
|
|
6456
|
+
/**
|
|
6457
|
+
* @name EncryptData
|
|
6458
|
+
* @description Enscripta una expresion data
|
|
6459
|
+
* @author Ing. Wilmer Briceño
|
|
6460
|
+
*/
|
|
6461
|
+
SigespService.prototype.EncryptData = function (expresion) {
|
|
6462
|
+
var key = CryptoJS.enc.Utf8.parse("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
|
|
6463
|
+
var iv = CryptoJS.enc.Utf8.parse('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
|
|
6464
|
+
var srcs = CryptoJS.enc.Utf8.parse(expresion);
|
|
6465
|
+
var encrypted = CryptoJS.AES.encrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
|
|
6466
|
+
return encrypted.ciphertext.toString().toUpperCase();
|
|
6467
|
+
};
|
|
6468
|
+
/**
|
|
6469
|
+
* @name DecryptData
|
|
6470
|
+
* @description Desencripta una expresion data
|
|
6471
|
+
* @author Ing. Wilmer Briceño
|
|
6472
|
+
*/
|
|
6473
|
+
SigespService.prototype.DecryptData = function (expresion) {
|
|
6474
|
+
var key = CryptoJS.enc.Utf8.parse("0123456789SIGESP"); // número hexadecimal de 16 dígitos como clave
|
|
6475
|
+
var iv = CryptoJS.enc.Utf8.parse('SIGESP0123456789'); // Número hexadecimal como desplazamiento de clave
|
|
6476
|
+
var encryptedHexStr = CryptoJS.enc.Hex.parse(expresion);
|
|
6477
|
+
var srcs = CryptoJS.enc.Base64.stringify(encryptedHexStr);
|
|
6478
|
+
var decrypt = CryptoJS.AES.decrypt(srcs, key, { iv: iv, mode: CryptoJS.mode.CBC, padding: CryptoJS.pad.Pkcs7 });
|
|
6479
|
+
var decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
|
|
6480
|
+
return decryptedStr.toString();
|
|
6481
|
+
};
|
|
6482
|
+
/**
|
|
6483
|
+
* @name getResponsePerfilToolbar
|
|
6484
|
+
* @description Metodo que obtiene una respuesta true o false basado en una estructura sring binanria segun
|
|
6485
|
+
* la posicion dada del toolbar. se pasa string binario que contiene 1 y 0 en representacion
|
|
6486
|
+
* de las propiestades administrador,consultar,ejecutar,imprimir etc ... cada posicion secuencial
|
|
6487
|
+
* si esta en 1 es true y 0 en false y devuleve el valor segun lo requiera el usuario:
|
|
6488
|
+
* stringbinario : '1011' y posicion es 2, por tanto se tare 0 y es false que representa opcion consultar.
|
|
6489
|
+
* Estructura string binario:
|
|
6490
|
+
* Posición :
|
|
6491
|
+
* 0. Administrador 6. Descargar
|
|
6492
|
+
* 1. insertar 7. Ejecutar
|
|
6493
|
+
* 2. Actualizar 8. Enviar
|
|
6494
|
+
* 3. consultar 9. Imprimir
|
|
6495
|
+
* 4. Eliminar 10. Visible
|
|
6496
|
+
* 5. Anular
|
|
6497
|
+
*
|
|
6498
|
+
* @author Ing. Wilmer Briceño
|
|
6499
|
+
*/
|
|
6500
|
+
SigespService.prototype.getResponsePerfilToolbar = function (stringbinario, position) {
|
|
6501
|
+
var binario = stringbinario.substring(position, position + 1);
|
|
6502
|
+
if (binario == "1") {
|
|
6503
|
+
return true;
|
|
6504
|
+
}
|
|
6505
|
+
return false;
|
|
6506
|
+
};
|
|
6507
|
+
/**
|
|
6508
|
+
* @description Obtiene el Ip del cliente
|
|
6509
|
+
* @return Json data
|
|
6510
|
+
* @author Ing. Wilmer Briceno
|
|
6511
|
+
*/
|
|
6512
|
+
SigespService.prototype.getIPAddress = function () {
|
|
6513
|
+
return this.http.get("http://api.ipify.org/?format=json")
|
|
6514
|
+
.pipe(operators.catchError(function (err) {
|
|
6515
|
+
console.log('error caught in service');
|
|
6516
|
+
console.error(err);
|
|
6517
|
+
sessionStorage.setItem('ip_adress', '127.0.0.1');
|
|
6518
|
+
//Handle the error here
|
|
6519
|
+
return rxjs.throwError(err); //Rethrow it back to component
|
|
6520
|
+
}));
|
|
6521
|
+
};
|
|
6522
|
+
/**
|
|
6523
|
+
* @description Obtiene el Ip del cliente
|
|
6524
|
+
* @return Json data
|
|
6525
|
+
* @author Ing. Wilmer Briceno
|
|
6526
|
+
*/
|
|
6527
|
+
SigespService.prototype.setIpAdress = function () {
|
|
6528
|
+
var _this = this;
|
|
6529
|
+
this.getIPAddress().subscribe(function (resp) {
|
|
6530
|
+
sessionStorage.setItem('ip_adress', resp.ip);
|
|
6531
|
+
_this.ip_adress = resp.ip;
|
|
6532
|
+
});
|
|
6533
|
+
};
|
|
6534
|
+
/**
|
|
6535
|
+
* @description Obtiene el Ip del cliente
|
|
6536
|
+
* @return Json data
|
|
6537
|
+
* @author Ing. Wilmer Briceno
|
|
6538
|
+
*/
|
|
6539
|
+
SigespService.prototype.getIpAdress = function () {
|
|
6540
|
+
this.ip_adress = sessionStorage.getItem('ip_adress');
|
|
6541
|
+
};
|
|
6356
6542
|
return SigespService;
|
|
6357
6543
|
}());
|
|
6358
6544
|
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" });
|
|
@@ -10071,6 +10257,7 @@
|
|
|
10071
10257
|
exports.MMoneda = MMoneda;
|
|
10072
10258
|
exports.MMonedaConfig = MMonedaConfig;
|
|
10073
10259
|
exports.MMunicipality = MMunicipality;
|
|
10260
|
+
exports.MNominaSimple = MNominaSimple;
|
|
10074
10261
|
exports.MOrganizationType = MOrganizationType;
|
|
10075
10262
|
exports.MParish = MParish;
|
|
10076
10263
|
exports.MPeriodoNomina = MPeriodoNomina;
|