@fluxhub/fluxhub-lib 11.0.44 → 11.0.46
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
|
@@ -26191,6 +26191,9 @@ class dati_aggiuntivi_v2 {
|
|
|
26191
26191
|
this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
26192
26192
|
" - " +
|
|
26193
26193
|
this.tsr.instant("Nuova Richiesta"));
|
|
26194
|
+
if (this.custom_action != null) {
|
|
26195
|
+
this.custom_init_action(this.custom_action, this.custom_action_param);
|
|
26196
|
+
}
|
|
26194
26197
|
this.reset_counters_int(0, 0);
|
|
26195
26198
|
/*
|
|
26196
26199
|
dati_aggiuntivi.id_doc=id_documento;
|
|
@@ -26238,6 +26241,7 @@ class dati_aggiuntivi_v2 {
|
|
|
26238
26241
|
reassigned_to(op) { }
|
|
26239
26242
|
after_save() { }
|
|
26240
26243
|
before_save() { }
|
|
26244
|
+
custom_init_action(op, p) { }
|
|
26241
26245
|
can_save() {
|
|
26242
26246
|
return true;
|
|
26243
26247
|
}
|
|
@@ -26362,21 +26366,27 @@ class dati_aggiuntivi_v2 {
|
|
|
26362
26366
|
init_engine() {
|
|
26363
26367
|
if (this.app_s.user != null)
|
|
26364
26368
|
this.user_idp = this.app_s.user;
|
|
26365
|
-
console.log(
|
|
26369
|
+
// console.log(
|
|
26370
|
+
// "this.user_idp == null || this.m_route.params==null ",
|
|
26371
|
+
// this.user_idp,
|
|
26372
|
+
// this.m_route.params,
|
|
26373
|
+
// new Date()
|
|
26374
|
+
// );
|
|
26366
26375
|
if (this.user_idp == null || this.m_route.params == null) {
|
|
26367
26376
|
setTimeout(() => {
|
|
26368
26377
|
this.init_engine();
|
|
26369
26378
|
}, 500);
|
|
26370
26379
|
return;
|
|
26371
26380
|
}
|
|
26372
|
-
console.log("init_engine", new Date());
|
|
26373
26381
|
this.init_user_i();
|
|
26374
26382
|
this.m_route.params.subscribe((params) => {
|
|
26375
26383
|
var id = params["op"];
|
|
26376
26384
|
this.id_applicativo = params["idapp"];
|
|
26377
26385
|
this.id_documento = params["id_doc"];
|
|
26378
|
-
|
|
26379
|
-
this.
|
|
26386
|
+
this.custom_action = params["custom_action"];
|
|
26387
|
+
this.custom_action_param = params["param"];
|
|
26388
|
+
this.b_edit = id != "new" && id != "custom_action" ? true : false;
|
|
26389
|
+
console.log("🚀 ~ file: wkfdatiaggiuntivi.ts ~ line 2413 ~ dati_aggiuntivi_v2 ~ this.m_route.params.subscribe ~ this.b_edit", this.b_edit, id, params);
|
|
26380
26390
|
this.init_app_wkf();
|
|
26381
26391
|
if (!this.b_edit)
|
|
26382
26392
|
if (this.id_applicativo.indexOf("_") > -1) {
|
|
@@ -26391,7 +26401,7 @@ class dati_aggiuntivi_v2 {
|
|
|
26391
26401
|
});
|
|
26392
26402
|
}
|
|
26393
26403
|
init_app_wkf() {
|
|
26394
|
-
console.log("init_app_wkf ", this.b_edit);
|
|
26404
|
+
// console.log("init_app_wkf ", this.b_edit);
|
|
26395
26405
|
if (!this.b_edit)
|
|
26396
26406
|
this.insert_doc();
|
|
26397
26407
|
else
|