fix bug doppio caricamento pagina!

This commit is contained in:
Samuele E. Locatelli
2017-02-27 17:26:57 +01:00
parent c49f8447b2
commit e13b5b6856
3 changed files with 16 additions and 9 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ OK Non controlla se datamatrix già associato! --> controlla su altra tab
NO F5 o refresh cambia linea impostata su 1 (prima era la 2 )
OK NON impostare dataFus e linea SE leggo DTX
DOPPIO RELOAD PAGINA
scambiare taRTPV.getByPageChiave(...) --> RTVal(...)
OK scambiare taRTPV.getByPageChiave(...) --> RTVal(...)
+15 -8
View File
@@ -619,11 +619,6 @@ namespace GMW.WebUserControls
qta = pezziUdc;
// update particolare
updatePart();
// raise dell'evento
if (eh_reqUpdate != null)
{
eh_reqUpdate(this, new EventArgs());
}
verificaBtnStampa();
txtBarcode.Focus();
}
@@ -794,9 +789,15 @@ namespace GMW.WebUserControls
get
{
DS_DataMatrix.Linea2Dtx_IERow answ = null;
DS_DataMatrix.Linea2Dtx_IEDataTable tab = null;
try
{
answ = DataMatrix.mgr.taL2D.getByLineFormato(Postazione.currCodLinea, FormatoDtmxLinea)[0];
tab = DataMatrix.mgr.taL2D.getByLineFormato(Postazione.currCodLinea, FormatoDtmxLinea);
if (tab.Rows.Count > 0)
{
answ = tab[0];
}
}
catch
{ }
@@ -882,9 +883,13 @@ namespace GMW.WebUserControls
protected void ods_Deleted(object sender, ObjectDataSourceStatusEventArgs e)
{
// aggiorno le qta!
Postazione.CssClass = "stileAttesa";
Postazione.warningText = "";
Postazione.messaggiText = "";
currParticolare = "";
qta = 0;
doUpdate();
eh_reqUpdate?.Invoke(this, new EventArgs());
}
protected void lbtStampaAL_Click(object sender, EventArgs e)
@@ -927,7 +932,9 @@ namespace GMW.WebUserControls
currParticolare = "";
qta = 0;
}
doUpdate();
//doUpdate();
//eh_reqUpdate?.Invoke(this, new EventArgs());
Response.Redirect(user_std.pagCorrente);
}
else
{
BIN
View File
Binary file not shown.