@fluxhub/fluxhub-lib 22.0.24 → 22.0.26
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.
|
@@ -31992,6 +31992,12 @@ class FHWorkflowView {
|
|
|
31992
31992
|
pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
31993
31993
|
this.m_dataService.doQuery(pl).subscribe((dl) => {
|
|
31994
31994
|
let lettori_correnti = '';
|
|
31995
|
+
// Anche oggetto e descrizione dal DB: se la grid non li espone nei _FIELDS
|
|
31996
|
+
// sRow.oggetto e' undefined e INSERT_TODO_GEST fallisce (oggetto NOT NULL).
|
|
31997
|
+
const doc = dl != null && dl.result_msg == 'OK' &&
|
|
31998
|
+
dl.result_data != null && dl.result_data.length > 0
|
|
31999
|
+
? dl.result_data[0]
|
|
32000
|
+
: null;
|
|
31995
32001
|
if (dl != null && dl.result_msg == 'OK' &&
|
|
31996
32002
|
dl.result_data != null && dl.result_data.length > 0 &&
|
|
31997
32003
|
dl.result_data[0].lettori != null) {
|
|
@@ -32001,11 +32007,14 @@ class FHWorkflowView {
|
|
|
32001
32007
|
// Fallback al comportamento storico se la query non e' disponibile.
|
|
32002
32008
|
lettori_correnti = this.get_grid().sRow.lettori;
|
|
32003
32009
|
}
|
|
32004
|
-
this.riassegna_richiesta_step2_exec(lettori_correnti);
|
|
32010
|
+
this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
|
|
32005
32011
|
});
|
|
32006
32012
|
}
|
|
32007
|
-
riassegna_richiesta_step2_exec(lettori_correnti) {
|
|
32013
|
+
riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
|
|
32008
32014
|
let a_let = lettori_correnti || '';
|
|
32015
|
+
const sRow = this.get_grid().sRow;
|
|
32016
|
+
const oggetto = sRow.oggetto ?? doc?.oggetto ?? sRow.codice ?? '';
|
|
32017
|
+
const descrizione = sRow.descrizione ?? doc?.descrizione ?? '';
|
|
32009
32018
|
let op = [];
|
|
32010
32019
|
let app_op = new QParam();
|
|
32011
32020
|
app_op.sql = 'DELETE_TODO_ALL_BYID';
|
|
@@ -32037,9 +32046,9 @@ class FHWorkflowView {
|
|
|
32037
32046
|
this.id_applicativo,
|
|
32038
32047
|
this.get_grid().sRow.uiid,
|
|
32039
32048
|
this.wax[i].username,
|
|
32040
|
-
|
|
32049
|
+
oggetto,
|
|
32041
32050
|
this.title,
|
|
32042
|
-
|
|
32051
|
+
descrizione,
|
|
32043
32052
|
this.app_s.COMPANY_SITE_ROOT +
|
|
32044
32053
|
'/#/' +
|
|
32045
32054
|
this.app_root +
|
|
@@ -37268,7 +37277,7 @@ class FHWorkflowForm {
|
|
|
37268
37277
|
' ' +
|
|
37269
37278
|
this.m_obj.codice +
|
|
37270
37279
|
' - ' +
|
|
37271
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
37280
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
37272
37281
|
if (this.m_obj.assegnati_paralleli != null)
|
|
37273
37282
|
if (this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
37274
37283
|
if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
|
|
@@ -38437,7 +38446,7 @@ class FHWorkflowForm {
|
|
|
38437
38446
|
' ' +
|
|
38438
38447
|
this.m_obj.codice +
|
|
38439
38448
|
' - ' +
|
|
38440
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
38449
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
38441
38450
|
else
|
|
38442
38451
|
this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
38443
38452
|
' ' +
|
|
@@ -38445,12 +38454,12 @@ class FHWorkflowForm {
|
|
|
38445
38454
|
'/' +
|
|
38446
38455
|
this.m_obj.v +
|
|
38447
38456
|
' - ' +
|
|
38448
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
38457
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
38449
38458
|
this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
38450
38459
|
' ' +
|
|
38451
38460
|
this.m_obj.codice +
|
|
38452
38461
|
' - ' +
|
|
38453
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
38462
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
38454
38463
|
this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
|
|
38455
38464
|
});
|
|
38456
38465
|
//+' ('+s_uto+')');
|