From d453c1d944c75b655efa8bf8bf3a923c7c22a97b Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Thu, 20 Oct 2022 09:42:19 +0200 Subject: [PATCH] modifiche comportamento editing --- MP.SPEC/Components/ListDossiers.razor | 8 ++++++++ MP.SPEC/Components/ListDossiers.razor.cs | 21 +++++++++++++++++++++ MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Pages/DOSS.razor | 6 +++--- MP.SPEC/Pages/DOSS.razor.cs | 10 ++++++++-- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 8 files changed, 44 insertions(+), 9 deletions(-) diff --git a/MP.SPEC/Components/ListDossiers.razor b/MP.SPEC/Components/ListDossiers.razor index 43b8c986..46fc9f3d 100644 --- a/MP.SPEC/Components/ListDossiers.razor +++ b/MP.SPEC/Components/ListDossiers.razor @@ -33,7 +33,15 @@ else { + @if(isEditing == false) + { + + } + else + { + + } @record.OdlNav.CodArticolo diff --git a/MP.SPEC/Components/ListDossiers.razor.cs b/MP.SPEC/Components/ListDossiers.razor.cs index c5f8e72e..9f25dedb 100644 --- a/MP.SPEC/Components/ListDossiers.razor.cs +++ b/MP.SPEC/Components/ListDossiers.razor.cs @@ -53,6 +53,7 @@ namespace MP.SPEC.Components try { answ = (currRecord.IdxMacchina == recordSel.IdxMacchina && currRecord.DtRif == recordSel.DtRif) ? "table-info" : ""; + } catch { } @@ -140,6 +141,19 @@ namespace MP.SPEC.Components currRecord = null; await reloadData(true); } + private string css() + { + string answ = ""; + if (isEditing == false) + { + answ = "visible"; + } + else + { + answ = "hidden"; + } + return answ; + } #endregion Protected Methods @@ -165,6 +179,12 @@ namespace MP.SPEC.Components set => SelFilter.CurrPage = value; } + private bool isEditing + { + get => SelFilter.isEditing; + set => SelFilter.isEditing = value; + } + private bool isLoading { get; set; } = false; private List? listaFlux { get; set; } = null; @@ -257,6 +277,7 @@ namespace MP.SPEC.Components currFluxLogDto = null; currRecord = null; visualizzaFlux = true; + isEditing = false; await RecordSelFlux.InvokeAsync(currFluxLogDto); await Task.Delay(1); } diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index 7e5f73d9..3ed0c30f 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2210.1920 + 6.16.2210.2009 diff --git a/MP.SPEC/Pages/DOSS.razor b/MP.SPEC/Pages/DOSS.razor index e3bfa78f..8c2d324e 100644 --- a/MP.SPEC/Pages/DOSS.razor +++ b/MP.SPEC/Pages/DOSS.razor @@ -49,12 +49,12 @@
- VALORE - + VALORE +
-
+
diff --git a/MP.SPEC/Pages/DOSS.razor.cs b/MP.SPEC/Pages/DOSS.razor.cs index b7807c2c..0c946d05 100644 --- a/MP.SPEC/Pages/DOSS.razor.cs +++ b/MP.SPEC/Pages/DOSS.razor.cs @@ -31,6 +31,7 @@ namespace MP.SPEC.Pages protected async Task cancel() { currDetFluxLogRecord = null; + isEditing = false; await Task.Delay(1); StateHasChanged(); } @@ -110,15 +111,20 @@ namespace MP.SPEC.Pages string answ = ""; if (isEditing == false) { - answ = "disabled"; + answ = "hidden"; } else { - answ = "enabled"; + answ = "visible"; } return answ; } + private void enableEdit() + { + isEditing = true; + } + protected void updateTotal(int newTotCount) { totalCount = newTotCount; diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index bd3a37e7..1e9e4534 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2210.1920

+

Versione: 6.16.2210.2009


Note di rilascio:
  • diff --git a/MP.SPEC/Resources/VersNum.txt b/MP.SPEC/Resources/VersNum.txt index aa01d95b..8eafc897 100644 --- a/MP.SPEC/Resources/VersNum.txt +++ b/MP.SPEC/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2210.1920 +6.16.2210.2009 diff --git a/MP.SPEC/Resources/manifest.xml b/MP.SPEC/Resources/manifest.xml index 5d659517..2b66ac0d 100644 --- a/MP.SPEC/Resources/manifest.xml +++ b/MP.SPEC/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2210.1920 + 6.16.2210.2009 https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/MP.SPEC.zip https://nexus.steamware.net/repository/SWS/MP-SPEC/stable/LAST/ChangeLog.html false