@fluxhub/fluxhub-lib 10.0.740 → 10.0.742

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.
@@ -23868,23 +23868,23 @@ class win_select_level_v2 {
23868
23868
  win_select_level_v2.decorators = [
23869
23869
  { type: Component, args: [{
23870
23870
  template: `
23871
- <div fxLayout="column">
23872
- <div  fxFlex="100" fxLayout="row"   fxLayoutAlign="start center"   class="dialog_header"> 
23871
+ <div fxLayout="column">
23872
+ <div fxFlex="100" fxLayout="row" fxLayoutAlign="start center" class="dialog_header">
23873
23873
 
23874
- <div fxLayout="row"  fxLayoutAlign="start center" fxFlex="90"><div>{{title|translate}}</div></div> 
23874
+ <div fxLayout="row" fxLayoutAlign="start center" fxFlex="90"><div>{{title|translate}}</div></div>
23875
23875
 
23876
- <div   fxFlex="10" fxLayout="row" fxLayoutAlign="end center">
23877
- <div><img    src="assets/icons/x.png"        style="cursor: pointer;"        (click)="dialogRef.close(null)" />  </div>
23876
+ <div fxFlex="10" fxLayout="row" fxLayoutAlign="end center">
23877
+ <div><img src="assets/icons/x.png" style="cursor: pointer;" (click)="dialogRef.close(null)" /> </div>
23878
23878
  </div>
23879
23879
 
23880
23880
  </div>
23881
23881
 
23882
23882
 
23883
23883
  <mat-dialog-content>
23884
- <hr width="100%" size="0.5" color="#DDDDDD">
23884
+ <hr width="100%" size="0.5" color="#DDDDDD">
23885
23885
 
23886
23886
  <br />
23887
- <div fxLayout="column" fxLayoutGap="5px">
23887
+ <div fxLayout="column" fxLayoutGap="5px">
23888
23888
  <div *ngFor="let app of trans">
23889
23889
  <button mat-raised-button [style.background-color]="app.color" (click)="sel(app)"
23890
23890
  [style.color]="app.color_font" style="font-weight:bold;font-size:18px;min-width:300px">
@@ -24487,16 +24487,19 @@ class dati_aggiuntivi_v2 {
24487
24487
  }
24488
24488
  else {
24489
24489
  liv = this.m_obj.stato;
24490
+ console.log('this.m_obj.canale ', this.m_obj.canale, liv);
24490
24491
  if (this.m_obj.canale != null && this.m_obj.canale != '')
24491
24492
  for (let i = 0; i < this.livs.length; i++)
24492
- if (this.livs[i].step == liv)
24493
+ if (this.livs[i].step == liv) {
24494
+ console.log(" liv " + this.livs[i]);
24493
24495
  if (this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase()) {
24494
- // console.log(this.c_canale+" "+this.livs[i].context);
24496
+ console.log(this.m_obj.canale + " " + this.livs[i].context);
24495
24497
  if (this.m_obj.canale == this.livs[i].context) {
24496
24498
  this.clevel = this.livs[i];
24497
24499
  break;
24498
24500
  }
24499
24501
  }
24502
+ }
24500
24503
  if (this.clevel == null)
24501
24504
  for (let i = 0; i < this.livs.length; i++) {
24502
24505
  if (this.livs[i].username == null)
@@ -24552,83 +24555,6 @@ class dati_aggiuntivi_v2 {
24552
24555
  this.clevel = this.check_n_levels(this.clevel);
24553
24556
  this.calcolanextandjump();
24554
24557
  }
24555
- /*
24556
- selectLevel() {
24557
- let p: QParam = new QParam();
24558
- p.sql = "SELECT_TRANSAZIONI_FROM_LVL";
24559
- p.values = [this.id_applicativo, this.clevel.step];
24560
- p.types = ["string", "int"];
24561
- this.m_dataService.doQuery(p).subscribe((data) => {
24562
- if(data.result_data.length==0){
24563
- this.alert('Nessuna transizione definita',1);
24564
- return;
24565
- }
24566
-
24567
-
24568
-
24569
- });
24570
-
24571
- this.app_s.getState().wkf_doc_info.livs = this.livs;
24572
- this.app_s.getState().wkf_doc_info.cl = this.clevel;
24573
-
24574
- let dialogRef = this.m_dialog.open(win_select_level_v2, {
24575
- disableClose: true,
24576
- });
24577
-
24578
- dialogRef.afterClosed().subscribe((result) => {
24579
- if (result == null) {
24580
- this.edit_b(true);
24581
- return;
24582
- }
24583
- let liv: number = result;
24584
- if (result.descri_livello == "Prosegui a step successivo") {
24585
- this.calcolanextandjump();
24586
- return;
24587
- }
24588
-
24589
- if (result.descri_livello == "Prosegui a chiusura") {
24590
- liv = 0;
24591
- for (var i: number = 0; i < this.livs.length; i++)
24592
- if (
24593
- this.livs[i].step < 900 &&
24594
- this.livs[i].step > liv &&
24595
- this.livs[i].notifica == 0
24596
- ) {
24597
- this.clevel = this.livs[i];
24598
- liv = this.livs[i].step;
24599
- }
24600
- this.calcolanextandjump();
24601
- return;
24602
- }
24603
-
24604
- liv = this.wkf_rule(liv);
24605
- var bfound: Boolean = false;
24606
- for (var i: number = 0; i < this.livs.length; i++)
24607
- if (
24608
- this.user_idp.toUpperCase() == this.livs[i].username.toUpperCase() &&
24609
- this.livs[i].notifica == 0
24610
- )
24611
- if (this.livs[i].step == liv) {
24612
- this.nlevel = this.livs[i];
24613
- liv = this.livs[i].step;
24614
-
24615
- bfound = true;
24616
- }
24617
-
24618
- if (!bfound) {
24619
- for (var i: number = 0; i < this.livs.length; i++)
24620
- if (this.livs[i].step == liv && this.livs[i].notifica == 0) {
24621
- this.nlevel = this.livs[i];
24622
- liv = this.livs[i].step;
24623
-
24624
- break;
24625
- }
24626
- }
24627
-
24628
- // this.doJump();
24629
- });
24630
- }
24631
- */
24632
24558
  wkf_rule_before(transazioni, step, context) {
24633
24559
  return transazioni;
24634
24560
  }
@@ -24652,7 +24578,7 @@ class dati_aggiuntivi_v2 {
24652
24578
  }
24653
24579
  else {
24654
24580
  let dialogRef = this.m_dialog.open(win_select_level_v2, {
24655
- disableClose: true, data: transazioni, width: '800px'
24581
+ disableClose: true, data: transazioni
24656
24582
  });
24657
24583
  dialogRef.afterClosed().subscribe((result) => {
24658
24584
  console.log('ris select level', result);