@fluxhub/fluxhub-lib 1.0.466 → 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.
@@ -16485,39 +16485,7 @@ class dati_aggiuntivi {
16485
16485
  for (let i = 0; i < a.length; i++)
16486
16486
  t.push('string');
16487
16487
  /** @type {?} */
16488
- var p = new QParam();
16489
- p.sql = "doWKF";
16490
- p.values = [this.app_info.descrizione_breve,
16491
- this.m_obj.codice,
16492
- '' + lvlb,
16493
- '' + lvlb,
16494
- this.m_obj.codice + " - " + this.getTitle(),
16495
- this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
16496
- this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
16497
- "In approvazione",
16498
- this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
16499
- this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
16500
- this.m_wkf.doQuery(p).subscribe((/**
16501
- * @param {?} data
16502
- * @return {?}
16503
- */
16504
- data => {
16505
- /** @type {?} */
16506
- let ok_op = false;
16507
- if (data != null)
16508
- if (data.result_msg == "OK") {
16509
- ok_op = true;
16510
- }
16511
- if (!ok_op) {
16512
- this.alert(data.msg, 1);
16513
- }
16514
- }), (/**
16515
- * @param {?} err
16516
- * @return {?}
16517
- */
16518
- err => {
16519
- }));
16520
- p = new QParam();
16488
+ let p = new QParam();
16521
16489
  p.sql = "exec_app_workflow";
16522
16490
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.m_obj.stato, '' + lvlb, this.user_idp];
16523
16491
  this.m_wkf.doQuery(p).subscribe((/**
@@ -16526,8 +16494,7 @@ class dati_aggiuntivi {
16526
16494
  */
16527
16495
  data => {
16528
16496
  }));
16529
- /** @type {?} */
16530
- var p = new QParam();
16497
+ p = new QParam();
16531
16498
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
16532
16499
  p.values = a;
16533
16500
  p.types = t;
@@ -16536,13 +16503,53 @@ class dati_aggiuntivi {
16536
16503
  * @return {?}
16537
16504
  */
16538
16505
  data => {
16539
- /** @type {?} */
16540
- let ok_op = false;
16541
16506
  if (data != null)
16542
16507
  if (data.result_msg == "OK") {
16543
- 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
+ }));
16544
16551
  }
16545
- if (!ok_op) {
16552
+ {
16546
16553
  this.alert(data.msg, 1);
16547
16554
  }
16548
16555
  }), (/**
@@ -16551,27 +16558,6 @@ class dati_aggiuntivi {
16551
16558
  */
16552
16559
  err => {
16553
16560
  }));
16554
- if (b_send_email && s_notif != "") {
16555
- /** @type {?} */
16556
- let s_ogg = oggetto_email;
16557
- for (let prop in this.m_obj)
16558
- if (this.m_obj[prop] != null) {
16559
- console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
16560
- if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
16561
- s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
16562
- }
16563
- else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
16564
- s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
16565
- else
16566
- s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
16567
- }
16568
- if (s_ogg == "")
16569
- 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, "");
16570
- else
16571
- 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, "");
16572
- }
16573
- else
16574
- this.goto_edit_doc();
16575
16561
  return "OK";
16576
16562
  }
16577
16563
  /**