diff --git a/GMW/Web.config b/GMW/Web.config index e0902702..0dde41f9 100644 --- a/GMW/Web.config +++ b/GMW/Web.config @@ -61,8 +61,8 @@ - - + + diff --git a/GMW/WebUserControls/mod_finitiTK.ascx.cs b/GMW/WebUserControls/mod_finitiTK.ascx.cs index 72d2118b..c028d502 100644 --- a/GMW/WebUserControls/mod_finitiTK.ascx.cs +++ b/GMW/WebUserControls/mod_finitiTK.ascx.cs @@ -116,7 +116,9 @@ namespace GMW.WebUserControls lblNote.Text = traduci("lblNote"); lblCurrentPage.Text = traduci(PagCorrente); //txtBox - txtQtaUDC.Text = memLayer.ML.confReadString("QtaImballoFiniti"); + qtaUDC = memLayer.ML.confReadInt("QtaImballoFiniti"); + numUDC = 1; + refreshQta(); // buttons btnStampa.Text = traduci("btnStampa"); btnEmptyNote.Text = traduci("btnEmptyNote"); @@ -318,19 +320,6 @@ namespace GMW.WebUserControls /// public int qta { -#if false - get - { - int qta = 0; - try - { - qta = Convert.ToInt32(txtQta.Text.Trim()); - } - catch - { } - return qta; - } -#endif set { txtQta.Text = value.ToString(); @@ -355,6 +344,7 @@ namespace GMW.WebUserControls set { txtQtaUDC.Text = value.ToString(); + refreshQta(); } } /// @@ -376,6 +366,7 @@ namespace GMW.WebUserControls set { txtNumUDC.Text = value.ToString(); + refreshQta(); } } /// @@ -406,11 +397,11 @@ namespace GMW.WebUserControls // leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto... if (pezziUdc > 0) { - txtQta.Text = pezziUdc.ToString(); + qtaUDC = pezziUdc; } else // rimette default { - txtQta.Text = memLayer.ML.confReadString("QtaImballoFiniti"); + qtaUDC = memLayer.ML.confReadInt("QtaImballoFiniti"); } break; case tipoCodiceBarcode.UDC: @@ -486,7 +477,7 @@ namespace GMW.WebUserControls if (postazione_printer != "n.d.") { string newUdcChild = ""; - string noteTrim = txtNote.Text.Trim(); + string noteTrim = txtNote.Text.Trim(); // effettuo controlli che cod_soggetto e cod particolare siano disponibili... string codSogg = ""; string particolare = ""; @@ -586,7 +577,7 @@ namespace GMW.WebUserControls // resetto i dati QtaUdc, numUdc, QtaTot e particolare... qtaUDC = 0; numUDC = 1; - qta = 0; + refreshQta(); currParticolare = ""; doChecks(); } @@ -644,6 +635,13 @@ namespace GMW.WebUserControls /// /// protected void txtQtaUDC_TextChanged(object sender, EventArgs e) + { + refreshQta(); + } + /// + /// aggiorna qta totale + /// + private void refreshQta() { qta = qtaUDC * numUDC; } @@ -654,7 +652,7 @@ namespace GMW.WebUserControls /// protected void txtNumUDC_TextChanged(object sender, EventArgs e) { - qta = qtaUDC * numUDC; + refreshQta(); } } } \ No newline at end of file diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 0f1b00e0..cc346c6f 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