M182轴承端盖外观缺陷AOI
kingno
2025-05-26 5a405c7dce20d8c79a733c9c786cc42eb59fe81c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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();
        }
 
    }
}