@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.
@@ -24420,6 +24420,7 @@ class dati_aggiuntivi_v2 {
24420
24420
  console.log('end SELECT_ROLES_WKF_V2', new Date());
24421
24421
  data.result_data.map((v) => {
24422
24422
  this.wkf_users_roles += v.name;
24423
+ this.init_app_wkf();
24423
24424
  });
24424
24425
  }
24425
24426
  });
@@ -24434,35 +24435,31 @@ class dati_aggiuntivi_v2 {
24434
24435
  this.alert("PARAMETRO APPLICAZIONE NON VALIDO", 2);
24435
24436
  return;
24436
24437
  }
24437
- let p = new QParam();
24438
- p.sql = "SELECT_WKF_APP_INFO_BYUID";
24439
- p.types = ["string"];
24440
- p.values = [this.id_applicativo];
24441
- let ok_op = false;
24442
- console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
24443
- this.m_dataService.doQuery(p).subscribe((data) => {
24444
- let ok_op = false;
24445
- if (data != null)
24446
- if (data.result_msg == "OK") {
24447
- if (data.result_data.length > 0) {
24448
- console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
24449
- // this.app_info=data.result_data[0];
24450
- this.setta_info_app(data.result_data[0]);
24451
- if (!this.b_edit)
24452
- this.insert_doc();
24453
- else
24454
- this.edit_doc();
24455
- }
24438
+ });
24439
+ }
24440
+ init_app_wkf() {
24441
+ let p = new QParam();
24442
+ p.sql = "SELECT_WKF_APP_INFO_BYUID";
24443
+ p.types = ["string"];
24444
+ p.values = [this.id_applicativo];
24445
+ console.log('start SELECT_WKF_APP_INFO_BYUID', new Date());
24446
+ this.m_dataService.doQuery(p).subscribe((data) => {
24447
+ if (data != null)
24448
+ if (data.result_msg == "OK") {
24449
+ if (data.result_data.length > 0) {
24450
+ console.log('end SELECT_WKF_APP_INFO_BYUID', new Date());
24451
+ // this.app_info=data.result_data[0];
24452
+ this.setta_info_app(data.result_data[0]);
24453
+ if (!this.b_edit)
24454
+ this.insert_doc();
24456
24455
  else
24457
- this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
24458
- //this.stabilimento.setByValue(this.obj.stabilimento);
24459
- ok_op = true;
24460
- //this.userRole.setByValue(this.obj.id_application);
24456
+ this.edit_doc();
24461
24457
  }
24462
- if (!ok_op) {
24463
- this.alert(data.msg, 2);
24458
+ else
24459
+ this.alert("CODICE APPLICAZIONE NON VALIDO", 2);
24460
+ //this.stabilimento.setByValue(this.obj.stabilimento);
24461
+ //this.userRole.setByValue(this.obj.id_application);
24464
24462
  }
24465
- }, (err) => { });
24466
24463
  });
24467
24464
  }
24468
24465
  ngAfterViewInit() {