From 5e38749c6567f98244082de0d452c8f910e426e5 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 17 Oct 2022 12:17:11 +0200 Subject: [PATCH] Bozza gestione PODL --> ODL --- MP.SPEC/Components/ListPODL.razor | 11 +++++++++++ MP.SPEC/Components/ListPODL.razor.cs | 17 +++++++++++++++++ MP.SPEC/MP.SPEC.csproj | 2 +- MP.SPEC/Resources/ChangeLog.html | 2 +- MP.SPEC/Resources/VersNum.txt | 2 +- MP.SPEC/Resources/manifest.xml | 2 +- 6 files changed, 32 insertions(+), 4 deletions(-) diff --git a/MP.SPEC/Components/ListPODL.razor b/MP.SPEC/Components/ListPODL.razor index 8e79dcad..dafd63f2 100644 --- a/MP.SPEC/Components/ListPODL.razor +++ b/MP.SPEC/Components/ListPODL.razor @@ -35,6 +35,17 @@ else + @if (canStartOdl(record.IdxMacchina)) + { + + } + else + { + } @record.CodArticolo diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs index 80e3371f..ddb159cb 100644 --- a/MP.SPEC/Components/ListPODL.razor.cs +++ b/MP.SPEC/Components/ListPODL.razor.cs @@ -84,6 +84,23 @@ namespace MP.SPEC.Components await RecordSel.InvokeAsync(newRec); } + protected async Task startOdl(PODLModel selRec) + { + await Task.Delay(1); + } + + /// + /// verifica se sia avviabile ODL x macchina + /// + /// + /// + private bool canStartOdl(string idxMacchina) + { + // fare!!! + bool answ = idxMacchina.Contains("BAG"); + return answ; + } + /// /// Eliminazione record selezionato (previa conferma) /// diff --git a/MP.SPEC/MP.SPEC.csproj b/MP.SPEC/MP.SPEC.csproj index e6b87a80..e7fa6a9e 100644 --- a/MP.SPEC/MP.SPEC.csproj +++ b/MP.SPEC/MP.SPEC.csproj @@ -5,7 +5,7 @@ enable enable MP.SPEC - 6.16.2210.1711 + 6.16.2210.1712 diff --git a/MP.SPEC/Resources/ChangeLog.html b/MP.SPEC/Resources/ChangeLog.html index 20236b47..033649b1 100644 --- a/MP.SPEC/Resources/ChangeLog.html +++ b/MP.SPEC/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo MAPOSPEC -

Versione: 6.16.2210.1711

+

Versione: 6.16.2210.1712


Note di rilascio: