@fluxhub/fluxhub-lib 9.0.69 → 9.0.71

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.
@@ -5998,18 +5998,21 @@
5998
5998
  filter_v = filter_v + key + "<=" + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateTo, 5)) + "";
5999
5999
  }
6000
6000
  else if (obj_filtro.dateFrom != null && this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 1)) != 'dbnull') {
6001
+ var q = '';
6001
6002
  if (obj_filtro.type == "greaterThan")
6002
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6003
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6003
6004
  if (obj_filtro.type == "equals")
6004
- filter_v = filter_v + ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
6005
+ q = ' (' + key + ' >=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + ' and ' + key + ' <=' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5), 'T23:59:00') + ')';
6005
6006
  if (obj_filtro.type == "notEqual")
6006
- filter_v = filter_v + ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6007
+ q = ' ' + key + ' <> ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6007
6008
  if (obj_filtro.type == "lessThan")
6008
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6009
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6009
6010
  if (obj_filtro.type == "lessThanOrEqual")
6010
- filter_v = filter_v + ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6011
+ q = ' ' + key + ' <= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6011
6012
  if (obj_filtro.type == "greaterThanOrEqual")
6012
- filter_v = filter_v + ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6013
+ q = ' ' + key + ' >= ' + this.uti_s.sql_date_grid(this.uti_s.string2date(obj_filtro.dateFrom, 5)) + '';
6014
+ console.log(obj_filtro, ' -> ', q);
6015
+ filter_v = filter_v + q;
6013
6016
  }
6014
6017
  filter_v = filter_v + ' )';
6015
6018
  }
@@ -7116,13 +7119,17 @@
7116
7119
  this.selval = desc_val;
7117
7120
  if (this.myData != null) {
7118
7121
  for (var x in this.myData) {
7122
+ var b_found = false;
7119
7123
  if (this.myData[x]['valore'] == this.selval) {
7120
7124
  this.sItem = this.myData[x]['descrizione_valore'];
7121
7125
  if (this.sItem != null) {
7126
+ b_found = true;
7122
7127
  this.descri_val = this.sItem;
7123
7128
  }
7124
7129
  return;
7125
7130
  }
7131
+ if (!b_found && this.only_from_list)
7132
+ this.resetValue();
7126
7133
  }
7127
7134
  }
7128
7135
  if (!this.only_from_list) {