@fluxhub/fluxhub-lib 11.0.44 → 11.0.45
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 +15 -5
- 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_v2/wkfdatiaggiuntivi.js +16 -6
- package/fesm2015/fluxhub-fluxhub-lib.js +15 -5
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +3 -0
- package/package.json +1 -1
|
@@ -25294,6 +25294,9 @@
|
|
|
25294
25294
|
this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
25295
25295
|
" - " +
|
|
25296
25296
|
this.tsr.instant("Nuova Richiesta"));
|
|
25297
|
+
if (this.custom_action != null) {
|
|
25298
|
+
this.custom_init_action(this.custom_action, this.custom_action_param);
|
|
25299
|
+
}
|
|
25297
25300
|
this.reset_counters_int(0, 0);
|
|
25298
25301
|
/*
|
|
25299
25302
|
dati_aggiuntivi.id_doc=id_documento;
|
|
@@ -25341,6 +25344,7 @@
|
|
|
25341
25344
|
dati_aggiuntivi_v2.prototype.reassigned_to = function (op) { };
|
|
25342
25345
|
dati_aggiuntivi_v2.prototype.after_save = function () { };
|
|
25343
25346
|
dati_aggiuntivi_v2.prototype.before_save = function () { };
|
|
25347
|
+
dati_aggiuntivi_v2.prototype.custom_init_action = function (op, p) { };
|
|
25344
25348
|
dati_aggiuntivi_v2.prototype.can_save = function () {
|
|
25345
25349
|
return true;
|
|
25346
25350
|
};
|
|
@@ -25469,21 +25473,27 @@
|
|
|
25469
25473
|
var _this = this;
|
|
25470
25474
|
if (this.app_s.user != null)
|
|
25471
25475
|
this.user_idp = this.app_s.user;
|
|
25472
|
-
console.log(
|
|
25476
|
+
// console.log(
|
|
25477
|
+
// "this.user_idp == null || this.m_route.params==null ",
|
|
25478
|
+
// this.user_idp,
|
|
25479
|
+
// this.m_route.params,
|
|
25480
|
+
// new Date()
|
|
25481
|
+
// );
|
|
25473
25482
|
if (this.user_idp == null || this.m_route.params == null) {
|
|
25474
25483
|
setTimeout(function () {
|
|
25475
25484
|
_this.init_engine();
|
|
25476
25485
|
}, 500);
|
|
25477
25486
|
return;
|
|
25478
25487
|
}
|
|
25479
|
-
console.log("init_engine", new Date());
|
|
25480
25488
|
this.init_user_i();
|
|
25481
25489
|
this.m_route.params.subscribe(function (params) {
|
|
25482
25490
|
var id = params["op"];
|
|
25483
25491
|
_this.id_applicativo = params["idapp"];
|
|
25484
25492
|
_this.id_documento = params["id_doc"];
|
|
25485
|
-
|
|
25486
|
-
_this.
|
|
25493
|
+
_this.custom_action = params["custom_action"];
|
|
25494
|
+
_this.custom_action_param = params["param"];
|
|
25495
|
+
_this.b_edit = id != "new" && id != "custom_action" ? true : false;
|
|
25496
|
+
console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2413 ~ dati_aggiuntivi_v2 ~ this.m_route.params.subscribe ~ this.b_edit", _this.b_edit);
|
|
25487
25497
|
_this.init_app_wkf();
|
|
25488
25498
|
if (!_this.b_edit)
|
|
25489
25499
|
if (_this.id_applicativo.indexOf("_") > -1) {
|
|
@@ -25498,7 +25508,7 @@
|
|
|
25498
25508
|
});
|
|
25499
25509
|
};
|
|
25500
25510
|
dati_aggiuntivi_v2.prototype.init_app_wkf = function () {
|
|
25501
|
-
console.log("init_app_wkf ", this.b_edit);
|
|
25511
|
+
// console.log("init_app_wkf ", this.b_edit);
|
|
25502
25512
|
if (!this.b_edit)
|
|
25503
25513
|
this.insert_doc();
|
|
25504
25514
|
else
|