ok edit qta UDC dest finiti
This commit is contained in:
@@ -128,6 +128,20 @@ namespace GMW.WebUserControls
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// indica UDC correntemente selezionato
|
||||
/// </summary>
|
||||
protected string currUDC
|
||||
{
|
||||
get
|
||||
{
|
||||
return memLayer.ML.StringSessionObj(string.Format("UDC_{0}", uid));
|
||||
}
|
||||
set
|
||||
{
|
||||
memLayer.ML.setSessionVal(string.Format("UDC_{0}", uid), value, memLayer.ML.confReadBool("keepParticolareSel"));
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// num pezzi dell'ultimo UDC di uguale aprticoalre e stato fatto...
|
||||
/// </summary>
|
||||
public int pezziUdc
|
||||
@@ -210,6 +224,7 @@ namespace GMW.WebUserControls
|
||||
sourceAL = currAL;
|
||||
destAL = AlByCella;
|
||||
qta = 0;
|
||||
currUDC = "";
|
||||
#if false
|
||||
if (sourceAL == "")
|
||||
{
|
||||
@@ -530,8 +545,9 @@ namespace GMW.WebUserControls
|
||||
/// </summary>
|
||||
public void doUpdate()
|
||||
{
|
||||
grViewSource.DataBind();
|
||||
grViewDest.DataBind();
|
||||
#if false
|
||||
grViewAL.DataBind();
|
||||
fixCella();
|
||||
grView.DataBind();
|
||||
// aggiorno le qta!
|
||||
@@ -557,11 +573,11 @@ namespace GMW.WebUserControls
|
||||
protected void grViewDest_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
// ricarico dati dell'UDC come particolare e quantità...
|
||||
string UDC = grViewDest.SelectedDataKey["UDC"].ToString();
|
||||
if (MagClass.magazzino.checkUDC(UDC))
|
||||
currUDC = grViewDest.SelectedDataKey["UDC"].ToString();
|
||||
if (MagClass.magazzino.checkUDC(currUDC))
|
||||
{
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0].Particolare;
|
||||
qta = Convert.ToInt32(DataProxy.obj.taCartellini.stp_getByUdc(UDC)[0].Qta);
|
||||
currParticolare = DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Particolare;
|
||||
qta = Convert.ToInt32(DataProxy.obj.taCartellini.stp_getByUdc(currUDC)[0].Qta);
|
||||
}
|
||||
Postazione.messaggiText = traduci("partSelected");
|
||||
Postazione.warningText = "";
|
||||
@@ -601,32 +617,18 @@ namespace GMW.WebUserControls
|
||||
{
|
||||
grViewDest.SelectedIndex = -1;
|
||||
qta = 0;
|
||||
currUDC = "";
|
||||
setVisibility();
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
/// salvo il particolare selezionato...
|
||||
/// update Qty x UDC selezionato...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void lbtUpdQty_Click(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
// imposto il particolare corrente
|
||||
currParticolare = ddlPart.SelectedValue;
|
||||
Postazione.messaggiText = traduci("partSelected");
|
||||
Postazione.warningText = "";
|
||||
Postazione.CssClass = "stileComandoOk";
|
||||
// leggo la qta dell'ultimo UDC del particolare, SE C'E', e la imposto...
|
||||
if (pezziUdc > 0)
|
||||
{
|
||||
qta = pezziUdc;
|
||||
}
|
||||
else // rimette default
|
||||
{
|
||||
qta = memLayer.ML.confReadInt("QtaImballoRx");
|
||||
}
|
||||
#endif
|
||||
MagClass.magazzino.taCartellini.updateQty(currUDC, MagClass.magazzino.CodSoggCurrUser, "U", codEventoUdcOut, qta);
|
||||
doUpdate();
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user