Update gestione PODL, funzionante...

This commit is contained in:
Samuele E. Locatelli
2018-09-26 14:57:34 +02:00
parent adad7d5f21
commit dcf4d458d3
5 changed files with 28 additions and 23 deletions
@@ -91,9 +91,9 @@ namespace MoonProAdmin.WebUserControls
{
// mostro edit quantità...
divEditQta.Visible = true;
btnNewPromOdl.Visible = true;
lbtNewPODL.Visible = true;
mod_newPromessaODL.Visible = false;
var riga = DataLayer.obj.taODL.getByIdx(idxOdlSel, false)[0];
var riga = DataLayer.obj.taPODL.getByKey(idxPOdlSel)[0];
numPz = riga.NumPezzi;
pzPallet = riga.PzPallet;
}
@@ -226,7 +226,7 @@ namespace MoonProAdmin.WebUserControls
grView.DataBind();
divEditQta.Visible = false;
mod_newPromessaODL.Visible = false;
btnNewPromOdl.Visible = true;
lbtNewPODL.Visible = true;
lblWarning.Visible = false;
if (eh_resetSelezione != null)
{
@@ -275,7 +275,7 @@ namespace MoonProAdmin.WebUserControls
{
// nascondo controllo e mostro button
mod_newPromessaODL.Visible = false;
btnNewPromOdl.Visible = true;
lbtNewPODL.Visible = true;
// aggiorno!
resetSelezione();
}
@@ -309,7 +309,7 @@ namespace MoonProAdmin.WebUserControls
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNewPromOdl_Click(object sender, EventArgs e)
protected void lbtNewPODL_Click(object sender, EventArgs e)
{
showAddNewPODL();
}
@@ -319,7 +319,7 @@ namespace MoonProAdmin.WebUserControls
// mostro controllo creazione ODL
mod_newPromessaODL.Visible = true;
divEditQta.Visible = false;
btnNewPromOdl.Visible = false;
lbtNewPODL.Visible = false;
grView.SelectedIndex = -1;
grView.DataBind();
}
@@ -369,9 +369,9 @@ namespace MoonProAdmin.WebUserControls
protected void btnOk_Click(object sender, EventArgs e)
{
if (idxOdlSel > 0)
if (idxPOdlSel > 0)
{
DataLayer.obj.taODL.updateQta(numPz, pzPallet, idxOdlSel);
DataLayer.obj.taPODL.updateQta(numPz, pzPallet, idxPOdlSel);
}
updateCtrl();
}
@@ -385,7 +385,7 @@ namespace MoonProAdmin.WebUserControls
/// <summary>
/// idxOdl selezionato
/// </summary>
protected int idxOdlSel
protected int idxPOdlSel
{
get
{