sigesp 0.8.53-211212 → 0.8.57-220110
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 +173 -54
- 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/RecursosHumanos.js +1 -1
- package/esm2015/lib/core/models/SNO/MPersonal.model.js +13 -1
- package/esm2015/lib/core/models/locations.model.js +93 -23
- package/esm2015/lib/sigesp.service.js +38 -13
- package/esm2015/public-api.js +2 -2
- package/fesm2015/sigesp.js +140 -34
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Lugares.d.ts +6 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +4 -0
- package/lib/core/models/SNO/MPersonal.model.d.ts +4 -0
- package/lib/core/models/locations.model.d.ts +18 -5
- package/lib/sigesp.service.d.ts +26 -8
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/sigesp.metadata.json +1 -1
package/bundles/sigesp.umd.js
CHANGED
|
@@ -2013,61 +2013,141 @@
|
|
|
2013
2013
|
return MClasification;
|
|
2014
2014
|
}());
|
|
2015
2015
|
|
|
2016
|
-
var MCountry = /** @class */ (function () {
|
|
2016
|
+
var MCountry = /** @class */ (function (_super) {
|
|
2017
|
+
__extends(MCountry, _super);
|
|
2017
2018
|
function MCountry(country) {
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2019
|
+
var _this = _super.call(this) || this;
|
|
2020
|
+
_this.code = null;
|
|
2021
|
+
_this.name = null;
|
|
2022
|
+
_this.monofi = null;
|
|
2023
|
+
_this.monsec = null;
|
|
2024
|
+
if (country) {
|
|
2025
|
+
_this.code = country.codpai.trim();
|
|
2026
|
+
_this.name = country.despai.trim();
|
|
2027
|
+
_this.monofi = parseInt(country.monofi);
|
|
2028
|
+
_this.monsec = parseInt(country.monsec);
|
|
2029
|
+
}
|
|
2030
|
+
return _this;
|
|
2026
2031
|
}
|
|
2032
|
+
MCountry.prototype.dataInterface = function () {
|
|
2033
|
+
return {
|
|
2034
|
+
codpai: this.code,
|
|
2035
|
+
despai: this.name,
|
|
2036
|
+
monofi: this.monofi.toString(),
|
|
2037
|
+
monsec: this.monsec.toString(),
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2027
2040
|
return MCountry;
|
|
2028
|
-
}());
|
|
2029
|
-
var MState = /** @class */ (function () {
|
|
2041
|
+
}(MBasicModel));
|
|
2042
|
+
var MState = /** @class */ (function (_super) {
|
|
2043
|
+
__extends(MState, _super);
|
|
2030
2044
|
function MState(state) {
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2045
|
+
var _this = _super.call(this) || this;
|
|
2046
|
+
_this.code = null;
|
|
2047
|
+
_this.countryCode = null;
|
|
2048
|
+
_this.name = null;
|
|
2049
|
+
_this.capital = null;
|
|
2050
|
+
if (state) {
|
|
2051
|
+
_this.code = state.codest.trim();
|
|
2052
|
+
_this.countryCode = state.codpai.trim();
|
|
2053
|
+
_this.name = state.desest.trim();
|
|
2054
|
+
_this.capital = state.ciucapest.trim();
|
|
2055
|
+
}
|
|
2056
|
+
return _this;
|
|
2039
2057
|
}
|
|
2058
|
+
MState.prototype.dataInterface = function () {
|
|
2059
|
+
return {
|
|
2060
|
+
codpai: this.countryCode,
|
|
2061
|
+
codest: this.code,
|
|
2062
|
+
desest: this.name,
|
|
2063
|
+
ciucapest: this.capital
|
|
2064
|
+
};
|
|
2065
|
+
};
|
|
2040
2066
|
return MState;
|
|
2041
|
-
}());
|
|
2042
|
-
var MMunicipality = /** @class */ (function () {
|
|
2067
|
+
}(MBasicModel));
|
|
2068
|
+
var MMunicipality = /** @class */ (function (_super) {
|
|
2069
|
+
__extends(MMunicipality, _super);
|
|
2043
2070
|
function MMunicipality(mun) {
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2071
|
+
var _this = _super.call(this) || this;
|
|
2072
|
+
_this.code = null;
|
|
2073
|
+
_this.countryCode = null;
|
|
2074
|
+
_this.stateCode = null;
|
|
2075
|
+
_this.name = null;
|
|
2076
|
+
if (mun) {
|
|
2077
|
+
_this.code = mun.codmun.trim();
|
|
2078
|
+
_this.countryCode = mun.codpai.trim();
|
|
2079
|
+
_this.stateCode = mun.codest.trim();
|
|
2080
|
+
_this.name = mun.desmun.trim();
|
|
2081
|
+
_this.capital = mun.capmun.trim();
|
|
2082
|
+
}
|
|
2083
|
+
return _this;
|
|
2053
2084
|
}
|
|
2085
|
+
MMunicipality.prototype.dataInterface = function () {
|
|
2086
|
+
return {
|
|
2087
|
+
codpai: this.countryCode,
|
|
2088
|
+
codest: this.stateCode,
|
|
2089
|
+
codmun: this.code,
|
|
2090
|
+
desmun: this.name,
|
|
2091
|
+
capmun: this.capital,
|
|
2092
|
+
};
|
|
2093
|
+
};
|
|
2054
2094
|
return MMunicipality;
|
|
2055
|
-
}());
|
|
2056
|
-
var MParish = /** @class */ (function () {
|
|
2095
|
+
}(MBasicModel));
|
|
2096
|
+
var MParish = /** @class */ (function (_super) {
|
|
2097
|
+
__extends(MParish, _super);
|
|
2057
2098
|
function MParish(parish) {
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2099
|
+
var _this = _super.call(this) || this;
|
|
2100
|
+
_this.code = null;
|
|
2101
|
+
_this.countryCode = null;
|
|
2102
|
+
_this.stateCode = null;
|
|
2103
|
+
_this.municipalityCode = null;
|
|
2104
|
+
_this.name = null;
|
|
2105
|
+
if (parish) {
|
|
2106
|
+
_this.code = parish.codpar.trim();
|
|
2107
|
+
_this.countryCode = parish.codpai.trim();
|
|
2108
|
+
_this.stateCode = parish.codest.trim();
|
|
2109
|
+
_this.municipalityCode = parish.codmun.trim();
|
|
2110
|
+
_this.name = parish.despar.trim();
|
|
2111
|
+
}
|
|
2112
|
+
return _this;
|
|
2068
2113
|
}
|
|
2114
|
+
MParish.prototype.dataInterface = function () {
|
|
2115
|
+
return {
|
|
2116
|
+
codpai: this.countryCode,
|
|
2117
|
+
codest: this.stateCode,
|
|
2118
|
+
codmun: this.municipalityCode,
|
|
2119
|
+
codpar: this.code,
|
|
2120
|
+
despar: this.name,
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2069
2123
|
return MParish;
|
|
2070
|
-
}());
|
|
2124
|
+
}(MBasicModel));
|
|
2125
|
+
var MCity = /** @class */ (function (_super) {
|
|
2126
|
+
__extends(MCity, _super);
|
|
2127
|
+
function MCity(city) {
|
|
2128
|
+
var _this = _super.call(this) || this;
|
|
2129
|
+
_this.code = null;
|
|
2130
|
+
_this.countryCode = null;
|
|
2131
|
+
_this.stateCode = null;
|
|
2132
|
+
_this.name = null;
|
|
2133
|
+
if (city) {
|
|
2134
|
+
_this.code = city.codciu.trim();
|
|
2135
|
+
_this.countryCode = city.codpai.trim();
|
|
2136
|
+
_this.stateCode = city.codest.trim();
|
|
2137
|
+
_this.name = city.desciu.trim();
|
|
2138
|
+
}
|
|
2139
|
+
return _this;
|
|
2140
|
+
}
|
|
2141
|
+
MCity.prototype.dataInterface = function () {
|
|
2142
|
+
return {
|
|
2143
|
+
codpai: this.countryCode,
|
|
2144
|
+
codest: this.stateCode,
|
|
2145
|
+
codciu: this.code,
|
|
2146
|
+
desciu: this.name,
|
|
2147
|
+
};
|
|
2148
|
+
};
|
|
2149
|
+
return MCity;
|
|
2150
|
+
}(MBasicModel));
|
|
2071
2151
|
|
|
2072
2152
|
var MProviderBeneficiary = /** @class */ (function (_super) {
|
|
2073
2153
|
__extends(MProviderBeneficiary, _super);
|
|
@@ -4005,6 +4085,10 @@
|
|
|
4005
4085
|
_this.idSindicato = 0;
|
|
4006
4086
|
_this.codigoSindicato = '00000';
|
|
4007
4087
|
_this.denominacionSindicato = '';
|
|
4088
|
+
_this.nombrePais = '';
|
|
4089
|
+
_this.nombreEstado = '';
|
|
4090
|
+
_this.nombreMunicipio = '';
|
|
4091
|
+
_this.nombreParroquia = '';
|
|
4008
4092
|
if (p) {
|
|
4009
4093
|
_this.idEmpresa = +p.id_empresa;
|
|
4010
4094
|
_this.idPersonal = +p.id_personal;
|
|
@@ -4109,6 +4193,10 @@
|
|
|
4109
4193
|
_this.idSindicato = parseInt(p.id_sindicato);
|
|
4110
4194
|
_this.codigoSindicato = p.codsin;
|
|
4111
4195
|
_this.denominacionSindicato = p.densin;
|
|
4196
|
+
_this.nombrePais = p.despai;
|
|
4197
|
+
_this.nombreEstado = p.desest;
|
|
4198
|
+
_this.nombreMunicipio = p.desmun;
|
|
4199
|
+
_this.nombreParroquia = p.despar;
|
|
4112
4200
|
}
|
|
4113
4201
|
else {
|
|
4114
4202
|
_this.isNew = true;
|
|
@@ -4207,6 +4295,10 @@
|
|
|
4207
4295
|
codsin: this.codigoSindicato,
|
|
4208
4296
|
densin: this.denominacionSindicato,
|
|
4209
4297
|
conapdis: this.conapdis ? '1' : '0',
|
|
4298
|
+
despai: this.nombrePais,
|
|
4299
|
+
desest: this.nombreEstado,
|
|
4300
|
+
desmun: this.nombreMunicipio,
|
|
4301
|
+
despar: this.nombreParroquia,
|
|
4210
4302
|
};
|
|
4211
4303
|
};
|
|
4212
4304
|
return MPersonal;
|
|
@@ -4532,6 +4624,7 @@
|
|
|
4532
4624
|
this.toast = toast;
|
|
4533
4625
|
this.usuarioActivo = null;
|
|
4534
4626
|
this.currentComponent = null;
|
|
4627
|
+
this.userMenu = null;
|
|
4535
4628
|
}
|
|
4536
4629
|
/**
|
|
4537
4630
|
* @description Valida que selo se escriban guiones y 9
|
|
@@ -5607,32 +5700,45 @@
|
|
|
5607
5700
|
* @return Observable<MCountry>
|
|
5608
5701
|
* @author Carlos Albornoz
|
|
5609
5702
|
*/
|
|
5610
|
-
SigespService.prototype.getCountries = function () {
|
|
5703
|
+
SigespService.prototype.getCountries = function (codigo) {
|
|
5611
5704
|
return this.http.get(this.URL + "/dao/sigesp/pais_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 MCountry(e); }); }));
|
|
5612
5705
|
};
|
|
5613
5706
|
/**
|
|
5614
5707
|
* @description Obtiene los estados
|
|
5615
5708
|
* @return Observable<MState>
|
|
5616
5709
|
* @author Carlos Albornoz
|
|
5710
|
+
* @modificado 10-01-2022
|
|
5617
5711
|
*/
|
|
5618
|
-
SigespService.prototype.getStates = function () {
|
|
5619
|
-
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); }); }));
|
|
5712
|
+
SigespService.prototype.getStates = function (codigo) {
|
|
5713
|
+
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); }); }));
|
|
5620
5714
|
};
|
|
5621
5715
|
/**
|
|
5622
5716
|
* @description Obtiene los municipios
|
|
5623
5717
|
* @return Observable<MMunicipality>
|
|
5624
5718
|
* @author Carlos Albornoz
|
|
5719
|
+
* @modificado 10-01-2022
|
|
5625
5720
|
*/
|
|
5626
|
-
SigespService.prototype.getMunicipalities = function () {
|
|
5627
|
-
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); }); }));
|
|
5721
|
+
SigespService.prototype.getMunicipalities = function (pais, estado) {
|
|
5722
|
+
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); }); }));
|
|
5628
5723
|
};
|
|
5629
5724
|
/**
|
|
5630
5725
|
* @description Obtiene las parroquias
|
|
5631
5726
|
* @return Observable<MParish>
|
|
5632
5727
|
* @author Carlos Albornoz
|
|
5728
|
+
* @modificado 10-01-2022
|
|
5729
|
+
*
|
|
5633
5730
|
*/
|
|
5634
|
-
SigespService.prototype.getParishes = function () {
|
|
5635
|
-
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 MParish(e); }); }));
|
|
5731
|
+
SigespService.prototype.getParishes = function (codigo, estado, municipio) {
|
|
5732
|
+
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); }); }));
|
|
5733
|
+
};
|
|
5734
|
+
/**
|
|
5735
|
+
* @description Obtiene las parroquias
|
|
5736
|
+
* @return Observable<MParish>
|
|
5737
|
+
* @author Carlos Albornoz
|
|
5738
|
+
* @modificado 10-01-2022
|
|
5739
|
+
*/
|
|
5740
|
+
SigespService.prototype.getCitys = function (codigo) {
|
|
5741
|
+
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); }); }));
|
|
5636
5742
|
};
|
|
5637
5743
|
/**
|
|
5638
5744
|
* @description Obtiene los sistemas activas
|
|
@@ -6217,10 +6323,10 @@
|
|
|
6217
6323
|
}));
|
|
6218
6324
|
};
|
|
6219
6325
|
/**
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6326
|
+
* @description obtener personal Nomina segun filtro
|
|
6327
|
+
* @return Observable<IResponse>
|
|
6328
|
+
* @date 15-11-2021
|
|
6329
|
+
*/
|
|
6224
6330
|
SigespService.prototype.getPersonalNomina = function (dato) {
|
|
6225
6331
|
return this.http.get(this.URL + "/dao/sno/asignacion_personal_nomina_dao.php?\n tipo=" + 'personal_asignado' + "&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) {
|
|
6226
6332
|
if (res.success) {
|
|
@@ -6229,6 +6335,18 @@
|
|
|
6229
6335
|
return res;
|
|
6230
6336
|
}));
|
|
6231
6337
|
};
|
|
6338
|
+
/**
|
|
6339
|
+
* @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
|
|
6340
|
+
* @return Json data
|
|
6341
|
+
* @author Ing. Wilmer Briceno
|
|
6342
|
+
*/
|
|
6343
|
+
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6344
|
+
var _this = this;
|
|
6345
|
+
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) {
|
|
6346
|
+
_this.userMenu = res.data;
|
|
6347
|
+
return _this.userMenu;
|
|
6348
|
+
}));
|
|
6349
|
+
};
|
|
6232
6350
|
return SigespService;
|
|
6233
6351
|
}());
|
|
6234
6352
|
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" });
|
|
@@ -9852,6 +9970,7 @@
|
|
|
9852
9970
|
exports.MCargo = MCargo;
|
|
9853
9971
|
exports.MCargosPersonal = MCargosPersonal;
|
|
9854
9972
|
exports.MCentroCosto = MCentroCosto;
|
|
9973
|
+
exports.MCity = MCity;
|
|
9855
9974
|
exports.MClasificacionObrero = MClasificacionObrero;
|
|
9856
9975
|
exports.MClasification = MClasification;
|
|
9857
9976
|
exports.MClause = MClause;
|