sigesp 0.8.54-220105 → 0.8.58-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 +165 -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 +19 -1
- package/esm2015/lib/core/models/locations.model.js +93 -23
- package/esm2015/lib/sigesp.service.js +24 -13
- package/esm2015/public-api.js +2 -2
- package/fesm2015/sigesp.js +132 -34
- package/fesm2015/sigesp.js.map +1 -1
- package/lib/core/interfaces/Lugares.d.ts +6 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +6 -0
- package/lib/core/models/SNO/MPersonal.model.d.ts +6 -0
- package/lib/core/models/locations.model.d.ts +18 -5
- package/lib/sigesp.service.d.ts +15 -4
- 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,12 @@
|
|
|
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 = '';
|
|
4092
|
+
_this.nombrePaisNacimiento = '';
|
|
4093
|
+
_this.nombreEstadoNacimiento = '';
|
|
4008
4094
|
if (p) {
|
|
4009
4095
|
_this.idEmpresa = +p.id_empresa;
|
|
4010
4096
|
_this.idPersonal = +p.id_personal;
|
|
@@ -4109,6 +4195,12 @@
|
|
|
4109
4195
|
_this.idSindicato = parseInt(p.id_sindicato);
|
|
4110
4196
|
_this.codigoSindicato = p.codsin;
|
|
4111
4197
|
_this.denominacionSindicato = p.densin;
|
|
4198
|
+
_this.nombrePais = p.despai;
|
|
4199
|
+
_this.nombreEstado = p.desest;
|
|
4200
|
+
_this.nombreMunicipio = p.desmun;
|
|
4201
|
+
_this.nombreParroquia = p.despar;
|
|
4202
|
+
_this.nombreEstadoNacimiento = p.desest_nac;
|
|
4203
|
+
_this.nombrePaisNacimiento = p.despai_nac;
|
|
4112
4204
|
}
|
|
4113
4205
|
else {
|
|
4114
4206
|
_this.isNew = true;
|
|
@@ -4207,6 +4299,12 @@
|
|
|
4207
4299
|
codsin: this.codigoSindicato,
|
|
4208
4300
|
densin: this.denominacionSindicato,
|
|
4209
4301
|
conapdis: this.conapdis ? '1' : '0',
|
|
4302
|
+
despai: this.nombrePais,
|
|
4303
|
+
desest: this.nombreEstado,
|
|
4304
|
+
desmun: this.nombreMunicipio,
|
|
4305
|
+
despar: this.nombreParroquia,
|
|
4306
|
+
desest_nac: this.nombreEstadoNacimiento,
|
|
4307
|
+
despai_nac: this.nombrePaisNacimiento,
|
|
4210
4308
|
};
|
|
4211
4309
|
};
|
|
4212
4310
|
return MPersonal;
|
|
@@ -5608,32 +5706,45 @@
|
|
|
5608
5706
|
* @return Observable<MCountry>
|
|
5609
5707
|
* @author Carlos Albornoz
|
|
5610
5708
|
*/
|
|
5611
|
-
SigespService.prototype.getCountries = function () {
|
|
5709
|
+
SigespService.prototype.getCountries = function (codigo) {
|
|
5612
5710
|
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); }); }));
|
|
5613
5711
|
};
|
|
5614
5712
|
/**
|
|
5615
5713
|
* @description Obtiene los estados
|
|
5616
5714
|
* @return Observable<MState>
|
|
5617
5715
|
* @author Carlos Albornoz
|
|
5716
|
+
* @modificado 10-01-2022
|
|
5618
5717
|
*/
|
|
5619
|
-
SigespService.prototype.getStates = function () {
|
|
5620
|
-
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); }); }));
|
|
5718
|
+
SigespService.prototype.getStates = function (codigo) {
|
|
5719
|
+
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); }); }));
|
|
5621
5720
|
};
|
|
5622
5721
|
/**
|
|
5623
5722
|
* @description Obtiene los municipios
|
|
5624
5723
|
* @return Observable<MMunicipality>
|
|
5625
5724
|
* @author Carlos Albornoz
|
|
5725
|
+
* @modificado 10-01-2022
|
|
5626
5726
|
*/
|
|
5627
|
-
SigespService.prototype.getMunicipalities = function () {
|
|
5628
|
-
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); }); }));
|
|
5727
|
+
SigespService.prototype.getMunicipalities = function (pais, estado) {
|
|
5728
|
+
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); }); }));
|
|
5629
5729
|
};
|
|
5630
5730
|
/**
|
|
5631
5731
|
* @description Obtiene las parroquias
|
|
5632
5732
|
* @return Observable<MParish>
|
|
5633
5733
|
* @author Carlos Albornoz
|
|
5734
|
+
* @modificado 10-01-2022
|
|
5735
|
+
*
|
|
5634
5736
|
*/
|
|
5635
|
-
SigespService.prototype.getParishes = function () {
|
|
5636
|
-
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); }); }));
|
|
5737
|
+
SigespService.prototype.getParishes = function (codigo, estado, municipio) {
|
|
5738
|
+
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); }); }));
|
|
5739
|
+
};
|
|
5740
|
+
/**
|
|
5741
|
+
* @description Obtiene las parroquias
|
|
5742
|
+
* @return Observable<MParish>
|
|
5743
|
+
* @author Carlos Albornoz
|
|
5744
|
+
* @modificado 10-01-2022
|
|
5745
|
+
*/
|
|
5746
|
+
SigespService.prototype.getCitys = function (codigo) {
|
|
5747
|
+
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); }); }));
|
|
5637
5748
|
};
|
|
5638
5749
|
/**
|
|
5639
5750
|
* @description Obtiene los sistemas activas
|
|
@@ -6236,11 +6347,10 @@
|
|
|
6236
6347
|
* @author Ing. Wilmer Briceno
|
|
6237
6348
|
*/
|
|
6238
6349
|
SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
|
|
6350
|
+
var _this = this;
|
|
6239
6351
|
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) {
|
|
6240
|
-
|
|
6241
|
-
|
|
6242
|
-
//sessionStorage.setItem('menu', this.userMenu);
|
|
6243
|
-
return res;
|
|
6352
|
+
_this.userMenu = res.data;
|
|
6353
|
+
return _this.userMenu;
|
|
6244
6354
|
}));
|
|
6245
6355
|
};
|
|
6246
6356
|
return SigespService;
|
|
@@ -9866,6 +9976,7 @@
|
|
|
9866
9976
|
exports.MCargo = MCargo;
|
|
9867
9977
|
exports.MCargosPersonal = MCargosPersonal;
|
|
9868
9978
|
exports.MCentroCosto = MCentroCosto;
|
|
9979
|
+
exports.MCity = MCity;
|
|
9869
9980
|
exports.MClasificacionObrero = MClasificacionObrero;
|
|
9870
9981
|
exports.MClasification = MClasification;
|
|
9871
9982
|
exports.MClause = MClause;
|