@fluxhub/fluxhub-lib 1.0.465 → 1.0.467

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.
@@ -3575,15 +3575,12 @@ class FHUploadPanelComponent {
3575
3575
  * @return {?}
3576
3576
  */
3577
3577
  download_all(ax) {
3578
- console.log('ax ', ax);
3579
3578
  if (ax.APP != null)
3580
3579
  ax.App = ax.APP;
3581
3580
  if (this.sovrascrivi_path == '') {
3582
- console.log(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3583
3581
  window.open(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3584
3582
  }
3585
3583
  else {
3586
- console.log(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3587
3584
  window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3588
3585
  }
3589
3586
  }
@@ -12117,11 +12114,12 @@ class win_uploads {
12117
12114
  * @return {?}
12118
12115
  */
12119
12116
  download_all(ax) {
12120
- if (ax.App != null)
12121
- if (this.sovrascrivi_path == '')
12122
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12123
- else
12124
- window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12117
+ if (ax.APP != null)
12118
+ ax.App = ax.APP;
12119
+ if (this.sovrascrivi_path == '')
12120
+ window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12121
+ else
12122
+ window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12125
12123
  }
12126
12124
  /**
12127
12125
  * @param {?} ax
@@ -16487,39 +16485,7 @@ class dati_aggiuntivi {
16487
16485
  for (let i = 0; i < a.length; i++)
16488
16486
  t.push('string');
16489
16487
  /** @type {?} */
16490
- var p = new QParam();
16491
- p.sql = "doWKF";
16492
- p.values = [this.app_info.descrizione_breve,
16493
- this.m_obj.codice,
16494
- '' + lvlb,
16495
- '' + lvlb,
16496
- this.m_obj.codice + " - " + this.getTitle(),
16497
- this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
16498
- this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
16499
- "In approvazione",
16500
- this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
16501
- this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
16502
- this.m_wkf.doQuery(p).subscribe((/**
16503
- * @param {?} data
16504
- * @return {?}
16505
- */
16506
- data => {
16507
- /** @type {?} */
16508
- let ok_op = false;
16509
- if (data != null)
16510
- if (data.result_msg == "OK") {
16511
- ok_op = true;
16512
- }
16513
- if (!ok_op) {
16514
- this.alert(data.msg, 1);
16515
- }
16516
- }), (/**
16517
- * @param {?} err
16518
- * @return {?}
16519
- */
16520
- err => {
16521
- }));
16522
- p = new QParam();
16488
+ let p = new QParam();
16523
16489
  p.sql = "exec_app_workflow";
16524
16490
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.m_obj.stato, '' + lvlb, this.user_idp];
16525
16491
  this.m_wkf.doQuery(p).subscribe((/**
@@ -16528,8 +16494,7 @@ class dati_aggiuntivi {
16528
16494
  */
16529
16495
  data => {
16530
16496
  }));
16531
- /** @type {?} */
16532
- var p = new QParam();
16497
+ p = new QParam();
16533
16498
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
16534
16499
  p.values = a;
16535
16500
  p.types = t;
@@ -16538,13 +16503,53 @@ class dati_aggiuntivi {
16538
16503
  * @return {?}
16539
16504
  */
16540
16505
  data => {
16541
- /** @type {?} */
16542
- let ok_op = false;
16543
16506
  if (data != null)
16544
16507
  if (data.result_msg == "OK") {
16545
- ok_op = true;
16508
+ /** @type {?} */
16509
+ let p = new QParam();
16510
+ p.sql = "doWKF";
16511
+ p.values = [this.app_info.descrizione_breve,
16512
+ this.m_obj.codice,
16513
+ '' + lvlb,
16514
+ '' + lvlb,
16515
+ this.m_obj.codice + " - " + this.getTitle(),
16516
+ this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
16517
+ this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
16518
+ "In approvazione",
16519
+ this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
16520
+ this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
16521
+ this.m_wkf.doQuery(p).subscribe((/**
16522
+ * @param {?} data
16523
+ * @return {?}
16524
+ */
16525
+ data => {
16526
+ if (data != null)
16527
+ if (data.result_msg == "OK") {
16528
+ if (b_send_email && s_notif != "") {
16529
+ /** @type {?} */
16530
+ let s_ogg = oggetto_email;
16531
+ for (let prop in this.m_obj)
16532
+ if (this.m_obj[prop] != null) {
16533
+ console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
16534
+ if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
16535
+ s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
16536
+ }
16537
+ else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
16538
+ s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
16539
+ else
16540
+ s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
16541
+ }
16542
+ if (s_ogg == "")
16543
+ this.sendEMail_ex(this.user_idp, s_notif, 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, '', true, "");
16544
+ else
16545
+ this.sendEMail_ex(this.user_idp, s_notif, s_ogg, "<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, '', true, "");
16546
+ }
16547
+ else
16548
+ this.goto_edit_doc();
16549
+ }
16550
+ }));
16546
16551
  }
16547
- if (!ok_op) {
16552
+ {
16548
16553
  this.alert(data.msg, 1);
16549
16554
  }
16550
16555
  }), (/**
@@ -16553,27 +16558,6 @@ class dati_aggiuntivi {
16553
16558
  */
16554
16559
  err => {
16555
16560
  }));
16556
- if (b_send_email && s_notif != "") {
16557
- /** @type {?} */
16558
- let s_ogg = oggetto_email;
16559
- for (let prop in this.m_obj)
16560
- if (this.m_obj[prop] != null) {
16561
- console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
16562
- if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
16563
- s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
16564
- }
16565
- else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
16566
- s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
16567
- else
16568
- s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
16569
- }
16570
- if (s_ogg == "")
16571
- this.sendEMail_ex(this.user_idp, s_notif, 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, '', true, "");
16572
- else
16573
- this.sendEMail_ex(this.user_idp, s_notif, s_ogg, "<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, '', true, "");
16574
- }
16575
- else
16576
- this.goto_edit_doc();
16577
16561
  return "OK";
16578
16562
  }
16579
16563
  /**