using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace NKC_WF.WebUserControls { public partial class cmp_orderPrint : BaseUserControl { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { } } /// /// Macchina selezionata /// public string MachineSel { get { return hfMachineSel.Value; } set { hfMachineSel.Value = value; cmp_MU_bins.MachineSel = value; cmp_MU_carts.MachineSel = value; } } /// /// BatchId corrente... /// public int BatchId { set { hfBatchID.Value = value.ToString(); cmp_MU_bins.BatchId = value; cmp_MU_carts.BatchId = value; // calcolo macchina var tabBL = DLMan.taBL.getByKey(value); if (tabBL != null && tabBL.Count > 0) { var rigaBL = tabBL[0]; MachineSel = rigaBL.PlaceCod; } } get { int answ = 0; int.TryParse(hfBatchID.Value, out answ); return answ; } } } }