fix chiamata update lotti da ODL x TAB

This commit is contained in:
Samuele E. Locatelli
2020-12-10 11:43:35 +01:00
parent 7752a776a0
commit 8de2fea220
5 changed files with 12 additions and 7 deletions
-3
View File
@@ -318,7 +318,6 @@
<Content Include="fonts\fontawesome-webfont.svg" />
<Content Include="images\LogoMapoFull.png" />
<Content Include="images\LogoSteamware.png" />
<Content Include="libzstd.dll" />
<Content Include="logs\PlaceHolder.file">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
@@ -441,8 +440,6 @@
<Content Include="Scripts\umd\popper-utils.min.js" />
<Content Include="Scripts\umd\popper.js" />
<Content Include="Scripts\umd\popper.min.js" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
<Content Include="steamware.ico" />
<Content Include="Global.asax" />
<None Include="compilerconfig.json" />
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,11 +13,19 @@ namespace MoonProTablet.WebUserControls
// controlla se abilitato check LOTTI MAG
if (enableMagLotti)
{
// controlla se ci sia lotto x ODL
if (DataLayerObj.taMagELotti.getByODL(idxOdl).Rows.Count == 0)
if (idxOdl > 0)
{
// se non c'è chiama stored x rigenerare
DataLayerObj.taMagELotti.UpsertByOdl(idxOdl, true);
// controlla se ci sia lotto x ODL
if (DataLayerObj.taMagELotti.getByODL(idxOdl).Rows.Count == 0)
{
try
{
// se non c'è chiama stored x rigenerare
DataLayerObj.taMagELotti.UpsertByOdl(idxOdl, true);
}
catch
{ }
}
}
}
}