-
\ No newline at end of file
+
diff --git a/MP-MAG/SMART/printCartOdl.aspx.cs b/MP-MAG/SMART/printCartOdl.aspx.cs
index 645b0c19..97d6b94a 100644
--- a/MP-MAG/SMART/printCartOdl.aspx.cs
+++ b/MP-MAG/SMART/printCartOdl.aspx.cs
@@ -25,6 +25,11 @@ namespace MP_MAG.SMART
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
+ // verifico ci sia ODL
+ bool missingOdl = MagData.MagDataLayer.man.currProdPrintData.IdxOdl <= 0;
+ // di conseguenza mostro stampa oppure selezione ODL...
+ divOdl.Visible = missingOdl;
+ divPrint.Visible = !missingOdl;
}
cmp_printODL.eh_addNew += Cmp_printODL_eh_addNew;
}
diff --git a/MP-MAG/SMART/printCartOdl.aspx.designer.cs b/MP-MAG/SMART/printCartOdl.aspx.designer.cs
index f2d725a4..eb4f8b13 100644
--- a/MP-MAG/SMART/printCartOdl.aspx.designer.cs
+++ b/MP-MAG/SMART/printCartOdl.aspx.designer.cs
@@ -14,6 +14,33 @@ namespace MP_MAG.SMART
public partial class printCartOdl
{
+ ///
+ /// Controllo divOdl.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divOdl;
+
+ ///
+ /// Controllo cmp_listODL.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::MP_MAG.WebUserControls.cmp_listODL cmp_listODL;
+
+ ///
+ /// Controllo divPrint.
+ ///
+ ///
+ /// Campo generato automaticamente.
+ /// Per la modifica, spostare la dichiarazione di campo dal file di progettazione al file code-behind.
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlGenericControl divPrint;
+
///
/// Controllo cmp_currODL.
///
diff --git a/MP-MAG/WebUserControls/cmp_elencoPedane.ascx b/MP-MAG/WebUserControls/cmp_elencoPedane.ascx
index 6ab280e5..b49050bb 100644
--- a/MP-MAG/WebUserControls/cmp_elencoPedane.ascx
+++ b/MP-MAG/WebUserControls/cmp_elencoPedane.ascx
@@ -88,12 +88,19 @@