using Bro.UI.Model.Winform;
|
using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using System.Windows.Forms;
|
|
namespace Bro.M141.Process.UI
|
{
|
//[MenuNode("生产统计汇总-良率记录", "生产统计汇总-良率记录", 5, Common.Helper.EnumHelper.TopMenu.SystemInfo, MenuNodeType.Form)]
|
public partial class FormStatisticInfo_OKRate : MenuFormBase
|
{
|
M141Process M084Process => Process as M141Process;
|
M141Config M084Config => Process.IConfig as M141Config;
|
|
System.Threading.Timer _refreshUITimer = null;
|
|
public FormStatisticInfo_OKRate()
|
{
|
InitializeComponent();
|
|
_refreshUITimer = new System.Threading.Timer(RefreshUI, null, -1, -1);
|
}
|
|
public override void OnCustomizedLoad()
|
{
|
base.OnCustomizedLoad();
|
}
|
|
public override void OnProcessUpdated()
|
{
|
base.OnProcessUpdated();
|
|
if (M084Process != null)
|
{
|
M084Process.UploadProductForStatistic -= M084Process_UploadProductForStatistic;
|
M084Process.UploadProductForStatistic += M084Process_UploadProductForStatistic;
|
}
|
}
|
|
public override void OnCustomizedDispose()
|
{
|
base.OnCustomizedDispose();
|
|
if (M084Process != null)
|
{
|
M084Process.UploadProductForStatistic -= M084Process_UploadProductForStatistic;
|
}
|
}
|
|
private void M084Process_UploadProductForStatistic(object obj)
|
{
|
_refreshUITimer.Change(500, -1);
|
}
|
|
private void RefreshUI(object? state)
|
{
|
//throw new NotImplementedException();
|
}
|
|
}
|
}
|