fix conteggio pezzi stampabili
This commit is contained in:
@@ -19,7 +19,7 @@ namespace MP_MAG.WebUserControls
|
||||
int answ = 0;
|
||||
try
|
||||
{
|
||||
answ = currData.QtaOdl;
|
||||
answ = currData.QtaConf;
|
||||
// cerco UDC
|
||||
var tabUDC = MagDataLayerObj.taEUdc.getByOdl(currData.IdxOdl);
|
||||
if (tabUDC.Rows.Count > 0)
|
||||
@@ -29,7 +29,7 @@ namespace MP_MAG.WebUserControls
|
||||
{
|
||||
numPrinted += (int)item.Qta;
|
||||
}
|
||||
answ = currData.QtaOdl - numPrinted;
|
||||
answ = currData.QtaConf - numPrinted;
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -76,6 +76,10 @@ namespace MP_MAG.WebUserControls
|
||||
int numPz2print = calcPzRem;
|
||||
lblNumPz2Print.Text = $"{numPz2print}";
|
||||
lbtPrint.Visible = numPz2print > 0;
|
||||
if (numPz2print > 0)
|
||||
{
|
||||
numPzUdc = numPz2print > currData.QtaUdc ? currData.QtaUdc : numPz2print;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Private Methods
|
||||
@@ -101,10 +105,13 @@ namespace MP_MAG.WebUserControls
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
#if false
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
// sistemo pezzi
|
||||
numPzUdc = currData.QtaUdc;
|
||||
}
|
||||
#endif
|
||||
checkPrint();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user