@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.
@@ -3969,15 +3969,12 @@
3969
3969
  * @return {?}
3970
3970
  */
3971
3971
  function (ax) {
3972
- console.log('ax ', ax);
3973
3972
  if (ax.APP != null)
3974
3973
  ax.App = ax.APP;
3975
3974
  if (this.sovrascrivi_path == '') {
3976
- console.log(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3977
3975
  window.open(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3978
3976
  }
3979
3977
  else {
3980
- console.log(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3981
3978
  window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
3982
3979
  }
3983
3980
  };
@@ -12755,11 +12752,12 @@
12755
12752
  * @return {?}
12756
12753
  */
12757
12754
  function (ax) {
12758
- if (ax.App != null)
12759
- if (this.sovrascrivi_path == '')
12760
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12761
- else
12762
- window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12755
+ if (ax.APP != null)
12756
+ ax.App = ax.APP;
12757
+ if (this.sovrascrivi_path == '')
12758
+ window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12759
+ else
12760
+ window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12763
12761
  };
12764
12762
  /**
12765
12763
  * @param {?} ax
@@ -17239,38 +17237,6 @@
17239
17237
  t.push('string');
17240
17238
  /** @type {?} */
17241
17239
  var p = new QParam();
17242
- p.sql = "doWKF";
17243
- p.values = [this.app_info.descrizione_breve,
17244
- this.m_obj.codice,
17245
- '' + lvlb,
17246
- '' + lvlb,
17247
- this.m_obj.codice + " - " + this.getTitle(),
17248
- this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
17249
- this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
17250
- "In approvazione",
17251
- this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
17252
- this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
17253
- this.m_wkf.doQuery(p).subscribe((/**
17254
- * @param {?} data
17255
- * @return {?}
17256
- */
17257
- function (data) {
17258
- /** @type {?} */
17259
- var ok_op = false;
17260
- if (data != null)
17261
- if (data.result_msg == "OK") {
17262
- ok_op = true;
17263
- }
17264
- if (!ok_op) {
17265
- _this.alert(data.msg, 1);
17266
- }
17267
- }), (/**
17268
- * @param {?} err
17269
- * @return {?}
17270
- */
17271
- function (err) {
17272
- }));
17273
- p = new QParam();
17274
17240
  p.sql = "exec_app_workflow";
17275
17241
  p.values = [this.app_info.codice_documento, this.id_documento, '' + this.m_obj.stato, '' + lvlb, this.user_idp];
17276
17242
  this.m_wkf.doQuery(p).subscribe((/**
@@ -17279,8 +17245,7 @@
17279
17245
  */
17280
17246
  function (data) {
17281
17247
  }));
17282
- /** @type {?} */
17283
- var p = new QParam();
17248
+ p = new QParam();
17284
17249
  p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
17285
17250
  p.values = a;
17286
17251
  p.types = t;
@@ -17289,13 +17254,53 @@
17289
17254
  * @return {?}
17290
17255
  */
17291
17256
  function (data) {
17292
- /** @type {?} */
17293
- var ok_op = false;
17294
17257
  if (data != null)
17295
17258
  if (data.result_msg == "OK") {
17296
- ok_op = true;
17259
+ /** @type {?} */
17260
+ var p_4 = new QParam();
17261
+ p_4.sql = "doWKF";
17262
+ p_4.values = [_this.app_info.descrizione_breve,
17263
+ _this.m_obj.codice,
17264
+ '' + lvlb,
17265
+ '' + lvlb,
17266
+ _this.m_obj.codice + " - " + _this.getTitle(),
17267
+ _this.getTitle() + "La scheda numero: " + _this.m_obj.codice + " è passata allo stato: " + descris,
17268
+ _this.app_s.COMPANY_SITE_ROOT + "#/" + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit",
17269
+ "In approvazione",
17270
+ _this.getDescri(), _this.user_idp, descris, "", _this.id_applicativo, _this.id_documento, '' + 1, '' + 0, '' + _this.m_obj.stato, '' + lvlb];
17271
+ _this.insert_wkf_variabile(_this.id_applicativo, _this.id_documento, _this.m_obj.stato + "_PLAYER", _this.user_idp);
17272
+ _this.m_wkf.doQuery(p_4).subscribe((/**
17273
+ * @param {?} data
17274
+ * @return {?}
17275
+ */
17276
+ function (data) {
17277
+ if (data != null)
17278
+ if (data.result_msg == "OK") {
17279
+ if (b_send_email && s_notif != "") {
17280
+ /** @type {?} */
17281
+ var s_ogg = oggetto_email;
17282
+ for (var prop in _this.m_obj)
17283
+ if (_this.m_obj[prop] != null) {
17284
+ console.log(prop + " " + Object.prototype.toString.call(_this.m_obj[prop]));
17285
+ if (Object.prototype.toString.call(_this.m_obj[prop]) === '[object Date]') {
17286
+ s_ogg = s_ogg.split('%' + prop + '%').join(_this.uti_s.date2String(_this.m_obj[prop]));
17287
+ }
17288
+ else if (('' + _this.m_obj[prop]).indexOf('T00:00:00') == -1)
17289
+ s_ogg = s_ogg.split('%' + prop + '%').join(_this.m_obj[prop]);
17290
+ else
17291
+ s_ogg = s_ogg.split('%' + prop + '%').join((_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2))));
17292
+ }
17293
+ if (s_ogg == "")
17294
+ _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, "");
17295
+ else
17296
+ _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, "");
17297
+ }
17298
+ else
17299
+ _this.goto_edit_doc();
17300
+ }
17301
+ }));
17297
17302
  }
17298
- if (!ok_op) {
17303
+ {
17299
17304
  _this.alert(data.msg, 1);
17300
17305
  }
17301
17306
  }), (/**
@@ -17304,27 +17309,6 @@
17304
17309
  */
17305
17310
  function (err) {
17306
17311
  }));
17307
- if (b_send_email && s_notif != "") {
17308
- /** @type {?} */
17309
- var s_ogg = oggetto_email;
17310
- for (var prop in this.m_obj)
17311
- if (this.m_obj[prop] != null) {
17312
- console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
17313
- if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
17314
- s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
17315
- }
17316
- else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
17317
- s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
17318
- else
17319
- s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
17320
- }
17321
- if (s_ogg == "")
17322
- 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, "");
17323
- else
17324
- 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, "");
17325
- }
17326
- else
17327
- this.goto_edit_doc();
17328
17312
  return "OK";
17329
17313
  };
17330
17314
  /**