fix comportamento tablet x perdita sel numPzPallet + display ODL

This commit is contained in:
Samuele Locatelli
2021-05-12 17:33:44 +02:00
parent e4ce734306
commit ab2e3040bd
4 changed files with 19 additions and 6 deletions
+11 -3
View File
@@ -227,6 +227,11 @@ namespace MoonProTablet.WebUserControls
set
{
memLayer.ML.setSessionVal("idxODL", value);
// resetto cache redis
if(value==0)
{
DataLayerObj.emptyCurrODL(idxMacchina);
}
}
}
@@ -235,10 +240,13 @@ namespace MoonProTablet.WebUserControls
get
{
string answ = "";
var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
if (idxOdl > 0)
{
answ = odlDetail[0].KeyRichiesta;
var odlDetail = DataLayerObj.currODLRowTab(idxMacchina);
if (odlDetail != null && odlDetail.Rows.Count > 0)
{
answ = odlDetail[0].KeyRichiesta;
}
}
return answ;
}