sigesp 0.8.58-220110 → 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.
@@ -5706,45 +5706,32 @@
5706
5706
  * @return Observable<MCountry>
5707
5707
  * @author Carlos Albornoz
5708
5708
  */
5709
- SigespService.prototype.getCountries = function (codigo) {
5709
+ SigespService.prototype.getCountries = function () {
5710
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); }); }));
5711
5711
  };
5712
5712
  /**
5713
5713
  * @description Obtiene los estados
5714
5714
  * @return Observable<MState>
5715
5715
  * @author Carlos Albornoz
5716
- * @modificado 10-01-2022
5717
5716
  */
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); }); }));
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); }); }));
5720
5719
  };
5721
5720
  /**
5722
5721
  * @description Obtiene los municipios
5723
5722
  * @return Observable<MMunicipality>
5724
5723
  * @author Carlos Albornoz
5725
- * @modificado 10-01-2022
5726
5724
  */
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); }); }));
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); }); }));
5729
5727
  };
5730
5728
  /**
5731
5729
  * @description Obtiene las parroquias
5732
5730
  * @return Observable<MParish>
5733
5731
  * @author Carlos Albornoz
5734
- * @modificado 10-01-2022
5735
- *
5736
5732
  */
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); }); }));
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); }); }));
5748
5735
  };
5749
5736
  /**
5750
5737
  * @description Obtiene los sistemas activas
@@ -6349,10 +6336,31 @@
6349
6336
  SigespService.prototype.getJsonMenu = function (id_usuario, sistema) {
6350
6337
  var _this = this;
6351
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) {
6352
- _this.userMenu = res.data;
6339
+ var menuJson = res.data;
6340
+ var stringifiedData = JSON.stringify(menuJson);
6341
+ stringifiedData = stringifiedData.substring(9, (stringifiedData.length - 2));
6342
+ stringifiedData = stringifiedData.substring(0, stringifiedData.length - 1);
6343
+ //console.log('stringJson : ',this.stringifiedData );
6344
+ var string_menu = "[" + stringifiedData + "\"]";
6345
+ var menu = string_menu;
6346
+ menu = JSON.parse(menu);
6347
+ _this.userMenu = menu;
6353
6348
  return _this.userMenu;
6354
6349
  }));
6355
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
+ };
6356
6364
  return SigespService;
6357
6365
  }());
6358
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" });
@@ -6959,6 +6967,35 @@
6959
6967
  return MUserPermit;
6960
6968
  }(MBasicModel));
6961
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
+
6962
6999
  var MAnticipoPrestaciones = /** @class */ (function (_super) {
6963
7000
  __extends(MAnticipoPrestaciones, _super);
6964
7001
  function MAnticipoPrestaciones(e) {
@@ -10035,6 +10072,7 @@
10035
10072
  exports.MGrados = MGrados;
10036
10073
  exports.MGroup = MGroup;
10037
10074
  exports.MHojaTiempo = MHojaTiempo;
10075
+ exports.MLog = MLog;
10038
10076
  exports.MMoneda = MMoneda;
10039
10077
  exports.MMonedaConfig = MMonedaConfig;
10040
10078
  exports.MMunicipality = MMunicipality;