diff --git a/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx b/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx
index dfac73f6..8db6ef5b 100644
--- a/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx
+++ b/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx
@@ -4,7 +4,7 @@
+ OnSorted="grView_Sorted" OnRowUpdating="grView_RowUpdating">
@@ -24,30 +24,36 @@
ToolTip='<%# traduci("Select") %>' ImageUrl='<%# imgPath(SteamWare.tipoImg.seleziona, SteamWare.dimImg.small) %>' />
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ SelectMethod="getByCodLista" TypeName="GMW_data.DS_magazzinoTableAdapters.RigheListePrelievoTableAdapter">
diff --git a/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx.cs b/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx.cs
index 532d674f..61d58d8c 100644
--- a/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx.cs
+++ b/GMW/GMW/WebUserControls/mod_viewRigheListaPrelievo.ascx.cs
@@ -217,7 +217,26 @@ namespace GMW.WebUserControls
return answ;
}
///
- /// salvo in session che il prox comando è iniziare lista prelievo...
+ /// verifica se sia annullabile il prelievo
+ ///
+ ///
+ ///
+ public bool annullaEnabled(object annullaPrelevata)
+ {
+ bool answ = prelievoEnabled;
+ if (prelievoEnabled)
+ {
+ try
+ {
+ answ = Convert.ToBoolean(annullaPrelevata);
+ }
+ catch
+ { }
+ }
+ return answ;
+ }
+ ///
+ /// salvo in session che il prox comando è confermare prelievo...
///
///
///
@@ -226,6 +245,15 @@ namespace GMW.WebUserControls
SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "confermaPrelievo");
}
///
+ /// salvo in session che il prox comando è annullare prelievo...
+ ///
+ ///
+ ///
+ protected void imgAnnullato_Click(object sender, ImageClickEventArgs e)
+ {
+ SteamWare.memLayer.ML.setSessionVal("nextObjCommand", "annullaPrelievo");
+ }
+ ///
/// in caso di aggiornamento verifico se sia salvato un comando inizia o completa lista prelievo...
///
///
@@ -258,6 +286,19 @@ namespace GMW.WebUserControls
// blocco update!
e.Cancel = true;
break;
+ case "annullaPrelievo":
+ GMW_data.MagClass.magazzino.annullaUdcPrelevatoPerLista(memLayer.ML.StringSessionObj("CodCS"), codLista, UDC);
+ updateOdsDaFiltro();
+ grView.EditIndex = -1;
+ grView.DataBind();
+ // sollevo evento nuovo valore...
+ if (eh_nuovoValore != null)
+ {
+ eh_nuovoValore(this, new EventArgs());
+ }
+ // blocco update!
+ e.Cancel = true;
+ break;
default:
// faccio update!
break;
diff --git a/GMW/GMW/bin/GMW.dll b/GMW/GMW/bin/GMW.dll
index 6a305a03..2e8b49a9 100644
Binary files a/GMW/GMW/bin/GMW.dll and b/GMW/GMW/bin/GMW.dll differ
diff --git a/GMW/GMW/obj/Debug/GMW.dll b/GMW/GMW/obj/Debug/GMW.dll
index 6a305a03..2e8b49a9 100644
Binary files a/GMW/GMW/obj/Debug/GMW.dll and b/GMW/GMW/obj/Debug/GMW.dll differ