@fluxhub/fluxhub-lib 19.0.258 → 19.0.260
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.
|
@@ -29702,6 +29702,12 @@ class FHWorkflowView {
|
|
|
29702
29702
|
pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
29703
29703
|
this.m_dataService.doQuery(pl).subscribe((dl) => {
|
|
29704
29704
|
let lettori_correnti = '';
|
|
29705
|
+
// Anche oggetto e descrizione dal DB: se la grid non li espone nei _FIELDS
|
|
29706
|
+
// sRow.oggetto e' undefined e INSERT_TODO_GEST fallisce (oggetto NOT NULL).
|
|
29707
|
+
const doc = dl != null && dl.result_msg == 'OK' &&
|
|
29708
|
+
dl.result_data != null && dl.result_data.length > 0
|
|
29709
|
+
? dl.result_data[0]
|
|
29710
|
+
: null;
|
|
29705
29711
|
if (dl != null && dl.result_msg == 'OK' &&
|
|
29706
29712
|
dl.result_data != null && dl.result_data.length > 0 &&
|
|
29707
29713
|
dl.result_data[0].lettori != null) {
|
|
@@ -29711,11 +29717,14 @@ class FHWorkflowView {
|
|
|
29711
29717
|
// Fallback al comportamento storico se la query non e' disponibile.
|
|
29712
29718
|
lettori_correnti = this.get_grid().sRow.lettori;
|
|
29713
29719
|
}
|
|
29714
|
-
this.riassegna_richiesta_step2_exec(lettori_correnti);
|
|
29720
|
+
this.riassegna_richiesta_step2_exec(lettori_correnti, doc);
|
|
29715
29721
|
});
|
|
29716
29722
|
}
|
|
29717
|
-
riassegna_richiesta_step2_exec(lettori_correnti) {
|
|
29723
|
+
riassegna_richiesta_step2_exec(lettori_correnti, doc = null) {
|
|
29718
29724
|
let a_let = lettori_correnti || '';
|
|
29725
|
+
const sRow = this.get_grid().sRow;
|
|
29726
|
+
const oggetto = sRow.oggetto ?? doc?.oggetto ?? sRow.codice ?? '';
|
|
29727
|
+
const descrizione = sRow.descrizione ?? doc?.descrizione ?? '';
|
|
29719
29728
|
let op = [];
|
|
29720
29729
|
let app_op = new QParam();
|
|
29721
29730
|
app_op.sql = 'DELETE_TODO_ALL_BYID';
|
|
@@ -29747,9 +29756,9 @@ class FHWorkflowView {
|
|
|
29747
29756
|
this.id_applicativo,
|
|
29748
29757
|
this.get_grid().sRow.uiid,
|
|
29749
29758
|
this.wax[i].username,
|
|
29750
|
-
|
|
29759
|
+
oggetto,
|
|
29751
29760
|
this.title,
|
|
29752
|
-
|
|
29761
|
+
descrizione,
|
|
29753
29762
|
this.app_s.COMPANY_SITE_ROOT +
|
|
29754
29763
|
'/#/' +
|
|
29755
29764
|
this.app_root +
|
|
@@ -34771,7 +34780,7 @@ class FHWorkflowForm {
|
|
|
34771
34780
|
' ' +
|
|
34772
34781
|
this.m_obj.codice +
|
|
34773
34782
|
' - ' +
|
|
34774
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
34783
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
34775
34784
|
if (this.m_obj.assegnati_paralleli != null)
|
|
34776
34785
|
if (this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
34777
34786
|
if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
|
|
@@ -35940,7 +35949,7 @@ class FHWorkflowForm {
|
|
|
35940
35949
|
' ' +
|
|
35941
35950
|
this.m_obj.codice +
|
|
35942
35951
|
' - ' +
|
|
35943
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
35952
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
35944
35953
|
else
|
|
35945
35954
|
this.uti_s.set_home_title(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
35946
35955
|
' ' +
|
|
@@ -35948,12 +35957,12 @@ class FHWorkflowForm {
|
|
|
35948
35957
|
'/' +
|
|
35949
35958
|
this.m_obj.v +
|
|
35950
35959
|
' - ' +
|
|
35951
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
35960
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
35952
35961
|
this.reset_form_v(this.tsr.instant(this.app_info.descrizione_breve) +
|
|
35953
35962
|
' ' +
|
|
35954
35963
|
this.m_obj.codice +
|
|
35955
35964
|
' - ' +
|
|
35956
|
-
this.tsr.instant(this.m_obj.stat_stato));
|
|
35965
|
+
(this.m_obj.stat_stato ? this.tsr.instant(this.m_obj.stat_stato) : ''));
|
|
35957
35966
|
this.old_doc = JSON.parse(JSON.stringify(this.getfieldvalues()));
|
|
35958
35967
|
});
|
|
35959
35968
|
//+' ('+s_uto+')');
|