@fluxhub/fluxhub-lib 1.0.357 → 1.0.359

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 = "";
@@ -6377,6 +6453,9 @@ class FHGridComponent {
6377
6453
  }
6378
6454
  }
6379
6455
  this.show_pulisci_filtri = b_filter;
6456
+ if (this.ric_libera != null)
6457
+ if (this.ric_libera != '')
6458
+ this.show_pulisci_filtri = true;
6380
6459
  //p.num_per_pag=5000;
6381
6460
  // console.log(this._gridservice);
6382
6461
  this.str_curr_q_p = "";
@@ -7419,8 +7498,6 @@ class FHGridComponent {
7419
7498
  this.doFill('', true, false);
7420
7499
  return;
7421
7500
  }
7422
- else
7423
- this.show_pulisci_filtri = true;
7424
7501
  /** @type {?} */
7425
7502
  let arr = this.ric_libera.split(' ');
7426
7503
  /** @type {?} */
@@ -7446,6 +7523,7 @@ class FHGridComponent {
7446
7523
  ss = ss + this.columnDefs[y].field + " LIKE '%" + this.uti_s.string_sqlvalue(arr_F[i]) + "%'";
7447
7524
  }
7448
7525
  this.pulisci_filtri(false);
7526
+ this.show_pulisci_filtri = true;
7449
7527
  this.doFill_Temp(ss, true);
7450
7528
  }
7451
7529
  /**
@@ -14740,6 +14818,7 @@ class dati_aggiuntivi {
14740
14818
  this.limite_salto_after = -1;
14741
14819
  this.respingi_enabled = false;
14742
14820
  this.oper = '';
14821
+ this.b_edit_before = false;
14743
14822
  this.all_c = "";
14744
14823
  this.comm_c = "";
14745
14824
  this.forza_canale = "";
@@ -15528,7 +15607,7 @@ class dati_aggiuntivi {
15528
15607
  * @return {?}
15529
15608
  */
15530
15609
  getLvlInfo(lvl) {
15531
- for (var i = 0; i < this.livs.length; i++)
15610
+ for (let i = 0; i < this.livs.length; i++)
15532
15611
  if (lvl == this.livs[i].livello) {
15533
15612
  return this.livs[i];
15534
15613
  }
@@ -15543,7 +15622,7 @@ class dati_aggiuntivi {
15543
15622
  */
15544
15623
  insert_commento(p_id_applicativo, p_id_documento, p_nota, p_user_idp) {
15545
15624
  /** @type {?} */
15546
- var p = new QParam();
15625
+ let p = new QParam();
15547
15626
  p.sql = "INSERT_WKF_COMMENTO";
15548
15627
  p.values = [p_id_applicativo, p_id_documento, p_nota, p_user_idp];
15549
15628
  p.types = ['string', 'string', 'string', 'string'];
@@ -15552,21 +15631,8 @@ class dati_aggiuntivi {
15552
15631
  * @return {?}
15553
15632
  */
15554
15633
  data => {
15555
- /** @type {?} */
15556
- let ok_op = false;
15557
15634
  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);
15635
+ if (data.result_msg == "OK") ;
15570
15636
  }));
15571
15637
  }
15572
15638
  /**
@@ -15586,21 +15652,8 @@ class dati_aggiuntivi {
15586
15652
  * @return {?}
15587
15653
  */
15588
15654
  data => {
15589
- /** @type {?} */
15590
- let ok_op = false;
15591
15655
  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);
15656
+ if (data.result_msg == "OK") ;
15604
15657
  }));
15605
15658
  }
15606
15659
  /**
@@ -15651,7 +15704,6 @@ class dati_aggiuntivi {
15651
15704
  * @return {?}
15652
15705
  */
15653
15706
  result => {
15654
- // this.selectedOption = result;
15655
15707
  this.r_count();
15656
15708
  }));
15657
15709
  }
@@ -15671,7 +15723,6 @@ class dati_aggiuntivi {
15671
15723
  * @return {?}
15672
15724
  */
15673
15725
  result => {
15674
- // this.selectedOption = result;
15675
15726
  this.r_count();
15676
15727
  }));
