@fluxhub/fluxhub-lib 10.0.668 → 10.0.670

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.
@@ -24019,6 +24019,7 @@ class win_assegna_a {
24019
24019
  this.nota_commento = "";
24020
24020
  this.title = "";
24021
24021
  this.comm_notrequired = 0;
24022
+ this.prendi_in_carico = true;
24022
24023
  this.all_users = [];
24023
24024
  if (data != null) {
24024
24025
  if (data.commento_default != null)
@@ -24032,6 +24033,8 @@ class win_assegna_a {
24032
24033
  if (data.utenti != null) {
24033
24034
  this.arrAutori = data.utenti;
24034
24035
  this.all_users = JSON.parse(JSON.stringify(data.utenti));
24036
+ if (data.prendi_in_carico != null)
24037
+ this.prendi_in_carico = data.prendi_in_carico;
24035
24038
  this.title = this._trs.instant("ASSEGNA DOCUMENTO");
24036
24039
  for (let i = 0; i < this.arrAutori.length; i++) {
24037
24040
  if (this.arrAutori[i].username == null)
@@ -24064,8 +24067,12 @@ class win_assegna_a {
24064
24067
  o.nota = this.nota;
24065
24068
  if (this.op == 'A')
24066
24069
  o.arrsel = this.up.getSelArr();
24067
- else
24070
+ else if (this.op == 'L')
24068
24071
  o.arrsel = this.all_users;
24072
+ else if (this.op == 'C') {
24073
+ this.all_users.map((v) => { if (v.username == this.m_appService.user)
24074
+ o.arrsel = [v]; });
24075
+ }
24069
24076
  this.dialogRef.close(o);
24070
24077
  }
24071
24078
  ngAfterViewInit() { }
@@ -24090,7 +24097,8 @@ win_assegna_a.decorators = [
24090
24097
  <div style="width:100px;font-weight:bold">Operazione:*</div>
24091
24098
  <mat-radio-group [(ngModel)]="op">
24092
24099
  <mat-radio-button value="L">LIBERA</mat-radio-button>&nbsp;&nbsp;&nbsp;&nbsp;
24093
- <mat-radio-button value="A">ASSEGNA</mat-radio-button>
24100
+ <mat-radio-button value="A">ASSEGNA</mat-radio-button>&nbsp;&nbsp;&nbsp;&nbsp;
24101
+ <mat-radio-button [hidden]="prendi_in_carico" value="C">PRENDI IN CARICO</mat-radio-button>
24094
24102
  </mat-radio-group>
24095
24103
  </div>
24096
24104
  <div style="width:100%;height:450px" [hidden]="op!='A'">
@@ -24832,7 +24840,8 @@ class dati_aggiuntivi_v2 {
24832
24840
  lbl: '',
24833
24841
  commento_default: '',
24834
24842
  comm_notrequired: '',
24835
- utenti: arrAutori
24843
+ utenti: arrAutori,
24844
+ prendi_in_carico: this.m_obj.autori != this.app_s.user
24836
24845
  } });
24837
24846
  dialogRef.afterClosed().subscribe(result => {
24838
24847
  if (result) {
@@ -24935,7 +24944,7 @@ class dati_aggiuntivi_v2 {
24935
24944
  username: this.app_s.user,
24936
24945
  title: this.getTitle().split('"').join("_doppiap_"),
24937
24946
  descri: this.getDescri().split('"').join("_doppiap_")
24938
- }).split('\"').join("\"\"")];
24947
+ })];
24939
24948
  else
24940
24949
  p.values = [uiid_op, JSON.stringify({
24941
24950
  transizione: { uiid_wkf: trans.uiid_wkf, uiid: trans.uiid, step_d: trans.step_d },
@@ -24943,7 +24952,7 @@ class dati_aggiuntivi_v2 {
24943
24952
  id_applicazione: this.id_applicativo,
24944
24953
  id_documento: this.id_documento,
24945
24954
  username: this.app_s.user
24946
- }).split('\"').join("\"\"")];
24955
+ })];
24947
24956
  p.types = ["string", "string"];
24948
24957
  this.m_dataService.doQuery(p).subscribe((data) => {
24949
24958
  this.reset_updw();