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