Files
MoonPro.net/MP-MAG/SMART/printCartOdl.aspx.cs
T

56 lines
1.5 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MP_MAG.SMART
{
public partial class printCartOdl : BasePage
{
#region Private Methods
private void checkVisibility()
{
// 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;
if (divPrint.Visible)
{
cmp_currODL.forceReload();
}
}
private void Cmp_printODL_eh_addNew(object sender, EventArgs e)
{
cmp_UdcODL.doUpdate();
}
#endregion Private Methods
#region Protected Methods
protected void lbtResetOdl_Click(object sender, EventArgs e)
{
var printData = MagData.MagDataLayer.man.currProdPrintData;
printData.IdxOdl = -2;
MagData.MagDataLayer.man.currProdPrintData = printData;
checkVisibility();
}
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
((Site)this.Master).showSearch = false;
checkVisibility();
}
cmp_printODL.eh_addNew += Cmp_printODL_eh_addNew;
}
#endregion Protected Methods
}
}