ok presa in carico UDC:
- scarica UDC prec se uguale particolare - carica eventuali nuovi udc x nuovi aprticolari (SE ne trova)
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -2254,7 +2254,7 @@
|
||||
<AutoAssignPort>True</AutoAssignPort>
|
||||
<DevelopmentServerPort>57804</DevelopmentServerPort>
|
||||
<DevelopmentServerVPath>/</DevelopmentServerVPath>
|
||||
<IISUrl>http://localhost:55555</IISUrl>
|
||||
<IISUrl>http://localhost:55554</IISUrl>
|
||||
<NTLMAuthentication>False</NTLMAuthentication>
|
||||
<UseCustomServer>False</UseCustomServer>
|
||||
<CustomServerUrl>
|
||||
|
||||
@@ -377,36 +377,63 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
// calcolo nuovo particolare
|
||||
string newPart = DataProxy.obj.taCartellini.stp_getByUdc(barcodeIn)[0].Particolare;
|
||||
string udcDest = "";
|
||||
// imposto particolare!
|
||||
currParticolare = newPart;
|
||||
|
||||
// controllo SE esista già UDC in AL dest... altrimenti CREO!!!
|
||||
checkCreaUDC();
|
||||
udcDest = checkCreaUDC();
|
||||
|
||||
// verifico per eventuale consumo vecchio UDC
|
||||
// cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet = null;
|
||||
try
|
||||
{
|
||||
// cerco nella posizione
|
||||
DS_magazzino.v_UdcDetailDataTable tabUdcDet= MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
// cerco se ci sia l'UDC letto...
|
||||
if (tabUdcDet.Select(string.Format("UDC = '{0}'")).Length > 0)
|
||||
{
|
||||
// non faccio nulla
|
||||
}
|
||||
else
|
||||
{
|
||||
// consumo!!!
|
||||
// !!!FARE!!!
|
||||
}
|
||||
tabUdcDet = MagClass.magazzino.taDettUDC.getUdcDetailByIdxCella(idxCella);
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// carico UDC letto in cella...
|
||||
DateTime adesso = DateTime.Now;
|
||||
string noteTrim = Postazione.currNomeLinea;
|
||||
// cerco se NON ci sia l'UDC letto...
|
||||
if (tabUdcDet.Select(string.Format("UDC = '{0}'", barcodeIn)).Length == 0)
|
||||
{
|
||||
string oldUdc = "";
|
||||
try
|
||||
{
|
||||
oldUdc = ((DS_magazzino.v_UdcDetailRow)tabUdcDet.Select(string.Format("Particolare = '{0}'", currParticolare))[0]).UDC;
|
||||
}
|
||||
catch
|
||||
{ }
|
||||
// se trovo un altro UDC dello stesso particolare...
|
||||
if (oldUdc != "")
|
||||
{
|
||||
// consumo UDC
|
||||
consumaUdc(oldUdc);
|
||||
}
|
||||
|
||||
// se ho cod cella sposto UDC in nuova posizione!
|
||||
MagClass.magazzino.spostaUDC(memLayer.ML.StringSessionObj("CodCS"), barcodeIn, Postazione.currIdxCella, memLayer.ML.confReadBool("spostaUdcResettaLdp"), Request.UserHostName);
|
||||
// registro spostamento UDC
|
||||
MagClass.magazzino.taSAO.insertQuery(adesso, MagClass.magazzino.CodSoggCurrUser, Postazione.name, Postazione.IP, barcodeIn, currParticolare, "spostaUDC", string.Format("Caricato UDC Fusi su linea {2}, qta: {0} {1} ", qta, noteTrim, Postazione.currCodLinea));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
|
||||
// associo UDC con quello di destinazione
|
||||
MagClass.magazzino.associaUdcParent(udcDest, barcodeIn, true);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// update gridview origine e dest
|
||||
grView.DataBind();
|
||||
grViewDest.DataBind();
|
||||
break;
|
||||
default:
|
||||
Postazione.messaggiText += " - codice <b>non riconosciuto</b>!";
|
||||
@@ -422,6 +449,19 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
txtBarcode.Focus();
|
||||
}
|
||||
/// <summary>
|
||||
/// effettua consumo UDC
|
||||
/// </summary>
|
||||
/// <param name="oldUdc"></param>
|
||||
private void consumaUdc(string oldUdc)
|
||||
{
|
||||
// se è consumabile (IdxPosizione > 0)...
|
||||
if (MagClass.magazzino.udcMpIsConsumabile(oldUdc))
|
||||
{
|
||||
// consumo UDC
|
||||
MagClass.magazzino.scaricaUdcMpWip(oldUdc, Request.UserHostName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// crea eventualmente UDC per particolare in AL di destinazione e restituisce codice UDC
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user