sigesp 0.8.55-220105 → 0.8.59-220113

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,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;
@@ -6250,6 +6348,19 @@
6250
6348
  return _this.userMenu;
6251
6349
  }));
6252
6350
  };
6351
+ /**
6352
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6353
+ * @return Json data
6354
+ * @author Ing. Wilmer Briceno
6355
+ */
6356
+ SigespService.prototype.log = function (body) {
6357
+ return this.http.post(this.URL + "/dao/sss/log_dao.php", body, {
6358
+ headers: this.getHttpHeaders()
6359
+ }).pipe(operators.map(function (res) {
6360
+ console.log("Log : ", res);
6361
+ return res;
6362
+ }));
6363
+ };
6253
6364
  return SigespService;
6254
6365
  }());
6255
6366
  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" });
@@ -6856,6 +6967,35 @@
6856
6967
  return MUserPermit;
6857
6968
  }(MBasicModel));
6858
6969
 
6970
+ var MLog = /** @class */ (function (_super) {
6971
+ __extends(MLog, _super);
6972
+ function MLog(record) {
6973
+ var _this = _super.call(this) || this;
6974
+ _this.id_usuario = 0;
6975
+ _this.id_component = 0;
6976
+ _this.codsis = '';
6977
+ _this.evento = '';
6978
+ _this.deslog = '';
6979
+ _this.equlog = '';
6980
+ _this.fecsys = '';
6981
+ _this.feclog = '';
6982
+ _this.id_empresa = 0;
6983
+ _this.id_log = 0;
6984
+ _this.id_usuario = record.id_usuario;
6985
+ _this.id_component = record.id_component;
6986
+ _this.codsis = record.codsis;
6987
+ _this.evento = record.evento;
6988
+ _this.deslog = record.deslog;
6989
+ _this.equlog = record.equlog;
6990
+ _this.fecsys = record.fecsys;
6991
+ _this.feclog = record.feclog;
6992
+ _this.id_empresa = record.id_empresa;
6993
+ _this.id_log = parseInt(record.id_log);
6994
+ return _this;
6995
+ }
6996
+ return MLog;
6997
+ }(MBasicModel));
6998
+
6859
6999
  var MAnticipoPrestaciones = /** @class */ (function (_super) {
6860
7000
  __extends(MAnticipoPrestaciones, _super);
6861
7001
  function MAnticipoPrestaciones(e) {
@@ -9873,6 +10013,7 @@
9873
10013
  exports.MCargo = MCargo;
9874
10014
  exports.MCargosPersonal = MCargosPersonal;
9875
10015
  exports.MCentroCosto = MCentroCosto;
10016
+ exports.MCity = MCity;
9876
10017
  exports.MClasificacionObrero = MClasificacionObrero;
9877
10018
  exports.MClasification = MClasification;
9878
10019
  exports.MClause = MClause;
@@ -9931,6 +10072,7 @@
9931
10072
  exports.MGrados = MGrados;
9932
10073
  exports.MGroup = MGroup;
9933
10074
  exports.MHojaTiempo = MHojaTiempo;
10075
+ exports.MLog = MLog;
9934
10076
  exports.MMoneda = MMoneda;
9935
10077
  exports.MMonedaConfig = MMonedaConfig;
9936
10078
  exports.MMunicipality = MMunicipality;