@fluxhub/fluxhub-lib 10.0.650 → 10.0.652

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.
@@ -17191,6 +17191,7 @@ class dati_aggiuntivi {
17191
17191
  cliv = this.livs[i].livello;
17192
17192
  }
17193
17193
  liv = this.wkf_rule(cliv);
17194
+ console.log('this.wkf_rule ', cliv, liv);
17194
17195
  let bfound = false;
17195
17196
  for (let i = 0; i < this.livs.length; i++)
17196
17197
  if (this.livs[i].notifica == 0 &&
@@ -17208,6 +17209,7 @@ class dati_aggiuntivi {
17208
17209
  liv = this.livs[i].livello;
17209
17210
  break;
17210
17211
  }
17212
+ console.log('this.nlevel ', cliv, liv);
17211
17213
  var nl = liv;
17212
17214
  var xnlevel = this.nlevel;
17213
17215
  //if(btnSalva.label=="Inizia Workflow"){
@@ -24013,6 +24015,7 @@ class dati_aggiuntivi_v2 {
24013
24015
  this.limite_salto_after = -1;
24014
24016
  this.transizione_info = {};
24015
24017
  this.respingi_enabled = false;
24018
+ this.b_assenza_a = false;
24016
24019
  this.ttw = 0;
24017
24020
  this.email_bloccate = false;
24018
24021
  this.oper = "";
@@ -24190,7 +24193,10 @@ class dati_aggiuntivi_v2 {
24190
24193
  }
24191
24194
  prendi_in_carico() {
24192
24195
  this.in_carico = false;
24193
- this.update_status(true, null, this.in_carico);
24196
+ if (this.m_obj.assegnati_paralleli != null)
24197
+ if (this.m_obj.assegnati_paralleli.split(',').length != 1)
24198
+ this.b_assenza_a = true;
24199
+ this.update_status(true, null, this.in_carico, this.b_assenza_a);
24194
24200
  this.m_obj.autori = this.app_s.user;
24195
24201
  let p = new QParam();
24196
24202
  p.sql = "UPDATE_WKF_PRENDI_IN_CARICO";
@@ -24405,7 +24411,7 @@ class dati_aggiuntivi_v2 {
24405
24411
  dialogRef.afterClosed().subscribe((result) => {
24406
24412
  console.log('ris select level', result);
24407
24413
  if (result == null) {
24408
- this.update_status(true, null, null);
24414
+ this.update_status(true, null, null, null);
24409
24415
  return;
24410
24416
  }
24411
24417
  this.calcolanextandjump2(result);
@@ -24461,7 +24467,7 @@ class dati_aggiuntivi_v2 {
24461
24467
  this.calcola_destinari(o);
24462
24468
  }
24463
24469
  else {
24464
- this.update_status(this.b_edit_before, null, null);
24470
+ this.update_status(this.b_edit_before, null, null, null);
24465
24471
  }
24466
24472
  }
24467
24473
  calcola_destinari(o) {
@@ -24523,9 +24529,9 @@ class dati_aggiuntivi_v2 {
24523
24529
  });
24524
24530
  dialogRef.afterClosed().subscribe((result) => {
24525
24531
  if (result == '' || result == null) {
24526
- this.update_status(true, false, null);
24532
+ this.update_status(true, false, null, null);
24527
24533
  if (this.respingi_enabled)
24528
- this.update_status(true, true, null);
24534
+ this.update_status(true, true, null, null);
24529
24535
  return;
24530
24536
  }
24531
24537
  this.exec_wkf(o, this.nlevel, result.arrsel, result.nota, this.transizione_info.create_ver);
@@ -24561,9 +24567,9 @@ class dati_aggiuntivi_v2 {
24561
24567
  });
24562
24568
  dialogRef.afterClosed().subscribe((result) => {
24563
24569
  if (result == null || result == "abort") {
24564
- this.update_status(true, false, null);
24570
+ this.update_status(true, false, null, null);
24565
24571
  if (this.respingi_enabled)
24566
- this.update_status(true, true, null);
24572
+ this.update_status(true, true, null, null);
24567
24573
  return;
24568
24574
  }
24569
24575
  this.exec_wkf(o, this.nlevel, arrAutori, result, this.transizione_info.create_ver);
@@ -24831,17 +24837,17 @@ class dati_aggiuntivi_v2 {
24831
24837
  respingi() {
24832
24838
  this.oper = "respingi";
24833
24839
  this.btnprocedi = true;
24834
- this.update_status(false, false, null);
24840
+ this.update_status(false, false, null, null);
24835
24841
  this.salva();
24836
24842
  }
24837
24843
  procedi() {
24838
24844
  this.oper = "procedi";
24839
24845
  this.btnprocedi = true;
24840
- this.update_status(false, false, null);
24846
+ this.update_status(false, false, null, null);
24841
24847
  if (!this.ck_field()) {
24842
- this.update_status(true, null, null);
24848
+ this.update_status(true, null, null, null);
24843
24849
  if (this.respingi_enabled)
24844
- this.update_status(true, true, null);
24850
+ this.update_status(true, true, null, null);
24845
24851
  return;
24846
24852
  }
24847
24853
  this.salva();
@@ -24957,7 +24963,7 @@ class dati_aggiuntivi_v2 {
24957
24963
  save_agg() {
24958
24964
  this.before_save();
24959
24965
  this.b_edit_before = this.b_edit && this.b_rip_pulsanti;
24960
- this.update_status(false, null, null);
24966
+ this.update_status(false, null, null, null);
24961
24967
  let arr = this.getfieldvalues();
24962
24968
  // console.log('arr',arr);
24963
24969
  let p = new QParam();
@@ -25028,7 +25034,7 @@ class dati_aggiuntivi_v2 {
25028
25034
  if (!this.btnprocedi) {
25029
25035
  this.alert("DOCUMENTO SALVATO", 0);
25030
25036
  this.after_save();
25031
- this.update_status(this.b_edit_before, null, null);
25037
+ this.update_status(this.b_edit_before, null, null, null);
25032
25038
  if (!this.b_edit && !this.btnprocedi)
25033
25039
  this.m_router.navigate([
25034
25040
  this.app_info.modulo_swf,
@@ -25078,7 +25084,7 @@ class dati_aggiuntivi_v2 {
25078
25084
  }
25079
25085
  ok_load_document(o) {
25080
25086
  this.m_obj = (JSON.parse(JSON.stringify(o)));
25081
- this.update_status(false, null, null);
25087
+ this.update_status(false, null, null, null);
25082
25088
  this.save_to_app_state();
25083
25089
  let p = new QParam();
25084
25090
  p.sql = "SELECT_WLIVELLIV2_2";
@@ -25327,7 +25333,7 @@ class dati_aggiuntivi_v2 {
25327
25333
  lvlb,
25328
25334
  this.tsr.instant("Assegnata a") + ": " + s_auto,
25329
25335
  "",
25330
- "",
25336
+ s,
25331
25337
  this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
25332
25338
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
25333
25339
  this.user_idp,
@@ -25344,7 +25350,7 @@ class dati_aggiuntivi_v2 {
25344
25350
  lvlb,
25345
25351
  this.tsr.instant("Assegnata a") + ": " + s_auto,
25346
25352
  "",
25347
- "",
25353
+ s,
25348
25354
  this.getLvlDescri(String(lvlb), this.tsr.instant("Assegnata a") + ": " + s_auto),
25349
25355
  this.getUsersList(s_auto, this.m_obj.assegnati_paralleli),
25350
25356
  this.user_idp,
@@ -25582,7 +25588,7 @@ class dati_aggiuntivi_v2 {
25582
25588
  this.livs[i].context == "*ALLUSERS") {
25583
25589
  // if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
25584
25590
  // else this.respingi_enabled = false;
25585
- this.update_status(true, null, null);
25591
+ this.update_status(true, null, null, null);
25586
25592
  break;
25587
25593
  }
25588
25594
  }
@@ -25608,10 +25614,14 @@ class dati_aggiuntivi_v2 {
25608
25614
  if (this.m_obj.autori != null)
25609
25615
  if (this.m_obj.autori.split(',').length != 1)
25610
25616
  this.in_carico = true;
25611
- console.log('this.in_carico !! ', this.in_carico);
25612
- this.update_status(true, false, this.in_carico);
25617
+ // if(!this.in_carico){
25618
+ if (this.m_obj.assegnati_paralleli != null)
25619
+ if (this.m_obj.assegnati_paralleli.split(',').length != 1)
25620
+ this.b_assenza_a = true;
25621
+ // }
25622
+ this.update_status(true, false, this.in_carico, this.b_assenza_a);
25613
25623
  if (this.respingi_enabled)
25614
- this.update_status(null, true, this.in_carico);
25624
+ this.update_status(null, true, this.in_carico, this.b_assenza_a);
25615
25625
  }
25616
25626
  this.r_count();
25617
25627
  this.s_uto = '';
@@ -25796,6 +25806,7 @@ class wkf_header_bar_v2 {
25796
25806
  this.check_on_save = false;
25797
25807
  this.download_button = true;
25798
25808
  this.edit_comments_in_logs = true;
25809
+ this.assegna_a = false;
25799
25810
  this.back_lbl = 'Indietro';
25800
25811
  this.save_lbl = 'Salva';
25801
25812
  this.procedi_lbl = 'Procedi';
@@ -25880,7 +25891,18 @@ wkf_header_bar_v2.decorators = [
25880
25891
  color="primary" style="font-weight:bold"
25881
25892
  >
25882
25893
  {{save_lbl}}</button
25883
- ></div><div>
25894
+ ></div>
25895
+
25896
+ <button
25897
+ mat-flat-button
25898
+ (click)="evt_salv()"
25899
+ *ngIf="(edit_button || force_save) && in_carico && assegna_a"
25900
+ color="primary" style="font-weight:bold"
25901
+ >
25902
+ {{'Assegna a'|translate}}</button
25903
+ ></div>
25904
+
25905
+ <div>
25884
25906
 
25885
25907
  <div>
25886
25908
  <button
@@ -26016,6 +26038,7 @@ wkf_header_bar_v2.propDecorators = {
26016
26038
  check_on_save: [{ type: Input }],
26017
26039
  download_button: [{ type: Input }],
26018
26040
  edit_comments_in_logs: [{ type: Input }],
26041
+ assegna_a: [{ type: Input }],
26019
26042
  b_revisione: [{ type: Input }],
26020
26043
  admin_role: [{ type: Input }],
26021
26044
  sovra_path: [{ type: Input }],