From 013b21e055e025b6b8490c3f457d96a44688c22e Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Wed, 12 Oct 2022 11:48:51 +0200 Subject: [PATCH] Fix serializzazione valori edit --- MP.SPEC/Components/ListDossiers.razor | 22 ++++++++++++++-------- MP.SPEC/Data/MpDataService.cs | 11 ++++++++++- MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Pages/DOSS.razor | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 7 files changed, 29 insertions(+), 14 deletions(-) diff --git a/MP.SPEC/Components/ListDossiers.razor b/MP.SPEC/Components/ListDossiers.razor index d7072da0..165d0493 100644 --- a/MP.SPEC/Components/ListDossiers.razor +++ b/MP.SPEC/Components/ListDossiers.razor @@ -79,7 +79,13 @@ else Macchina Data Data Type - Valore + +
+ Valore + + +
+ @@ -88,7 +94,7 @@ else - + @record.IdxMacchina @@ -98,13 +104,13 @@ else @record.CodFlux - -
@record.Valore
-
@record.Valore
+ +
Modificato: @record.ValoreEdit
+
Originale: @record.Valore
@*@if (ListRecordsMod != null) - { -
@findRec(record)
- }*@ + { +
@findRec(record)
+ }*@ } diff --git a/MP.SPEC/Data/MpDataService.cs b/MP.SPEC/Data/MpDataService.cs index dd7e207d..261bd042 100644 --- a/MP.SPEC/Data/MpDataService.cs +++ b/MP.SPEC/Data/MpDataService.cs @@ -319,7 +319,16 @@ namespace MP.SPEC.Data // serializzo nuovamente valore - string rawVal = JsonConvert.SerializeObject(fluxLogList); + DossierFluxLogDTO? result = new DossierFluxLogDTO(); + var ODLflux = result.ODL.ToList(); + foreach (var item in fluxLogList) + { + ODLflux.Add(item); + } + + DossierFluxLogDTO updatedResult = new DossierFluxLogDTO(){ODL = ODLflux}; + + string rawVal = JsonConvert.SerializeObject(updatedResult); currDoss.Valore = rawVal; // aggiorno record sul DB await dbController.DossiersUpdateValore(currDoss); diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index bdfe044b..01230682 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2210.1206 + 6.16.2210.1210 diff --git a/MP.SPEC/Pages/DOSS.razor b/MP.SPEC/Pages/DOSS.razor index 8fba837a..5cbf93c3 100644 --- a/MP.SPEC/Pages/DOSS.razor +++ b/MP.SPEC/Pages/DOSS.razor @@ -50,7 +50,7 @@
VALORE - +
diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index afc8d3f7..196b7af4 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2210.1206

+

Versione: 6.16.2210.1210


Note di rilascio: