add heigt data

This commit is contained in:
2025-11-05 14:26:24 +08:00
parent e610ceeeb3
commit 292075db7f
3 changed files with 4912 additions and 4868 deletions

View File

@@ -43,20 +43,20 @@
this.lbl_readOcrResult = new System.Windows.Forms.Label();
this.lbl_ocrResultState = new System.Windows.Forms.Label();
this.tableLayoutPanel_productInformtion = new System.Windows.Forms.TableLayoutPanel();
this.lbl_DistYShow = new System.Windows.Forms.Label();
this.lbl_DistXShow = new System.Windows.Forms.Label();
this.lbl_GradientShow = new System.Windows.Forms.Label();
this.lbl_widthShow = new System.Windows.Forms.Label();
this.lbl_ProductStandardShow = new System.Windows.Forms.Label();
this.lbl_NOFShow = new System.Windows.Forms.Label();
this.lbl_QSVShow = new System.Windows.Forms.Label();
this.lbl_DistY = new System.Windows.Forms.Label();
this.lbl_QSV = new System.Windows.Forms.Label();
this.lbl_DistX = new System.Windows.Forms.Label();
this.lbl_Gradient = new System.Windows.Forms.Label();
this.lbl_width = new System.Windows.Forms.Label();
this.lbl_ProductStandard = new System.Windows.Forms.Label();
this.lbl_NOF = new System.Windows.Forms.Label();
this.lbl_NO = new System.Windows.Forms.Label();
this.lbl_QSV = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.Location_Display = new Cognex.VisionPro.CogRecordDisplay();
this.Ocr_picBox = new System.Windows.Forms.PictureBox();
this.btn_manualOcr = new System.Windows.Forms.Button();
@@ -97,7 +97,7 @@
this.panel_OrderInformation = new System.Windows.Forms.Panel();
this.lbl_orderinfo = new System.Windows.Forms.Label();
this.panel_AutoRun = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.menuStrip_topmenu = new System.Windows.Forms.MenuStrip();
this.tableLayoutPanel_mainForm = new System.Windows.Forms.TableLayoutPanel();
this.panel_midup = new System.Windows.Forms.Panel();
@@ -109,6 +109,9 @@
this.panel_auto = new System.Windows.Forms.Panel();
this.panel_locationDisplay = new System.Windows.Forms.Panel();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.button2 = new System.Windows.Forms.Button();
this.label5 = new System.Windows.Forms.Label();
this.lbl_height = new System.Windows.Forms.Label();
this.tableLayoutPanel_productInformtion.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.Location_Display)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.Ocr_picBox)).BeginInit();
@@ -261,194 +264,196 @@
this.tableLayoutPanel_productInformtion.ColumnCount = 2;
this.tableLayoutPanel_productInformtion.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel_productInformtion.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistYShow, 1, 6);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistXShow, 1, 5);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_GradientShow, 1, 4);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_widthShow, 1, 3);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_ProductStandardShow, 1, 2);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_NOFShow, 1, 1);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_QSVShow, 1, 0);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistY, 0, 6);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_QSV, 0, 0);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistX, 0, 5);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_Gradient, 0, 4);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_width, 0, 3);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_ProductStandard, 0, 2);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_NOF, 0, 1);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_height, 1, 4);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label5, 0, 4);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistY, 1, 7);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_DistX, 1, 6);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_Gradient, 1, 5);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_width, 1, 3);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_ProductStandard, 1, 2);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_NO, 1, 1);
this.tableLayoutPanel_productInformtion.Controls.Add(this.lbl_QSV, 1, 0);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label8, 0, 7);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label1, 0, 0);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label7, 0, 6);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label6, 0, 5);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label4, 0, 3);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label3, 0, 2);
this.tableLayoutPanel_productInformtion.Controls.Add(this.label2, 0, 1);
this.tableLayoutPanel_productInformtion.Location = new System.Drawing.Point(2, 38);
this.tableLayoutPanel_productInformtion.Name = "tableLayoutPanel_productInformtion";
this.tableLayoutPanel_productInformtion.RowCount = 7;
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28572F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
this.tableLayoutPanel_productInformtion.RowCount = 8;
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 12.5F));
this.tableLayoutPanel_productInformtion.Size = new System.Drawing.Size(308, 282);
this.tableLayoutPanel_productInformtion.TabIndex = 20;
//
// lbl_DistYShow
//
this.lbl_DistYShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_DistYShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_DistYShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_DistYShow.Location = new System.Drawing.Point(155, 237);
this.lbl_DistYShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_DistYShow.Name = "lbl_DistYShow";
this.lbl_DistYShow.Size = new System.Drawing.Size(150, 38);
this.lbl_DistYShow.TabIndex = 27;
this.lbl_DistYShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_DistXShow
//
this.lbl_DistXShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_DistXShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_DistXShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_DistXShow.Location = new System.Drawing.Point(155, 198);
this.lbl_DistXShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_DistXShow.Name = "lbl_DistXShow";
this.lbl_DistXShow.Size = new System.Drawing.Size(150, 36);
this.lbl_DistXShow.TabIndex = 26;
this.lbl_DistXShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_GradientShow
//
this.lbl_GradientShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_GradientShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_GradientShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_GradientShow.Location = new System.Drawing.Point(155, 159);
this.lbl_GradientShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_GradientShow.Name = "lbl_GradientShow";
this.lbl_GradientShow.Size = new System.Drawing.Size(150, 36);
this.lbl_GradientShow.TabIndex = 25;
this.lbl_GradientShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_widthShow
//
this.lbl_widthShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_widthShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_widthShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_widthShow.Location = new System.Drawing.Point(155, 120);
this.lbl_widthShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_widthShow.Name = "lbl_widthShow";
this.lbl_widthShow.Size = new System.Drawing.Size(150, 36);
this.lbl_widthShow.TabIndex = 24;
this.lbl_widthShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_ProductStandardShow
//
this.lbl_ProductStandardShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_ProductStandardShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_ProductStandardShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_ProductStandardShow.Location = new System.Drawing.Point(155, 81);
this.lbl_ProductStandardShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_ProductStandardShow.Name = "lbl_ProductStandardShow";
this.lbl_ProductStandardShow.Size = new System.Drawing.Size(150, 36);
this.lbl_ProductStandardShow.TabIndex = 23;
this.lbl_ProductStandardShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_NOFShow
//
this.lbl_NOFShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_NOFShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_NOFShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_NOFShow.Location = new System.Drawing.Point(155, 42);
this.lbl_NOFShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_NOFShow.Name = "lbl_NOFShow";
this.lbl_NOFShow.Size = new System.Drawing.Size(150, 36);
this.lbl_NOFShow.TabIndex = 22;
this.lbl_NOFShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_QSVShow
//
this.lbl_QSVShow.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_QSVShow.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_QSVShow.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_QSVShow.Location = new System.Drawing.Point(155, 3);
this.lbl_QSVShow.Margin = new System.Windows.Forms.Padding(0);
this.lbl_QSVShow.Name = "lbl_QSVShow";
this.lbl_QSVShow.Size = new System.Drawing.Size(150, 36);
this.lbl_QSVShow.TabIndex = 21;
this.lbl_QSVShow.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_DistY
//
this.lbl_DistY.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_DistY.Location = new System.Drawing.Point(3, 237);
this.lbl_DistY.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_DistY.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_DistY.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_DistY.Location = new System.Drawing.Point(155, 241);
this.lbl_DistY.Margin = new System.Windows.Forms.Padding(0);
this.lbl_DistY.Name = "lbl_DistY";
this.lbl_DistY.Size = new System.Drawing.Size(149, 41);
this.lbl_DistY.TabIndex = 12;
this.lbl_DistY.Text = "Y距离";
this.lbl_DistY.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl_QSV
//
this.lbl_QSV.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_QSV.Location = new System.Drawing.Point(3, 3);
this.lbl_QSV.Margin = new System.Windows.Forms.Padding(0);
this.lbl_QSV.Name = "lbl_QSV";
this.lbl_QSV.Size = new System.Drawing.Size(149, 36);
this.lbl_QSV.TabIndex = 6;
this.lbl_QSV.Text = "QSV";
this.lbl_QSV.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_DistY.Size = new System.Drawing.Size(150, 38);
this.lbl_DistY.TabIndex = 27;
this.lbl_DistY.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_DistX
//
this.lbl_DistX.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_DistX.Location = new System.Drawing.Point(3, 198);
this.lbl_DistX.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_DistX.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_DistX.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_DistX.Location = new System.Drawing.Point(155, 207);
this.lbl_DistX.Margin = new System.Windows.Forms.Padding(0);
this.lbl_DistX.Name = "lbl_DistX";
this.lbl_DistX.Size = new System.Drawing.Size(149, 36);
this.lbl_DistX.TabIndex = 7;
this.lbl_DistX.Text = "X距离";
this.lbl_DistX.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_DistX.Size = new System.Drawing.Size(150, 31);
this.lbl_DistX.TabIndex = 26;
this.lbl_DistX.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_Gradient
//
this.lbl_Gradient.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_Gradient.Location = new System.Drawing.Point(3, 159);
this.lbl_Gradient.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_Gradient.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_Gradient.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_Gradient.Location = new System.Drawing.Point(155, 173);
this.lbl_Gradient.Margin = new System.Windows.Forms.Padding(0);
this.lbl_Gradient.Name = "lbl_Gradient";
this.lbl_Gradient.Size = new System.Drawing.Size(149, 36);
this.lbl_Gradient.TabIndex = 8;
this.lbl_Gradient.Text = "梯度:";
this.lbl_Gradient.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_Gradient.Size = new System.Drawing.Size(150, 31);
this.lbl_Gradient.TabIndex = 25;
this.lbl_Gradient.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_width
//
this.lbl_width.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_width.Location = new System.Drawing.Point(3, 120);
this.lbl_width.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_width.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_width.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_width.Location = new System.Drawing.Point(155, 105);
this.lbl_width.Margin = new System.Windows.Forms.Padding(0);
this.lbl_width.Name = "lbl_width";
this.lbl_width.Size = new System.Drawing.Size(149, 36);
this.lbl_width.TabIndex = 9;
this.lbl_width.Text = "包材宽度:";
this.lbl_width.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_width.Size = new System.Drawing.Size(150, 31);
this.lbl_width.TabIndex = 24;
this.lbl_width.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_ProductStandard
//
this.lbl_ProductStandard.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_ProductStandard.Location = new System.Drawing.Point(3, 81);
this.lbl_ProductStandard.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_ProductStandard.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_ProductStandard.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_ProductStandard.Location = new System.Drawing.Point(155, 71);
this.lbl_ProductStandard.Margin = new System.Windows.Forms.Padding(0);
this.lbl_ProductStandard.Name = "lbl_ProductStandard";
this.lbl_ProductStandard.Size = new System.Drawing.Size(149, 36);
this.lbl_ProductStandard.TabIndex = 10;
this.lbl_ProductStandard.Text = "产品规格:";
this.lbl_ProductStandard.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_ProductStandard.Size = new System.Drawing.Size(150, 31);
this.lbl_ProductStandard.TabIndex = 23;
this.lbl_ProductStandard.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_NOF
// lbl_NO
//
this.lbl_NOF.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbl_NOF.Location = new System.Drawing.Point(3, 42);
this.lbl_NOF.Margin = new System.Windows.Forms.Padding(0);
this.lbl_NOF.Name = "lbl_NOF";
this.lbl_NOF.Size = new System.Drawing.Size(149, 36);
this.lbl_NOF.TabIndex = 11;
this.lbl_NOF.Text = "Number Of Lanes";
this.lbl_NOF.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.lbl_NO.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_NO.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_NO.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_NO.Location = new System.Drawing.Point(155, 37);
this.lbl_NO.Margin = new System.Windows.Forms.Padding(0);
this.lbl_NO.Name = "lbl_NO";
this.lbl_NO.Size = new System.Drawing.Size(150, 31);
this.lbl_NO.TabIndex = 22;
this.lbl_NO.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// lbl_QSV
//
this.lbl_QSV.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_QSV.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_QSV.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_QSV.Location = new System.Drawing.Point(155, 3);
this.lbl_QSV.Margin = new System.Windows.Forms.Padding(0);
this.lbl_QSV.Name = "lbl_QSV";
this.lbl_QSV.Size = new System.Drawing.Size(150, 31);
this.lbl_QSV.TabIndex = 21;
this.lbl_QSV.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// label8
//
this.label8.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(3, 241);
this.label8.Margin = new System.Windows.Forms.Padding(0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(149, 38);
this.label8.TabIndex = 12;
this.label8.Text = "Y距离";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label1
//
this.label1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(3, 3);
this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(149, 31);
this.label1.TabIndex = 6;
this.label1.Text = "QSV";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label7
//
this.label7.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.Location = new System.Drawing.Point(3, 207);
this.label7.Margin = new System.Windows.Forms.Padding(0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(149, 31);
this.label7.TabIndex = 7;
this.label7.Text = "X距离";
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label6
//
this.label6.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.Location = new System.Drawing.Point(3, 173);
this.label6.Margin = new System.Windows.Forms.Padding(0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(149, 31);
this.label6.TabIndex = 8;
this.label6.Text = "梯度:";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.Location = new System.Drawing.Point(3, 105);
this.label4.Margin = new System.Windows.Forms.Padding(0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(149, 31);
this.label4.TabIndex = 9;
this.label4.Text = "包材宽度:";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(3, 71);
this.label3.Margin = new System.Windows.Forms.Padding(0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(149, 31);
this.label3.TabIndex = 10;
this.label3.Text = "产品规格:";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(3, 37);
this.label2.Margin = new System.Windows.Forms.Padding(0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(149, 31);
this.label2.TabIndex = 11;
this.label2.Text = "Number Of Lanes";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Location_Display
//
@@ -953,7 +958,7 @@
this.panel_AutoRun.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel_AutoRun.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel_AutoRun.Controls.Add(this.label3);
this.panel_AutoRun.Controls.Add(this.label9);
this.panel_AutoRun.Controls.Add(this.check_Autorun);
this.panel_AutoRun.Location = new System.Drawing.Point(2, 345);
this.panel_AutoRun.Name = "panel_AutoRun";
@@ -961,19 +966,19 @@
this.panel_AutoRun.Size = new System.Drawing.Size(314, 144);
this.panel_AutoRun.TabIndex = 30;
//
// label3
// label9
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
this.label9.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label3.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(-3, -1);
this.label3.Margin = new System.Windows.Forms.Padding(3);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(317, 35);
this.label3.TabIndex = 26;
this.label3.Text = "自动运行";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label9.BackColor = System.Drawing.Color.DeepSkyBlue;
this.label9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label9.Location = new System.Drawing.Point(-3, -1);
this.label9.Margin = new System.Windows.Forms.Padding(3);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(317, 35);
this.label9.TabIndex = 26;
this.label9.Text = "自动运行";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// menuStrip_topmenu
//
@@ -1006,6 +1011,7 @@
//
// panel_midup
//
this.panel_midup.Controls.Add(this.button2);
this.panel_midup.Controls.Add(this.button1);
this.panel_midup.Controls.Add(this.listBox1);
this.panel_midup.Controls.Add(this.btn_StarDet_manual);
@@ -1107,6 +1113,42 @@
this.panel_locationDisplay.Size = new System.Drawing.Size(478, 388);
this.panel_locationDisplay.TabIndex = 0;
//
// button2
//
this.button2.BackColor = System.Drawing.Color.LimeGreen;
this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button2.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(26, 219);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(149, 46);
this.button2.TabIndex = 28;
this.button2.Text = "测试坐标";
this.toolTip.SetToolTip(this.button2, "此操作为当前暂定方式");
this.button2.UseVisualStyleBackColor = false;
//
// label5
//
this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.Location = new System.Drawing.Point(3, 139);
this.label5.Margin = new System.Windows.Forms.Padding(0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(149, 31);
this.label5.TabIndex = 28;
this.label5.Text = "包材高度:";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbl_height
//
this.lbl_height.BackColor = System.Drawing.SystemColors.ControlLightLight;
this.lbl_height.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lbl_height.Font = new System.Drawing.Font("宋体", 12F);
this.lbl_height.Location = new System.Drawing.Point(155, 139);
this.lbl_height.Margin = new System.Windows.Forms.Padding(0);
this.lbl_height.Name = "lbl_height";
this.lbl_height.Size = new System.Drawing.Size(150, 31);
this.lbl_height.TabIndex = 29;
this.lbl_height.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@@ -1158,20 +1200,20 @@
private System.Windows.Forms.Label lbl_readOcrResult;
private System.Windows.Forms.Label lbl_ocrResultState;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel_productInformtion;
private System.Windows.Forms.Label lbl_QSVShow;
private System.Windows.Forms.Label lbl_DistY;
private System.Windows.Forms.Label lbl_QSV;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label lbl_DistY;
private System.Windows.Forms.Label lbl_DistX;
private System.Windows.Forms.Label lbl_Gradient;
private System.Windows.Forms.Label lbl_width;
private System.Windows.Forms.Label lbl_ProductStandard;
private System.Windows.Forms.Label lbl_NOF;
private System.Windows.Forms.Label lbl_DistYShow;
private System.Windows.Forms.Label lbl_DistXShow;
private System.Windows.Forms.Label lbl_GradientShow;
private System.Windows.Forms.Label lbl_widthShow;
private System.Windows.Forms.Label lbl_ProductStandardShow;
private System.Windows.Forms.Label lbl_NOFShow;
private System.Windows.Forms.Label lbl_NO;
private Cognex.VisionPro.CogRecordDisplay Location_Display;
private System.Windows.Forms.PictureBox Ocr_picBox;
private System.Windows.Forms.Button btn_manualOcr;
@@ -1211,7 +1253,7 @@
private System.Windows.Forms.Panel panel_OrderInformation;
private System.Windows.Forms.Label lbl_orderinfo;
private System.Windows.Forms.Panel panel_AutoRun;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.MenuStrip menuStrip_topmenu;
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel_mainForm;
private System.Windows.Forms.Panel panel_locationDisplay;
@@ -1224,6 +1266,9 @@
private System.Windows.Forms.ListView list_Log;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.Label lbl_height;
private System.Windows.Forms.Label label5;
}
}

View File

@@ -695,11 +695,11 @@ namespace TetraPackOCR
if (sheet1.Cells[i, 3].Value.ToString() == order)
{
currentQSV = sheet1.Cells[i, 4].Value.ToString();
lbl_QSVShow.Text = currentQSV;
lbl_QSV.Text = currentQSV;
log.Info("当前订单QSV:" + currentQSV);
NumberOfLanes = Convert.ToInt32(sheet1.Cells[i, 5].Value.ToString());
log.Info("当前订单Number Of Lanes:" + NumberOfLanes);
lbl_NOFShow.Text = sheet1.Cells[i, 5].Value.ToString();
lbl_NO.Text = sheet1.Cells[i, 5].Value.ToString();
int num = 0;
for (int k = 0; k < 10; k++)
@@ -737,13 +737,16 @@ namespace TetraPackOCR
if (qsv == currentQSV)
{
m_ProductStandard = sheet2.Cells[j, 2].Value.ToString();
lbl_ProductStandardShow.Text = m_ProductStandard;
lbl_ProductStandard.Text = m_ProductStandard;
log.Info("当前订单产品编号:" + m_ProductStandard);
m_width = Convert.ToDouble(sheet2.Cells[j, 3].Value.ToString());
lbl_widthShow.Text = sheet2.Cells[j, 3].Value.ToString();
lbl_width.Text = sheet2.Cells[j, 3].Value.ToString();
log.Info("当前订单幅宽:" + m_width);
m_Gradient = Convert.ToDouble(sheet2.Cells[j, 4].Value.ToString());
lbl_GradientShow.Text = sheet2.Cells[j, 4].Value.ToString();
m_height = Convert.ToDouble(sheet2.Cells[j, 4].Value.ToString());
lbl_height.Text = sheet2.Cells[j, 4].Value.ToString();
log.Info("当前订单幅高:" + m_height);
m_Gradient = Convert.ToDouble(sheet2.Cells[j, 5].Value.ToString());
lbl_Gradient.Text = sheet2.Cells[j, 5].Value.ToString();
log.Info("当前订单梯度:" + m_Gradient);
break;
}
@@ -767,10 +770,10 @@ namespace TetraPackOCR
string[] X = x_y[0].Split(':');
string[] Y = x_y[1].Split(':');
m_DistX = Convert.ToDouble(X[1].Replace("mm", ""));
lbl_DistXShow.Text = X[1].Replace("mm", "");
lbl_DistX.Text = X[1].Replace("mm", "");
log.Info("当前订单X偏移:" + m_DistX);
m_DistY = Convert.ToDouble(Y[1].Replace("mm", ""));
lbl_DistYShow.Text = Y[1].Replace("mm", "");
lbl_DistY.Text = Y[1].Replace("mm", "");
log.Info("当前订单Y偏移:" + m_DistY);
break;
}
@@ -1033,13 +1036,13 @@ namespace TetraPackOCR
/// </summary>
void ClearDataShow()
{
lbl_QSVShow.Text = "";
lbl_NOFShow.Text = "";
lbl_ProductStandardShow.Text = "";
lbl_widthShow.Text = "";
lbl_GradientShow.Text = "";
lbl_DistXShow.Text = "";
lbl_DistYShow.Text = "";
lbl_QSV.Text = "";
lbl_NO.Text = "";
lbl_ProductStandard.Text = "";
lbl_width.Text = "";
lbl_Gradient.Text = "";
lbl_DistX.Text = "";
lbl_DistY.Text = "";
}
private void txt_OrderNum_KeyDown(object sender, KeyEventArgs e)

File diff suppressed because it is too large Load Diff