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