@fluxhub/fluxhub-lib 1.0.356 → 1.0.358

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.
@@ -3673,22 +3673,84 @@ FHUploadPanelComponent.decorators = [
3673
3673
  <div [hidden]="!enabled">
3674
3674
  <FHUpload [single]="b_False" [lista_allegati]="arr_g" (change)="ref_allegato()" #upc></FHUpload>
3675
3675
  </div>
3676
- <table width="98%" class="fh_table">
3677
- <thead *ngIf="!b_mobile">
3676
+ <table width="98%" class="fh_table" *ngIf="!image_type && !b_mobile">
3677
+ <thead>
3678
3678
  <tr class="header">
3679
3679
  <th style="width:40px"></th>
3680
3680
  <th style="width:50%">Nome</th>
3681
3681
  <th style="width:60px;text-align:center">Dim.</th>
3682
+ <th style="width:50%">Descrizione</th>
3683
+ <th style="width:40px" class="actions"></th>
3684
+ <th style="width:30%" >Utente</th>
3685
+ <th style="width:240px;text-align:center">Data</th>
3686
+ <th style="width:40px" class="actions"></th>
3687
+ <th *ngIf="enabled" style="width:40px" class="actions"></th>
3688
+ </tr>
3689
+ </thead>
3690
+ <tbody>
3691
+ <tr *ngFor="let app of arr_g;let odd=odd; let even=even;" style="font-size: 12px;" [ngClass]="{ odd: odd, even: even }">
3692
+ <td style="text-align:center;vertical-align: middle;width:36px;height:36px;">
3693
+ <div style="text-align:center;vertical-align: middle;width:28px;height:28px;">
3694
+ <img src="assets/icons/square-o/{{app.icon}}" style="width:28px;height:28px;"></div> </td>
3695
+ <td>{{app.Filename}}</td>
3696
+ <td style="text-align:center">{{app.Filesize}}</td>
3697
+ <td>
3698
+ <div fxLayout="row">
3699
+ <a mat-icon-button matTooltip="Modifica Descrizione" *ngIf="app.can_delete" (click)="edit_descri(app)">
3700
+ <mat-icon>edit</mat-icon>
3701
+ </a>
3682
3702
 
3683
- <th style="width:20%" *ngIf="image_type">Descrizione</th>
3684
- <th style="width:10%" *ngIf="image_type">Utente</th>
3685
- <th style="width:40%" *ngIf="image_type"></th>
3703
+ <a mat-icon-button [matTooltip]="'Modifica Descrizione consentita solo a: '+app.nc" *ngIf="!app.can_delete" [disabled]="true" >
3704
+ <mat-icon>edit</mat-icon>
3705
+ </a>
3706
+
3707
+ <div [innerHTML]="app.descrizione_vis" style="width:100%">
3708
+ </div>
3709
+ </div></td>
3686
3710
 
3687
3711
 
3712
+ <td style="min-width:400px;min-height: 400px" *ngIf="app.type=='IMG'">
3713
+ <fh-image-viewer [u]="app"></fh-image-viewer>
3688
3714
 
3689
- <th style="width:50%" *ngIf="!image_type">Descrizione</th>
3690
- <th *ngIf="enabled" style="width:40px" class="actions"></th>
3691
- <th style="width:30%" *ngIf="!image_type">Utente</th>
3715
+ </td>
3716
+ <td *ngIf="app.type!='IMG'">
3717
+
3718
+ </td>
3719
+ <td>{{app.nc}}</td>
3720
+ <td style="text-align:center">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
3721
+ <td style="text-align:center">
3722
+ <button mat-icon-button matTooltip="Download File" (click)="download_all(app)">
3723
+ <mat-icon>cloud_download</mat-icon>
3724
+ </button>
3725
+ </td>
3726
+
3727
+ <td *ngIf="enabled" style="text-align:center">
3728
+ <a mat-icon-button matTooltip="Elimina File" *ngIf="app.can_delete" (click)="delete(app)">
3729
+ <mat-icon>delete</mat-icon>
3730
+ </a>
3731
+
3732
+ <a mat-icon-button [matTooltip]="'Cancellazione consentita solo a: '+app.nc" *ngIf="!app.can_delete" [disabled]="true" >
3733
+ <mat-icon>delete</mat-icon>
3734
+ </a>
3735
+
3736
+ </td>
3737
+
3738
+ </tr>
3739
+ </tbody>
3740
+ </table>
3741
+ <table width="98%" class="fh_table" *ngIf="image_type && !b_mobile">
3742
+ <thead>
3743
+ <tr class="header">
3744
+ <th style="width:40px"></th>
3745
+ <th style="width:50%">Nome</th>
3746
+ <th style="width:60px;text-align:center">Dim.</th>
3747
+
3748
+ <th style="width:20%">Descrizione</th>
3749
+ <th style="width:10%" >Utente</th>
3750
+ <th style="width:40%" ></th>
3751
+
3752
+
3753
+ <th style="width:40px" class="actions"></th>
3692
3754
  <th style="width:240px;text-align:center">Data</th>
3693
3755
  <th style="width:40px" class="actions"></th>
3694
3756
  <th *ngIf="enabled" style="width:40px" class="actions"></th>
@@ -3700,12 +3762,10 @@ FHUploadPanelComponent.decorators = [
3700
3762
  <td style="text-align:center;vertical-align: middle;width:36px;height:36px;">
3701
3763
  <div style="text-align:center;vertical-align: middle;width:28px;height:28px;">
3702
3764
  <img src="assets/icons/square-o/{{app.icon}}" style="width:28px;height:28px;"></div> </td>
3703
- <td *ngIf="b_mobile" style="text-align:center">{{app.Filename}}<br><br>
3704
- <button (click)="download_all(app)" mat-raised-button>DOWNLOAD</button>
3705
- </td>
3706
- <td *ngIf="!b_mobile">{{app.Filename}}</td>
3707
- <td *ngIf="!b_mobile" style="text-align:center">{{app.Filesize}}</td>
3708
- <td *ngIf="!b_mobile">
3765
+
3766
+ <td>{{app.Filename}}</td>
3767
+ <td style="text-align:center">{{app.Filesize}}</td>
3768
+ <td>
3709
3769
  <div fxLayout="row">
3710
3770
  <a mat-icon-button matTooltip="Modifica Descrizione" *ngIf="app.can_delete" (click)="edit_descri(app)">
3711
3771
  <mat-icon>edit</mat-icon>
@@ -3724,9 +3784,12 @@ FHUploadPanelComponent.decorators = [
3724
3784
  <fh-image-viewer [u]="app"></fh-image-viewer>
3725
3785
 
3726
3786
  </td>
3727
- <td *ngIf="!b_mobile">{{app.nc}}</td>
3728
- <td *ngIf="!b_mobile" style="text-align:center">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
3729
- <td *ngIf="!b_mobile" style="text-align:center">
3787
+ <td *ngIf="app.type!='IMG'">
3788
+
3789
+ </td>
3790
+ <td>{{app.nc}}</td>
3791
+ <td style="text-align:center">{{app.dt_ins | date: 'dd/MM/yyyy HH:mm:ss'}}</td>
3792
+ <td style="text-align:center">
3730
3793
  <button mat-icon-button matTooltip="Download File" (click)="download_all(app)">
3731
3794
  <mat-icon>cloud_download</mat-icon>
3732
3795
  </button>
@@ -3744,8 +3807,21 @@ FHUploadPanelComponent.decorators = [
3744
3807
  </td>
3745
3808
 
3746
3809
  </tr>
3810
+ </tbody>
3747
3811
  </table>
3812
+ <table width="98%" class="fh_table" *ngIf="b_mobile">
3813
+ <tbody>
3748
3814
 
3815
+ <tr *ngFor="let app of arr_g;let odd=odd; let even=even;" style="font-size: 12px;" [ngClass]="{ odd: odd, even: even }">
3816
+ <td style="text-align:center;vertical-align: middle;width:36px;height:36px;">
3817
+ <div style="text-align:center;vertical-align: middle;width:28px;height:28px;">
3818
+ <img src="assets/icons/square-o/{{app.icon}}" style="width:28px;height:28px;"></div> </td>
3819
+ <td *ngIf="b_mobile" style="text-align:center">{{app.Filename}}<br><br>
3820
+ <button (click)="download_all(app)" mat-raised-button>DOWNLOAD</button>
3821
+ </td>
3822
+ </tr>
3823
+ </tbody>
3824
+ </table>
3749
3825
  </div>
3750
3826
  </div>
3751
3827
  <div *ngIf="!b_ini" style="color:#ff0000"><b>ATTENZIONE COMPONENTE NON INIZIALIZZATO</b></div>
@@ -3939,8 +4015,8 @@ class FHComboboxComponent {
3939
4015
  this._dataService_odbc = _dataService_odbc;
3940
4016
  this.init_fill = true;
3941
4017
  this.sql = "";
3942
- this.types = new Array();
3943
- this.values = new Array();
4018
+ this.types = [];
4019
+ this.values = [];
3944
4020
  this.hidden = false;
3945
4021
  this.label = "";
3946
4022
  this.enabled = true;
@@ -3949,7 +4025,7 @@ class FHComboboxComponent {
3949
4025
  this.fillend = new EventEmitter();
3950
4026
  this.selchange = new EventEmitter();
3951
4027
  this.initend = new EventEmitter();
3952
- this.myData = new Array();
4028
+ this.myData = [];
3953
4029
  this.valDef = "-1";
3954
4030
  this.selval = "-1";
3955
4031
  this.errorMsg = "";
@@ -7419,8 +7495,6 @@ class FHGridComponent {
7419
7495
  this.doFill('', true, false);
7420
7496
  return;
7421
7497
  }
7422
- else
7423
- this.show_pulisci_filtri = true;
7424
7498
  /** @type {?} */
7425
7499
  let arr = this.ric_libera.split(' ');
7426
7500
  /** @type {?} */
@@ -7446,6 +7520,7 @@ class FHGridComponent {
7446
7520
  ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7447
7521
  }
7448
7522
  this.pulisci_filtri(false);
7523
+ this.show_pulisci_filtri = true;
7449
7524
  this.doFill_Temp(ss, true);
7450
7525
  }
7451
7526
  /**
@@ -14740,6 +14815,7 @@ class dati_aggiuntivi {
14740
14815
  this.limite_salto_after = -1;
14741
14816
  this.respingi_enabled = false;
14742
14817
  this.oper = '';
14818
+ this.b_edit_before = false;
14743
14819
  this.all_c = "";
14744
14820
  this.comm_c = "";
14745
14821
  this.forza_canale = "";
@@ -15528,7 +15604,7 @@ class dati_aggiuntivi {
15528
15604
  * @return {?}
15529
15605
  */
15530
15606
  getLvlInfo(lvl) {
15531
- for (var i = 0; i < this.livs.length; i++)
15607
+ for (let i = 0; i < this.livs.length; i++)
15532
15608
  if (lvl == this.livs[i].livello) {
15533
15609
  return this.livs[i];
15534
15610
  }
@@ -15543,7 +15619,7 @@ class dati_aggiuntivi {
15543
15619
  */
15544
15620
  insert_commento(p_id_applicativo, p_id_documento, p_nota, p_user_idp) {
15545
15621
  /** @type {?} */
15546
- var p = new QParam();
15622
+ let p = new QParam();
15547
15623
  p.sql = "INSERT_WKF_COMMENTO";
15548
15624
  p.values = [p_id_applicativo, p_id_documento, p_nota, p_user_idp];
15549
15625
  p.types = ['string', 'string', 'string', 'string'];
@@ -15552,21 +15628,8 @@ class dati_aggiuntivi {
15552
15628
  * @return {?}
15553
15629
  */
15554
15630
  data => {
15555
- /** @type {?} */
15556
- let ok_op = false;
15557
15631
  if (data != null)
15558
- if (data.result_msg == "OK") {
15559
- ok_op = true;
15560
- }
15561
- if (!ok_op) {
15562
- this.alert(data.msg, 1);
15563
- }
15564
- }), (/**
15565
- * @param {?} err
15566
- * @return {?}
15567
- */
15568
- err => {
15569
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15632
+ if (data.result_msg == "OK") ;
15570
15633
  }));
15571
15634
  }
15572
15635
  /**
@@ -15586,21 +15649,8 @@ class dati_aggiuntivi {
15586
15649
  * @return {?}
15587
15650
  */
15588
15651
  data => {
15589
- /** @type {?} */
15590
- let ok_op = false;
15591
15652
  if (data != null)
15592
- if (data.result_msg == "OK") {
15593
- ok_op = true;
15594
- }
15595
- if (!ok_op) {
15596
- this.alert(data.msg, 1);
15597
- }
15598
- }), (/**
15599
- * @param {?} err
15600
- * @return {?}
15601
- */
15602
- err => {
15603
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15653
+ if (data.result_msg == "OK") ;
15604
15654
  }));
15605
15655
  }
15606
15656
  /**
@@ -15651,7 +15701,6 @@ class dati_aggiuntivi {
15651
15701
  * @return {?}
15652
15702
  */
15653
15703
  result => {
15654
- // this.selectedOption = result;
15655
15704
  this.r_count();
15656
15705
  }));
15657
15706
  }
