From d67b7144944c19b2929efffd2b70b58199a84daf Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 11 Feb 2013 11:44:50 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20utilizzo=20campo=20gi=C3=A0=20presente?= =?UTF-8?q?=20pezziUdc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GMW/WebUserControls/mod_anime.ascx.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/GMW/WebUserControls/mod_anime.ascx.cs b/GMW/WebUserControls/mod_anime.ascx.cs index e2a215ae..ed2c345b 100644 --- a/GMW/WebUserControls/mod_anime.ascx.cs +++ b/GMW/WebUserControls/mod_anime.ascx.cs @@ -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 {