fix controllo doppia MP

This commit is contained in:
Samuele Locatelli
2021-07-28 12:41:42 +02:00
parent d9505e1749
commit 17aa2a0f13
5 changed files with 40 additions and 15 deletions
+17 -2
View File
@@ -71,7 +71,6 @@ namespace MoonProTablet.WebUserControls
}
}
public int dataNum
{
get
@@ -85,6 +84,21 @@ namespace MoonProTablet.WebUserControls
hfNum.Value = $"{value}";
}
}
public int dataOggetto
{
get
{
int answ = 0;
int.TryParse(hfOggetto.Value, out answ);
return answ;
}
set
{
hfOggetto.Value = $"{value}";
}
}
public int idxST
{
get
@@ -237,7 +251,7 @@ namespace MoonProTablet.WebUserControls
answ = (currDeroga != null);
if (answ)
{
answ = (currDeroga.CanForce && currDeroga.Num == dataNum && currDeroga.CodGruppo == dataGroup && currDeroga.CodTipo == dataType);
answ = (currDeroga.CanForce && currDeroga.Num == dataNum && currDeroga.CodGruppo == dataGroup && currDeroga.CodTipo == dataType && currDeroga.Oggetto == dataOggetto);
}
}
catch
@@ -289,6 +303,7 @@ namespace MoonProTablet.WebUserControls
{
CanForce = enableForceParamSchedaTecnica,
Num = dataNum,
Oggetto = dataOggetto,
CodTipo = dataType,
CodGruppo = dataGroup,
IdxST = idxST