@fluxhub/fluxhub-lib 10.0.384 → 10.0.385

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.
@@ -21154,6 +21154,7 @@
21154
21154
  console.log('end SELECT_ROLES_WKF_V2', new Date());
21155
21155
  data.result_data.map(function (v) {
21156
21156
  _this.wkf_users_roles += v.name;
21157
+ _this.init_app_wkf();
21157
21158
  });
21158
21159
  }
21159
21160
  });
@@ -21168,35 +21169,32 @@
21168
21169
  _this.alert("PARAMETRO APPLICAZIONE NON VALIDO", 2);
21169
21170
  return;
21170
21171
  }
21171
- var p = new QParam();
21172
- p.sql = "SELECT_WKF_APP_INFO_BYUID";
21173
- p.types = ["string"];
21174
- p.values = [_this.id_applicativo];
21175
- var ok_op = false;
21176
- console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
21177
- _this.m_dataService.doQuery(p).subscribe(function (data) {
21178
- var ok_op = false;
21179
- if (data != null)
21180
- if (data.result_msg == "OK") {
21181
- if (data.result_data.length > 0) {
21182
- console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
21183
- // this.app_info=data.result_data[0];
21184
- _this.setta_info_app(data.result_data[0]);
21185
- if (!_this.b_edit)
21186
- _this.insert_doc();
21187
- else
21188
- _this.edit_doc();
21189
- }
21172
+ });
21173
+ };
21174
+ dati_aggiuntivi_v2.prototype.init_app_wkf = function () {
21175
+ var _this = this;
21176
+ var p = new QParam();
21177
+ p.sql = "SELECT_WKF_APP_INFO_BYUID";
21178
+ p.types = ["string"];
21179
+ p.values = [this.id_applicativo];
21180
+ console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
21181
+ this.m_dataService.doQuery(p).subscribe(function (data) {
21182
+ if (data != null)
21183
+ if (data.result_msg == "OK") {
21184
+ if (data.result_data.length > 0) {
21185
+ console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
21186
+ // this.app_info=data.result_data[0];
21187
+ _this.setta_info_app(data.result_data[0]);
21188
+ if (!_this.b_edit)
21189
+ _this.insert_doc();
21190
21190
  else
21191
- _this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
21192
- //this.stabilimento.setByValue(this.obj.stabilimento);
21193
- ok_op = true;
21194
- //this.userRole.setByValue(this.obj.id_application);
21191
+ _this.edit_doc();
21195
21192
  }
21196
- if (!ok_op) {
21197
- _this.alert(data.msg, 2);
21193
+ else
21194
+ _this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
21195
+ //this.stabilimento.setByValue(this.obj.stabilimento);
21196
+ //this.userRole.setByValue(this.obj.id_application);
21198
21197
  }
21199
- }, function (err) { });
21200
21198
  });
21201
21199
  };
21202
21200
  dati_aggiuntivi_v2.prototype.ngAfterViewInit = function () {