@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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +51 -67
- 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/controls/fhuploadpanel.js +1 -4
- package/esm2015/lib/wkf_engine/win_uploads.js +7 -6
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +50 -60
- package/esm5/lib/controls/fhuploadpanel.js +1 -4
- package/esm5/lib/wkf_engine/win_uploads.js +7 -6
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +50 -60
- package/fesm2015/fluxhub-fluxhub-lib.js +52 -68
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +51 -67
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3947,15 +3947,12 @@ var FHUploadPanelComponent = /** @class */ (function () {
|
|
|
3947
3947
|
* @return {?}
|
|
3948
3948
|
*/
|
|
3949
3949
|
function (ax) {
|
|
3950
|
-
console.log('ax ', ax);
|
|
3951
3950
|
if (ax.APP != null)
|
|
3952
3951
|
ax.App = ax.APP;
|
|
3953
3952
|
if (this.sovrascrivi_path == '') {
|
|
3954
|
-
console.log(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3955
3953
|
window.open(this._appservice.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3956
3954
|
}
|
|
3957
3955
|
else {
|
|
3958
|
-
console.log(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3959
3956
|
window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
3960
3957
|
}
|
|
3961
3958
|
};
|
|
@@ -12733,11 +12730,12 @@ var win_uploads = /** @class */ (function () {
|
|
|
12733
12730
|
* @return {?}
|
|
12734
12731
|
*/
|
|
12735
12732
|
function (ax) {
|
|
12736
|
-
if (ax.
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12740
|
-
|
|
12733
|
+
if (ax.APP != null)
|
|
12734
|
+
ax.App = ax.APP;
|
|
12735
|
+
if (this.sovrascrivi_path == '')
|
|
12736
|
+
window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
12737
|
+
else
|
|
12738
|
+
window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
|
|
12741
12739
|
};
|
|
12742
12740
|
/**
|
|
12743
12741
|
* @param {?} ax
|
|
@@ -17217,38 +17215,6 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17217
17215
|
t.push('string');
|
|
17218
17216
|
/** @type {?} */
|
|
17219
17217
|
var p = new QParam();
|
|
17220
|
-
p.sql = "doWKF";
|
|
17221
|
-
p.values = [this.app_info.descrizione_breve,
|
|
17222
|
-
this.m_obj.codice,
|
|
17223
|
-
'' + lvlb,
|
|
17224
|
-
'' + lvlb,
|
|
17225
|
-
this.m_obj.codice + " - " + this.getTitle(),
|
|
17226
|
-
this.getTitle() + "La scheda numero: " + this.m_obj.codice + " è passata allo stato: " + descris,
|
|
17227
|
-
this.app_s.COMPANY_SITE_ROOT + "#/" + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit",
|
|
17228
|
-
"In approvazione",
|
|
17229
|
-
this.getDescri(), this.user_idp, descris, "", this.id_applicativo, this.id_documento, '' + 1, '' + 0, '' + this.m_obj.stato, '' + lvlb];
|
|
17230
|
-
this.insert_wkf_variabile(this.id_applicativo, this.id_documento, this.m_obj.stato + "_PLAYER", this.user_idp);
|
|
17231
|
-
this.m_wkf.doQuery(p).subscribe((/**
|
|
17232
|
-
* @param {?} data
|
|
17233
|
-
* @return {?}
|
|
17234
|
-
*/
|
|
17235
|
-
function (data) {
|
|
17236
|
-
/** @type {?} */
|
|
17237
|
-
var ok_op = false;
|
|
17238
|
-
if (data != null)
|
|
17239
|
-
if (data.result_msg == "OK") {
|
|
17240
|
-
ok_op = true;
|
|
17241
|
-
}
|
|
17242
|
-
if (!ok_op) {
|
|
17243
|
-
_this.alert(data.msg, 1);
|
|
17244
|
-
}
|
|
17245
|
-
}), (/**
|
|
17246
|
-
* @param {?} err
|
|
17247
|
-
* @return {?}
|
|
17248
|
-
*/
|
|
17249
|
-
function (err) {
|
|
17250
|
-
}));
|
|
17251
|
-
p = new QParam();
|
|
17252
17218
|
p.sql = "exec_app_workflow";
|
|
17253
17219
|
p.values = [this.app_info.codice_documento, this.id_documento, '' + this.m_obj.stato, '' + lvlb, this.user_idp];
|
|
17254
17220
|
this.m_wkf.doQuery(p).subscribe((/**
|
|
@@ -17257,8 +17223,7 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17257
17223
|
*/
|
|
17258
17224
|
function (data) {
|
|
17259
17225
|
}));
|
|
17260
|
-
|
|
17261
|
-
var p = new QParam();
|
|
17226
|
+
p = new QParam();
|
|
17262
17227
|
p.sql = "UPDATE_WKF_DOCUMENTOV3_NS";
|
|
17263
17228
|
p.values = a;
|
|
17264
17229
|
p.types = t;
|
|
@@ -17267,13 +17232,53 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17267
17232
|
* @return {?}
|
|
17268
17233
|
*/
|
|
17269
17234
|
function (data) {
|
|
17270
|
-
/** @type {?} */
|
|
17271
|
-
var ok_op = false;
|
|
17272
17235
|
if (data != null)
|
|
17273
17236
|
if (data.result_msg == "OK") {
|
|
17274
|
-
|
|
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
|
+
}));
|
|
17275
17280
|
}
|
|
17276
|
-
|
|
17281
|
+
{
|
|
17277
17282
|
_this.alert(data.msg, 1);
|
|
17278
17283
|
}
|
|
17279
17284
|
}), (/**
|
|
@@ -17282,27 +17287,6 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
17282
17287
|
*/
|
|
17283
17288
|
function (err) {
|
|
17284
17289
|
}));
|
|
17285
|
-
if (b_send_email && s_notif != "") {
|
|
17286
|
-
/** @type {?} */
|
|
17287
|
-
var s_ogg = oggetto_email;
|
|
17288
|
-
for (var prop in this.m_obj)
|
|
17289
|
-
if (this.m_obj[prop] != null) {
|
|
17290
|
-
console.log(prop + " " + Object.prototype.toString.call(this.m_obj[prop]));
|
|
17291
|
-
if (Object.prototype.toString.call(this.m_obj[prop]) === '[object Date]') {
|
|
17292
|
-
s_ogg = s_ogg.split('%' + prop + '%').join(this.uti_s.date2String(this.m_obj[prop]));
|
|
17293
|
-
}
|
|
17294
|
-
else if (('' + this.m_obj[prop]).indexOf('T00:00:00') == -1)
|
|
17295
|
-
s_ogg = s_ogg.split('%' + prop + '%').join(this.m_obj[prop]);
|
|
17296
|
-
else
|
|
17297
|
-
s_ogg = s_ogg.split('%' + prop + '%').join((this.uti_s.date2String(this.uti_s.string2date(this.m_obj[prop], 2))));
|
|
17298
|
-
}
|
|
17299
|
-
if (s_ogg == "")
|
|
17300
|
-
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, "");
|
|
17301
|
-
else
|
|
17302
|
-
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, "");
|
|
17303
|
-
}
|
|
17304
|
-
else
|
|
17305
|
-
this.goto_edit_doc();
|
|
17306
17290
|
return "OK";
|
|
17307
17291
|
};
|
|
17308
17292
|
/**
|