diff --git a/GMW-RT/bin/GMW-RT.dll b/GMW-RT/bin/GMW-RT.dll index d8fbebd2..0ef6a152 100644 Binary files a/GMW-RT/bin/GMW-RT.dll and b/GMW-RT/bin/GMW-RT.dll differ diff --git a/GMW-RT/bin/GMW_data.dll b/GMW-RT/bin/GMW_data.dll index cc0da37c..8f8a04fe 100644 Binary files a/GMW-RT/bin/GMW_data.dll and b/GMW-RT/bin/GMW_data.dll differ diff --git a/GMW-RT/bin/SteamWare.dll b/GMW-RT/bin/SteamWare.dll index 51b6720a..dbedd044 100644 Binary files a/GMW-RT/bin/SteamWare.dll and b/GMW-RT/bin/SteamWare.dll differ diff --git a/GMW/WebUserControls/mod_lavMeccOUT.ascx.cs b/GMW/WebUserControls/mod_lavMeccOUT.ascx.cs index 1b1f1541..c79e29e8 100644 --- a/GMW/WebUserControls/mod_lavMeccOUT.ascx.cs +++ b/GMW/WebUserControls/mod_lavMeccOUT.ascx.cs @@ -268,6 +268,23 @@ namespace GMW.WebUserControls } } /// + /// cod imballo dell'ultimo UDC del particolare generato + /// + public string lastCodImb + { + get + { + string answ = ""; + try + { + answ = MagClass.magazzino.taCartellini.getLastByParticolareStato(memLayer.ML.StringSessionObj("CodCS"), currParticolare, statoUDC)[0].CodImballo; + } + catch + { } + return answ; + } + } + /// /// decodifica il tipo barcode acquisito /// public tipoCodiceBarcode tipoBCode @@ -447,6 +464,10 @@ namespace GMW.WebUserControls { txtQta.Text = memLayer.ML.confReadString("QtaImballoFiniti"); } + if (lastCodImb != "") + { + selezionaImballo(); + } } /// /// update del filtro su particolare x grview UDC caricati in linea @@ -1009,13 +1030,31 @@ namespace GMW.WebUserControls /// protected void ddlImballi_DataBound(object sender, EventArgs e) { + selezionaImballo(); + } + /// + /// seleziona imballo corretto + /// + private void selezionaImballo() + { + string codImb = ""; + // cerco se c'รจ un imballo x particolare corrente... + if (currParticolare != "") + { + codImb = lastCodImb; + } + else + { + codImb = memLayer.ML.confReadString("CodImballoFiniti"); + } try { // preseleziono - ddlImballi.SelectedValue = memLayer.ML.confReadString("CodImballoFiniti"); + ddlImballi.SelectedValue = codImb; } catch { } } + } } \ No newline at end of file diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index df24b3de..e04f6b7f 100644 Binary files a/GMW/bin/GMW.dll and b/GMW/bin/GMW.dll differ diff --git a/GMW/bin/GMW_data.dll b/GMW/bin/GMW_data.dll index cc0da37c..8f8a04fe 100644 Binary files a/GMW/bin/GMW_data.dll and b/GMW/bin/GMW_data.dll differ diff --git a/GMW/bin/SteamWare.dll b/GMW/bin/SteamWare.dll index 51b6720a..dbedd044 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ diff --git a/GMW/bin/VersGen.dll b/GMW/bin/VersGen.dll index 78f27e6e..80a7ac74 100644 Binary files a/GMW/bin/VersGen.dll and b/GMW/bin/VersGen.dll differ