@@ -15671,7 +15720,6 @@ class dati_aggiuntivi {
15671
15720
  * @return {?}
15672
15721
  */
15673
15722
  result => {
15674
- // this.selectedOption = result;
15675
15723
  this.r_count();
15676
15724
  }));
15677
15725
  }
@@ -15686,7 +15734,6 @@ class dati_aggiuntivi {
15686
15734
  * @return {?}
15687
15735
  */
15688
15736
  result => {
15689
- // this.selectedOption = result;
15690
15737
  this.r_count();
15691
15738
  }));
15692
15739
  }
@@ -15695,7 +15742,7 @@ class dati_aggiuntivi {
15695
15742
  */
15696
15743
  create_new_document() {
15697
15744
  /** @type {?} */
15698
- var p = new QParam();
15745
+ let p = new QParam();
15699
15746
  p.sql = "insert_new_doc";
15700
15747
  if (this.c_canale == null)
15701
15748
  this.c_canale = '';
@@ -15705,28 +15752,17 @@ class dati_aggiuntivi {
15705
15752
  * @return {?}
15706
15753
  */
15707
15754
  data => {
15708
- /** @type {?} */
15709
- let ok_op = false;
15710
15755
  if (data != null)
15711
15756
  if (data.result_msg == "OK") {
15712
15757
  this.save_agg();
15713
- ok_op = true;
15714
15758
  }
15715
- if (!ok_op) {
15716
- this.alert(data.msg, 1);
15717
- }
15718
- }), (/**
15719
- * @param {?} err
15720
- * @return {?}
15721
- */
15722
- err => {
15723
- this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
15724
15759
  }));
15725
15760
  }
