@fluxhub/fluxhub-lib 1.0.286 → 1.0.288

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.
@@ -11176,6 +11176,7 @@
11176
11176
  this.in_carico_a = this.m_appService.getState().wkf_doc_info.in_carico_a;
11177
11177
  this.uiid_app = this.m_appService.getState().wkf_doc_info.uiid_app;
11178
11178
  this.uiid_doc = this.m_appService.getState().wkf_doc_info.uiid_doc;
11179
+ this.canale = this.m_appService.getState().wkf_doc_info.canale;
11179
11180
  }
11180
11181
  /**
11181
11182
  * @return {?}
@@ -11187,7 +11188,7 @@
11187
11188
  };
11188
11189
  win_info_doc.decorators = [
11189
11190
  { type: i0.Component, args: [{
11190
- template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
11191
+ template: "\n <mat-toolbar color=\"primary\">INFO DOCUMENTO\n <div style=\"width:100%;text-align: right;\">\n </div>\n </mat-toolbar>\n <div mat-dialog-content>\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Codice:</td>\n <td><b>{{codice}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Data:</td>\n <td><b>{{data_richiesta | date: 'dd/MM/yyyy hh:mm:ss'}}</b></td>\n </tr>\n <tr *ngIf=\"!hide_richiedente\" class=\"odd\">\n\n <td>Richiedente:</td>\n <td><b>{{richiedente}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Stato:</td>\n <td><b>{{stato}}</b></td>\n\n </tr>\n <tr class=\"odd\"> \n\n <td>In Carico a:</td>\n <td><b>{{in_carico_a}}</b></td>\n\n </tr>\n\n <tr class=\"even\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid App:</td>\n <td><b>{{uiid_app}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Uiid Doc:</td>\n <td><b>{{uiid_doc}}</b></td>\n\n </tr>\n <tr class=\"odd\" *ngIf=\"m_appService.dev_mode\">\n\n <td>Grp:</td>\n <td><b>{{canale}}</b></td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n <br>\n\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"accent\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </div>\n "
11191
11192
  }] }
11192
11193
  ];
11193
11194
  /** @nocollapse */
@@ -15302,6 +15303,7 @@
15302
15303
  _this.appService.user_roles = _this.appService.user_roles.substr(1);
15303
15304
  _this.appService.user_isadmin = data.result_data[0].isadmin;
15304
15305
  _this.appService.user = data.result_data[0].username;
15306
+ console.log('this.app_s.user_isadmin ', _this.app_s.user_isadmin);
15305
15307
  if (_this.app_s.user_isadmin != null)
15306
15308
  if (_this.app_s.user_isadmin == "1") {
15307
15309
  resolve(true);
@@ -15320,7 +15322,7 @@
15320
15322
  */function (data) {
15321
15323
  _this.arr_accessi = data.result_data;
15322
15324
  for (var i = 0; i < _this.arr_accessi.length; i++) {
15323
- //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
15325
+ console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
15324
15326
  if (_this.arr_accessi[i].type == 'M') {
15325
15327
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
15326
15328
  resolve(true);
@@ -15724,9 +15726,23 @@
15724
15726
  console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
15725
15727
  }));
15726
15728
  /** @type {?} */
15729
+ var ccan = "$$";
15730
+ for (var i = 0; i < this.livs_adm.length; i++)
15731
+ for (var y = 0; y < this.wax.length; y++) {
15732
+ if (this.livs_adm[i].livello == this.os_r.livello && this.wax[y].idp == this.livs_adm[i].idp) {
15733
+ if (ccan != "$$") {
15734
+ ccan = "$$";
15735
+ break;
15736
+ }
15737
+ else
15738
+ ccan = this.livs_adm[i].gruppo_parallelo;
15739
+ }
15740
+ }
15741
+ console.log('riassegnazione canale: ', ccan);
15742
+ /** @type {?} */
15727
15743
  var p = new QParam();
15728
15744
  p.sql = "UPDATE_RIASS_DOCUMENTO";
15729
- p.types = ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string'];
15745
+ p.types = ['string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', 'string', ccan];
15730
15746
  p.values = [this.os_r.livello, this.os_r.descri_livello, a_let, a_aut, this.os_r.descri_livello, a_pers_inti, a_partecipanti, this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
15731
15747
  this
15732
15748
  .m_dataService
@@ -16881,14 +16897,26 @@
16881
16897
  }));
