sigesp 0.8.57-220110 → 0.8.61-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.
@@ -4089,6 +4089,8 @@
4089
4089
  _this.nombreEstado = '';
4090
4090
  _this.nombreMunicipio = '';
4091
4091
  _this.nombreParroquia = '';
4092
+ _this.nombrePaisNacimiento = '';
4093
+ _this.nombreEstadoNacimiento = '';
4092
4094
  if (p) {
4093
4095
  _this.idEmpresa = +p.id_empresa;
4094
4096
  _this.idPersonal = +p.id_personal;
@@ -4197,6 +4199,8 @@
4197
4199
  _this.nombreEstado = p.desest;
4198
4200
  _this.nombreMunicipio = p.desmun;
4199
4201
  _this.nombreParroquia = p.despar;
4202
+ _this.nombreEstadoNacimiento = p.desest_nac;
4203
+ _this.nombrePaisNacimiento = p.despai_nac;
4200
4204
  }
4201
4205
  else {
4202
4206
  _this.isNew = true;
@@ -4299,6 +4303,8 @@
4299
4303
  desest: this.nombreEstado,
4300
4304
  desmun: this.nombreMunicipio,
4301
4305
  despar: this.nombreParroquia,
4306
+ desest_nac: this.nombreEstadoNacimiento,
4307
+ despai_nac: this.nombrePaisNacimiento,
4302
4308
  };
4303
4309
  };
4304
4310
  return MPersonal;
@@ -5700,45 +5706,32 @@
5700
5706
  * @return Observable<MCountry>
5701
5707
  * @author Carlos Albornoz
5702
5708
  */
5703
- SigespService.prototype.getCountries = function (codigo) {
5709
+ SigespService.prototype.getCountries = function () {
5704
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); }); }));
5705
5711
  };
5706
5712
  /**
5707
5713
  * @description Obtiene los estados
5708
5714
  * @return Observable<MState>
5709
5715
  * @author Carlos Albornoz
5710
- * @modificado 10-01-2022
5711
5716
  */
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); }); }));
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); }); }));
5714
5719
  };
5715
5720
  /**
5716
5721
  * @description Obtiene los municipios
5717
5722
  * @return Observable<MMunicipality>
5718
5723
  * @author Carlos Albornoz
5719
- * @modificado 10-01-2022
5720
5724
  */
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); }); }));
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); }); }));
5723
5727
  };
5724
5728
  /**
5725
5729
  * @description Obtiene las parroquias
5726
5730
  * @return Observable<MParish>
5727
5731
  * @author Carlos Albornoz
5728
- * @modificado 10-01-2022
5729
- *
5730
5732
  */
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); }); }));
5733
+ SigespService.prototype.getParishes = function () {
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 MParish(e); }); }));
5742
5735
  };
5743
5736
  /**
5744
5737
  * @description Obtiene los sistemas activas
@@ -6336,10 +6329,10 @@
6336
6329
  }));
6337
6330
  };
6338
6331
  /**
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
- */
6332
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6333
+ * @return Json data
6334
+ * @author Ing. Wilmer Briceno
6335
+ */
6343
6336
  SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
6344
6337
  var _this = this;
6345
6338
  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) {
@@ -6347,6 +6340,19 @@
6347
6340
  return _this.userMenu;
6348
6341
  }));
6349
6342
  };
6343
+ /**
6344
+ * @description Obtiene el Json Menu para el usuario definido segun su permisologia del Sistema
6345
+ * @return Json data
6346
+ * @author Ing. Wilmer Briceno
6347
+ */
6348
+ SigespService.prototype.log = function (body) {
6349
+ return this.http.post(this.URL + "/dao/sss/log_dao.php", body, {
6350
+ headers: this.getHttpHeaders()
6351
+ }).pipe(operators.map(function (res) {
6352
+ console.log("Log : ", res);
6353
+ return res;
6354
+ }));
6355
+ };
6350
6356
  return SigespService;
6351
6357
  }());
6352
6358
  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" });
@@ -6953,6 +6959,38 @@
6953
6959
  return MUserPermit;
6954
6960
  }(MBasicModel));
6955
6961
 
6962
+ var MLog = /** @class */ (function (_super) {
6963
+ __extends(MLog, _super);
6964
+ function MLog(record) {
6965
+ if (record === void 0) { record = null; }
6966
+ var _this = _super.call(this) || this;
6967
+ _this.id_usuario = 0;
6968
+ _this.id_component = 0;
6969
+ _this.codsis = '';
6970
+ _this.evento = '';
6971
+ _this.deslog = '';
6972
+ _this.equlog = '';
6973
+ _this.fecsys = '';
6974
+ _this.feclog = '';
6975
+ _this.id_empresa = 0;
6976
+ _this.id_log = 0;
6977
+ if (record) {
6978
+ _this.id_usuario = record.id_usuario;
6979
+ _this.id_component = record.id_component;
6980
+ _this.codsis = record.codsis;
6981
+ _this.evento = record.evento;
6982
+ _this.deslog = record.deslog;
6983
+ _this.equlog = record.equlog;
6984
+ _this.fecsys = record.fecsys;
6985
+ _this.feclog = record.feclog;
6986
+ _this.id_empresa = record.id_empresa;
6987
+ _this.id_log = parseInt(record.id_log);
6988
+ }
6989
+ return _this;
6990
+ }
6991
+ return MLog;
6992
+ }(MBasicModel));
6993
+
6956
6994
  var MAnticipoPrestaciones = /** @class */ (function (_super) {
6957
6995
  __extends(MAnticipoPrestaciones, _super);
6958
6996
  function MAnticipoPrestaciones(e) {
@@ -10029,6 +10067,7 @@
10029
10067
  exports.MGrados = MGrados;
10030
10068
  exports.MGroup = MGroup;
10031
10069
  exports.MHojaTiempo = MHojaTiempo;
10070
+ exports.MLog = MLog;
10032
10071
  exports.MMoneda = MMoneda;
10033
10072
  exports.MMonedaConfig = MMonedaConfig;
10034
10073
  exports.MMunicipality = MMunicipality;