@fluxhub/fluxhub-lib 1.0.314 → 1.0.316

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.
@@ -3046,15 +3046,17 @@
3046
3046
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
3047
3047
  */
3048
3048
  var FHUploadPanelComponent = /** @class */ (function () {
3049
- function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s) {
3049
+ function FHUploadPanelComponent(_appservice, _dataService, toastr, dialog, auth_s, uti) {
3050
3050
  this._appservice = _appservice;
3051
3051
  this._dataService = _dataService;
3052
3052
  this.toastr = toastr;
3053
3053
  this.dialog = dialog;
3054
3054
  this.auth_s = auth_s;
3055
+ this.uti = uti;
3055
3056
  this.enabled = true;
3056
3057
  this.label = '';
3057
3058
  this.sovrascrivi_path = '';
3059
+ this.ruolo_supervisore = '[ZZZ_DIS_CC]';
3058
3060
  this.access_control = false;
3059
3061
  this.change = new i0.EventEmitter();
3060
3062
  this.App = '';
@@ -3223,7 +3225,7 @@
3223
3225
  if ('3G2|3GA|3GP|7Z|AA|AAC|AC|ACCDB|ACCDT|ADN|AI|AIF|AIFC|AIFF|AIT|AMR|ANI|APK|APP|APPLESCRIPT|ASAX|ASC|ASCX|ASF|ASH|ASHX|ASMX|ASP|ASPX|ASX|AU|AUP|AVI|AXD|AZE|BAK|BASH|BAT|BIN|BLANK|BMP|BOWERRC|BPG|BROWSER|BZ2|C|CAB|CAD|CAF|CAL|CD|CER|CFG|CFM|CFML|CGI|CLASS|CMD|CODEKIT|COFFEE|COFFEELINTIGNORE|COM|COMPILE|CONF|CONFIG|CPP|CPTX|CR2|CRDOWNLOAD|CRT|CRYPT|CS|CSH|CSON|CSPROJ|CSS|CSV|CUE|DAT|DB|DBF|DEB|DGN|DIST|DIZ|DLL|DMG|DNG|DOC|DOCB|DOCM|DOCX|DOT|DOTM|DOTX|DOWNLOAD|DPJ|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FF2|WPS|WSF|XAML|XCF|XLM|XLS|XLSM|XLSX|XLT|XLTM|XLTX|XML|XPI|XPS|XRB|XSD|XSL|XSPF|XZ|YAML|YML|Z|ZIP|ZSH'.indexOf(arrf[arrf.length - 1].toLocaleUpperCase()) != -1)
3224
3226
  iconf = arrf[arrf.length - 1].toLocaleLowerCase();
3225
3227
  _this.arr_g[i].icon = iconf + '.svg';
3226
- _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user;
3228
+ _this.arr_g[i].can_delete = !_this.access_control || _this.arr_g[i].idp == _this._appservice.user || _this.uti.hasRole(_this.ruolo_supervisore);
3227
3229
  if (_this.arr_g[i].Filename.indexOf(".jpg") != -1 || _this.arr_g[i].Filename.indexOf(".gif") != -1 || _this.arr_g[i].Filename.indexOf(".png") != -1) {
3228
3230
  _this.arr_g[i].type = "IMG";
3229
3231
  _this.arr_g[i].image_original = [_this.arr_g[i].url];
@@ -3257,13 +3259,15 @@
3257
3259
  { type: QueryService },
3258
3260
  { type: i3.ToastrService },
3259
3261
  { type: material.MatDialog },
3260
- { type: AuthenticationService }
3262
+ { type: AuthenticationService },
3263
+ { type: UtilityService }
3261
3264
  ];
3262
3265
  };
3263
3266
  FHUploadPanelComponent.propDecorators = {
3264
3267
  enabled: [{ type: i0.Input }],
3265
3268
  label: [{ type: i0.Input }],
3266
3269
  sovrascrivi_path: [{ type: i0.Input }],
3270
+ ruolo_supervisore: [{ type: i0.Input }],
3267
3271
  access_control: [{ type: i0.Input }],
3268
3272
  change: [{ type: i0.Output }],
3269
3273
  upc: [{ type: i0.ViewChild, args: ['upc',] }]
@@ -17197,12 +17201,12 @@
17197
17201
  this.app_s.getState().wkf_doc_info.title = 'Avanzamento';
17198
17202
  /** @type {?} */
17199
17203
  var sp = "";
17200
- for (var i_2 = 0; i_2 < arrAutori.length; i_2++)
17201
- if (arrAutori[i_2].nc != null)
17202
- if (sp.indexOf(arrAutori[i_2].nc) == -1) {
17204
+ for (var i = 0; i < arrAutori.length; i++)
17205
+ if (arrAutori[i].nc != null)
17206
+ if (sp.indexOf(arrAutori[i].nc) == -1) {
17203
17207
  if (sp != '')
17204
17208
  sp = sp + ';';
17205
- sp = sp + arrAutori[i_2].nc;
17209
+ sp = sp + arrAutori[i].nc;
17206
17210
  }
17207
17211
  this.app_s.getState().wkf_doc_info.utenti = "";
17208
17212
  if (this.nlevel.livello < 900)
@@ -17385,14 +17389,14 @@
17385
17389
  }
17386
17390
  /** @type {?} */
17387
17391
  var ccan = "$$";
17388
- for (var i_3 = 0; i_3 < this.livs.length; i_3++) {
17389
- if (this.livs[i_3].livello == this.clevel.livello && this.livs[i_3].idp == this.app_s.user) {
17392
+ for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
17393
+ if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
17390
17394
  if (ccan != "$$") {
17391
17395
  ccan = "$$";
17392
17396
  break;
17393
17397
  }
17394
17398
  else
17395
- ccan = this.livs[i_3].gruppo_parallelo;
17399
+ ccan = this.livs[i_2].gruppo_parallelo;
17396
17400
  }
17397
17401
  }
17398
17402
  /** @type {?} */
@@ -17403,7 +17407,7 @@
17403
17407
  a = new Array(this.m_autori, "", this.m_liv, this.m_statox, this.m_autori_paralleli, this.m_obj.assegnati_paralleli, this.getLvlDescri(String(this.m_liv), this.m_statox), this.getUsersList(this.m_autori, this.m_obj.assegnati_paralleli), this.user_idp, this.getTitle(), this.getDescri(), this.id_applicativo, this.id_documento, ccan);
17404
17408
  /** @type {?} */
17405
17409
  var t = new Array();
17406
- for (var i_4 = 0; i_4 < a.length; i_4++)
17410
+ for (var i_3 = 0; i_3 < a.length; i_3++)
17407
17411
  t.push('string');
17408
17412
  this.m_crea_att = 1;
17409
17413
  if (this.m_liv >= 900)
@@ -17416,7 +17420,6 @@
17416
17420
  if (this.nlevel != null)
17417
17421
  if (this.nlevel.descri_livello != null)
17418
17422
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
17419
- console.log('ccan ', ccan);
17420
17423
  /** @type {?} */
17421
17424
  var p = new QParam();
17422
17425
  p.sql = "doWKF";
@@ -17533,11 +17536,11 @@
17533
17536
  if (data.result_msg == "OK") {
17534
17537
  /** @type {?} */
17535
17538
  var lista_p = _this.user_idp;
17536
- for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17537
- if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17538
- console.log('username:', data.result_data[i_5].username);
17539
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
17540
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
17541
+ console.log('username:', data.result_data[i_4].username);
17539
17542
  lista_p += ',';
17540
- lista_p += data.result_data[i_5].username;
17543
+ lista_p += data.result_data[i_4].username;
17541
17544
  }
17542
17545
  console.log('lista_p ', lista_p);
17543
17546
  _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
@@ -17558,11 +17561,11 @@
17558
17561
  if (data.result_msg == "OK") {
17559
17562
  /** @type {?} */
17560
17563
  var lista_p = _this.user_idp;
17561
- for (var i_6 = 0; i_6 < data.result_data.length; i_6++)
17562
- if (lista_p.indexOf(data.result_data[i_6].username) == -1) {
17563
- console.log('username:', data.result_data[i_6].username);
17564
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17565
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17566
+ console.log('username:', data.result_data[i_5].username);
17564
17567
  lista_p += ',';
17565
- lista_p += data.result_data[i_6].username;
17568
+ lista_p += data.result_data[i_5].username;
17566
17569
  }
17567
17570
  _this.sendEMail_ex(_this.user_idp, lista_p, _this.app_info.descrizione_breve + ", Il documento numero: " + _this.m_obj.codice + " è passato allo STEP: " + _this.nlevel.descri_livello + " " + _this.getTitle(), _this.m_statox + "<br>" + _this.getDescri() + comm_1, _this.id_applicativo, _this.id_documento, _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit", _this.m_obj.codice, _this.nota, true, ical_1, false);
17568
17571
  }
@@ -18263,18 +18266,23 @@
18263
18266
  /**
18264
18267
  * @param {?} lvlb
18265
18268
  * @param {?=} can
18269
+ * @param {?=} b_send_email
18266
18270
  * @return {?}
18267
18271
  */
18268
18272
  dati_aggiuntivi.prototype.setForceJump = /**
18269
18273
  * @param {?} lvlb
18270
18274
  * @param {?=} can
18275
+ * @param {?=} b_send_email
18271
18276
  * @return {?}
18272
18277
  */
18273
- function (lvlb, can) {
18278
+ function (lvlb, can, b_send_email) {
18274
18279
  var _this = this;
18275
18280
  if (can === void 0) {
18276
18281
  can = "";
18277
18282
  }
18283
+ if (b_send_email === void 0) {
18284
+ b_send_email = true;
18285
+ }
18278
18286
  /** @type {?} */
18279
18287
  var s = "";
18280
18288
  /** @type {?} */
@@ -18360,7 +18368,11 @@
18360
18368
  */function (err) {
18361
18369
  _this.alert("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI", 1);
18362
18370
  }));
18363
- this.goto_edit_doc();
18371
+ if (b_send_email) {
18372
+ this.sendEMail_ex(this.user_idp, s, this.app_info.descrizione_breve + ", Ti è stato assegnato il documento numero: " + this.m_obj.codice + " " + this.getTitle(), "<br>Attività:" + this.getLvlDescri(String(this.m_liv), this.m_statox) + "<br>" + this.m_statox + "<br>" + this.getDescri(), this.id_applicativo, this.id_documento, this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit", this.m_obj.codice, this.nota, true, "");
18373
+ }
18374
+ else
18375
+ this.goto_edit_doc();
18364
18376
  return "OK";
18365
18377
  };
18366
18378
  /**