@fluxhub/fluxhub-lib 9.0.73 → 9.0.75

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.
@@ -5994,8 +5994,7 @@
5994
5994
  if (add_end)
5995
5995
  filter_v = filter_v + ' and ';
5996
5996
  filter_v = filter_v + ' (';
5997
- if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) != 'dbnull')
5998
- filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5));
5997
+ // if (obj_filtro.dateFrom != null && obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5))!='dbnull') filter_v = filter_v + key + ">=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5));
5999
5998
  if (obj_filtro.dateTo != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) != 'dbnull') {
6000
5999
  if (obj_filtro.dateFrom != null)
6001
6000
  filter_v = filter_v + ' and ';
@@ -9044,16 +9043,37 @@
9044
9043
  }());
9045
9044
 
9046
9045
  var FHListPick = /** @class */ (function () {
9047
- function FHListPick(dialogRef, toastr, m_appService) {
9046
+ function FHListPick(dialogRef, toastr, m_appService, data) {
9048
9047
  this.dialogRef = dialogRef;
9049
9048
  this.toastr = toastr;
9050
9049
  this.m_appService = m_appService;
9050
+ this.data = data;
9051
9051
  this.label = "";
9052
9052
  this.separator = ",";
9053
9053
  this.title = "";
9054
9054
  this.sql = "";
9055
9055
  this.single_sel = false;
9056
9056
  this.sel_values = "";
9057
+ if (data != null) {
9058
+ if (data.sql != null)
9059
+ this.sql = data.sql;
9060
+ if (data.types != null)
9061
+ this.types = data.types;
9062
+ if (data.values != null)
9063
+ this.values = data.values;
9064
+ if (data.single_sel != null)
9065
+ this.values = data.single_sel;
9066
+ if (data.sel_values != null)
9067
+ this.sel_values = data.sel_values;
9068
+ if (data.title != null)
9069
+ this.title = data.title;
9070
+ if (data.separator != null)
9071
+ this.separator = data.separator;
9072
+ if (data.label != null)
9073
+ this.label = data.label;
9074
+ if (data.sql != null)
9075
+ this.doFill();
9076
+ }
9057
9077
  }
9058
9078
  FHListPick.prototype.close = function () { this.dialogRef.close(null); };
9059
9079
  FHListPick.prototype.doFill = function () {
@@ -9081,7 +9101,8 @@
9081
9101
  FHListPick.ctorParameters = function () { return [
9082
9102
  { type: dialog.MatDialogRef },
9083
9103
  { type: ngxToastr.ToastrService },
9084
- { type: AppService }
9104
+ { type: AppService },
9105
+ { type: undefined, decorators: [{ type: core.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9085
9106
  ]; };
9086
9107
  __decorate([
9087
9108
  core.ViewChild('cmb_sel'),
@@ -9092,7 +9113,8 @@
9092
9113
  selector: 'fhlistpick',
9093
9114
  template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <h2 mat-dialog-title>{{title}}</h2>\n <mat-dialog-content style=\"min-width:700px;min-height:500px;font-size: 12px\">\n <FHList #cmb_sel [label]=\"label\" [single_sel]=\"single_sel\" [separator]=\"separator\" style=\"width:100%;height:100%\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n\n <button mat-flat-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
9094
9115
  }),
9095
- __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService])
9116
+ __param(3, core.Inject(dialog.MAT_DIALOG_DATA)),
9117
+ __metadata("design:paramtypes", [dialog.MatDialogRef, ngxToastr.ToastrService, AppService, Object])
9096
9118
  ], FHListPick);
9097
9119
  return FHListPick;
9098
9120
  }());
@@ -14818,13 +14840,13 @@
14818
14840
  });
14819
14841
  }
14820
14842
  else {
14821
- console.log('this.app_s ', _this.app_s);
14843
+ // console.log('this.app_s ',this.app_s);
14822
14844
  var p_2 = new QParam();
14823
- console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
14824
- console.log('this.app_s.user_isadminsss ', _this.app_s.user_isadmin + '');
14845
+ // console.log('this.app_s.user_isadmin ',this.app_s.user_isadmin);
14846
+ // console.log('this.app_s.user_isadminsss ',this.app_s.user_isadmin+'');
14825
14847
  if (_this.app_s.user_isadmin != null)
14826
14848
  if (_this.app_s.user_isadmin + '' == '1') {
14827
- console.log('resolve true');
14849
+ // console.log('resolve true');
14828
14850
  resolve(true);
14829
14851
  return;
14830
14852
  }
@@ -14845,7 +14867,7 @@
14845
14867
  }
14846
14868
  }
14847
14869
  }
14848
- console.log(_this.arr_accessi, ' ', _this.routingDestination);
14870
+ // console.log(this.arr_accessi,' ',this.routingDestination);
14849
14871
  _this.toast.error("ACCESS DENIED [0X0005]");
14850
14872
  resolve(false);
14851
14873
  _this.slimLoadingBarService.complete();