42 lines
829 B
C#
42 lines
829 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace NKC_WF
|
|
{
|
|
public partial class MachineUnload : BasePage
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
doUpdate();
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Batch corrente...
|
|
/// </summary>
|
|
public int BatchId
|
|
{
|
|
set
|
|
{
|
|
hfBatchID.Value = value.ToString();
|
|
}
|
|
get
|
|
{
|
|
int answ = 0;
|
|
int.TryParse(hfBatchID.Value, out answ);
|
|
return answ;
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// Aggiorna componente principale e child components
|
|
/// </summary>
|
|
private void doUpdate()
|
|
{
|
|
//!!!FIXME!!! fare calcolo del VERO batch corrente...
|
|
BatchId = 242; // fixed x test!
|
|
// aggiorno child
|
|
cmp_MU_svgViewer.BatchId = BatchId;
|
|
}
|
|
}
|
|
} |