@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +45 -59
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +50 -60
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +50 -60
- package/fesm2015/fluxhub-fluxhub-lib.js +46 -60
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +45 -59
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -17215,38 +17215,6 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17215
17215
|
t.push('string');
|
|
17216
17216
|
/** @type {?} */
|
|
17217
17217
|
var p = new QParam();
|
|
17218
|
-
p.sql = "doWKF";
|
|
17219
|
-
p.values = [this.app_info.descrizione_breve,
|
|
17220
|
-
this.m_obj.codice,
|
|
17221
|
-
'' + lvlb,
|
|
17222
|
-
'' + lvlb,
|
|
17223
|
-
this.m_obj.codice + " - " + this.getTitle(),
|
|
17224
|
-
this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
|
|
17225
|
-
this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
|
|
17226
|
-
"In approvazione",
|
|
17227
|
-
this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
|
|
17228
|
-
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
|
|
17229
|
-
this.m_wkf.doQuery(p).subscribe((/**
|
|
17230
|
-
* @param {?} data
|
|
17231
|
-
* @return {?}
|
|
17232
|
-
*/
|
|
17233
|
-
function (data) {
|
|
17234
|
-
/** @type {?} */
|
|
17235
|
-
var ok_op = false;
|
|
17236
|
-
if (data != null)
|
|
17237
|
-
if (data.result_msg == "OK") {
|
|
17238
|
-
ok_op = true;
|
|
17239
|
-
}
|
|
17240
|
-
if (!ok_op) {
|
|
17241
|
-
_this.alert(data.msg, 1);
|
|
17242
|
-
}
|
|
17243
|
-
}), (/**
|
|
17244
|
-
* @param {?} err
|
|
17245
|
-
* @return {?}
|
|
17246
|
-
*/
|
|
17247
|
-
function (err) {
|
|
17248
|
-
}));
|
|
17249
|
-
p = new QParam();
|
|
17250
17218
|
p.sql = "exec_app_workflow";
|
|
17251
17219
|
p.values = [this.app_info.codice_documento, this.id_documento, '' + this.m_obj.stato, '' + lvlb, this.user_idp];
|
|
17252
17220
|
this.m_wkf.doQuery(p).subscribe((/**
|
|
@@ -17255,8 +17223,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17255
17223
|
*/
|
|
17256
17224
|
function (data) {
|
|
17257
17225
|
}));
|
|
17258
|
-
|
|
17259
|
-
var p = new QParam();
|
|
17226
|
+
p = new QParam();
|
|
17260
17227
|
p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
|
|
17261
17228
|
p.values = a;
|
|
17262
17229
|
p.types = t;
|
|
@@ -17265,13 +17232,53 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17265
17232
|
* @return {?}
|
|
17266
17233
|
*/
|
|
17267
17234
|
function (data) {
|
|
17268
|
-
/** @type {?} */
|
|
17269
|
-
var ok_op = false;
|
|
17270
17235
|
if (data != null)
|
|
17271
17236
|
if (data.result_msg == "OK") {
|
|
17272
|
-
|
|
17237
|
+
/** @type {?} */
|
|
17238
|
+
var p_4 = new QParam();
|
|
17239
|
+
p_4.sql = "doWKF";
|
|
17240
|
+
p_4.values = [_this.app_info.descrizione_breve,
|
|
17241
|
+
_this.m_obj.codice,
|
|
17242
|
+
'' + lvlb,
|
|
17243
|
+
'' + lvlb,
|
|
17244
|
+
_this.m_obj.codice + " - " + _this.getTitle(),
|
|
17245
|
+
_this.getTitle() + "La scheda numero: " + _this.m_obj.codice + " è passata allo stato: " + descris,
|
|
17246
|
+
_this.app_s.COMPANY_SITE_ROOT + "#/" + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit",
|
|
17247
|
+
"In approvazione",
|
|
17248
|
+
_this.getDescri(), _this.user_idp, descris, "", _this.id_applicativo, _this.id_documento, '' + 1, '' + 0, '' + _this.m_obj.stato, '' + lvlb];
|
|
17249
|
+
_this.insert_wkf_variabile(_this.id_applicativo, _this.id_documento, _this.m_obj.stato + "_PLAYER", _this.user_idp);
|
|
17250
|
+
_this.m_wkf.doQuery(p_4).subscribe((/**
|
|
17251
|
+
* @param {?} data
|
|
17252
|
+
* @return {?}
|
|
17253
|
+
*/
|
|
17254
|
+
function (data) {
|
|
17255
|
+
if (data != null)
|
|
17256
|
+
if (data.result_msg == "OK") {
|
|
17257
|
+
if (b_send_email && s_notif != "") {
|
|
17258
|
+
/** @type {?} */
|
|
17259
|
+
var s_ogg = oggetto_email;
|
|
17260
|
+
for (var prop in _this.m_obj)
|
|
17261
|
+
if (_this.m_obj[prop] != null) {
|
|
17262
|
+
console.log(prop + " " + Object.prototype.toString.call(_this.m_obj[prop]));
|
|
17263
|
+
if (Object.prototype.toString.call(_this.m_obj[prop]) === '[object Date]') {
|
|
17264
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(_this.uti_s.date2String(_this.m_obj[prop]));
|
|
17265
|
+
}
|
|
17266
|
+
else if (('' + _this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
17267
|
+
s_ogg = s_ogg.split('%' + prop + '%').join(_this.m_obj[prop]);
|
|
17268
|
+
else
|
|
17269
|
+
s_ogg = s_ogg.split('%' + prop + '%').join((_this.uti_s.date2String(_this.uti_s.string2date(_this.m_obj[prop], 2))));
|
|
17270
|
+
}
|
|
17271
|
+
if (s_ogg == "")
|
|
17272
|
+
_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, "");
|
|
17273
|
+
else
|
|
17274
|
+
_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, "");
|
|
17275
|
+
}
|
|
17276
|
+
else
|
|
17277
|
+
_this.goto_edit_doc();
|
|
17278
|
+
}
|
|
17279
|
+
}));
|
|
17273
17280
|
}
|
|
17274
|
-
|
|
17281
|
+
{
|
|
17275
17282
|
_this.alert(data.msg, 1);
|
|
17276
17283
|
}
|
|
17277
17284
|
}), (/**
|
|
@@ -17280,27 +17287,6 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17280
17287
|
*/
|
|
17281
17288
|
function (err) {
|
|
17282
17289
|
}));
|
|
17283
|
-
if (b_send_email && s_notif != "") {
|
|
17284
|
-
/** @type {?} */
|
|
17285
|
-
var s_ogg = oggetto_email;
|
|
17286
|
-
for (var prop in this.m_obj)
|
|
17287
|
-
if (this.m_obj[prop] != null) {
|
|
17288
|
-
console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
|
|
17289
|
-
if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
|
|
17290
|
-
s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
|
|
17291
|
-
}
|
|
17292
|
-
else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
17293
|
-
s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
|
|
17294
|
-
else
|
|
17295
|
-
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
17296
|
-
}
|
|
17297
|
-
if (s_ogg == "")
|
|
17298
|
-
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, "");
|
|
17299
|
-
else
|
|
17300
|
-
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, "");
|
|
17301
|
-
}
|
|
17302
|
-
else
|
|
17303
|
-
this.goto_edit_doc();
|
|
17304
17290
|
return "OK";
|
|
17305
17291
|
};
|
|
17306
17292
|
/**
|