|
diff --git a/MP.SPEC/Components/ListPODL.razor.cs b/MP.SPEC/Components/ListPODL.razor.cs
index 08e811b7..8b69b7a0 100644
--- a/MP.SPEC/Components/ListPODL.razor.cs
+++ b/MP.SPEC/Components/ListPODL.razor.cs
@@ -22,14 +22,14 @@ namespace MP.SPEC.Components
#region Public Methods
- public string checkSelect(string CodArticolo)
+ public string checkSelect(PODLModel record)
{
string answ = "";
if (currRecord != null)
{
try
{
- answ = (currRecord.CodArticolo == CodArticolo) ? "table-info" : "";
+ answ = ((currRecord.IdxMacchina == record.IdxMacchina) && (currRecord.CodArticolo == record.CodArticolo) && (currRecord.CodFase == record.CodFase)) ? "table-info" : "";
}
catch
{ }
@@ -76,6 +76,7 @@ namespace MP.SPEC.Components
PzPallet = selRec.PzPallet,
Tcassegnato = selRec.Tcassegnato
};
+ currRecord = selRec;
await RecordSel.InvokeAsync(newRec);
}
@@ -126,11 +127,13 @@ namespace MP.SPEC.Components
protected async Task resetSel()
{
+ currRecord = null;
await RecordSel.InvokeAsync(null);
}
protected async Task selRecord(PODLModel selRec)
{
+ currRecord = selRec;
await RecordSel.InvokeAsync(selRec);
}
diff --git a/MP.SPEC/Pages/PODL.razor b/MP.SPEC/Pages/PODL.razor
index 9ce35a87..a890faa2 100644
--- a/MP.SPEC/Pages/PODL.razor
+++ b/MP.SPEC/Pages/PODL.razor
@@ -143,10 +143,15 @@
|