15726
15761
  /**
15727
15762
  * @return {?}
15728
15763
  */
15729
15764
  save_agg() {
15765
+ this.b_edit_before = this.b_edit;
15730
15766
  this.edit_b(false);
15731
15767
  /** @type {?} */
15732
15768
  var arr = this.getfieldvalues();
@@ -15771,16 +15807,10 @@ class dati_aggiuntivi {
15771
15807
  * @return {?}
15772
15808
  */
15773
15809
  data => {
15774
- /** @type {?} */
15775
- let ok_op = false;
15776
15810
  if (data != null)
15777
15811
  if (data.result_msg == "OK") {
15778
15812
  this.ok_insert_aggiuntivi();
15779
- ok_op = true;
15780
15813
  }
15781
- if (!ok_op) {
15782
- this.errorMsg = data.msg;
15783
- }
15784
15814
  }), (/**
15785
15815
  * @param {?} err
15786
15816
  * @return {?}
@@ -15794,7 +15824,7 @@ class dati_aggiuntivi {
15794
15824
  ok_insert_aggiuntivi() {
15795
15825
  if (!this.btnprocedi) {
15796
15826
  this.alert('DOCUMENTO SALVATO', 0);
15797
- this.edit_b(true);
15827
+ this.edit_b(this.b_edit_before);
15798
15828
  if (!this.b_edit && !this.btnprocedi)
15799
15829
  this.m_router.navigate([this.app_info.modulo_swf, this.id_applicativo, this.id_documento, 'edit']);
15800
15830
  }
@@ -15811,7 +15841,7 @@ class dati_aggiuntivi {
15811
15841
  load_document() {
15812
15842
  console.log('load_document()');
15813
15843
  /** @type {?} */
15814
- var p = new QParam();
15844
+ let p = new QParam();
15815
15845
  p.sql = "SELECT_WKF_DOCUMENT_NOREP";
15816
15846
  p.types = ['string', 'string', 'string'];
15817
15847
  p.values = [this.app_info.vista_sql, this.id_applicativo, this.id_documento];
@@ -15820,22 +15850,16 @@ class dati_aggiuntivi {
15820
15850
  * @return {?}
15821
15851
  */
15822
15852
  data => {
15823
- /** @type {?} */
15824
- let ok_op = false;
15825
15853
  if (data != null)
15826
15854
  if (data.result_msg == "OK") {
15827
15855
  /** @type {?} */
15828
- var a = data.result_data;
15856
+ let a = data.result_data;
15829
15857
  if (a.length > 0) {
15830
15858
  this.ok_load_document(a[0]);
15831
15859
  }
15832
15860
  else
15833
15861
  this.alert("DOCUMENTO NON TROVATO", 1);
15834
- ok_op = true;
15835
15862
  }
15836
- if (!ok_op) {
15837
- this.errorMsg = data.msg;
15838
- }
15839
15863
  }), (/**
15840
15864
  * @param {?} err
15841
15865
  * @return {?}
@@ -15861,16 +15885,10 @@ class dati_aggiuntivi {
15861
15885
  * @return {?}
15862
15886
  */
15863
15887
  data => {
15864
- /** @type {?} */
15865
- let ok_op = false;
15866
15888
  if (data != null)
15867
15889
  if (data.result_msg == "OK") {
15868
15890
  this.ok_livelli_doc(data.result_data);
15869
- ok_op = true;
15870
15891
  }
15871
- if (!ok_op) {
15872
- this.errorMsg = data.msg;
15873
- }
15874
15892
  }), (/**
15875
15893
  * @param {?} err
15876
15894
  * @return {?}
@@ -15906,7 +15924,7 @@ class dati_aggiuntivi {
15906
15924
  */
15907
15925
  r_count() {
15908
15926
  /** @type {?} */
15909
- var p = new QParam();
15927
+ let p = new QParam();
15910
15928
  p.sql = "SELECT_WKF_ALLEGATI_COUNTER";
15911
15929
  p.types = ['string', 'string'];
15912
15930
  p.values = [this.id_applicativo, this.id_documento];
@@ -15915,17 +15933,15 @@ class dati_aggiuntivi {
15915
15933
  * @return {?}
15916
15934
  */
15917
15935
  data => {
15918
- /** @type {?} */
15919
- let ok_op = false;
15920
15936
  if (data != null)
15921
15937
  if (data.result_msg == "OK") {
15922
15938
  /** @type {?} */
15923
- var a = data.result_data;
15939
+ let a = data.result_data;
15924
15940
  /** @type {?} */
15925
15941
  let na = 0;
15926
15942
  /** @type {?} */
15927
15943
  let nc = 0;
15928
- for (var i = 0; i < a.length; i++) {
15944
+ for (let i = 0; i < a.length; i++) {
15929
15945
  if (a[i].n > 0) {
15930
15946
  if (a[i].v == 'ALLEGATI')
15931
15947
  na = a[i].n;
@@ -15934,11 +15950,7 @@ class dati_aggiuntivi {
15934
15950
  }
15935
15951
  }
15936
15952
  this.reset_counters_int(nc, na);
15937
- ok_op = true;
15938
15953
  }
15939
- if (!ok_op) {
15940
- this.errorMsg = data.msg;
15941
- }
15942
15954
  }), (/**
15943
15955
  * @param {?} err
15944
15956
  * @return {?}
@@ -15982,10 +15994,7 @@ class dati_aggiuntivi {
15982
15994
  for (let i = 0; i < this.livs.length; i++)
15983
15995
  if (this.livs[i].livello == min_liv) {
15984
15996
  this.livs[i].gruppo_parallelo = this.forza_canale;
15985
- console.log('-------------' + this.forza_canale + '--------------------');
15986
- console.log(this.livs[i]);
15987
15997
  }
15988
- console.log('forza canale exec' + this.forza_canale);
15989
15998
  if (this.m_obj.stato < 20)
15990
15999
  this.m_obj.canale = this.forza_canale;
15991
16000
  this.c_canale = this.forza_canale;
@@ -16003,7 +16012,7 @@ class dati_aggiuntivi {
16003
16012
  min_liv = this.livs[i].livello;
16004
16013
  }
16005
16014
  /** @type {?} */
16006
- let sv = new Array();
16015
+ let sv = [];
16007
16016
  for (let i = 0; i < this.livs.length; i++)
16008
16017
  if (this.livs[i].livello == min_liv && this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() == this.livs[i].idp.toUpperCase()) {
16009
16018
  if (this.livs[i].gruppo_parallelo != null)
@@ -16111,11 +16120,11 @@ class dati_aggiuntivi {
16111
16120
  /** @type {?} */
16112
16121
  let a;
16113
16122
  if (!this.app_info.documento_pubblico)
16114
- a = new Array(s, this.m_obj.partecipanti + "," + s, lvlb, "Assegnata a:" + s_auto, '', '', this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto), this.getUsersList(s_auto, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento);
16123
+ a = [s, this.m_obj.partecipanti + "," + s, lvlb, "Assegnata a:" + s_auto, '', '', this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto), this.getUsersList(s_auto, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento];
16115
16124
  else
16116
- a = new Array(s, "", lvlb, "Assegnata a:" + s_auto, '', '', this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto), this.getUsersList(s_auto, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento);
16125
+ a = [s, "", lvlb, "Assegnata a:" + s_auto, '', '', this.getLvlDescri(String(lvlb), "Assegnata a:" + s_auto), this.getUsersList(s_auto, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento];
16117
16126
  /** @type {?} */
16118
- let t = new Array();
16127
+ let t = [];
16119
16128
  for (let i = 0; i < a.length; i++)
16120
16129
  t.push('string');
16121
16130
  /** @type {?} */
@@ -18772,8 +18781,8 @@ class FHComboboxComponentFilter {
18772
18781
  FHComboboxComponentFilter.decorators = [
18773
18782
  { type: Component, args: [{
18774
18783
  selector: 'FHFilterComboBox', template: `
18775
- <mat-form-field [hidden]="!enabled || hidden" appearance="outline" floatLabel="always"><mat-label>{{label}}</mat-label>
18776
- <mat-select #cmb [(ngModel)]="selval" (selectionChange)="sc()" [required]="required" >
18784
+ <mat-form-field [hidden]="!enabled || hidden">
18785
+ <mat-select #cmb [(ngModel)]="selval" (selectionChange)="sc()" [required]="required" [placeholder]="label">
18777
18786
  <mat-option value="-1">{{sel_label}}</mat-option>
18778
18787
  <mat-option value="{{app.valore}}" *ngFor="let app of myData">{{app.descrizione_valore}}</mat-option>
18779
18788
  </mat-select>