diff --git a/GMW/WebUserControls/mod_PostRX_NT.ascx.cs b/GMW/WebUserControls/mod_PostRX_NT.ascx.cs index 61ac9970..b02c7e11 100644 --- a/GMW/WebUserControls/mod_PostRX_NT.ascx.cs +++ b/GMW/WebUserControls/mod_PostRX_NT.ascx.cs @@ -608,14 +608,33 @@ namespace GMW.WebUserControls } if (newUdcChild == "") { + // controllo NON ci siano troppi UDC in posizione... da capienza ed assegnati + DS_magazzino.V_statoCelleCapienzaAssegnatiRow riga; + bool piena = false; try { - // creo nuovo UDC RX - newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoRX"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneRxTemp"), "IdxPosizioneRxTemp", "UDC_RX", noteTrim, "", adesso.Year, Request.UserHostName); + riga = MagClass.magazzino.taStatoCelle.getByIdxCella(Postazione.currIdxCella)[0]; + if (riga.UdcAssegnati >= riga.Capienza) piena = true; } - catch (Exception exc) + catch { - logger.lg.scriviLog(string.Format("Errore in creazione UDC temp RX: {0}{1}", Environment.NewLine, exc)); + } + if (!piena) + { + try + { + // creo nuovo UDC RX + newUdcChild = MagClass.magazzino.creaUdc(flusso, "", currParticolare, "", "", "", "", "", 0, memLayer.ML.confReadString("CodImballoRX"), "U", MagClass.magazzino.CodSoggCurrUser, qta, 0, 0, adesso, 0, statoUDC, memLayer.ML.confReadInt("IdxPosizioneRxTemp"), "IdxPosizioneRxTemp", "UDC_RX", noteTrim, "", adesso.Year, Request.UserHostName); + } + catch (Exception exc) + { + logger.lg.scriviLog(string.Format("Errore in creazione UDC temp RX: {0}{1}", Environment.NewLine, exc)); + } + } + else + { + Postazione.warningText = traduci("ErroreAL-Full"); + doUpdate(); } } else diff --git a/GMW/bin/GMW.dll b/GMW/bin/GMW.dll index 46e69ba0..5d3f6d2a 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 566479c4..1b57f025 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 10667ddf..fed6497e 100644 Binary files a/GMW/bin/SteamWare.dll and b/GMW/bin/SteamWare.dll differ