fix: utilizzo campo già presente pezziUdc

This commit is contained in:
unknown
2013-02-11 11:44:50 +01:00
parent 67c0c24700
commit d67b714494
+2 -10
View File
@@ -351,18 +351,10 @@ namespace GMW.WebUserControls
lblMessaggi.Text += " - impostato particolare!";
pnlAll.CssClass = "stileComandoOk";
}
// default: qta a zero
decimal qtaPart = 0;
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
try
if (pezziUdc > 0)
{
qtaPart = MagClass.magazzino.taCartellini.getLastByParticolare(memLayer.ML.StringSessionObj("CodCS"), currParticolare)[0].Qta;
}
catch
{ }
if (qtaPart > 0)
{
txtQta.Text = Convert.ToInt32(qtaPart).ToString();
txtQta.Text = pezziUdc.ToString();
}
else // rimette default
{