39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace NKC_WF
|
|
{
|
|
public partial class MachineLoad : BasePage
|
|
{
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!Page.IsPostBack)
|
|
{
|
|
((SiteContent)this.Master).showSearch = false;
|
|
forceRefresh();
|
|
}
|
|
cmp_stackLoading.eh_doRefresh += Cmp_stackLoading_eh_doRefresh;
|
|
}
|
|
|
|
private void Cmp_stackLoading_eh_doRefresh(object sender, EventArgs e)
|
|
{
|
|
forceRefresh();
|
|
}
|
|
|
|
private void forceRefresh()
|
|
{
|
|
cmp_ML_ShDet.BatchId = cmp_stackLoading.BatchIdCurr;
|
|
cmp_ML_ShDet1.BatchId = cmp_stackLoading.BatchIdCurr;
|
|
cmp_ML_ShDet2.BatchId = cmp_stackLoading.BatchIdCurr;
|
|
cmp_ML_ShDet3.BatchId = cmp_stackLoading.BatchIdCurr;
|
|
cmp_ML_ShDet.doUpdate();
|
|
cmp_ML_ShDet1.doUpdate();
|
|
cmp_ML_ShDet2.doUpdate();
|
|
cmp_ML_ShDet3.doUpdate();
|
|
}
|
|
|
|
protected void timerLoad_Tick(object sender, EventArgs e)
|
|
{
|
|
forceRefresh();
|
|
}
|
|
}
|
|
} |