Impostato limite a 6 UDC (da capienza cella e check capienza/assegnati...)

This commit is contained in:
Samuele Locatelli
2014-03-03 17:14:15 +01:00
parent 8fcb4356ee
commit ce2dcf22fd
4 changed files with 23 additions and 4 deletions
+23 -4
View File
@@ -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
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.