Impostato limite a 6 UDC (da capienza cella e check capienza/assegnati...)
This commit is contained in:
@@ -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
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user