60 lines
1.5 KiB
C#
60 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 NKC_WF.WebUserControls
|
|
{
|
|
public partial class cmp_orderPrint : BaseUserControl
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Macchina selezionata
|
|
/// </summary>
|
|
public string MachineSel
|
|
{
|
|
get
|
|
{
|
|
return hfMachineSel.Value;
|
|
}
|
|
set
|
|
{
|
|
hfMachineSel.Value = value;
|
|
cmp_MU_bins.MachineSel = value;
|
|
cmp_MU_carts.MachineSel = value;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// BatchId corrente...
|
|
/// </summary>
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
} |