Files
NKC/NKC_WF/site/MachineLoad.aspx.cs
T
2020-07-27 15:05:53 +02:00

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();
}
}
}