@fluxhub/fluxhub-lib 10.0.358 → 10.0.360

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.
@@ -7029,19 +7029,32 @@
7029
7029
  FHComboboxComponent.prototype.setByValue = function (desc_val) {
7030
7030
  this.valDef = desc_val;
7031
7031
  this.selval = "-1";
7032
- // console.log(this.myData);
7033
7032
  if ("" + desc_val == "") {
7034
- // console.log('qqq1111');
7035
7033
  this.descri_val = '';
7036
7034
  this.update_dis();
7037
7035
  return;
7038
7036
  }
7039
- // console.log("qui");
7040
- if (this.myData == null)
7041
- return;
7037
+ if (this.myData == null) {
7038
+ if (desc_val != null)
7039
+ if (desc_val != '')
7040
+ if (desc_val != '-1') {
7041
+ this.myData = [];
7042
+ this.add_option({ valore: desc_val, descrizione_valore: desc_val });
7043
+ }
7044
+ else
7045
+ return;
7046
+ }
7042
7047
  // console.log("qui1");
7043
- if (this.myData.length == 0 || this.myData[0] == null)
7044
- return;
7048
+ if (this.myData.length == 0 || this.myData[0] == null) {
7049
+ if (desc_val != null)
7050
+ if (desc_val != '')
7051
+ if (desc_val != '-1') {
7052
+ this.myData = [];
7053
+ this.add_option({ valore: desc_val, descrizione_valore: desc_val });
7054
+ }
7055
+ else
7056
+ return;
7057
+ }
7045
7058
  //console.log("qui2");
7046
7059
  for (var j = 0; j < this.myData.length; j++) {
7047
7060
  //console.log(this.myData[j].valore +' '+ desc_val);
@@ -7162,6 +7175,11 @@
7162
7175
  return value;
7163
7176
  };
7164
7177
  FHComboboxComponent.prototype.writeValue = function (value) {
7178
+ if (value == null)
7179
+ return;
7180
+ if (value == undefined)
7181
+ return;
7182
+ console.log('writeValue ', value);
7165
7183
  this.resetValue();
7166
7184
  this.setByValue(value);
7167
7185
  };
@@ -16489,7 +16507,7 @@
16489
16507
  this.m_dataService.doQuery(p).subscribe(function (data) {
16490
16508
  if (data != null)
16491
16509
  if (data.result_msg == "OK") {
16492
- _this.get_grid().doFill("");
16510
+ _this.get_grid().Refresh();
16493
16511
  }
16494
16512
  }, function (err) {
16495
16513
  console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
@@ -19053,7 +19071,7 @@
19053
19071
  var app_op_1 = new QParam();
19054
19072
  app_op_1.sql = 'INSERT_TODO_GEST';
19055
19073
  app_op_1.types = ['string', 'string', 'string', 'string', 'string', 'string', 'string'];
19056
- app_op_1.values = [this.id_applicativo, this.get_grid().sRow.uiid, this.wax[i].idp, this.get_grid().sRow.oggetto, this.title, this.get_grid().sRow.descrizione, this.app_s.COMPANY_SITE_ROOT + '/#/' + this.app_root + '/' + this.id_applicativo + '/' + this.get_grid().sRow.uiid + '/edit'];
19074
+ app_op_1.values = [this.id_applicativo, this.get_grid().sRow.uiid, this.wax[i].username, this.get_grid().sRow.oggetto, this.title, this.get_grid().sRow.descrizione, this.app_s.COMPANY_SITE_ROOT + '/#/' + this.app_root + '/' + this.id_applicativo + '/' + this.get_grid().sRow.uiid + '/edit'];
19057
19075
  op.push(this.m_dataService.doQuery(app_op_1));
19058
19076
  if (old_grp == "XCXXX" || old_grp == this.wax[i].gruppo_parallelo) {
19059
19077
  old_grp = this.wax[i].gruppo_parallelo;
@@ -19158,7 +19176,7 @@
19158
19176
  this.m_dataService.doQuery(p).subscribe(function (data) {
19159
19177
  if (data != null)
19160
19178
  if (data.result_msg == "OK") {
19161
- _this.get_grid().doFill("");
19179
+ _this.get_grid().Refresh();
19162
19180
  }
19163
19181
  });
19164
19182
  p = new QParam();