Fix veto reload note/tempo7pzPallet in attrezzaggio
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user