@fluxhub/fluxhub-lib 1.0.259 → 1.0.261

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.
@@ -4820,8 +4820,8 @@ win_riassegna_select_user.decorators = [
4820
4820
  </div>
4821
4821
  <br><br><br>
4822
4822
 
4823
- <mat-form-field>
4824
- <textarea matInput placeholder="Commento {{nota_commento}}" [hidden]="commento_hidden" [(ngModel)]="nota"
4823
+ <mat-form-field [hidden]="commento_hidden" >
4824
+ <textarea matInput placeholder="Commento {{nota_commento}}" [(ngModel)]="nota"
4825
4825
  rows="6"></textarea>
4826
4826
 
4827
4827
  </mat-form-field>
@@ -5047,8 +5047,8 @@ class wkfapp {
5047
5047
  */
5048
5048
  riassegna_richiesta_step1() {
5049
5049
  /** @type {?} */
5050
- var arrAutori = new Array();
5051
- for (var i = 0; i < this.livs_adm.length; i++)
5050
+ let arrAutori = new Array();
5051
+ for (let i = 0; i < this.livs_adm.length; i++)
5052
5052
  if (this.livs_adm[i].livello == this.os_r.livello && this.livs_adm[i].notifica == 0)
5053
5053
  arrAutori.push(this.livs_adm[i]);
5054
5054
  // Alert.show("Confermi di voler recuperare il documento "+ wing.tbl_wkf.sRow.codice+" - "+ wing.tbl_wkf.sRow.oggetto+"?", "Conferma operazione", 3, this, okelimc1);
@@ -5059,7 +5059,13 @@ class wkfapp {
5059
5059
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
5060
5060
  arrAutori[i].username = arrAutori[i].idp;
5061
5061
  }
5062
- console.log(arrAutori);
5062
+ dialogRef.componentInstance.commento_hidden = false;
5063
+ dialogRef.componentInstance.comm_notrequired = false;
5064
+ if (this.os_r.commenti_opzionali != null)
5065
+ if (this.os_r.commenti_opzionali != 0) {
5066
+ dialogRef.componentInstance.commento_hidden = true;
5067
+ dialogRef.componentInstance.comm_notrequired = true;
5068
+ }
5063
5069
  dialogRef.componentInstance.arrAutori = arrAutori;
5064
5070
  dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
5065
5071
  dialogRef.afterClosed().subscribe((/**
@@ -10225,6 +10231,19 @@ class FHUserFieldComponent {
10225
10231
  }
10226
10232
  return s_nc;
10227
10233
  }
10234
+ /**
10235
+ * @return {?}
10236
+ */
10237
+ getUsersEmail() {
10238
+ /** @type {?} */
10239
+ let s_nc = '';
10240
+ for (let i = 0; i < this.selectedUser.length; i++) {
10241
+ if (s_nc != '')
10242
+ s_nc = s_nc + ',';
10243
+ s_nc = s_nc + `${this.selectedUser[i].email}`;
10244
+ }
10245
+ return s_nc;
10246
+ }
10228
10247
  /**
10229
10248
  * @return {?}
10230
10249
  */
@@ -10266,6 +10285,49 @@ class FHUserFieldComponent {
10266
10285
  this.userName = this.getUsersNc();
10267
10286
  }
10268
10287
  }
10288
+ /**
10289
+ * @param {?} emails
10290
+ * @return {?}
10291
+ */
10292
+ setByEmail(emails) {
10293
+ if (!emails)
10294
+ return;
10295
+ /** @type {?} */
10296
+ let a = emails.split(',');
10297
+ /** @type {?} */
10298
+ let s_nc = '';
10299
+ for (let i = 0; i < a.length; i++) {
10300
+ if (s_nc != '')
10301
+ s_nc = s_nc + ',';
10302
+ s_nc = s_nc + '\'' + a[i] + '\'';
10303
+ }
10304
+ /** @type {?} */
10305
+ const param = {
10306
+ sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
10307
+ types: ['string'],
10308
+ values: [s_nc],
10309
+ names: [],
10310
+ };
10311
+ this.dataservice.doQuery(param)
10312
+ .subscribe((/**
10313
+ * @param {?} data
10314
+ * @return {?}
10315
+ */
10316
+ (data) => {
10317
+ /** @type {?} */
10318
+ let result = data.result_data;
10319
+ if (result != null) {
10320
+ this.selectedUser = result;
10321
+ this.writeValue('noop');
10322
+ this.select.emit(this.selectedUser);
10323
+ console.log(this.selectedUser);
10324
+ this.userName = this.getUsersNc();
10325
+ console.log(this.userName);
10326
+ }
10327
+ else
10328
+ this.clear();
10329
+ }));
10330
+ }
10269
10331
  /**
10270
10332
  * @param {?} username
10271
10333
  * @return {?}