sigesp 0.8.56-220107 → 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.
@@ -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
- this.code = null;
2019
- this.name = null;
2020
- this.monofi = null;
2021
- this.monsec = null;
2022
- this.code = country.codpai.trim();
2023
- this.name = country.despai.trim();
2024
- this.monofi = parseInt(country.monofi);
2025
- this.monsec = parseInt(country.monsec);
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
- this.code = null;
2032
- this.countryCode = null;
2033
- this.name = null;
2034
- this.capital = null;
2035
- this.code = state.codest.trim();
2036
- this.countryCode = state.codpai.trim();
2037
- this.name = state.desest.trim();
2038
- this.capital = state.ciucapest.trim();
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
- this.code = null;
2045
- this.countryCode = null;
2046
- this.stateCode = null;
2047
- this.name = null;
2048
- this.code = mun.codmun.trim();
2049
- this.countryCode = mun.codpai.trim();
2050
- this.stateCode = mun.codest.trim();
2051
- this.name = mun.desmun.trim();
2052
- this.capital = mun.capmun.trim();
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
- this.code = null;
2059
- this.countryCode = null;
2060
- this.stateCode = null;
2061
- this.municipalityCode = null;
2062
- this.name = null;
2063
- this.code = parish.codpar.trim();
2064
- this.countryCode = parish.codpai.trim();
2065
- this.stateCode = parish.codest.trim();
2066
- this.municipalityCode = parish.codmun.trim();
2067
- this.name = parish.despar.trim();
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;
@@ -5608,32 +5700,45 @@
5608
5700
  * @return Observable<MCountry>
5609
5701
  * @author Carlos Albornoz
5610
5702
  */
5611
- SigespService.prototype.getCountries = function () {
5703
+ SigespService.prototype.getCountries = function (codigo) {
5612
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); }); }));
5613
5705
  };
5614
5706
  /**
5615
5707
  * @description Obtiene los estados
5616
5708
  * @return Observable<MState>
5617
5709
  * @author Carlos Albornoz
5710
+ * @modificado 10-01-2022
5618
5711
  */
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); }); }));
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); }); }));
5621
5714
  };
5622
5715
  /**
5623
5716
  * @description Obtiene los municipios
5624
5717
  * @return Observable<MMunicipality>
5625
5718
  * @author Carlos Albornoz
5719
+ * @modificado 10-01-2022
5626
5720
  */
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); }); }));
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); }); }));
5629
5723
  };
5630
5724
  /**
5631
5725
  * @description Obtiene las parroquias
5632
5726
  * @return Observable<MParish>
5633
5727
  * @author Carlos Albornoz
5728
+ * @modificado 10-01-2022
5729
+ *
5634
5730
  */
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); }); }));
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); }); }));
5637
5742
  };
5638
5743
  /**
5639
5744
  * @description Obtiene los sistemas activas
@@ -9865,6 +9970,7 @@
9865
9970
  exports.MCargo = MCargo;
9866
9971
  exports.MCargosPersonal = MCargosPersonal;
9867
9972
  exports.MCentroCosto = MCentroCosto;
9973
+ exports.MCity = MCity;
9868
9974
  exports.MClasificacionObrero = MClasificacionObrero;
9869
9975
  exports.MClasification = MClasification;
9870
9976
  exports.MClause = MClause;