16882
16898
  }
16883
16899
  /** @type {?} */
16900
+ var ccan = "$$";
16901
+ for (var i_2 = 0; i_2 < this.livs.length; i_2++) {
16902
+ if (this.livs[i_2].livello == this.clevel.livello && this.livs[i_2].idp == this.app_s.user) {
16903
+ if (ccan != "$$") {
16904
+ ccan = "$$";
16905
+ break;
16906
+ }
16907
+ else
16908
+ ccan = this.livs[i_2].gruppo_parallelo;
16909
+ }
16910
+ }
16911
+ /** @type {?} */
16884
16912
  var a;
16885
16913
  if (!this.app_info.documento_pubblico)
16886
- a = new Array(this.m_autori, this.m_lettori, 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);
16914
+ a = new Array(this.m_autori, this.m_lettori, 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);
16887
16915
  else
16888
- 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);
16916
+ 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);
16889
16917
  /** @type {?} */
16890
16918
  var t = new Array();
16891
- for (var i_2 = 0; i_2 < a.length; i_2++)
16919
+ for (var i_3 = 0; i_3 < a.length; i_3++)
16892
16920
  t.push('string');
16893
16921
  this.m_crea_att = 1;
16894
16922
  if (this.m_liv >= 900)
@@ -16901,6 +16929,7 @@
16901
16929
  if (this.nlevel != null)
16902
16930
  if (this.nlevel.descri_livello != null)
16903
16931
  this.m_oper = this.m_oper + " -> " + this.nlevel.descri_livello;
16932
+ console.log('ccan ', ccan);
16904
16933
  /** @type {?} */
16905
16934
  var p = new QParam();
16906
16935
  p.sql = "doWKF";
@@ -17017,11 +17046,11 @@
17017
17046
  if (data.result_msg == "OK") {
17018
17047
  /** @type {?} */
17019
17048
  var lista_p = _this.user_idp;
17020
- for (var i_3 = 0; i_3 < data.result_data.length; i_3++)
17021
- if (lista_p.indexOf(data.result_data[i_3].username) == -1) {
17022
- console.log('username:', data.result_data[i_3].username);
17049
+ for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
17050
+ if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
17051
+ console.log('username:', data.result_data[i_4].username);
17023
17052
  lista_p += ',';
17024
- lista_p += data.result_data[i_3].username;
17053
+ lista_p += data.result_data[i_4].username;
17025
17054
  }
17026
17055
  console.log('lista_p ', lista_p);
17027
17056
  _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);
@@ -17042,11 +17071,11 @@
17042
17071
  if (data.result_msg == "OK") {
17043
17072
  /** @type {?} */
17044
17073
  var lista_p = _this.user_idp;
17045
- for (var i_4 = 0; i_4 < data.result_data.length; i_4++)
17046
- if (lista_p.indexOf(data.result_data[i_4].username) == -1) {
17047
- console.log('username:', data.result_data[i_4].username);
17074
+ for (var i_5 = 0; i_5 < data.result_data.length; i_5++)
17075
+ if (lista_p.indexOf(data.result_data[i_5].username) == -1) {
17076
+ console.log('username:', data.result_data[i_5].username);
17048
17077
  lista_p += ',';
17049
- lista_p += data.result_data[i_4].username;
17078
+ lista_p += data.result_data[i_5].username;
17050
17079
  }
17051
17080
  _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);
17052
17081
  }