Fix veto reload note/tempo7pzPallet in attrezzaggio

This commit is contained in:
Samuele Locatelli
2024-02-27 19:13:26 +01:00
parent a9ac48c016
commit 340fc785f5
2 changed files with 26 additions and 18 deletions
+2 -2
View File
@@ -82,9 +82,9 @@
</div>
</div>
}
<div class="col-12">
@* <div class="col-12">
Check articolo in revisione
</div>
</div> *@
@if (cancelSetupEnabled && RecMSE != null && RecMSE.PezziConf == 0)
{
<div class="col-12 col-md-6 p-2">
+24 -16
View File
@@ -1543,21 +1543,25 @@ namespace MP_TAB3.Components
}
}
await updateIdxOdl();
// imposto tcRichAttr in base allo stato...
if (odlOk)
// aggiorno questi dati SOLO SE non sono in attrezzaggio
if (!inAttr)
{
// prendo TCRich da PODL...
if (IdxPOdlSel > 0)
// imposto tcRichAttr in base allo stato...
if (odlOk)
{
tcRichAttr = currPodl.Tcassegnato;
noteAttr = currPodl.Note;
PzPallet = currPodl.PzPallet;
}
else
{
tcRichAttr = currOdl.TCRichAttr;
noteAttr = currOdl.Note;
PzPallet = currOdl.PzPallet;
// prendo TCRich da PODL...
if (IdxPOdlSel > 0)
{
tcRichAttr = currPodl.Tcassegnato;
noteAttr = currPodl.Note;
PzPallet = currPodl.PzPallet;
}
else
{
tcRichAttr = currOdl.TCRichAttr;
noteAttr = currOdl.Note;
PzPallet = currOdl.PzPallet;
}
}
}
}
@@ -1570,13 +1574,17 @@ namespace MP_TAB3.Components
if (IdxPOdlSel > 0)
{
await ReloadXDL(false);
// solo se NON sno in attrezzaggio
// controllo se sia cambiato PODL
if (IdxPOdlSel != lastIdxPOdl)
{
lastIdxPOdl = IdxPOdlSel;
tcRichAttr = currPodl.Tcassegnato;
noteAttr = currPodl.Note;
PzPallet = currPodl.PzPallet;
if (!inAttr)
{
tcRichAttr = currPodl.Tcassegnato;
noteAttr = currPodl.Note;
PzPallet = currPodl.PzPallet;
}
}
}
}