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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
namespace Bro.M141.Process.UI
{
    partial class FrmInspectionPoint
    {
        /// <summary> 
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;
 
        /// <summary> 
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
 
        #region 组件设计器生成的代码
 
        /// <summary> 
        /// 设计器支持所需的方法 - 不要修改
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            DataGridViewCellStyle dataGridViewCellStyle1 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle5 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle6 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
            DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
            tableLayoutPanel1 = new TableLayoutPanel();
            dgvSpotDefects = new Sunny.UI.UIDataGridView();
            clPositionNum = new DataGridViewTextBoxColumn();
            Column8 = new DataGridViewTextBoxColumn();
            clDefect = new DataGridViewTextBoxColumn();
            Column1 = new DataGridViewTextBoxColumn();
            Column2 = new DataGridViewTextBoxColumn();
            Column3 = new DataGridViewTextBoxColumn();
            Column4 = new DataGridViewTextBoxColumn();
            Column5 = new DataGridViewTextBoxColumn();
            Column6 = new DataGridViewTextBoxColumn();
            Column7 = new DataGridViewTextBoxColumn();
            clDetectTime = new DataGridViewTextBoxColumn();
            plSpotResult = new DataGridViewTextBoxColumn();
            panel1 = new Panel();
            uiButton4 = new Sunny.UI.UIButton();
            uiButton3 = new Sunny.UI.UIButton();
            textBox1 = new TextBox();
            uiButton2 = new Sunny.UI.UIButton();
            lblLastInspection = new Label();
            uiButton1 = new Sunny.UI.UIButton();
            btnStart = new Sunny.UI.UIButton();
            plStatus = new Panel();
            pbStatus = new Sunny.UI.UIProcessBar();
            lblStatus = new Label();
            tableLayoutPanel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)dgvSpotDefects).BeginInit();
            panel1.SuspendLayout();
            plStatus.SuspendLayout();
            SuspendLayout();
            // 
            // tableLayoutPanel1
            // 
            tableLayoutPanel1.ColumnCount = 1;
            tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
            tableLayoutPanel1.Controls.Add(dgvSpotDefects, 0, 2);
            tableLayoutPanel1.Controls.Add(panel1, 0, 0);
            tableLayoutPanel1.Controls.Add(plStatus, 0, 1);
            tableLayoutPanel1.Dock = DockStyle.Fill;
            tableLayoutPanel1.Location = new Point(0, 0);
            tableLayoutPanel1.Name = "tableLayoutPanel1";
            tableLayoutPanel1.RowCount = 3;
            tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 45F));
            tableLayoutPanel1.RowStyles.Add(new RowStyle());
            tableLayoutPanel1.RowStyles.Add(new RowStyle());
            tableLayoutPanel1.Size = new Size(1000, 503);
            tableLayoutPanel1.TabIndex = 0;
            // 
            // dgvSpotDefects
            // 
            dgvSpotDefects.AllowUserToAddRows = false;
            dgvSpotDefects.AllowUserToDeleteRows = false;
            dataGridViewCellStyle1.BackColor = Color.FromArgb(235, 243, 255);
            dgvSpotDefects.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
            dgvSpotDefects.BackgroundColor = Color.White;
            dgvSpotDefects.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single;
            dataGridViewCellStyle2.Alignment = DataGridViewContentAlignment.MiddleCenter;
            dataGridViewCellStyle2.BackColor = Color.FromArgb(80, 160, 255);
            dataGridViewCellStyle2.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            dataGridViewCellStyle2.ForeColor = Color.White;
            dataGridViewCellStyle2.SelectionBackColor = SystemColors.Highlight;
            dataGridViewCellStyle2.SelectionForeColor = SystemColors.HighlightText;
            dataGridViewCellStyle2.WrapMode = DataGridViewTriState.True;
            dgvSpotDefects.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
            dgvSpotDefects.ColumnHeadersHeight = 32;
            dgvSpotDefects.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            dgvSpotDefects.Columns.AddRange(new DataGridViewColumn[] { clPositionNum, Column8, clDefect, Column1, Column2, Column3, Column4, Column5, Column6, Column7, clDetectTime, plSpotResult });
            dgvSpotDefects.Dock = DockStyle.Fill;
            dgvSpotDefects.EnableHeadersVisualStyles = false;
            dgvSpotDefects.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            dgvSpotDefects.GridColor = Color.FromArgb(80, 160, 255);
            dgvSpotDefects.Location = new Point(3, 93);
            dgvSpotDefects.Name = "dgvSpotDefects";
            dgvSpotDefects.ReadOnly = true;
            dataGridViewCellStyle5.Alignment = DataGridViewContentAlignment.MiddleLeft;
            dataGridViewCellStyle5.BackColor = Color.FromArgb(235, 243, 255);
            dataGridViewCellStyle5.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            dataGridViewCellStyle5.ForeColor = Color.FromArgb(48, 48, 48);
            dataGridViewCellStyle5.SelectionBackColor = Color.FromArgb(80, 160, 255);
            dataGridViewCellStyle5.SelectionForeColor = Color.White;
            dataGridViewCellStyle5.WrapMode = DataGridViewTriState.True;
            dgvSpotDefects.RowHeadersDefaultCellStyle = dataGridViewCellStyle5;
            dgvSpotDefects.RowHeadersWidth = 51;
            dgvSpotDefects.RowHeight = 25;
            dataGridViewCellStyle6.BackColor = Color.White;
            dgvSpotDefects.RowsDefaultCellStyle = dataGridViewCellStyle6;
            dgvSpotDefects.RowTemplate.Height = 25;
            dgvSpotDefects.SelectedIndex = -1;
            dgvSpotDefects.ShowGridLine = true;
            dgvSpotDefects.Size = new Size(994, 407);
            dgvSpotDefects.TabIndex = 3;
            // 
            // clPositionNum
            // 
            clPositionNum.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            clPositionNum.DataPropertyName = "PositionNum";
            clPositionNum.HeaderText = "工位";
            clPositionNum.MinimumWidth = 6;
            clPositionNum.Name = "clPositionNum";
            clPositionNum.ReadOnly = true;
            // 
            // Column8
            // 
            Column8.DataPropertyName = "ProduceIndex";
            Column8.HeaderText = "产品序号";
            Column8.Name = "Column8";
            Column8.ReadOnly = true;
            // 
            // clDefect
            // 
            clDefect.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            clDefect.DataPropertyName = "Code";
            dataGridViewCellStyle3.Format = "G";
            dataGridViewCellStyle3.NullValue = null;
            clDefect.DefaultCellStyle = dataGridViewCellStyle3;
            clDefect.HeaderText = "点检项";
            clDefect.MinimumWidth = 6;
            clDefect.Name = "clDefect";
            clDefect.ReadOnly = true;
            // 
            // Column1
            // 
            Column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column1.DataPropertyName = "StandardValue";
            Column1.HeaderText = "标准值";
            Column1.MinimumWidth = 6;
            Column1.Name = "Column1";
            Column1.ReadOnly = true;
            // 
            // Column2
            // 
            Column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column2.DataPropertyName = "MaxValue";
            Column2.HeaderText = "最大值";
            Column2.MinimumWidth = 6;
            Column2.Name = "Column2";
            Column2.ReadOnly = true;
            // 
            // Column3
            // 
            Column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column3.DataPropertyName = "MinValue";
            Column3.HeaderText = "最小值";
            Column3.MinimumWidth = 6;
            Column3.Name = "Column3";
            Column3.ReadOnly = true;
            // 
            // Column4
            // 
            Column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column4.DataPropertyName = "InsertValue";
            Column4.HeaderText = "录入值";
            Column4.MinimumWidth = 6;
            Column4.Name = "Column4";
            Column4.ReadOnly = true;
            // 
            // Column5
            // 
            Column5.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column5.DataPropertyName = "TestValue";
            Column5.HeaderText = "测量值";
            Column5.MinimumWidth = 6;
            Column5.Name = "Column5";
            Column5.ReadOnly = true;
            // 
            // Column6
            // 
            Column6.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column6.DataPropertyName = "Relevance";
            Column6.HeaderText = "相关性";
            Column6.MinimumWidth = 6;
            Column6.Name = "Column6";
            Column6.ReadOnly = true;
            // 
            // Column7
            // 
            Column7.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            Column7.DataPropertyName = "Relevance2";
            Column7.HeaderText = "相关性%";
            Column7.MinimumWidth = 6;
            Column7.Name = "Column7";
            Column7.ReadOnly = true;
            // 
            // clDetectTime
            // 
            clDetectTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            clDetectTime.DataPropertyName = "CheckTime";
            dataGridViewCellStyle4.NullValue = null;
            clDetectTime.DefaultCellStyle = dataGridViewCellStyle4;
            clDetectTime.HeaderText = "检出时间";
            clDetectTime.MinimumWidth = 6;
            clDetectTime.Name = "clDetectTime";
            clDetectTime.ReadOnly = true;
            // 
            // plSpotResult
            // 
            plSpotResult.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            plSpotResult.HeaderText = "结果";
            plSpotResult.MinimumWidth = 6;
            plSpotResult.Name = "plSpotResult";
            plSpotResult.ReadOnly = true;
            // 
            // panel1
            // 
            panel1.Controls.Add(uiButton4);
            panel1.Controls.Add(uiButton3);
            panel1.Controls.Add(textBox1);
            panel1.Controls.Add(uiButton2);
            panel1.Controls.Add(lblLastInspection);
            panel1.Controls.Add(uiButton1);
            panel1.Controls.Add(btnStart);
            panel1.Dock = DockStyle.Fill;
            panel1.Location = new Point(3, 3);
            panel1.Name = "panel1";
            panel1.Size = new Size(994, 39);
            panel1.TabIndex = 0;
            // 
            // uiButton4
            // 
            uiButton4.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            uiButton4.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            uiButton4.IsScaled = false;
            uiButton4.Location = new Point(909, 1);
            uiButton4.MinimumSize = new Size(1, 1);
            uiButton4.Name = "uiButton4";
            uiButton4.Size = new Size(82, 35);
            uiButton4.TabIndex = 8;
            uiButton4.Text = "导出结果";
            uiButton4.Click += uiButton4_Click;
            // 
            // uiButton3
            // 
            uiButton3.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            uiButton3.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            uiButton3.IsScaled = false;
            uiButton3.Location = new Point(744, 1);
            uiButton3.MinimumSize = new Size(1, 1);
            uiButton3.Name = "uiButton3";
            uiButton3.Size = new Size(71, 35);
            uiButton3.TabIndex = 7;
            uiButton3.Text = "刷新";
            uiButton3.Click += uiButton3_Click;
            // 
            // textBox1
            // 
            textBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            textBox1.Location = new Point(417, 11);
            textBox1.Name = "textBox1";
            textBox1.ReadOnly = true;
            textBox1.Size = new Size(233, 21);
            textBox1.TabIndex = 6;
            // 
            // uiButton2
            // 
            uiButton2.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            uiButton2.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            uiButton2.IsScaled = false;
            uiButton2.Location = new Point(821, 1);
            uiButton2.MinimumSize = new Size(1, 1);
            uiButton2.Name = "uiButton2";
            uiButton2.Size = new Size(82, 35);
            uiButton2.TabIndex = 5;
            uiButton2.Text = "导出模板";
            uiButton2.Click += uiButton2_Click;
            // 
            // lblLastInspection
            // 
            lblLastInspection.AutoSize = true;
            lblLastInspection.Font = new Font("Tahoma", 16F, FontStyle.Bold, GraphicsUnit.World);
            lblLastInspection.Location = new Point(119, 9);
            lblLastInspection.Name = "lblLastInspection";
            lblLastInspection.Size = new Size(59, 19);
            lblLastInspection.TabIndex = 4;
            lblLastInspection.Text = "label1";
            // 
            // uiButton1
            // 
            uiButton1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
            uiButton1.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            uiButton1.IsScaled = false;
            uiButton1.Location = new Point(656, 0);
            uiButton1.MinimumSize = new Size(1, 1);
            uiButton1.Name = "uiButton1";
            uiButton1.Size = new Size(82, 35);
            uiButton1.TabIndex = 3;
            uiButton1.Text = "导入Excel";
            uiButton1.Click += uiButton1_Click;
            // 
            // btnStart
            // 
            btnStart.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            btnStart.IsScaled = false;
            btnStart.Location = new Point(13, 1);
            btnStart.MinimumSize = new Size(1, 1);
            btnStart.Name = "btnStart";
            btnStart.Size = new Size(100, 35);
            btnStart.TabIndex = 2;
            btnStart.Text = "点检开始";
            btnStart.Click += btnStart_Click;
            // 
            // plStatus
            // 
            plStatus.Controls.Add(pbStatus);
            plStatus.Controls.Add(lblStatus);
            plStatus.Dock = DockStyle.Fill;
            plStatus.Location = new Point(3, 48);
            plStatus.Name = "plStatus";
            plStatus.Size = new Size(994, 39);
            plStatus.TabIndex = 1;
            plStatus.Visible = false;
            // 
            // pbStatus
            // 
            pbStatus.Anchor = AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right;
            pbStatus.Font = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Point);
            pbStatus.IsScaled = false;
            pbStatus.Location = new Point(119, 3);
            pbStatus.Maximum = 1000;
            pbStatus.MinimumSize = new Size(70, 3);
            pbStatus.Name = "pbStatus";
            pbStatus.Size = new Size(872, 29);
            pbStatus.TabIndex = 2;
            pbStatus.Text = "uiProcessBar1";
            // 
            // lblStatus
            // 
            lblStatus.AutoSize = true;
            lblStatus.Font = new Font("Tahoma", 16F, FontStyle.Italic, GraphicsUnit.World);
            lblStatus.Location = new Point(13, 8);
            lblStatus.Name = "lblStatus";
            lblStatus.Size = new Size(57, 19);
            lblStatus.TabIndex = 1;
            lblStatus.Text = "点检中";
            // 
            // FrmInspectionPoint
            // 
            AutoScaleDimensions = new SizeF(6F, 13F);
            AutoScaleMode = AutoScaleMode.Font;
            Controls.Add(tableLayoutPanel1);
            Margin = new Padding(1, 2, 1, 2);
            Name = "FrmInspectionPoint";
            Size = new Size(1000, 503);
            tableLayoutPanel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)dgvSpotDefects).EndInit();
            panel1.ResumeLayout(false);
            panel1.PerformLayout();
            plStatus.ResumeLayout(false);
            plStatus.PerformLayout();
            ResumeLayout(false);
        }
 
        #endregion
 
        private TableLayoutPanel tableLayoutPanel1;
        private Panel panel1;
        private Sunny.UI.UIButton uiButton1;
        private Sunny.UI.UIButton btnStart;
        private Panel plStatus;
        private Sunny.UI.UIProcessBar pbStatus;
        private Label lblStatus;
        private Sunny.UI.UIDataGridView dgvSpotDefects;
        private Label lblLastInspection;
        private Sunny.UI.UIButton uiButton2;
        private TextBox textBox1;
        private DataGridViewTextBoxColumn clPositionNum;
        private DataGridViewTextBoxColumn Column8;
        private DataGridViewTextBoxColumn clDefect;
        private DataGridViewTextBoxColumn Column1;
        private DataGridViewTextBoxColumn Column2;
        private DataGridViewTextBoxColumn Column3;
        private DataGridViewTextBoxColumn Column4;
        private DataGridViewTextBoxColumn Column5;
        private DataGridViewTextBoxColumn Column6;
        private DataGridViewTextBoxColumn Column7;
        private DataGridViewTextBoxColumn clDetectTime;
        private DataGridViewTextBoxColumn plSpotResult;
        private Sunny.UI.UIButton uiButton3;
        private Sunny.UI.UIButton uiButton4;
    }
}