15677
15728
  }
@@ -15686,7 +15737,6 @@ class dati_aggiuntivi {
15686
15737
  * @return {?}
15687
15738
  */
15688
15739
  result => {
15689
- // this.selectedOption = result;
15690
15740
  this.r_count();
15691
15741
  }));
15692
15742
  }
@@ -15695,7 +15745,7 @@ class dati_aggiuntivi {
15695
15745
  */
15696
15746
  create_new_document() {
15697
15747
  /** @type {?} */
15698
- var p = new QParam();
15748
+ let p = new QParam();
15699
15749
  p.sql = "insert_new_doc";
15700
15750
  if (this.c_canale == null)
15701
15751
  this.c_canale = '';
@@ -15705,28 +15755,17 @@ class dati_aggiuntivi {
15705
15755
  * @return {?}
15706
15756
  */
15707
15757
  data => {
15708
- /** @type {?} */
15709
- let ok_op = false;
15710
15758
  if (data != null)
15711
15759
  if (data.result_msg == "OK") {
15712
15760
  this.save_agg();
15713
- ok_op = true;
15714
15761
  }
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
15762
  }));
15725
15763
  }
15726
15764
  /**
15727
15765
  * @return {?}
15728
15766
  */
15729
15767
  save_agg() {
15768
+ this.b_edit_before = this.b_edit;
15730
15769
  this.edit_b(false);
15731
15770
  /** @type {?} */
15732
15771
  var arr = this.getfieldvalues();
@@ -15771,16 +15810,10 @@ class dati_aggiuntivi {
15771
15810
  * @return {?}
15772
15811
  */
15773
15812
  data => {
15774
- /** @type {?} */
15775
- let ok_op = false;
15776
15813
  if (data != null)
15777
15814
  if (data.result_msg == "OK") {
15778
15815
  this.ok_insert_aggiuntivi();
15779
- ok_op = true;
15780
15816
  }
15781
- if (!ok_op) {
15782
- this.errorMsg = data.msg;
15783
- }
15784
15817
  }), (/**
15785
15818
  * @param {?} err
15786
15819
  * @return {?}
@@ -15794,7 +15827,7 @@ class dati_aggiuntivi {
15794
15827
  ok_insert_aggiuntivi() {
15795
15828
  if (!this.btnprocedi) {
15796
15829
  this.alert('DOCUMENTO SALVATO', 0);
15797
- this.edit_b(true);
15830
+ this.edit_b(this.b_edit_before);
15798
15831
  if (!this.b_edit && !this.btnprocedi)
15799
15832
  this.m_router.navigate([this.app_info.modulo_swf, this.id_applicativo, this.id_documento, 'edit']);
15800
15833
  }
@@ -15811,7 +15844,7 @@ class dati_aggiuntivi {
15811
15844
  load_document() {
15812
15845
  console.log('load_document()');
15813
15846
  /** @type {?} */
15814
- var p = new QParam();
15847
+ let p = new QParam();
15815
15848
  p.sql = "SELECT_WKF_DOCUMENT_NOREP";
15816
15849
  p.types = ['string', 'string', 'string'];
15817
15850
  p.values = [this.app_info.vista_sql, this.id_applicativo, this.id_documento];
@@ -15820,22 +15853,16 @@ class dati_aggiuntivi {
15820
15853
  * @return {?}
15821
15854
  */
15822
15855
  data => {
15823
- /** @type {?} */
15824
- let ok_op = false;
15825
15856
  if (data != null)
15826
15857
  if (data.result_msg == "OK") {
15827
15858
  /** @type {?} */
15828
- var a = data.result_data;
15859
+ let a = data.result_data;
15829
15860
  if (a.length > 0) {
15830
15861
  this.ok_load_document(a[0]);
15831
15862
  }
15832
15863
  else
15833
15864
  this.alert("DOCUMENTO NON TROVATO", 1);
15834
- ok_op = true;
15835
15865
  }
15836
- if (!ok_op) {
15837
- this.errorMsg = data.msg;
15838
- }
15839
15866
  }), (/**
15840
15867
  * @param {?} err
15841
15868
  * @return {?}
@@ -15861,16 +15888,10 @@ class dati_aggiuntivi {
15861
15888
  * @return {?}
15862
15889
  */
15863
15890
  data => {
15864
- /** @type {?} */
15865
- let ok_op = false;
15866
15891
  if (data != null)
15867
15892
  if (data.result_msg == "OK") {
15868
15893
  this.ok_livelli_doc(data.result_data);
15869
- ok_op = true;
15870
15894
  }
15871
- if (!ok_op) {
15872
- this.errorMsg = data.msg;
15873
- }
15874
15895
  }), (/**
15875
15896
  * @param {?} err
15876
15897
  * @return {?}
@@ -15906,7 +15927,7 @@ class dati_aggiuntivi {
15906
15927
  */
15907
15928
  r_count() {
15908
15929
  /** @type {?} */
15909
- var p = new QParam();
15930
+ let p = new QParam();
15910
15931
  p.sql = "SELECT_WKF_ALLEGATI_COUNTER";
15911
15932
  p.types = ['string', 'string'];
15912
15933
  p.values = [this.id_applicativo, this.id_documento];
@@ -15915,17 +15936,15 @@ class dati_aggiuntivi {
15915
15936
  * @return {?}
15916
15937
  */
15917
15938
  data => {
15918
- /** @type {?} */
15919
- let ok_op = false;
15920
15939
  if (data != null)
15921
15940
  if (data.result_msg == "OK") {
15922
15941
  /** @type {?} */
15923
- var a = data.result_data;
15942
+ let a = data.result_data;
15924
15943
  /** @type {?} */
15925
15944
  let na = 0;
15926
15945
  /** @type {?} */
15927
15946
  let nc = 0;
15928
- for (var i = 0; i < a.length; i++) {
15947
+ for (let i = 0; i < a.length; i++) {
15929
15948
  if (a[i].n > 0) {
15930
15949
  if (a[i].v == 'ALLEGATI')
15931
15950
  na = a[i].n;
@@ -15934,11 +15953,7 @@ class dati_aggiuntivi {
15934
15953
  }
15935
15954
  }
15936
15955
  this.reset_counters_int(nc, na);
15937
- ok_op = true;
15938
15956
  }
15939
- if (!ok_op) {
15940
- this.errorMsg = data.msg;
15941
- }
15942
15957
  }), (/**
15943
15958
  * @param {?} err
15944
15959
  * @return {?}
@@ -15982,10 +15997,7 @@ class dati_aggiuntivi {
15982
15997
  for (let i = 0; i < this.livs.length; i++)
15983
15998
  if (this.livs[i].livello == min_liv) {
15984
15999
  this.livs[i].gruppo_parallelo = this.forza_canale;
15985
- console.log('-------------' + this.forza_canale + '--------------------');
15986
- console.log(this.livs[i]);
15987
16000
  }
15988
- console.log('forza canale exec' + this.forza_canale);
15989
16001
  if (this.m_obj.stato < 20)
15990
16002
  this.m_obj.canale = this.forza_canale;
15991
16003
  this.c_canale = this.forza_canale;
@@ -16003,7 +16015,7 @@ class dati_aggiuntivi {
16003
16015
  min_liv = this.livs[i].livello;
16004
16016
  }
16005
16017
  /** @type {?} */
16006
- let sv = new Array();
16018
+ let sv = [];
16007
16019
  for (let i = 0; i < this.livs.length; i++)
16008
16020
  if (this.livs[i].livello == min_liv && this.app_s.getState().wkf_doc_info.curr_user.toUpperCase() == this.livs[i].idp.toUpperCase()) {
16009
16021
  if (this.livs[i].gruppo_parallelo != null)
@@ -16111,11 +16123,11 @@ class dati_aggiuntivi {
16111
16123
  /** @type {?} */
16112
16124
  let a;
16113
16125
  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);
16126
+ 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
16127
  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);
16128
+ 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
16129
  /** @type {?} */
16118
- let t = new Array();
16130
+ let t = [];
16119
16131
  for (let i = 0; i < a.length; i++)
16120
16132
  t.push('string');
16121
16133
  /** @type {?} */