ruoxing.wang 14 hours ago
parent
commit
a1b3331ed0
  1. 166
      FacOneZPStation/FrmZP.Designer.cs
  2. 396
      InjectionPC/FrmMain2411.Designer.cs
  3. 54
      PaintingPC/FrmQuality.Designer.cs
  4. 236
      PaintingPC/FrmQuality.cs
  5. 14
      PaintingPC/Function.cs
  6. 325
      PunchingMistake/FrmAssemble.Designer.cs
  7. 2
      PunchingMistake/FrmAssemble.cs
  8. 14
      PunchingMistake/FrmLogin.cs
  9. 126
      PunchingMistake/FrmQualityNew.cs
  10. 8
      PunchingMistake/FrmQualityNew1.cs
  11. 182
      PunchingMistake/Function2.cs
  12. 2
      PunchingMistake/Function3.cs
  13. 2
      PunchingMistake/Program.cs

166
FacOneZPStation/FrmZP.Designer.cs

@ -76,7 +76,7 @@
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.51529F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.51529F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.62445F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.62445F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 32.86026F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 32.86026F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 807F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 744F));
this.tableLayoutPanel3.Controls.Add(this.button6, 3, 0); this.tableLayoutPanel3.Controls.Add(this.button6, 3, 0);
this.tableLayoutPanel3.Controls.Add(this.button1, 0, 1); this.tableLayoutPanel3.Controls.Add(this.button1, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.button5, 2, 1); this.tableLayoutPanel3.Controls.Add(this.button5, 2, 1);
@ -85,14 +85,14 @@
this.tableLayoutPanel3.Controls.Add(this.button2, 1, 1); this.tableLayoutPanel3.Controls.Add(this.button2, 1, 1);
this.tableLayoutPanel3.Controls.Add(this.button7, 3, 1); this.tableLayoutPanel3.Controls.Add(this.button7, 3, 1);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(7, 1400); this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 1224);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 2; this.tableLayoutPanel3.RowCount = 2;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(2546, 423); this.tableLayoutPanel3.Size = new System.Drawing.Size(2335, 371);
this.tableLayoutPanel3.TabIndex = 3; this.tableLayoutPanel3.TabIndex = 3;
// //
// button6 // button6
@ -101,10 +101,10 @@
this.button6.Dock = System.Windows.Forms.DockStyle.Fill; this.button6.Dock = System.Windows.Forms.DockStyle.Fill;
this.button6.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button6.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button6.ForeColor = System.Drawing.Color.Black; this.button6.ForeColor = System.Drawing.Color.Black;
this.button6.Location = new System.Drawing.Point(1751, 14); this.button6.Location = new System.Drawing.Point(1602, 12);
this.button6.Margin = new System.Windows.Forms.Padding(14); this.button6.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button6.Name = "button6"; this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(781, 183); this.button6.Size = new System.Drawing.Size(720, 161);
this.button6.TabIndex = 7; this.button6.TabIndex = 7;
this.button6.Text = "手动打印箱单"; this.button6.Text = "手动打印箱单";
this.button6.UseVisualStyleBackColor = false; this.button6.UseVisualStyleBackColor = false;
@ -115,10 +115,10 @@
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.button1.Dock = System.Windows.Forms.DockStyle.Fill; this.button1.Dock = System.Windows.Forms.DockStyle.Fill;
this.button1.Font = new System.Drawing.Font("黑体", 16F); this.button1.Font = new System.Drawing.Font("黑体", 16F);
this.button1.Location = new System.Drawing.Point(7, 217); this.button1.Location = new System.Drawing.Point(6, 190);
this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1"; this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(568, 200); this.button1.Size = new System.Drawing.Size(521, 176);
this.button1.TabIndex = 6; this.button1.TabIndex = 6;
this.button1.Text = "打印标签"; this.button1.Text = "打印标签";
this.button1.UseVisualStyleBackColor = false; this.button1.UseVisualStyleBackColor = false;
@ -130,10 +130,10 @@
this.button5.Dock = System.Windows.Forms.DockStyle.Fill; this.button5.Dock = System.Windows.Forms.DockStyle.Fill;
this.button5.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button5.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button5.ForeColor = System.Drawing.Color.Black; this.button5.ForeColor = System.Drawing.Color.Black;
this.button5.Location = new System.Drawing.Point(1180, 225); this.button5.Location = new System.Drawing.Point(1080, 197);
this.button5.Margin = new System.Windows.Forms.Padding(14); this.button5.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button5.Name = "button5"; this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(543, 184); this.button5.Size = new System.Drawing.Size(496, 162);
this.button5.TabIndex = 5; this.button5.TabIndex = 5;
this.button5.Text = "不合格"; this.button5.Text = "不合格";
this.button5.UseVisualStyleBackColor = false; this.button5.UseVisualStyleBackColor = false;
@ -144,10 +144,10 @@
this.button4.BackColor = System.Drawing.Color.RoyalBlue; this.button4.BackColor = System.Drawing.Color.RoyalBlue;
this.button4.Dock = System.Windows.Forms.DockStyle.Fill; this.button4.Dock = System.Windows.Forms.DockStyle.Fill;
this.button4.Font = new System.Drawing.Font("黑体", 16F); this.button4.Font = new System.Drawing.Font("黑体", 16F);
this.button4.Location = new System.Drawing.Point(589, 6); this.button4.Location = new System.Drawing.Point(539, 5);
this.button4.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.button4.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button4.Name = "button4"; this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(570, 199); this.button4.Size = new System.Drawing.Size(522, 175);
this.button4.TabIndex = 4; this.button4.TabIndex = 4;
this.button4.Text = "下一计划"; this.button4.Text = "下一计划";
this.button4.UseVisualStyleBackColor = false; this.button4.UseVisualStyleBackColor = false;
@ -158,10 +158,10 @@
this.button3.BackColor = System.Drawing.Color.Aqua; this.button3.BackColor = System.Drawing.Color.Aqua;
this.button3.Dock = System.Windows.Forms.DockStyle.Fill; this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.Font = new System.Drawing.Font("黑体", 16F); this.button3.Font = new System.Drawing.Font("黑体", 16F);
this.button3.Location = new System.Drawing.Point(7, 6); this.button3.Location = new System.Drawing.Point(6, 5);
this.button3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.button3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button3.Name = "button3"; this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(568, 199); this.button3.Size = new System.Drawing.Size(521, 175);
this.button3.TabIndex = 3; this.button3.TabIndex = 3;
this.button3.Text = "上一计划"; this.button3.Text = "上一计划";
this.button3.UseVisualStyleBackColor = false; this.button3.UseVisualStyleBackColor = false;
@ -173,10 +173,10 @@
this.button2.Dock = System.Windows.Forms.DockStyle.Fill; this.button2.Dock = System.Windows.Forms.DockStyle.Fill;
this.button2.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.button2.Font = new System.Drawing.Font("黑体", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.ForeColor = System.Drawing.Color.Black; this.button2.ForeColor = System.Drawing.Color.Black;
this.button2.Location = new System.Drawing.Point(596, 225); this.button2.Location = new System.Drawing.Point(546, 197);
this.button2.Margin = new System.Windows.Forms.Padding(14); this.button2.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button2.Name = "button2"; this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(556, 184); this.button2.Size = new System.Drawing.Size(508, 162);
this.button2.TabIndex = 2; this.button2.TabIndex = 2;
this.button2.Text = "补打标签"; this.button2.Text = "补打标签";
this.button2.UseVisualStyleBackColor = false; this.button2.UseVisualStyleBackColor = false;
@ -187,10 +187,10 @@
this.button7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128))))); this.button7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.button7.Dock = System.Windows.Forms.DockStyle.Fill; this.button7.Dock = System.Windows.Forms.DockStyle.Fill;
this.button7.Font = new System.Drawing.Font("黑体", 16F); this.button7.Font = new System.Drawing.Font("黑体", 16F);
this.button7.Location = new System.Drawing.Point(1744, 217); this.button7.Location = new System.Drawing.Point(1595, 190);
this.button7.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.button7.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button7.Name = "button7"; this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(795, 200); this.button7.Size = new System.Drawing.Size(734, 176);
this.button7.TabIndex = 8; this.button7.TabIndex = 8;
this.button7.Text = "补打箱单"; this.button7.Text = "补打箱单";
this.button7.UseVisualStyleBackColor = false; this.button7.UseVisualStyleBackColor = false;
@ -202,11 +202,11 @@
this.label7.Dock = System.Windows.Forms.DockStyle.Fill; this.label7.Dock = System.Windows.Forms.DockStyle.Fill;
this.label7.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label7.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label7.ForeColor = System.Drawing.Color.White; this.label7.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(1385, 3); this.label7.Location = new System.Drawing.Point(1264, 3);
this.label7.Margin = new System.Windows.Forms.Padding(2); this.label7.Margin = new System.Windows.Forms.Padding(2);
this.label7.Name = "label7"; this.label7.Name = "label7";
this.tableLayoutPanel4.SetRowSpan(this.label7, 2); this.tableLayoutPanel4.SetRowSpan(this.label7, 2);
this.label7.Size = new System.Drawing.Size(272, 241); this.label7.Size = new System.Drawing.Size(249, 210);
this.label7.TabIndex = 32; this.label7.TabIndex = 32;
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
// //
@ -214,10 +214,10 @@
// //
this.textBox2.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox2.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox2.Font = new System.Drawing.Font("黑体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox2.Font = new System.Drawing.Font("黑体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(399, 127); this.textBox2.Location = new System.Drawing.Point(365, 111);
this.textBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.textBox2.Name = "textBox2"; this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(979, 87); this.textBox2.Size = new System.Drawing.Size(892, 77);
this.textBox2.TabIndex = 30; this.textBox2.TabIndex = 30;
this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown); this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown);
// //
@ -226,10 +226,10 @@
this.label3.Dock = System.Windows.Forms.DockStyle.Fill; this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
this.label3.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.White; this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(5, 122); this.label3.Location = new System.Drawing.Point(5, 107);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(385, 124); this.label3.Size = new System.Drawing.Size(351, 108);
this.label3.TabIndex = 29; this.label3.TabIndex = 29;
this.label3.Text = "扫描物料条码"; this.label3.Text = "扫描物料条码";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -239,10 +239,10 @@
this.labOrderNo.Dock = System.Windows.Forms.DockStyle.Fill; this.labOrderNo.Dock = System.Windows.Forms.DockStyle.Fill;
this.labOrderNo.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labOrderNo.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labOrderNo.ForeColor = System.Drawing.Color.White; this.labOrderNo.ForeColor = System.Drawing.Color.White;
this.labOrderNo.Location = new System.Drawing.Point(1662, 249); this.labOrderNo.Location = new System.Drawing.Point(1518, 218);
this.labOrderNo.Margin = new System.Windows.Forms.Padding(2); this.labOrderNo.Margin = new System.Windows.Forms.Padding(2);
this.labOrderNo.Name = "labOrderNo"; this.labOrderNo.Name = "labOrderNo";
this.labOrderNo.Size = new System.Drawing.Size(887, 174); this.labOrderNo.Size = new System.Drawing.Size(818, 151);
this.labOrderNo.TabIndex = 28; this.labOrderNo.TabIndex = 28;
this.labOrderNo.Text = "A64654646464"; this.labOrderNo.Text = "A64654646464";
this.labOrderNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labOrderNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -253,10 +253,10 @@
this.label4.Dock = System.Windows.Forms.DockStyle.Fill; this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
this.label4.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.ForeColor = System.Drawing.Color.White; this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(1385, 249); this.label4.Location = new System.Drawing.Point(1264, 218);
this.label4.Margin = new System.Windows.Forms.Padding(2); this.label4.Margin = new System.Windows.Forms.Padding(2);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(272, 174); this.label4.Size = new System.Drawing.Size(249, 151);
this.label4.TabIndex = 27; this.label4.TabIndex = 27;
this.label4.Text = "计划编号"; this.label4.Text = "计划编号";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -267,10 +267,10 @@
this.labStationNo.Dock = System.Windows.Forms.DockStyle.Fill; this.labStationNo.Dock = System.Windows.Forms.DockStyle.Fill;
this.labStationNo.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labStationNo.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStationNo.ForeColor = System.Drawing.Color.White; this.labStationNo.ForeColor = System.Drawing.Color.White;
this.labStationNo.Location = new System.Drawing.Point(397, 249); this.labStationNo.Location = new System.Drawing.Point(363, 218);
this.labStationNo.Margin = new System.Windows.Forms.Padding(2); this.labStationNo.Margin = new System.Windows.Forms.Padding(2);
this.labStationNo.Name = "labStationNo"; this.labStationNo.Name = "labStationNo";
this.labStationNo.Size = new System.Drawing.Size(983, 174); this.labStationNo.Size = new System.Drawing.Size(896, 151);
this.labStationNo.TabIndex = 26; this.labStationNo.TabIndex = 26;
this.labStationNo.Text = "V253-MF-S后保下部延伸焊接"; this.labStationNo.Text = "V253-MF-S后保下部延伸焊接";
this.labStationNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labStationNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -281,10 +281,10 @@
this.label2.Dock = System.Windows.Forms.DockStyle.Fill; this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
this.label2.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.White; this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(3, 249); this.label2.Location = new System.Drawing.Point(3, 218);
this.label2.Margin = new System.Windows.Forms.Padding(2); this.label2.Margin = new System.Windows.Forms.Padding(2);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(389, 174); this.label2.Size = new System.Drawing.Size(355, 151);
this.label2.TabIndex = 25; this.label2.TabIndex = 25;
this.label2.Text = "工位名称"; this.label2.Text = "工位名称";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -294,10 +294,10 @@
this.labPName.Dock = System.Windows.Forms.DockStyle.Fill; this.labPName.Dock = System.Windows.Forms.DockStyle.Fill;
this.labPName.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labPName.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labPName.ForeColor = System.Drawing.Color.White; this.labPName.ForeColor = System.Drawing.Color.White;
this.labPName.Location = new System.Drawing.Point(1662, 428); this.labPName.Location = new System.Drawing.Point(1518, 374);
this.labPName.Margin = new System.Windows.Forms.Padding(2); this.labPName.Margin = new System.Windows.Forms.Padding(2);
this.labPName.Name = "labPName"; this.labPName.Name = "labPName";
this.labPName.Size = new System.Drawing.Size(887, 284); this.labPName.Size = new System.Drawing.Size(818, 248);
this.labPName.TabIndex = 24; this.labPName.TabIndex = 24;
this.labPName.Text = "MF253 MF S后保"; this.labPName.Text = "MF253 MF S后保";
this.labPName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labPName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -308,10 +308,10 @@
this.label8.Dock = System.Windows.Forms.DockStyle.Fill; this.label8.Dock = System.Windows.Forms.DockStyle.Fill;
this.label8.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label8.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.White; this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(1385, 428); this.label8.Location = new System.Drawing.Point(1264, 374);
this.label8.Margin = new System.Windows.Forms.Padding(2); this.label8.Margin = new System.Windows.Forms.Padding(2);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(272, 284); this.label8.Size = new System.Drawing.Size(249, 248);
this.label8.TabIndex = 23; this.label8.TabIndex = 23;
this.label8.Text = "产品名称"; this.label8.Text = "产品名称";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -322,10 +322,10 @@
this.labPartNo.Dock = System.Windows.Forms.DockStyle.Fill; this.labPartNo.Dock = System.Windows.Forms.DockStyle.Fill;
this.labPartNo.Font = new System.Drawing.Font("黑体", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labPartNo.Font = new System.Drawing.Font("黑体", 42F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labPartNo.ForeColor = System.Drawing.Color.White; this.labPartNo.ForeColor = System.Drawing.Color.White;
this.labPartNo.Location = new System.Drawing.Point(397, 428); this.labPartNo.Location = new System.Drawing.Point(363, 374);
this.labPartNo.Margin = new System.Windows.Forms.Padding(2); this.labPartNo.Margin = new System.Windows.Forms.Padding(2);
this.labPartNo.Name = "labPartNo"; this.labPartNo.Name = "labPartNo";
this.labPartNo.Size = new System.Drawing.Size(983, 284); this.labPartNo.Size = new System.Drawing.Size(896, 248);
this.labPartNo.TabIndex = 22; this.labPartNo.TabIndex = 22;
this.labPartNo.Text = "A2530822665"; this.labPartNo.Text = "A2530822665";
this.labPartNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labPartNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -341,10 +341,10 @@
this.label6.Dock = System.Windows.Forms.DockStyle.Fill; this.label6.Dock = System.Windows.Forms.DockStyle.Fill;
this.label6.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ForeColor = System.Drawing.Color.White; this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(3, 428); this.label6.Location = new System.Drawing.Point(3, 374);
this.label6.Margin = new System.Windows.Forms.Padding(2); this.label6.Margin = new System.Windows.Forms.Padding(2);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(389, 284); this.label6.Size = new System.Drawing.Size(355, 248);
this.label6.TabIndex = 21; this.label6.TabIndex = 21;
this.label6.Text = "产品代码"; this.label6.Text = "产品代码";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -355,10 +355,10 @@
this.labBadCount.Dock = System.Windows.Forms.DockStyle.Fill; this.labBadCount.Dock = System.Windows.Forms.DockStyle.Fill;
this.labBadCount.Font = new System.Drawing.Font("黑体", 60F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labBadCount.Font = new System.Drawing.Font("黑体", 60F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labBadCount.ForeColor = System.Drawing.Color.Lime; this.labBadCount.ForeColor = System.Drawing.Color.Lime;
this.labBadCount.Location = new System.Drawing.Point(1662, 717); this.labBadCount.Location = new System.Drawing.Point(1518, 627);
this.labBadCount.Margin = new System.Windows.Forms.Padding(2); this.labBadCount.Margin = new System.Windows.Forms.Padding(2);
this.labBadCount.Name = "labBadCount"; this.labBadCount.Name = "labBadCount";
this.labBadCount.Size = new System.Drawing.Size(887, 515); this.labBadCount.Size = new System.Drawing.Size(818, 451);
this.labBadCount.TabIndex = 20; this.labBadCount.TabIndex = 20;
this.labBadCount.Text = "0"; this.labBadCount.Text = "0";
this.labBadCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labBadCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -369,10 +369,10 @@
this.labNum.Dock = System.Windows.Forms.DockStyle.Fill; this.labNum.Dock = System.Windows.Forms.DockStyle.Fill;
this.labNum.Font = new System.Drawing.Font("黑体", 60F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labNum.Font = new System.Drawing.Font("黑体", 60F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labNum.ForeColor = System.Drawing.Color.Lime; this.labNum.ForeColor = System.Drawing.Color.Lime;
this.labNum.Location = new System.Drawing.Point(397, 717); this.labNum.Location = new System.Drawing.Point(363, 627);
this.labNum.Margin = new System.Windows.Forms.Padding(2); this.labNum.Margin = new System.Windows.Forms.Padding(2);
this.labNum.Name = "labNum"; this.labNum.Name = "labNum";
this.labNum.Size = new System.Drawing.Size(983, 515); this.labNum.Size = new System.Drawing.Size(896, 451);
this.labNum.TabIndex = 18; this.labNum.TabIndex = 18;
this.labNum.Text = "152/210"; this.labNum.Text = "152/210";
this.labNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -383,10 +383,10 @@
this.label10.Dock = System.Windows.Forms.DockStyle.Fill; this.label10.Dock = System.Windows.Forms.DockStyle.Fill;
this.label10.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label10.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.ForeColor = System.Drawing.Color.White; this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(3, 717); this.label10.Location = new System.Drawing.Point(3, 627);
this.label10.Margin = new System.Windows.Forms.Padding(2); this.label10.Margin = new System.Windows.Forms.Padding(2);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(389, 515); this.label10.Size = new System.Drawing.Size(355, 451);
this.label10.TabIndex = 17; this.label10.TabIndex = 17;
this.label10.Text = "计划/完成数"; this.label10.Text = "计划/完成数";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -399,7 +399,7 @@
this.label14.Location = new System.Drawing.Point(5, 1); this.label14.Location = new System.Drawing.Point(5, 1);
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(385, 120); this.label14.Size = new System.Drawing.Size(351, 105);
this.label14.TabIndex = 12; this.label14.TabIndex = 12;
this.label14.Text = "扫描本体条码"; this.label14.Text = "扫描本体条码";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -408,10 +408,10 @@
// //
this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill; this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.textBox1.Font = new System.Drawing.Font("黑体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.textBox1.Font = new System.Drawing.Font("黑体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(399, 6); this.textBox1.Location = new System.Drawing.Point(365, 5);
this.textBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.textBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.textBox1.Name = "textBox1"; this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(979, 87); this.textBox1.Size = new System.Drawing.Size(892, 77);
this.textBox1.TabIndex = 13; this.textBox1.TabIndex = 13;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown); this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
// //
@ -420,11 +420,11 @@
this.labErrMessage.Dock = System.Windows.Forms.DockStyle.Fill; this.labErrMessage.Dock = System.Windows.Forms.DockStyle.Fill;
this.labErrMessage.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labErrMessage.Font = new System.Drawing.Font("微软雅黑", 15F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labErrMessage.ForeColor = System.Drawing.Color.Red; this.labErrMessage.ForeColor = System.Drawing.Color.Red;
this.labErrMessage.Location = new System.Drawing.Point(1664, 1); this.labErrMessage.Location = new System.Drawing.Point(1520, 1);
this.labErrMessage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); this.labErrMessage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labErrMessage.Name = "labErrMessage"; this.labErrMessage.Name = "labErrMessage";
this.tableLayoutPanel4.SetRowSpan(this.labErrMessage, 2); this.tableLayoutPanel4.SetRowSpan(this.labErrMessage, 2);
this.labErrMessage.Size = new System.Drawing.Size(883, 245); this.labErrMessage.Size = new System.Drawing.Size(814, 214);
this.labErrMessage.TabIndex = 16; this.labErrMessage.TabIndex = 16;
this.labErrMessage.Text = "条码与产品不匹配,重新扫描"; this.labErrMessage.Text = "条码与产品不匹配,重新扫描";
this.labErrMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labErrMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -436,9 +436,9 @@
this.tableLayoutPanel4.ColumnCount = 4; this.tableLayoutPanel4.ColumnCount = 4;
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.52292F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 28.52292F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 71.47708F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 71.47708F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 276F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 253F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 890F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 821F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F)); this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tableLayoutPanel4.Controls.Add(this.label7, 2, 0); this.tableLayoutPanel4.Controls.Add(this.label7, 2, 0);
this.tableLayoutPanel4.Controls.Add(this.textBox2, 1, 1); this.tableLayoutPanel4.Controls.Add(this.textBox2, 1, 1);
this.tableLayoutPanel4.Controls.Add(this.label3, 0, 1); this.tableLayoutPanel4.Controls.Add(this.label3, 0, 1);
@ -458,17 +458,17 @@
this.tableLayoutPanel4.Controls.Add(this.textBox1, 1, 0); this.tableLayoutPanel4.Controls.Add(this.textBox1, 1, 0);
this.tableLayoutPanel4.Controls.Add(this.labErrMessage, 3, 0); this.tableLayoutPanel4.Controls.Add(this.labErrMessage, 3, 0);
this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 154); this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 134);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.tableLayoutPanel4.Name = "tableLayoutPanel4"; this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 5; this.tableLayoutPanel4.RowCount = 5;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.8932F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.8932F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17.47573F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 17.47573F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 25F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40.52419F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40.52419F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 517F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 452F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 35F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(2552, 1235); this.tableLayoutPanel4.Size = new System.Drawing.Size(2339, 1081);
this.tableLayoutPanel4.TabIndex = 2; this.tableLayoutPanel4.TabIndex = 2;
// //
// label12 // label12
@ -477,10 +477,10 @@
this.label12.Dock = System.Windows.Forms.DockStyle.Fill; this.label12.Dock = System.Windows.Forms.DockStyle.Fill;
this.label12.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label12.Font = new System.Drawing.Font("黑体", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.ForeColor = System.Drawing.Color.White; this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(1385, 717); this.label12.Location = new System.Drawing.Point(1264, 627);
this.label12.Margin = new System.Windows.Forms.Padding(2); this.label12.Margin = new System.Windows.Forms.Padding(2);
this.label12.Name = "label12"; this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(272, 515); this.label12.Size = new System.Drawing.Size(249, 451);
this.label12.TabIndex = 19; this.label12.TabIndex = 19;
this.label12.Text = "不合格数"; this.label12.Text = "不合格数";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -490,10 +490,10 @@
this.labTime.BackColor = System.Drawing.Color.Transparent; this.labTime.BackColor = System.Drawing.Color.Transparent;
this.labTime.Dock = System.Windows.Forms.DockStyle.Fill; this.labTime.Dock = System.Windows.Forms.DockStyle.Fill;
this.labTime.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.labTime.Font = new System.Drawing.Font("微软雅黑", 16F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTime.Location = new System.Drawing.Point(1898, 0); this.labTime.Location = new System.Drawing.Point(1737, 0);
this.labTime.Margin = new System.Windows.Forms.Padding(0); this.labTime.Margin = new System.Windows.Forms.Padding(0);
this.labTime.Name = "labTime"; this.labTime.Name = "labTime";
this.labTime.Size = new System.Drawing.Size(662, 149); this.labTime.Size = new System.Drawing.Size(610, 130);
this.labTime.TabIndex = 7; this.labTime.TabIndex = 7;
this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTime.Click += new System.EventHandler(this.labTime_Click); this.labTime.Click += new System.EventHandler(this.labTime_Click);
@ -507,7 +507,7 @@
this.pictureBox1.Location = new System.Drawing.Point(0, 0); this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(0); this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
this.pictureBox1.Name = "pictureBox1"; this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(343, 149); this.pictureBox1.Size = new System.Drawing.Size(314, 130);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0; this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
@ -517,10 +517,10 @@
this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Dock = System.Windows.Forms.DockStyle.Fill; this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
this.label1.Font = new System.Drawing.Font("黑体", 22F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.Font = new System.Drawing.Font("黑体", 22F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(343, 0); this.label1.Location = new System.Drawing.Point(314, 0);
this.label1.Margin = new System.Windows.Forms.Padding(0); this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(1555, 149); this.label1.Size = new System.Drawing.Size(1423, 130);
this.label1.TabIndex = 1; this.label1.TabIndex = 1;
this.label1.Text = "装配工位信息看板"; this.label1.Text = "装配工位信息看板";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -531,7 +531,7 @@
this.tableLayoutPanel2.ColumnCount = 3; this.tableLayoutPanel2.ColumnCount = 3;
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 18.10651F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 18.10651F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 81.89349F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 81.89349F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 661F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 609F));
this.tableLayoutPanel2.Controls.Add(this.labTime, 2, 0); this.tableLayoutPanel2.Controls.Add(this.labTime, 2, 0);
this.tableLayoutPanel2.Controls.Add(this.pictureBox1, 0, 0); this.tableLayoutPanel2.Controls.Add(this.pictureBox1, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.label1, 1, 0); this.tableLayoutPanel2.Controls.Add(this.label1, 1, 0);
@ -541,7 +541,7 @@
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1; this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(2560, 149); this.tableLayoutPanel2.Size = new System.Drawing.Size(2347, 130);
this.tableLayoutPanel2.TabIndex = 0; this.tableLayoutPanel2.TabIndex = 0;
// //
// tableLayoutPanel1 // tableLayoutPanel1
@ -558,18 +558,18 @@
this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.69692F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10.69692F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.30308F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 89.30308F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 434F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 380F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2560, 1829); this.tableLayoutPanel1.Size = new System.Drawing.Size(2347, 1600);
this.tableLayoutPanel1.TabIndex = 9; this.tableLayoutPanel1.TabIndex = 9;
// //
// FrmZP // FrmZP
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2560, 1829); this.ClientSize = new System.Drawing.Size(2347, 1600);
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6); this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmZP"; this.Name = "FrmZP";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmZP"; this.Text = "FrmZP";

396
InjectionPC/FrmMain2411.Designer.cs

File diff suppressed because it is too large

54
PaintingPC/FrmQuality.Designer.cs

@ -55,6 +55,7 @@
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panelAttchColor = new System.Windows.Forms.Panel(); this.panelAttchColor = new System.Windows.Forms.Panel();
this.btnAllowChangeColor = new System.Windows.Forms.Button();
this.lbForeig = new System.Windows.Forms.Label(); this.lbForeig = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.cboxAddColor = new System.Windows.Forms.ComboBox(); this.cboxAddColor = new System.Windows.Forms.ComboBox();
@ -63,7 +64,7 @@
this.btnRepair = new System.Windows.Forms.Button(); this.btnRepair = new System.Windows.Forms.Button();
this.btnAbt = new System.Windows.Forms.Button(); this.btnAbt = new System.Windows.Forms.Button();
this.lableFP = new System.Windows.Forms.Label(); this.lableFP = new System.Windows.Forms.Label();
this.btnAllowChangeColor = new System.Windows.Forms.Button(); this.btnPointRepair = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
@ -297,6 +298,17 @@
this.panelAttchColor.Size = new System.Drawing.Size(1829, 176); this.panelAttchColor.Size = new System.Drawing.Size(1829, 176);
this.panelAttchColor.TabIndex = 0; this.panelAttchColor.TabIndex = 0;
// //
// btnAllowChangeColor
//
this.btnAllowChangeColor.Location = new System.Drawing.Point(1658, 13);
this.btnAllowChangeColor.Name = "btnAllowChangeColor";
this.btnAllowChangeColor.Size = new System.Drawing.Size(168, 81);
this.btnAllowChangeColor.TabIndex = 73;
this.btnAllowChangeColor.Text = "颜色变更";
this.btnAllowChangeColor.UseVisualStyleBackColor = true;
this.btnAllowChangeColor.Visible = false;
this.btnAllowChangeColor.Click += new System.EventHandler(this.btnAllowChangeColor_Click);
//
// lbForeig // lbForeig
// //
this.lbForeig.AutoSize = true; this.lbForeig.AutoSize = true;
@ -327,7 +339,7 @@
this.cboxAddColor.Font = new System.Drawing.Font("微软雅黑", 22F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.cboxAddColor.Font = new System.Drawing.Font("微软雅黑", 22F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboxAddColor.FormattingEnabled = true; this.cboxAddColor.FormattingEnabled = true;
this.cboxAddColor.Location = new System.Drawing.Point(297, 18); this.cboxAddColor.Location = new System.Drawing.Point(297, 18);
this.cboxAddColor.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); this.cboxAddColor.Margin = new System.Windows.Forms.Padding(4);
this.cboxAddColor.Name = "cboxAddColor"; this.cboxAddColor.Name = "cboxAddColor";
this.cboxAddColor.Size = new System.Drawing.Size(1248, 76); this.cboxAddColor.Size = new System.Drawing.Size(1248, 76);
this.cboxAddColor.TabIndex = 0; this.cboxAddColor.TabIndex = 0;
@ -337,9 +349,9 @@
// //
this.btnOk.BackColor = System.Drawing.Color.LawnGreen; this.btnOk.BackColor = System.Drawing.Color.LawnGreen;
this.btnOk.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnOk.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnOk.Location = new System.Drawing.Point(1852, 760); this.btnOk.Location = new System.Drawing.Point(1852, 719);
this.btnOk.Name = "btnOk"; this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(491, 197); this.btnOk.Size = new System.Drawing.Size(491, 163);
this.btnOk.TabIndex = 67; this.btnOk.TabIndex = 67;
this.btnOk.Text = "合 格"; this.btnOk.Text = "合 格";
this.btnOk.UseVisualStyleBackColor = false; this.btnOk.UseVisualStyleBackColor = false;
@ -349,9 +361,9 @@
// //
this.btnNok.BackColor = System.Drawing.Color.Yellow; this.btnNok.BackColor = System.Drawing.Color.Yellow;
this.btnNok.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnNok.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnNok.Location = new System.Drawing.Point(1852, 1626); this.btnNok.Location = new System.Drawing.Point(1852, 1633);
this.btnNok.Name = "btnNok"; this.btnNok.Name = "btnNok";
this.btnNok.Size = new System.Drawing.Size(491, 160); this.btnNok.Size = new System.Drawing.Size(491, 153);
this.btnNok.TabIndex = 68; this.btnNok.TabIndex = 68;
this.btnNok.Text = "其 它"; this.btnNok.Text = "其 它";
this.btnNok.UseVisualStyleBackColor = false; this.btnNok.UseVisualStyleBackColor = false;
@ -361,9 +373,9 @@
// //
this.btnRepair.BackColor = System.Drawing.Color.DodgerBlue; this.btnRepair.BackColor = System.Drawing.Color.DodgerBlue;
this.btnRepair.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnRepair.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRepair.Location = new System.Drawing.Point(1848, 1039); this.btnRepair.Location = new System.Drawing.Point(1852, 940);
this.btnRepair.Name = "btnRepair"; this.btnRepair.Name = "btnRepair";
this.btnRepair.Size = new System.Drawing.Size(491, 197); this.btnRepair.Size = new System.Drawing.Size(491, 168);
this.btnRepair.TabIndex = 69; this.btnRepair.TabIndex = 69;
this.btnRepair.Text = "返 喷"; this.btnRepair.Text = "返 喷";
this.btnRepair.UseVisualStyleBackColor = false; this.btnRepair.UseVisualStyleBackColor = false;
@ -373,9 +385,9 @@
// //
this.btnAbt.BackColor = System.Drawing.Color.OrangeRed; this.btnAbt.BackColor = System.Drawing.Color.OrangeRed;
this.btnAbt.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnAbt.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAbt.Location = new System.Drawing.Point(1848, 1339); this.btnAbt.Location = new System.Drawing.Point(1852, 1173);
this.btnAbt.Name = "btnAbt"; this.btnAbt.Name = "btnAbt";
this.btnAbt.Size = new System.Drawing.Size(491, 190); this.btnAbt.Size = new System.Drawing.Size(491, 155);
this.btnAbt.TabIndex = 70; this.btnAbt.TabIndex = 70;
this.btnAbt.Text = "报 废"; this.btnAbt.Text = "报 废";
this.btnAbt.UseVisualStyleBackColor = false; this.btnAbt.UseVisualStyleBackColor = false;
@ -394,22 +406,25 @@
this.lableFP.Tag = "存在返喷"; this.lableFP.Tag = "存在返喷";
this.lableFP.Text = " "; this.lableFP.Text = " ";
// //
// btnAllowChangeColor // btnPointRepair
// //
this.btnAllowChangeColor.Location = new System.Drawing.Point(1658, 13); this.btnPointRepair.BackColor = System.Drawing.Color.Black;
this.btnAllowChangeColor.Name = "btnAllowChangeColor"; this.btnPointRepair.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnAllowChangeColor.Size = new System.Drawing.Size(168, 81); this.btnPointRepair.ForeColor = System.Drawing.Color.White;
this.btnAllowChangeColor.TabIndex = 73; this.btnPointRepair.Location = new System.Drawing.Point(1852, 1405);
this.btnAllowChangeColor.Text = "颜色变更"; this.btnPointRepair.Name = "btnPointRepair";
this.btnAllowChangeColor.UseVisualStyleBackColor = true; this.btnPointRepair.Size = new System.Drawing.Size(491, 160);
this.btnAllowChangeColor.Visible = false; this.btnPointRepair.TabIndex = 72;
this.btnAllowChangeColor.Click += new System.EventHandler(this.btnAllowChangeColor_Click); this.btnPointRepair.Text = "点 修";
this.btnPointRepair.UseVisualStyleBackColor = false;
this.btnPointRepair.Click += new System.EventHandler(this.btnPointRepair_Click);
// //
// FrmQuality // FrmQuality
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2351, 1789); this.ClientSize = new System.Drawing.Size(2351, 1789);
this.Controls.Add(this.btnPointRepair);
this.Controls.Add(this.lableFP); this.Controls.Add(this.lableFP);
this.Controls.Add(this.btnAbt); this.Controls.Add(this.btnAbt);
this.Controls.Add(this.btnRepair); this.Controls.Add(this.btnRepair);
@ -479,5 +494,6 @@
private System.Windows.Forms.Label lableFP; private System.Windows.Forms.Label lableFP;
private System.Windows.Forms.Label lbForeig; private System.Windows.Forms.Label lbForeig;
private System.Windows.Forms.Button btnAllowChangeColor; private System.Windows.Forms.Button btnAllowChangeColor;
private System.Windows.Forms.Button btnPointRepair;
} }
} }

236
PaintingPC/FrmQuality.cs

@ -14,6 +14,7 @@ using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
using MESClassLibrary.BLL.BasicInfo; using MESClassLibrary.BLL.BasicInfo;
using static System.Windows.Forms.AxHost; using static System.Windows.Forms.AxHost;
using System.Diagnostics;
namespace PaintingPC namespace PaintingPC
{ {
@ -41,6 +42,7 @@ namespace PaintingPC
private bool _colorHandChanged = false; private bool _colorHandChanged = false;
private bool _isSingleStation = false; private bool _isSingleStation = false;
private string _isTest = "false"; private string _isTest = "false";
private string _stationNo = string.Empty;
public FrmQuality(bool isWmsQuality) public FrmQuality(bool isWmsQuality)
{ {
@ -48,6 +50,7 @@ namespace PaintingPC
//WindowState = FormWindowState.Normal; //WindowState = FormWindowState.Normal;
this.Size = new Size(1280, 1020); this.Size = new Size(1280, 1020);
this._isWmsQuality = isWmsQuality; this._isWmsQuality = isWmsQuality;
_stationNo = ConfigurationManager.AppSettings["Station"].Trim();
_lineCode = ConfigurationManager.AppSettings["LineCode"].ToString(); _lineCode = ConfigurationManager.AppSettings["LineCode"].ToString();
if(_lineCode == "1") if(_lineCode == "1")
{ {
@ -67,6 +70,12 @@ namespace PaintingPC
_stations = stationTable.AsEnumerable().Select(p => p.Field<string>("StationNo")).ToList(); _stations = stationTable.AsEnumerable().Select(p => p.Field<string>("StationNo")).ToList();
if(_stations.Count ==0 ) if(_stations.Count ==0 )
ShowHint("产线[" + _lineCodeSys + "]不存在关联工位,请先进行配置.", false); ShowHint("产线[" + _lineCodeSys + "]不存在关联工位,请先进行配置.", false);
if(_stations.Contains(_stationNo) == false)
{
}
} }
@ -115,6 +124,7 @@ namespace PaintingPC
if (_stationType == "下线点修补") if (_stationType == "下线点修补")
{ {
btnNok.Visible = false; btnNok.Visible = false;
btnPointRepair.Visible = false;
} }
// } // }
} }
@ -421,7 +431,8 @@ namespace PaintingPC
} }
else else
{ {
MessageBox.Show("配置文件LineCode未配置,无法区分上件接口数据源查询路径.");
return;
} }
if (count == 0) if (count == 0)
@ -488,6 +499,31 @@ namespace PaintingPC
txtBarCode.TabIndex = 0; txtBarCode.TabIndex = 0;
} }
/// <summary>
/// 点修只能有一次 点修执行其它状态 缺陷原因为点修补.只能有一次
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnPointRepair_Click(object sender, EventArgs e)
{
try
{
if (string.IsNullOrEmpty(txtBarCode.Text.Trim()))
{
MessageBox.Show("请先扫描数据,然后操作.");
return;
}
OtherSave("点修");
}
catch (Exception ex)
{
ShowHint("执行点修判定发生异常,异常原因:" + ex.Message);
MessageBox.Show("执行点修判定发生异常,异常原因:" + ex.Message);
Clear();
}
}
/// <summary> /// <summary>
/// 其它 /// 其它
/// </summary> /// </summary>
@ -502,95 +538,103 @@ namespace PaintingPC
MessageBox.Show("请先扫描数据,然后操作."); MessageBox.Show("请先扫描数据,然后操作.");
return; return;
} }
OtherSave("其它");
#region 返喷下线数据验证 }
if (lableFP.Text.Contains("[返喷]")) catch(Exception ex)
{
ShowHint("执行其它判定发生异常,异常原因:" + ex.Message);
MessageBox.Show("执行其它判定发生异常,异常原因:" + ex.Message);
Clear();
}
}
void OtherSave(string type)
{
#region 返喷下线数据验证
if (lableFP.Text.Contains("[返喷]"))
{
string barcode = txtBarCode.Text.Trim();
DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
if (dtInspect != null && dtInspect.Rows.Count > 0)
{ {
string barcode = txtBarCode.Text.Trim(); string inspectResult = dtInspect.Rows[0]["inspectResult"].ToString(); //检测结果
DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode); string inspectColorInfo = dtInspect.Rows[0]["remark1"].ToString(); //颜色
if (dtInspect != null && dtInspect.Rows.Count > 0) if (inspectResult.Contains("打磨"))
{ {
string inspectResult = dtInspect.Rows[0]["inspectResult"].ToString(); //检测结果 string createTime = dtInspect.Rows[0]["createTime"].ToString(); //创建时间
string inspectColorInfo = dtInspect.Rows[0]["remark1"].ToString(); //颜色 int count = 0;
if (inspectResult.Contains("打磨")) string colorInfo = "";
if (_lineCode == "2")
{ {
string createTime = dtInspect.Rows[0]["createTime"].ToString(); //创建时间 count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA", createTime, ref colorInfo);
int count = 0; }
string colorInfo = ""; else if (_lineCode == "1")
if (_lineCode == "2") {
{ count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA_OLD", createTime, ref colorInfo);
count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA", createTime, ref colorInfo);
}
else if (_lineCode == "1")
{
count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA_OLD", createTime, ref colorInfo);
}
else
{
} }
else
{
MessageBox.Show("配置文件LineCode未配置,无法区分上件接口数据源查询路径.");
return;
}
if (count == 0) if (count == 0)
{
MessageBox.Show("未发现返喷下线数据!,无法进行质量判定");
return;
}
else
{
if (inspectColorInfo != colorInfo)
{ {
MessageBox.Show("未发现返喷下线数据!,无法进行质量判定"); btnOk.Enabled = false;
btnRepair.Enabled = false;
btnNok.Enabled = false;
MessageBox.Show("当前产品返喷颜色与原颜色不符,需报废!");
return; return;
} }
else
{
if (inspectColorInfo != colorInfo)
{
btnOk.Enabled = false;
btnRepair.Enabled = false;
btnNok.Enabled = false;
MessageBox.Show("当前产品返喷颜色与原颜色不符,需报废!");
return;
}
}
} }
} }
} }
#endregion
if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行[其它]判定?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return; }
ShowHint(""); #endregion
#region 必须选择缺陷位置与缺陷原因,否则无法保存
if (CheckDefect() == false) return;
#endregion
#region 判断产品是否有颜色 if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行[{type}]判定?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
string colorName = string.Empty; ShowHint("");
string partName = string.Empty; #region 必须选择缺陷位置与缺陷原因,否则无法保存
if (CheckColor(ref colorName, ref partName) == false) return; if (CheckDefect() == false) return;
#endregion #endregion
#region 判断产品是否有颜色
string colorName = string.Empty;
string partName = string.Empty;
if (CheckColor(ref colorName, ref partName) == false) return;
#endregion
if(type == "点修")
{
int cs = Function.OtherTimes(txtBarCode.Text.Trim()); int cs = Function.OtherTimes(txtBarCode.Text.Trim());
if (cs > 0) if (cs > 0)
{ {
MessageBox.Show("条码" + txtBarCode.Text.Trim() + "已存在判定为其它的记录,只允许判定1次."); MessageBox.Show("条码" + txtBarCode.Text.Trim() + $"已存在判定为{type}的记录,只允许判定1次.");
ShowHint("条码" + txtBarCode.Text.Trim() + "已存在判定为其它的记录,只允许判定1次."); ShowHint("条码" + txtBarCode.Text.Trim() + $"已存在判定为{type}的记录,只允许判定1次.");
Clear(); Clear();
return; return;
} }
reason = "点修补;" + reason;
bool rr = SaveBeforeVerify("其它");
if (rr == false)
{
return;
}
SaveRst("其它", colorName, partName, 4);
} }
catch(Exception ex)
bool rr = SaveBeforeVerify("其它");
if (rr == false)
{ {
ShowHint("执行其它判定发生异常,异常原因:" + ex.Message); return;
MessageBox.Show("执行其它判定发生异常,异常原因:" + ex.Message);
Clear();
} }
SaveRst("其它", colorName, partName, 4);
} }
/// <summary> /// <summary>
/// 返喷按钮 /// 返喷按钮
/// </summary> /// </summary>
@ -712,7 +756,8 @@ namespace PaintingPC
} }
else else
{ {
MessageBox.Show("配置文件LineCode未配置,无法区分上件接口数据源查询路径.");
return;
} }
if (count == 0) if (count == 0)
@ -792,7 +837,7 @@ namespace PaintingPC
/// <param name="state"></param> /// <param name="state"></param>
/// <param name="colorName"></param> /// <param name="colorName"></param>
/// <param name="partName"></param> /// <param name="partName"></param>
/// <param name="isOK">0-不合格;1-合格;9-返喷 8-其他 </param> /// <param name="isOK">2-报废;1-合格;9-返喷 4-其它 </param>
void SaveRst(string state, string colorName, string partName,int isOK,string userName="") void SaveRst(string state, string colorName, string partName,int isOK,string userName="")
{ {
if (string.IsNullOrEmpty(userName)) if (string.IsNullOrEmpty(userName))
@ -1128,6 +1173,7 @@ namespace PaintingPC
{ {
try try
{ {
btnOk.Enabled = true; btnOk.Enabled = true;
btnRepair.Enabled = true; btnRepair.Enabled = true;
btnNok.Enabled = true; btnNok.Enabled = true;
@ -1136,6 +1182,8 @@ namespace PaintingPC
lbForeig.Text = ""; lbForeig.Text = "";
ClearPage(); ClearPage();
LoadPage(); LoadPage();
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -1235,13 +1283,13 @@ namespace PaintingPC
DataTable dt3 = Function.SearchDefectInfo(ConfigurationManager.AppSettings["Station"].Trim()); DataTable dt3 = Function.SearchDefectInfo(ConfigurationManager.AppSettings["Station"].Trim());
if (dt3 != null && dt3.Rows.Count > 0) if (dt3 != null && dt3.Rows.Count > 0)
{ {
if(_stationType != "下线点修补") //if(_stationType != "下线点修补")
{ //{
DataRow newRow = dt3.NewRow(); //DataRow newRow = dt3.NewRow();
newRow.ItemArray = dt3.Rows[0].ItemArray; //newRow.ItemArray = dt3.Rows[0].ItemArray;
newRow["DefectName"] = "点修补"; //newRow["DefectName"] = "点修补";
dt3.Rows.InsertAt(newRow, 0); //dt3.Rows.InsertAt(newRow, 0);
} //}
drow = Convert.ToInt32(Math.Ceiling((double)dt3.Rows.Count / dcol)); drow = Convert.ToInt32(Math.Ceiling((double)dt3.Rows.Count / dcol));
@ -1269,13 +1317,13 @@ namespace PaintingPC
dLb[i].BackColor = Color.Transparent; dLb[i].BackColor = Color.Transparent;
dLb[i].TextAlign = ContentAlignment.MiddleCenter; dLb[i].TextAlign = ContentAlignment.MiddleCenter;
if (dLb[i].Text.Contains("点修补")) //if (dLb[i].Text.Contains("点修补"))
{ //{
dLb[i].Font = new Font(dLb[i].Font.FontFamily, 36, FontStyle.Bold); // dLb[i].Font = new Font(dLb[i].Font.FontFamily, 36, FontStyle.Bold);
dLb[i].Size = new Size(170, 60); // dLb[i].Size = new Size(170, 60);
dLb[i].ForeColor = Color.Red; // dLb[i].ForeColor = Color.Red;
//dLb[i].BackColor = Color.Red; // //dLb[i].BackColor = Color.Red;
} //}
panel2.Controls.Add(dLb[i]); panel2.Controls.Add(dLb[i]);
dLb[i].Click += new EventHandler(dLbRoom_Click); dLb[i].Click += new EventHandler(dLbRoom_Click);
} }
@ -1292,6 +1340,8 @@ namespace PaintingPC
#endregion #endregion
#region 加载图片 #region 加载图片
try try
@ -1362,10 +1412,14 @@ namespace PaintingPC
#endregion #endregion
//不是补打的条码,根据条码查询产品信息、检验信息,选中缺陷位置及原因 //不是补打的条码,根据条码查询产品信息、检验信息,选中缺陷位置及原因
DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode); DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
if (dtInspect != null && dtInspect.Rows.Count > 0) if (dtInspect != null && dtInspect.Rows.Count > 0)
{ {
cboxAddColor.Enabled = false; cboxAddColor.Enabled = false;
List<DataRow> list = dtInspect.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("打磨")).ToList(); List<DataRow> list = dtInspect.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("打磨")).ToList();
string state = string.Empty; string state = string.Empty;
@ -1399,10 +1453,10 @@ namespace PaintingPC
position= dtInspect.Rows[0]["damnPosition"].ToString(); //缺陷位置 position= dtInspect.Rows[0]["damnPosition"].ToString(); //缺陷位置
reason= dtInspect.Rows[0]["reason"].ToString(); //原因 reason= dtInspect.Rows[0]["reason"].ToString(); //原因
if (_stationType == "下线点修补" && reason.Contains("点修补;")) //if (_stationType == "下线点修补" && reason.Contains("点修补;"))
{ //{
reason = reason.Replace("点修补;", ""); // reason = reason.Replace("点修补;", "");
} //}
paintId = dtInspect.Rows[0]["remark3"].ToString(); //原因 paintId = dtInspect.Rows[0]["remark3"].ToString(); //原因
@ -1413,6 +1467,7 @@ namespace PaintingPC
MessageBox.Show(em); MessageBox.Show(em);
ShowHint(em, false); ShowHint(em, false);
txtBarCode.Text = ""; txtBarCode.Text = "";
labProductInfo.Text = "";
txtBarCode.TabIndex = 0; txtBarCode.TabIndex = 0;
txtBarCode.Select(); txtBarCode.Select();
return; return;
@ -1446,6 +1501,8 @@ namespace PaintingPC
labProPosition.Text = Function.GetFirstInsPosition2(dtInspect); labProPosition.Text = Function.GetFirstInsPosition2(dtInspect);
#endregion #endregion
} }
else else
{ {
@ -1468,7 +1525,9 @@ namespace PaintingPC
} }
else else
{ {
foreignVal = Function.GetProductInfo2(barcode, ref paintError); MessageBox.Show("配置文件LineCode未配置,无法区分上件接口数据源查询路径.");
return;
//foreignVal = Function.GetProductInfo2(barcode, ref paintError);
} }
if (!string.IsNullOrEmpty(paintError)) if (!string.IsNullOrEmpty(paintError))
{ {
@ -1487,7 +1546,7 @@ namespace PaintingPC
labProductInfo.Text = info[0] + "," + info[1]; labProductInfo.Text = info[0] + "," + info[1];
paintId = info[2]; paintId = info[2];
labProPosition.Tag = paintId; labProPosition.Tag = paintId;
labProductInfo.Tag = Function.GetSide(barcode, paintId); labProductInfo.Tag = "A侧"; // Function.GetSide(barcode, paintId);
labProPosition.Text = _stationType + " " + labProductInfo.Tag.ToString().Replace(';', ' '); labProPosition.Text = _stationType + " " + labProductInfo.Tag.ToString().Replace(';', ' ');
if (info.Length == 4) if (info.Length == 4)
{ {
@ -1506,6 +1565,8 @@ namespace PaintingPC
#endregion #endregion
} }
@ -1901,6 +1962,7 @@ namespace PaintingPC
} }
} }
private void txtBarCode_DoubleClick(object sender, EventArgs e) private void txtBarCode_DoubleClick(object sender, EventArgs e)
{ {
txtBarCode.SelectAll(); txtBarCode.SelectAll();

14
PaintingPC/Function.cs

@ -4,6 +4,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Configuration; using System.Configuration;
using System.Data; using System.Data;
using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using System.Linq; using System.Linq;
@ -1205,7 +1206,7 @@ namespace PaintingPC
select count(0) select count(0)
from tb_InspectResult from tb_InspectResult
where barcode = '" + barcode + @"' where barcode = '" + barcode + @"'
and inspectResult = '' and inspectResult = '' and reason like '%'
"; ";
object aa = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql, null); object aa = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql, null);
@ -2089,7 +2090,8 @@ namespace PaintingPC
} }
else else
{ {
Stopwatch sw5 = new Stopwatch();
sw5.Start();
#region 从WMS系统获得喷涂上件的颜色信息 #region 从WMS系统获得喷涂上件的颜色信息
string wmsSql = $"select TypeCode,WMSColor as paintcode from {tableName} where ProductBarcode='{barcode}'"; string wmsSql = $"select TypeCode,WMSColor as paintcode from {tableName} where ProductBarcode='{barcode}'";
@ -2106,7 +2108,8 @@ namespace PaintingPC
{ {
errorMsg = $"WmsDB 没有条码[{barcode}]对应的数据"; errorMsg = $"WmsDB 没有条码[{barcode}]对应的数据";
} }
sw5.Stop();
LogHelper.WriteLog("单独读取wms接口占用的时间"+sw5.Elapsed);
//if (!string.IsNullOrEmpty(typeCode) && paintCode.ToLower() != "na") //if (!string.IsNullOrEmpty(typeCode) && paintCode.ToLower() != "na")
//{ //{
// string stockNo1 = barcode.Substring(0, 10); // string stockNo1 = barcode.Substring(0, 10);
@ -2135,6 +2138,8 @@ namespace PaintingPC
//} //}
//根据颜色代码查颜色 //根据颜色代码查颜色
Stopwatch sw6= new Stopwatch();
sw6.Start();
if (!string.IsNullOrWhiteSpace(paintCode) && paintCode.ToLower() != "na") if (!string.IsNullOrWhiteSpace(paintCode) && paintCode.ToLower() != "na")
{ {
//DataTable dt = new DataTable(); //DataTable dt = new DataTable();
@ -2187,6 +2192,9 @@ namespace PaintingPC
#endregion #endregion
colorInfo = colorInfo + "," + productName + "," + paintID; colorInfo = colorInfo + "," + productName + "," + paintID;
sw6.Stop();
LogHelper.WriteLog("读取wms接口后其他处理时间:" + sw6.Elapsed);
} }
res = colorInfo; res = colorInfo;

325
PunchingMistake/FrmAssemble.Designer.cs

@ -29,7 +29,6 @@ namespace PunchingMistake
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAssemble)); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmAssemble));
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1 = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel();
@ -46,6 +45,7 @@ namespace PunchingMistake
this.label13 = new System.Windows.Forms.Label(); this.label13 = new System.Windows.Forms.Label();
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.panel9 = new System.Windows.Forms.Panel(); this.panel9 = new System.Windows.Forms.Panel();
this.txtBarCode = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label();
this.panel8 = new System.Windows.Forms.Panel(); this.panel8 = new System.Windows.Forms.Panel();
this.lbPartDesc = new System.Windows.Forms.Label(); this.lbPartDesc = new System.Windows.Forms.Label();
@ -99,10 +99,9 @@ namespace PunchingMistake
this.label8 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label();
this.lbScrewL = new System.Windows.Forms.Label(); this.lbScrewL = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
this.showHintTimer = new System.Windows.Forms.Timer(this.components); this.showHintTimer = new System.Windows.Forms.Timer();
this.LoadScrewTimer = new System.Windows.Forms.Timer(this.components); this.LoadScrewTimer = new System.Windows.Forms.Timer();
this.txtBarCode = new System.Windows.Forms.TextBox(); this.txtBoxFocusTimer = new System.Windows.Forms.Timer();
this.txtBoxFocusTimer = new System.Windows.Forms.Timer(this.components);
this.tableLayoutPanel1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout();
this.tableLayoutPanel2.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout();
this.panel12.SuspendLayout(); this.panel12.SuspendLayout();
@ -139,27 +138,27 @@ namespace PunchingMistake
this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 1; this.tableLayoutPanel1.RowCount = 1;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2125, 1538); this.tableLayoutPanel1.Size = new System.Drawing.Size(1948, 1346);
this.tableLayoutPanel1.TabIndex = 0; this.tableLayoutPanel1.TabIndex = 0;
// //
// panel1 // panel1
// //
this.panel1.BackColor = System.Drawing.Color.DarkCyan; this.panel1.BackColor = System.Drawing.Color.DarkCyan;
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(575, 69); this.panel1.Location = new System.Drawing.Point(527, 60);
this.panel1.Margin = new System.Windows.Forms.Padding(3, 69, 3, 34); this.panel1.Margin = new System.Windows.Forms.Padding(3, 60, 3, 30);
this.panel1.Name = "panel1"; this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1, 1435); this.panel1.Size = new System.Drawing.Size(1, 1256);
this.panel1.TabIndex = 0; this.panel1.TabIndex = 0;
// //
// panel2 // panel2
// //
this.panel2.BackColor = System.Drawing.Color.DarkCyan; this.panel2.BackColor = System.Drawing.Color.DarkCyan;
this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel2.Location = new System.Drawing.Point(1552, 69); this.panel2.Location = new System.Drawing.Point(1423, 60);
this.panel2.Margin = new System.Windows.Forms.Padding(3, 69, 3, 34); this.panel2.Margin = new System.Windows.Forms.Padding(3, 60, 3, 30);
this.panel2.Name = "panel2"; this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1, 1435); this.panel2.Size = new System.Drawing.Size(1, 1256);
this.panel2.TabIndex = 1; this.panel2.TabIndex = 1;
// //
// tableLayoutPanel2 // tableLayoutPanel2
@ -171,23 +170,23 @@ namespace PunchingMistake
this.tableLayoutPanel2.Controls.Add(this.panel12, 0, 1); this.tableLayoutPanel2.Controls.Add(this.panel12, 0, 1);
this.tableLayoutPanel2.Controls.Add(this.panel13, 0, 3); this.tableLayoutPanel2.Controls.Add(this.panel13, 0, 3);
this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel2.Location = new System.Drawing.Point(577, 3); this.tableLayoutPanel2.Location = new System.Drawing.Point(529, 3);
this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 4; this.tableLayoutPanel2.RowCount = 4;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 126F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 110F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 2F));
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(969, 1532); this.tableLayoutPanel2.Size = new System.Drawing.Size(888, 1340);
this.tableLayoutPanel2.TabIndex = 2; this.tableLayoutPanel2.TabIndex = 2;
// //
// panel3 // panel3
// //
this.panel3.BackColor = System.Drawing.Color.DarkCyan; this.panel3.BackColor = System.Drawing.Color.DarkCyan;
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(3, 831); this.panel3.Location = new System.Drawing.Point(3, 727);
this.panel3.Name = "panel3"; this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(963, 1); this.panel3.Size = new System.Drawing.Size(882, 1);
this.panel3.TabIndex = 0; this.panel3.TabIndex = 0;
// //
// panel4 // panel4
@ -197,7 +196,7 @@ namespace PunchingMistake
this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; this.panel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel4.Location = new System.Drawing.Point(3, 3); this.panel4.Location = new System.Drawing.Point(3, 3);
this.panel4.Name = "panel4"; this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(963, 120); this.panel4.Size = new System.Drawing.Size(882, 104);
this.panel4.TabIndex = 1; this.panel4.TabIndex = 1;
// //
// panel12 // panel12
@ -206,9 +205,9 @@ namespace PunchingMistake
this.panel12.Controls.Add(this.lbPlanQty); this.panel12.Controls.Add(this.lbPlanQty);
this.panel12.Controls.Add(this.label12); this.panel12.Controls.Add(this.label12);
this.panel12.Dock = System.Windows.Forms.DockStyle.Fill; this.panel12.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel12.Location = new System.Drawing.Point(3, 129); this.panel12.Location = new System.Drawing.Point(3, 113);
this.panel12.Name = "panel12"; this.panel12.Name = "panel12";
this.panel12.Size = new System.Drawing.Size(963, 696); this.panel12.Size = new System.Drawing.Size(882, 608);
this.panel12.TabIndex = 2; this.panel12.TabIndex = 2;
// //
// lbDisplay // lbDisplay
@ -216,9 +215,9 @@ namespace PunchingMistake
this.lbDisplay.AutoSize = true; this.lbDisplay.AutoSize = true;
this.lbDisplay.Font = new System.Drawing.Font("宋体", 108F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbDisplay.Font = new System.Drawing.Font("宋体", 108F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbDisplay.ForeColor = System.Drawing.Color.LimeGreen; this.lbDisplay.ForeColor = System.Drawing.Color.LimeGreen;
this.lbDisplay.Location = new System.Drawing.Point(309, 384); this.lbDisplay.Location = new System.Drawing.Point(283, 336);
this.lbDisplay.Name = "lbDisplay"; this.lbDisplay.Name = "lbDisplay";
this.lbDisplay.Size = new System.Drawing.Size(410, 289); this.lbDisplay.Size = new System.Drawing.Size(357, 252);
this.lbDisplay.TabIndex = 4; this.lbDisplay.TabIndex = 4;
this.lbDisplay.Text = "OK"; this.lbDisplay.Text = "OK";
this.lbDisplay.Visible = false; this.lbDisplay.Visible = false;
@ -231,9 +230,9 @@ namespace PunchingMistake
this.lbPlanQty.BackColor = System.Drawing.Color.Transparent; this.lbPlanQty.BackColor = System.Drawing.Color.Transparent;
this.lbPlanQty.Font = new System.Drawing.Font("宋体", 128.1429F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbPlanQty.Font = new System.Drawing.Font("宋体", 128.1429F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlanQty.ForeColor = System.Drawing.Color.LightSeaGreen; this.lbPlanQty.ForeColor = System.Drawing.Color.LightSeaGreen;
this.lbPlanQty.Location = new System.Drawing.Point(164, 223); this.lbPlanQty.Location = new System.Drawing.Point(150, 195);
this.lbPlanQty.Name = "lbPlanQty"; this.lbPlanQty.Name = "lbPlanQty";
this.lbPlanQty.Size = new System.Drawing.Size(656, 342); this.lbPlanQty.Size = new System.Drawing.Size(575, 300);
this.lbPlanQty.TabIndex = 3; this.lbPlanQty.TabIndex = 3;
this.lbPlanQty.Text = "150"; this.lbPlanQty.Text = "150";
// //
@ -243,9 +242,9 @@ namespace PunchingMistake
this.label12.BackColor = System.Drawing.Color.Transparent; this.label12.BackColor = System.Drawing.Color.Transparent;
this.label12.Font = new System.Drawing.Font("宋体", 21.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label12.Font = new System.Drawing.Font("宋体", 21.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.ForeColor = System.Drawing.Color.White; this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(142, 22); this.label12.Location = new System.Drawing.Point(130, 19);
this.label12.Name = "label12"; this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(741, 59); this.label12.Size = new System.Drawing.Size(642, 51);
this.label12.TabIndex = 2; this.label12.TabIndex = 2;
this.label12.Text = "计划数量/PlannedQuantity"; this.label12.Text = "计划数量/PlannedQuantity";
// //
@ -254,9 +253,9 @@ namespace PunchingMistake
this.panel13.Controls.Add(this.lbCompleteQty); this.panel13.Controls.Add(this.lbCompleteQty);
this.panel13.Controls.Add(this.label13); this.panel13.Controls.Add(this.label13);
this.panel13.Dock = System.Windows.Forms.DockStyle.Fill; this.panel13.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel13.Location = new System.Drawing.Point(3, 833); this.panel13.Location = new System.Drawing.Point(3, 729);
this.panel13.Name = "panel13"; this.panel13.Name = "panel13";
this.panel13.Size = new System.Drawing.Size(963, 696); this.panel13.Size = new System.Drawing.Size(882, 608);
this.panel13.TabIndex = 3; this.panel13.TabIndex = 3;
// //
// lbCompleteQty // lbCompleteQty
@ -267,9 +266,9 @@ namespace PunchingMistake
this.lbCompleteQty.BackColor = System.Drawing.Color.Transparent; this.lbCompleteQty.BackColor = System.Drawing.Color.Transparent;
this.lbCompleteQty.Font = new System.Drawing.Font("宋体", 128.1429F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbCompleteQty.Font = new System.Drawing.Font("宋体", 128.1429F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbCompleteQty.ForeColor = System.Drawing.Color.LimeGreen; this.lbCompleteQty.ForeColor = System.Drawing.Color.LimeGreen;
this.lbCompleteQty.Location = new System.Drawing.Point(164, 205); this.lbCompleteQty.Location = new System.Drawing.Point(150, 179);
this.lbCompleteQty.Name = "lbCompleteQty"; this.lbCompleteQty.Name = "lbCompleteQty";
this.lbCompleteQty.Size = new System.Drawing.Size(656, 342); this.lbCompleteQty.Size = new System.Drawing.Size(575, 300);
this.lbCompleteQty.TabIndex = 4; this.lbCompleteQty.TabIndex = 4;
this.lbCompleteQty.Text = "695"; this.lbCompleteQty.Text = "695";
// //
@ -279,9 +278,9 @@ namespace PunchingMistake
this.label13.BackColor = System.Drawing.Color.Transparent; this.label13.BackColor = System.Drawing.Color.Transparent;
this.label13.Font = new System.Drawing.Font("宋体", 21.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label13.Font = new System.Drawing.Font("宋体", 21.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label13.ForeColor = System.Drawing.Color.White; this.label13.ForeColor = System.Drawing.Color.White;
this.label13.Location = new System.Drawing.Point(152, 25); this.label13.Location = new System.Drawing.Point(139, 22);
this.label13.Name = "label13"; this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(771, 59); this.label13.Size = new System.Drawing.Size(668, 51);
this.label13.TabIndex = 3; this.label13.TabIndex = 3;
this.label13.Text = "完成数量/FinishedQuantity"; this.label13.Text = "完成数量/FinishedQuantity";
// //
@ -295,8 +294,8 @@ namespace PunchingMistake
this.tableLayoutPanel3.Controls.Add(this.panel6, 0, 1); this.tableLayoutPanel3.Controls.Add(this.panel6, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.panel5, 0, 0); this.tableLayoutPanel3.Controls.Add(this.panel5, 0, 0);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 57); this.tableLayoutPanel3.Location = new System.Drawing.Point(3, 50);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 57, 3, 3); this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(3, 50, 3, 3);
this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.Name = "tableLayoutPanel3";
this.tableLayoutPanel3.RowCount = 5; this.tableLayoutPanel3.RowCount = 5;
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
@ -304,7 +303,7 @@ namespace PunchingMistake
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(566, 1478); this.tableLayoutPanel3.Size = new System.Drawing.Size(518, 1293);
this.tableLayoutPanel3.TabIndex = 3; this.tableLayoutPanel3.TabIndex = 3;
// //
// panel9 // panel9
@ -314,21 +313,30 @@ namespace PunchingMistake
this.panel9.Controls.Add(this.txtBarCode); this.panel9.Controls.Add(this.txtBarCode);
this.panel9.Controls.Add(this.label6); this.panel9.Controls.Add(this.label6);
this.panel9.Dock = System.Windows.Forms.DockStyle.Fill; this.panel9.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel9.Location = new System.Drawing.Point(33, 1183); this.panel9.Location = new System.Drawing.Point(30, 1035);
this.panel9.Margin = new System.Windows.Forms.Padding(33, 3, 33, 34); this.panel9.Margin = new System.Windows.Forms.Padding(30, 3, 30, 30);
this.panel9.Name = "panel9"; this.panel9.Name = "panel9";
this.panel9.Size = new System.Drawing.Size(500, 261); this.panel9.Size = new System.Drawing.Size(458, 228);
this.panel9.TabIndex = 4; this.panel9.TabIndex = 4;
// //
// txtBarCode
//
this.txtBarCode.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBarCode.Location = new System.Drawing.Point(30, 125);
this.txtBarCode.Name = "txtBarCode";
this.txtBarCode.Size = new System.Drawing.Size(390, 47);
this.txtBarCode.TabIndex = 6;
this.txtBarCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBarCode_KeyDown);
//
// label6 // label6
// //
this.label6.AutoSize = true; this.label6.AutoSize = true;
this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label6.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label6.ForeColor = System.Drawing.Color.DarkCyan; this.label6.ForeColor = System.Drawing.Color.DarkCyan;
this.label6.Location = new System.Drawing.Point(25, 58); this.label6.Location = new System.Drawing.Point(23, 51);
this.label6.Name = "label6"; this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(291, 43); this.label6.Size = new System.Drawing.Size(253, 37);
this.label6.TabIndex = 4; this.label6.TabIndex = 4;
this.label6.Text = "条码/BarCode"; this.label6.Text = "条码/BarCode";
// //
@ -339,10 +347,10 @@ namespace PunchingMistake
this.panel8.Controls.Add(this.lbPartDesc); this.panel8.Controls.Add(this.lbPartDesc);
this.panel8.Controls.Add(this.label5); this.panel8.Controls.Add(this.label5);
this.panel8.Dock = System.Windows.Forms.DockStyle.Fill; this.panel8.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel8.Location = new System.Drawing.Point(33, 888); this.panel8.Location = new System.Drawing.Point(30, 777);
this.panel8.Margin = new System.Windows.Forms.Padding(33, 3, 33, 34); this.panel8.Margin = new System.Windows.Forms.Padding(30, 3, 30, 30);
this.panel8.Name = "panel8"; this.panel8.Name = "panel8";
this.panel8.Size = new System.Drawing.Size(500, 258); this.panel8.Size = new System.Drawing.Size(458, 225);
this.panel8.TabIndex = 3; this.panel8.TabIndex = 3;
// //
// lbPartDesc // lbPartDesc
@ -351,9 +359,9 @@ namespace PunchingMistake
this.lbPartDesc.BackColor = System.Drawing.Color.Transparent; this.lbPartDesc.BackColor = System.Drawing.Color.Transparent;
this.lbPartDesc.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbPartDesc.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPartDesc.ForeColor = System.Drawing.Color.White; this.lbPartDesc.ForeColor = System.Drawing.Color.White;
this.lbPartDesc.Location = new System.Drawing.Point(35, 131); this.lbPartDesc.Location = new System.Drawing.Point(32, 115);
this.lbPartDesc.Name = "lbPartDesc"; this.lbPartDesc.Name = "lbPartDesc";
this.lbPartDesc.Size = new System.Drawing.Size(367, 43); this.lbPartDesc.Size = new System.Drawing.Size(317, 37);
this.lbPartDesc.TabIndex = 4; this.lbPartDesc.TabIndex = 4;
this.lbPartDesc.Text = "X247MF S后保冲孔"; this.lbPartDesc.Text = "X247MF S后保冲孔";
// //
@ -363,9 +371,9 @@ namespace PunchingMistake
this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.BackColor = System.Drawing.Color.Transparent;
this.label5.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label5.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label5.ForeColor = System.Drawing.Color.DarkCyan; this.label5.ForeColor = System.Drawing.Color.DarkCyan;
this.label5.Location = new System.Drawing.Point(25, 58); this.label5.Location = new System.Drawing.Point(23, 51);
this.label5.Name = "label5"; this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(471, 43); this.label5.Size = new System.Drawing.Size(409, 37);
this.label5.TabIndex = 3; this.label5.TabIndex = 3;
this.label5.Text = "零件描述/Description"; this.label5.Text = "零件描述/Description";
// //
@ -376,10 +384,10 @@ namespace PunchingMistake
this.panel7.Controls.Add(this.lbPart); this.panel7.Controls.Add(this.lbPart);
this.panel7.Controls.Add(this.label4); this.panel7.Controls.Add(this.label4);
this.panel7.Dock = System.Windows.Forms.DockStyle.Fill; this.panel7.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel7.Location = new System.Drawing.Point(33, 593); this.panel7.Location = new System.Drawing.Point(30, 519);
this.panel7.Margin = new System.Windows.Forms.Padding(33, 3, 33, 34); this.panel7.Margin = new System.Windows.Forms.Padding(30, 3, 30, 30);
this.panel7.Name = "panel7"; this.panel7.Name = "panel7";
this.panel7.Size = new System.Drawing.Size(500, 258); this.panel7.Size = new System.Drawing.Size(458, 225);
this.panel7.TabIndex = 2; this.panel7.TabIndex = 2;
// //
// lbPart // lbPart
@ -388,9 +396,9 @@ namespace PunchingMistake
this.lbPart.BackColor = System.Drawing.Color.Transparent; this.lbPart.BackColor = System.Drawing.Color.Transparent;
this.lbPart.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbPart.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPart.ForeColor = System.Drawing.Color.White; this.lbPart.ForeColor = System.Drawing.Color.White;
this.lbPart.Location = new System.Drawing.Point(35, 130); this.lbPart.Location = new System.Drawing.Point(32, 114);
this.lbPart.Name = "lbPart"; this.lbPart.Name = "lbPart";
this.lbPart.Size = new System.Drawing.Size(367, 43); this.lbPart.Size = new System.Drawing.Size(317, 37);
this.lbPart.TabIndex = 3; this.lbPart.TabIndex = 3;
this.lbPart.Text = "X247MF S后保冲孔"; this.lbPart.Text = "X247MF S后保冲孔";
// //
@ -400,9 +408,9 @@ namespace PunchingMistake
this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.BackColor = System.Drawing.Color.Transparent;
this.label4.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label4.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label4.ForeColor = System.Drawing.Color.DarkCyan; this.label4.ForeColor = System.Drawing.Color.DarkCyan;
this.label4.Location = new System.Drawing.Point(25, 54); this.label4.Location = new System.Drawing.Point(23, 47);
this.label4.Name = "label4"; this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(404, 43); this.label4.Size = new System.Drawing.Size(351, 37);
this.label4.TabIndex = 2; this.label4.TabIndex = 2;
this.label4.Text = "零件号/PartNumber"; this.label4.Text = "零件号/PartNumber";
// //
@ -413,10 +421,10 @@ namespace PunchingMistake
this.panel6.Controls.Add(this.lbPlan); this.panel6.Controls.Add(this.lbPlan);
this.panel6.Controls.Add(this.label3); this.panel6.Controls.Add(this.label3);
this.panel6.Dock = System.Windows.Forms.DockStyle.Fill; this.panel6.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel6.Location = new System.Drawing.Point(33, 298); this.panel6.Location = new System.Drawing.Point(30, 261);
this.panel6.Margin = new System.Windows.Forms.Padding(33, 3, 33, 34); this.panel6.Margin = new System.Windows.Forms.Padding(30, 3, 30, 30);
this.panel6.Name = "panel6"; this.panel6.Name = "panel6";
this.panel6.Size = new System.Drawing.Size(500, 258); this.panel6.Size = new System.Drawing.Size(458, 225);
this.panel6.TabIndex = 1; this.panel6.TabIndex = 1;
// //
// lbPlan // lbPlan
@ -425,9 +433,9 @@ namespace PunchingMistake
this.lbPlan.BackColor = System.Drawing.Color.Transparent; this.lbPlan.BackColor = System.Drawing.Color.Transparent;
this.lbPlan.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbPlan.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlan.ForeColor = System.Drawing.Color.White; this.lbPlan.ForeColor = System.Drawing.Color.White;
this.lbPlan.Location = new System.Drawing.Point(35, 134); this.lbPlan.Location = new System.Drawing.Point(32, 117);
this.lbPlan.Name = "lbPlan"; this.lbPlan.Name = "lbPlan";
this.lbPlan.Size = new System.Drawing.Size(367, 43); this.lbPlan.Size = new System.Drawing.Size(317, 37);
this.lbPlan.TabIndex = 2; this.lbPlan.TabIndex = 2;
this.lbPlan.Text = "X247MF S后保冲孔"; this.lbPlan.Text = "X247MF S后保冲孔";
// //
@ -437,9 +445,9 @@ namespace PunchingMistake
this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label3.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.DarkCyan; this.label3.ForeColor = System.Drawing.Color.DarkCyan;
this.label3.Location = new System.Drawing.Point(25, 53); this.label3.Location = new System.Drawing.Point(23, 46);
this.label3.Name = "label3"; this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(448, 43); this.label3.Size = new System.Drawing.Size(389, 37);
this.label3.TabIndex = 1; this.label3.TabIndex = 1;
this.label3.Text = "计划编号/PlanNumber"; this.label3.Text = "计划编号/PlanNumber";
// //
@ -450,10 +458,10 @@ namespace PunchingMistake
this.panel5.Controls.Add(this.lbStation); this.panel5.Controls.Add(this.lbStation);
this.panel5.Controls.Add(this.label1); this.panel5.Controls.Add(this.label1);
this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel5.Location = new System.Drawing.Point(33, 3); this.panel5.Location = new System.Drawing.Point(30, 3);
this.panel5.Margin = new System.Windows.Forms.Padding(33, 3, 33, 34); this.panel5.Margin = new System.Windows.Forms.Padding(30, 3, 30, 30);
this.panel5.Name = "panel5"; this.panel5.Name = "panel5";
this.panel5.Size = new System.Drawing.Size(500, 258); this.panel5.Size = new System.Drawing.Size(458, 225);
this.panel5.TabIndex = 0; this.panel5.TabIndex = 0;
// //
// lbStation // lbStation
@ -462,9 +470,9 @@ namespace PunchingMistake
this.lbStation.BackColor = System.Drawing.Color.Transparent; this.lbStation.BackColor = System.Drawing.Color.Transparent;
this.lbStation.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbStation.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbStation.ForeColor = System.Drawing.Color.White; this.lbStation.ForeColor = System.Drawing.Color.White;
this.lbStation.Location = new System.Drawing.Point(25, 123); this.lbStation.Location = new System.Drawing.Point(23, 108);
this.lbStation.Name = "lbStation"; this.lbStation.Name = "lbStation";
this.lbStation.Size = new System.Drawing.Size(367, 43); this.lbStation.Size = new System.Drawing.Size(317, 37);
this.lbStation.TabIndex = 1; this.lbStation.TabIndex = 1;
this.lbStation.Text = "X247MF S后保冲孔"; this.lbStation.Text = "X247MF S后保冲孔";
// //
@ -474,9 +482,9 @@ namespace PunchingMistake
this.label1.BackColor = System.Drawing.Color.Transparent; this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label1.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.ForeColor = System.Drawing.Color.DarkCyan; this.label1.ForeColor = System.Drawing.Color.DarkCyan;
this.label1.Location = new System.Drawing.Point(25, 41); this.label1.Location = new System.Drawing.Point(23, 36);
this.label1.Name = "label1"; this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(471, 43); this.label1.Size = new System.Drawing.Size(409, 37);
this.label1.TabIndex = 0; this.label1.TabIndex = 0;
this.label1.Text = "生产工位/StationCode"; this.label1.Text = "生产工位/StationCode";
// //
@ -492,8 +500,8 @@ namespace PunchingMistake
this.tableLayoutPanel4.Controls.Add(this.panel17, 0, 3); this.tableLayoutPanel4.Controls.Add(this.panel17, 0, 3);
this.tableLayoutPanel4.Controls.Add(this.panel18, 0, 2); this.tableLayoutPanel4.Controls.Add(this.panel18, 0, 2);
this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel4.Location = new System.Drawing.Point(1554, 57); this.tableLayoutPanel4.Location = new System.Drawing.Point(1425, 50);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(3, 57, 3, 3); this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(3, 50, 3, 3);
this.tableLayoutPanel4.Name = "tableLayoutPanel4"; this.tableLayoutPanel4.Name = "tableLayoutPanel4";
this.tableLayoutPanel4.RowCount = 7; this.tableLayoutPanel4.RowCount = 7;
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 14.28571F));
@ -503,7 +511,7 @@ namespace PunchingMistake
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28.57143F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 2F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 2F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28.57143F)); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28.57143F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(568, 1478); this.tableLayoutPanel4.Size = new System.Drawing.Size(520, 1293);
this.tableLayoutPanel4.TabIndex = 4; this.tableLayoutPanel4.TabIndex = 4;
// //
// panel10 // panel10
@ -514,9 +522,9 @@ namespace PunchingMistake
this.panel10.Controls.Add(this.btnPlanDown); this.panel10.Controls.Add(this.btnPlanDown);
this.panel10.Controls.Add(this.btnPlanUp); this.panel10.Controls.Add(this.btnPlanUp);
this.panel10.Dock = System.Windows.Forms.DockStyle.Fill; this.panel10.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel10.Location = new System.Drawing.Point(3, 1059); this.panel10.Location = new System.Drawing.Point(3, 926);
this.panel10.Name = "panel10"; this.panel10.Name = "panel10";
this.panel10.Size = new System.Drawing.Size(562, 416); this.panel10.Size = new System.Drawing.Size(514, 364);
this.panel10.TabIndex = 0; this.panel10.TabIndex = 0;
// //
// lbHint // lbHint
@ -526,9 +534,9 @@ namespace PunchingMistake
| System.Windows.Forms.AnchorStyles.Right))); | System.Windows.Forms.AnchorStyles.Right)));
this.lbHint.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbHint.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbHint.ForeColor = System.Drawing.Color.Red; this.lbHint.ForeColor = System.Drawing.Color.Red;
this.lbHint.Location = new System.Drawing.Point(10, 267); this.lbHint.Location = new System.Drawing.Point(9, 234);
this.lbHint.Name = "lbHint"; this.lbHint.Name = "lbHint";
this.lbHint.Size = new System.Drawing.Size(545, 146); this.lbHint.Size = new System.Drawing.Size(499, 128);
this.lbHint.TabIndex = 29; this.lbHint.TabIndex = 29;
this.lbHint.Text = " "; this.lbHint.Text = " ";
// //
@ -537,10 +545,10 @@ namespace PunchingMistake
this.btnPlanFinish.BackColor = System.Drawing.Color.Red; this.btnPlanFinish.BackColor = System.Drawing.Color.Red;
this.btnPlanFinish.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnPlanFinish.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanFinish.ForeColor = System.Drawing.Color.White; this.btnPlanFinish.ForeColor = System.Drawing.Color.White;
this.btnPlanFinish.Location = new System.Drawing.Point(293, 152); this.btnPlanFinish.Location = new System.Drawing.Point(269, 133);
this.btnPlanFinish.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPlanFinish.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPlanFinish.Name = "btnPlanFinish"; this.btnPlanFinish.Name = "btnPlanFinish";
this.btnPlanFinish.Size = new System.Drawing.Size(262, 101); this.btnPlanFinish.Size = new System.Drawing.Size(240, 88);
this.btnPlanFinish.TabIndex = 28; this.btnPlanFinish.TabIndex = 28;
this.btnPlanFinish.Text = "结束计划"; this.btnPlanFinish.Text = "结束计划";
this.btnPlanFinish.UseVisualStyleBackColor = false; this.btnPlanFinish.UseVisualStyleBackColor = false;
@ -550,10 +558,10 @@ namespace PunchingMistake
// //
this.btnPlanSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192))))); this.btnPlanSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.btnPlanSearch.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnPlanSearch.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanSearch.Location = new System.Drawing.Point(17, 152); this.btnPlanSearch.Location = new System.Drawing.Point(16, 133);
this.btnPlanSearch.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPlanSearch.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPlanSearch.Name = "btnPlanSearch"; this.btnPlanSearch.Name = "btnPlanSearch";
this.btnPlanSearch.Size = new System.Drawing.Size(262, 101); this.btnPlanSearch.Size = new System.Drawing.Size(240, 88);
this.btnPlanSearch.TabIndex = 27; this.btnPlanSearch.TabIndex = 27;
this.btnPlanSearch.Text = "计划查询"; this.btnPlanSearch.Text = "计划查询";
this.btnPlanSearch.UseVisualStyleBackColor = false; this.btnPlanSearch.UseVisualStyleBackColor = false;
@ -563,10 +571,10 @@ namespace PunchingMistake
// //
this.btnPlanDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255))))); this.btnPlanDown.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(192)))), ((int)(((byte)(255)))));
this.btnPlanDown.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnPlanDown.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanDown.Location = new System.Drawing.Point(293, 21); this.btnPlanDown.Location = new System.Drawing.Point(269, 18);
this.btnPlanDown.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPlanDown.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPlanDown.Name = "btnPlanDown"; this.btnPlanDown.Name = "btnPlanDown";
this.btnPlanDown.Size = new System.Drawing.Size(262, 101); this.btnPlanDown.Size = new System.Drawing.Size(240, 88);
this.btnPlanDown.TabIndex = 23; this.btnPlanDown.TabIndex = 23;
this.btnPlanDown.Text = "下一计划"; this.btnPlanDown.Text = "下一计划";
this.btnPlanDown.UseVisualStyleBackColor = false; this.btnPlanDown.UseVisualStyleBackColor = false;
@ -576,10 +584,10 @@ namespace PunchingMistake
// //
this.btnPlanUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255))))); this.btnPlanUp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
this.btnPlanUp.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.btnPlanUp.Font = new System.Drawing.Font("微软雅黑", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanUp.Location = new System.Drawing.Point(17, 21); this.btnPlanUp.Location = new System.Drawing.Point(16, 18);
this.btnPlanUp.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.btnPlanUp.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.btnPlanUp.Name = "btnPlanUp"; this.btnPlanUp.Name = "btnPlanUp";
this.btnPlanUp.Size = new System.Drawing.Size(262, 101); this.btnPlanUp.Size = new System.Drawing.Size(240, 88);
this.btnPlanUp.TabIndex = 22; this.btnPlanUp.TabIndex = 22;
this.btnPlanUp.Text = "上一计划"; this.btnPlanUp.Text = "上一计划";
this.btnPlanUp.UseVisualStyleBackColor = false; this.btnPlanUp.UseVisualStyleBackColor = false;
@ -592,7 +600,7 @@ namespace PunchingMistake
this.panel11.Dock = System.Windows.Forms.DockStyle.Fill; this.panel11.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel11.Location = new System.Drawing.Point(3, 3); this.panel11.Location = new System.Drawing.Point(3, 3);
this.panel11.Name = "panel11"; this.panel11.Name = "panel11";
this.panel11.Size = new System.Drawing.Size(562, 204); this.panel11.Size = new System.Drawing.Size(514, 177);
this.panel11.TabIndex = 1; this.panel11.TabIndex = 1;
// //
// lbClass // lbClass
@ -601,9 +609,9 @@ namespace PunchingMistake
this.lbClass.BackColor = System.Drawing.Color.Transparent; this.lbClass.BackColor = System.Drawing.Color.Transparent;
this.lbClass.Font = new System.Drawing.Font("宋体", 26.14286F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbClass.Font = new System.Drawing.Font("宋体", 26.14286F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbClass.ForeColor = System.Drawing.Color.White; this.lbClass.ForeColor = System.Drawing.Color.White;
this.lbClass.Location = new System.Drawing.Point(193, 108); this.lbClass.Location = new System.Drawing.Point(177, 94);
this.lbClass.Name = "lbClass"; this.lbClass.Name = "lbClass";
this.lbClass.Size = new System.Drawing.Size(135, 70); this.lbClass.Size = new System.Drawing.Size(120, 62);
this.lbClass.TabIndex = 4; this.lbClass.TabIndex = 4;
this.lbClass.Text = "A班"; this.lbClass.Text = "A班";
// //
@ -613,9 +621,9 @@ namespace PunchingMistake
this.label10.BackColor = System.Drawing.Color.Transparent; this.label10.BackColor = System.Drawing.Color.Transparent;
this.label10.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label10.Font = new System.Drawing.Font("宋体", 15.85714F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.ForeColor = System.Drawing.Color.White; this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(73, 22); this.label10.Location = new System.Drawing.Point(67, 19);
this.label10.Name = "label10"; this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(437, 43); this.label10.Size = new System.Drawing.Size(378, 37);
this.label10.TabIndex = 3; this.label10.TabIndex = 3;
this.label10.Text = "2025-07-15 11:15:14"; this.label10.Text = "2025-07-15 11:15:14";
this.label10.DoubleClick += new System.EventHandler(this.label10_DoubleClick); this.label10.DoubleClick += new System.EventHandler(this.label10_DoubleClick);
@ -625,9 +633,9 @@ namespace PunchingMistake
this.panel14.Controls.Add(this.lbBadQty); this.panel14.Controls.Add(this.lbBadQty);
this.panel14.Controls.Add(this.label14); this.panel14.Controls.Add(this.label14);
this.panel14.Dock = System.Windows.Forms.DockStyle.Fill; this.panel14.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel14.Location = new System.Drawing.Point(3, 637); this.panel14.Location = new System.Drawing.Point(3, 557);
this.panel14.Name = "panel14"; this.panel14.Name = "panel14";
this.panel14.Size = new System.Drawing.Size(562, 414); this.panel14.Size = new System.Drawing.Size(514, 361);
this.panel14.TabIndex = 2; this.panel14.TabIndex = 2;
// //
// lbBadQty // lbBadQty
@ -638,9 +646,9 @@ namespace PunchingMistake
this.lbBadQty.BackColor = System.Drawing.Color.Transparent; this.lbBadQty.BackColor = System.Drawing.Color.Transparent;
this.lbBadQty.Font = new System.Drawing.Font("宋体", 99.85715F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbBadQty.Font = new System.Drawing.Font("宋体", 99.85715F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbBadQty.ForeColor = System.Drawing.Color.Red; this.lbBadQty.ForeColor = System.Drawing.Color.Red;
this.lbBadQty.Location = new System.Drawing.Point(130, 106); this.lbBadQty.Location = new System.Drawing.Point(119, 93);
this.lbBadQty.Name = "lbBadQty"; this.lbBadQty.Name = "lbBadQty";
this.lbBadQty.Size = new System.Drawing.Size(246, 267); this.lbBadQty.Size = new System.Drawing.Size(215, 234);
this.lbBadQty.TabIndex = 5; this.lbBadQty.TabIndex = 5;
this.lbBadQty.Text = "0"; this.lbBadQty.Text = "0";
// //
@ -650,9 +658,9 @@ namespace PunchingMistake
this.label14.BackColor = System.Drawing.Color.Transparent; this.label14.BackColor = System.Drawing.Color.Transparent;
this.label14.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label14.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label14.ForeColor = System.Drawing.Color.DarkCyan; this.label14.ForeColor = System.Drawing.Color.DarkCyan;
this.label14.Location = new System.Drawing.Point(8, 19); this.label14.Location = new System.Drawing.Point(7, 17);
this.label14.Name = "label14"; this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(560, 40); this.label14.Size = new System.Drawing.Size(503, 35);
this.label14.TabIndex = 1; this.label14.TabIndex = 1;
this.label14.Text = "不良数/UnqualifiedQuantity"; this.label14.Text = "不良数/UnqualifiedQuantity";
// //
@ -660,27 +668,27 @@ namespace PunchingMistake
// //
this.panel15.BackColor = System.Drawing.Color.DarkCyan; this.panel15.BackColor = System.Drawing.Color.DarkCyan;
this.panel15.Dock = System.Windows.Forms.DockStyle.Fill; this.panel15.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel15.Location = new System.Drawing.Point(3, 213); this.panel15.Location = new System.Drawing.Point(3, 186);
this.panel15.Name = "panel15"; this.panel15.Name = "panel15";
this.panel15.Size = new System.Drawing.Size(562, 1); this.panel15.Size = new System.Drawing.Size(514, 1);
this.panel15.TabIndex = 3; this.panel15.TabIndex = 3;
// //
// panel16 // panel16
// //
this.panel16.BackColor = System.Drawing.Color.DarkCyan; this.panel16.BackColor = System.Drawing.Color.DarkCyan;
this.panel16.Dock = System.Windows.Forms.DockStyle.Fill; this.panel16.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel16.Location = new System.Drawing.Point(3, 1057); this.panel16.Location = new System.Drawing.Point(3, 924);
this.panel16.Name = "panel16"; this.panel16.Name = "panel16";
this.panel16.Size = new System.Drawing.Size(562, 1); this.panel16.Size = new System.Drawing.Size(514, 1);
this.panel16.TabIndex = 4; this.panel16.TabIndex = 4;
// //
// panel17 // panel17
// //
this.panel17.BackColor = System.Drawing.Color.DarkCyan; this.panel17.BackColor = System.Drawing.Color.DarkCyan;
this.panel17.Dock = System.Windows.Forms.DockStyle.Fill; this.panel17.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel17.Location = new System.Drawing.Point(3, 635); this.panel17.Location = new System.Drawing.Point(3, 555);
this.panel17.Name = "panel17"; this.panel17.Name = "panel17";
this.panel17.Size = new System.Drawing.Size(562, 1); this.panel17.Size = new System.Drawing.Size(514, 1);
this.panel17.TabIndex = 5; this.panel17.TabIndex = 5;
// //
// panel18 // panel18
@ -709,9 +717,9 @@ namespace PunchingMistake
this.panel18.Controls.Add(this.lbScrewL); this.panel18.Controls.Add(this.lbScrewL);
this.panel18.Controls.Add(this.label2); this.panel18.Controls.Add(this.label2);
this.panel18.Dock = System.Windows.Forms.DockStyle.Fill; this.panel18.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel18.Location = new System.Drawing.Point(3, 215); this.panel18.Location = new System.Drawing.Point(3, 188);
this.panel18.Name = "panel18"; this.panel18.Name = "panel18";
this.panel18.Size = new System.Drawing.Size(562, 414); this.panel18.Size = new System.Drawing.Size(514, 361);
this.panel18.TabIndex = 6; this.panel18.TabIndex = 6;
// //
// lbScanState // lbScanState
@ -719,9 +727,9 @@ namespace PunchingMistake
this.lbScanState.AutoSize = true; this.lbScanState.AutoSize = true;
this.lbScanState.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbScanState.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbScanState.ForeColor = System.Drawing.Color.White; this.lbScanState.ForeColor = System.Drawing.Color.White;
this.lbScanState.Location = new System.Drawing.Point(37, 373); this.lbScanState.Location = new System.Drawing.Point(34, 326);
this.lbScanState.Name = "lbScanState"; this.lbScanState.Name = "lbScanState";
this.lbScanState.Size = new System.Drawing.Size(97, 37); this.lbScanState.Size = new System.Drawing.Size(87, 33);
this.lbScanState.TabIndex = 22; this.lbScanState.TabIndex = 22;
this.lbScanState.Text = " "; this.lbScanState.Text = " ";
// //
@ -730,9 +738,9 @@ namespace PunchingMistake
this.txtLinkState.AutoSize = true; this.txtLinkState.AutoSize = true;
this.txtLinkState.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.txtLinkState.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtLinkState.ForeColor = System.Drawing.Color.White; this.txtLinkState.ForeColor = System.Drawing.Color.White;
this.txtLinkState.Location = new System.Drawing.Point(233, 318); this.txtLinkState.Location = new System.Drawing.Point(214, 278);
this.txtLinkState.Name = "txtLinkState"; this.txtLinkState.Name = "txtLinkState";
this.txtLinkState.Size = new System.Drawing.Size(97, 37); this.txtLinkState.Size = new System.Drawing.Size(87, 33);
this.txtLinkState.TabIndex = 21; this.txtLinkState.TabIndex = 21;
this.txtLinkState.Text = " "; this.txtLinkState.Text = " ";
// //
@ -741,9 +749,9 @@ namespace PunchingMistake
this.label30.AutoSize = true; this.label30.AutoSize = true;
this.label30.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label30.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label30.ForeColor = System.Drawing.Color.White; this.label30.ForeColor = System.Drawing.Color.White;
this.label30.Location = new System.Drawing.Point(37, 318); this.label30.Location = new System.Drawing.Point(34, 278);
this.label30.Name = "label30"; this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(169, 37); this.label30.Size = new System.Drawing.Size(151, 33);
this.label30.TabIndex = 20; this.label30.TabIndex = 20;
this.label30.Text = "连接状态"; this.label30.Text = "连接状态";
// //
@ -752,9 +760,9 @@ namespace PunchingMistake
this.lbIrlsAll.AutoSize = true; this.lbIrlsAll.AutoSize = true;
this.lbIrlsAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbIrlsAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbIrlsAll.ForeColor = System.Drawing.Color.White; this.lbIrlsAll.ForeColor = System.Drawing.Color.White;
this.lbIrlsAll.Location = new System.Drawing.Point(349, 256); this.lbIrlsAll.Location = new System.Drawing.Point(320, 224);
this.lbIrlsAll.Name = "lbIrlsAll"; this.lbIrlsAll.Name = "lbIrlsAll";
this.lbIrlsAll.Size = new System.Drawing.Size(37, 37); this.lbIrlsAll.Size = new System.Drawing.Size(33, 33);
this.lbIrlsAll.TabIndex = 19; this.lbIrlsAll.TabIndex = 19;
this.lbIrlsAll.Text = "0"; this.lbIrlsAll.Text = "0";
// //
@ -763,9 +771,9 @@ namespace PunchingMistake
this.label27.AutoSize = true; this.label27.AutoSize = true;
this.label27.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label27.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label27.ForeColor = System.Drawing.Color.White; this.label27.ForeColor = System.Drawing.Color.White;
this.label27.Location = new System.Drawing.Point(289, 256); this.label27.Location = new System.Drawing.Point(265, 224);
this.label27.Name = "label27"; this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(37, 37); this.label27.Size = new System.Drawing.Size(33, 33);
this.label27.TabIndex = 18; this.label27.TabIndex = 18;
this.label27.Text = "/"; this.label27.Text = "/";
// //
@ -774,9 +782,9 @@ namespace PunchingMistake
this.lbIrls.AutoSize = true; this.lbIrls.AutoSize = true;
this.lbIrls.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbIrls.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbIrls.ForeColor = System.Drawing.Color.White; this.lbIrls.ForeColor = System.Drawing.Color.White;
this.lbIrls.Location = new System.Drawing.Point(233, 256); this.lbIrls.Location = new System.Drawing.Point(214, 224);
this.lbIrls.Name = "lbIrls"; this.lbIrls.Name = "lbIrls";
this.lbIrls.Size = new System.Drawing.Size(37, 37); this.lbIrls.Size = new System.Drawing.Size(33, 33);
this.lbIrls.TabIndex = 17; this.lbIrls.TabIndex = 17;
this.lbIrls.Text = "0"; this.lbIrls.Text = "0";
// //
@ -785,9 +793,9 @@ namespace PunchingMistake
this.label29.AutoSize = true; this.label29.AutoSize = true;
this.label29.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label29.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label29.ForeColor = System.Drawing.Color.White; this.label29.ForeColor = System.Drawing.Color.White;
this.label29.Location = new System.Drawing.Point(90, 256); this.label29.Location = new System.Drawing.Point(83, 224);
this.label29.Name = "label29"; this.label29.Name = "label29";
this.label29.Size = new System.Drawing.Size(93, 37); this.label29.Size = new System.Drawing.Size(83, 33);
this.label29.TabIndex = 16; this.label29.TabIndex = 16;
this.label29.Text = "虹膜"; this.label29.Text = "虹膜";
// //
@ -796,9 +804,9 @@ namespace PunchingMistake
this.lbRivetRAll.AutoSize = true; this.lbRivetRAll.AutoSize = true;
this.lbRivetRAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbRivetRAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRivetRAll.ForeColor = System.Drawing.Color.White; this.lbRivetRAll.ForeColor = System.Drawing.Color.White;
this.lbRivetRAll.Location = new System.Drawing.Point(351, 188); this.lbRivetRAll.Location = new System.Drawing.Point(322, 164);
this.lbRivetRAll.Name = "lbRivetRAll"; this.lbRivetRAll.Name = "lbRivetRAll";
this.lbRivetRAll.Size = new System.Drawing.Size(37, 37); this.lbRivetRAll.Size = new System.Drawing.Size(33, 33);
this.lbRivetRAll.TabIndex = 15; this.lbRivetRAll.TabIndex = 15;
this.lbRivetRAll.Text = "0"; this.lbRivetRAll.Text = "0";
// //
@ -807,9 +815,9 @@ namespace PunchingMistake
this.label19.AutoSize = true; this.label19.AutoSize = true;
this.label19.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label19.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label19.ForeColor = System.Drawing.Color.White; this.label19.ForeColor = System.Drawing.Color.White;
this.label19.Location = new System.Drawing.Point(291, 188); this.label19.Location = new System.Drawing.Point(267, 164);
this.label19.Name = "label19"; this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(37, 37); this.label19.Size = new System.Drawing.Size(33, 33);
this.label19.TabIndex = 14; this.label19.TabIndex = 14;
this.label19.Text = "/"; this.label19.Text = "/";
// //
@ -818,9 +826,9 @@ namespace PunchingMistake
this.lbRivetR.AutoSize = true; this.lbRivetR.AutoSize = true;
this.lbRivetR.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbRivetR.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRivetR.ForeColor = System.Drawing.Color.White; this.lbRivetR.ForeColor = System.Drawing.Color.White;
this.lbRivetR.Location = new System.Drawing.Point(235, 188); this.lbRivetR.Location = new System.Drawing.Point(215, 164);
this.lbRivetR.Name = "lbRivetR"; this.lbRivetR.Name = "lbRivetR";
this.lbRivetR.Size = new System.Drawing.Size(37, 37); this.lbRivetR.Size = new System.Drawing.Size(33, 33);
this.lbRivetR.TabIndex = 13; this.lbRivetR.TabIndex = 13;
this.lbRivetR.Text = "0"; this.lbRivetR.Text = "0";
// //
@ -829,9 +837,9 @@ namespace PunchingMistake
this.label21.AutoSize = true; this.label21.AutoSize = true;
this.label21.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label21.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label21.ForeColor = System.Drawing.Color.White; this.label21.ForeColor = System.Drawing.Color.White;
this.label21.Location = new System.Drawing.Point(35, 188); this.label21.Location = new System.Drawing.Point(32, 164);
this.label21.Name = "label21"; this.label21.Name = "label21";
this.label21.Size = new System.Drawing.Size(171, 37); this.label21.Size = new System.Drawing.Size(153, 33);
this.label21.TabIndex = 12; this.label21.TabIndex = 12;
this.label21.Text = "铆钉(右)"; this.label21.Text = "铆钉(右)";
// //
@ -840,9 +848,9 @@ namespace PunchingMistake
this.lbRivetLAll.AutoSize = true; this.lbRivetLAll.AutoSize = true;
this.lbRivetLAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbRivetLAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRivetLAll.ForeColor = System.Drawing.Color.White; this.lbRivetLAll.ForeColor = System.Drawing.Color.White;
this.lbRivetLAll.Location = new System.Drawing.Point(351, 139); this.lbRivetLAll.Location = new System.Drawing.Point(322, 122);
this.lbRivetLAll.Name = "lbRivetLAll"; this.lbRivetLAll.Name = "lbRivetLAll";
this.lbRivetLAll.Size = new System.Drawing.Size(37, 37); this.lbRivetLAll.Size = new System.Drawing.Size(33, 33);
this.lbRivetLAll.TabIndex = 11; this.lbRivetLAll.TabIndex = 11;
this.lbRivetLAll.Text = "0"; this.lbRivetLAll.Text = "0";
// //
@ -851,9 +859,9 @@ namespace PunchingMistake
this.label23.AutoSize = true; this.label23.AutoSize = true;
this.label23.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label23.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label23.ForeColor = System.Drawing.Color.White; this.label23.ForeColor = System.Drawing.Color.White;
this.label23.Location = new System.Drawing.Point(291, 139); this.label23.Location = new System.Drawing.Point(267, 122);
this.label23.Name = "label23"; this.label23.Name = "label23";
this.label23.Size = new System.Drawing.Size(37, 37); this.label23.Size = new System.Drawing.Size(33, 33);
this.label23.TabIndex = 10; this.label23.TabIndex = 10;
this.label23.Text = "/"; this.label23.Text = "/";
// //
@ -862,9 +870,9 @@ namespace PunchingMistake
this.lbRivetL.AutoSize = true; this.lbRivetL.AutoSize = true;
this.lbRivetL.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbRivetL.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRivetL.ForeColor = System.Drawing.Color.White; this.lbRivetL.ForeColor = System.Drawing.Color.White;
this.lbRivetL.Location = new System.Drawing.Point(235, 139); this.lbRivetL.Location = new System.Drawing.Point(215, 122);
this.lbRivetL.Name = "lbRivetL"; this.lbRivetL.Name = "lbRivetL";
this.lbRivetL.Size = new System.Drawing.Size(37, 37); this.lbRivetL.Size = new System.Drawing.Size(33, 33);
this.lbRivetL.TabIndex = 9; this.lbRivetL.TabIndex = 9;
this.lbRivetL.Text = "0"; this.lbRivetL.Text = "0";
// //
@ -873,9 +881,9 @@ namespace PunchingMistake
this.label25.AutoSize = true; this.label25.AutoSize = true;
this.label25.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label25.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label25.ForeColor = System.Drawing.Color.White; this.label25.ForeColor = System.Drawing.Color.White;
this.label25.Location = new System.Drawing.Point(35, 139); this.label25.Location = new System.Drawing.Point(32, 122);
this.label25.Name = "label25"; this.label25.Name = "label25";
this.label25.Size = new System.Drawing.Size(171, 37); this.label25.Size = new System.Drawing.Size(153, 33);
this.label25.TabIndex = 8; this.label25.TabIndex = 8;
this.label25.Text = "铆钉(左)"; this.label25.Text = "铆钉(左)";
// //
@ -884,9 +892,9 @@ namespace PunchingMistake
this.lbScrewRAll.AutoSize = true; this.lbScrewRAll.AutoSize = true;
this.lbScrewRAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbScrewRAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbScrewRAll.ForeColor = System.Drawing.Color.White; this.lbScrewRAll.ForeColor = System.Drawing.Color.White;
this.lbScrewRAll.Location = new System.Drawing.Point(351, 70); this.lbScrewRAll.Location = new System.Drawing.Point(322, 61);
this.lbScrewRAll.Name = "lbScrewRAll"; this.lbScrewRAll.Name = "lbScrewRAll";
this.lbScrewRAll.Size = new System.Drawing.Size(37, 37); this.lbScrewRAll.Size = new System.Drawing.Size(33, 33);
this.lbScrewRAll.TabIndex = 7; this.lbScrewRAll.TabIndex = 7;
this.lbScrewRAll.Text = "0"; this.lbScrewRAll.Text = "0";
// //
@ -895,9 +903,9 @@ namespace PunchingMistake
this.label15.AutoSize = true; this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label15.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.ForeColor = System.Drawing.Color.White; this.label15.ForeColor = System.Drawing.Color.White;
this.label15.Location = new System.Drawing.Point(291, 70); this.label15.Location = new System.Drawing.Point(267, 61);
this.label15.Name = "label15"; this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(37, 37); this.label15.Size = new System.Drawing.Size(33, 33);
this.label15.TabIndex = 6; this.label15.TabIndex = 6;
this.label15.Text = "/"; this.label15.Text = "/";
// //
@ -906,9 +914,9 @@ namespace PunchingMistake
this.lbScrewR.AutoSize = true; this.lbScrewR.AutoSize = true;
this.lbScrewR.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbScrewR.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbScrewR.ForeColor = System.Drawing.Color.White; this.lbScrewR.ForeColor = System.Drawing.Color.White;
this.lbScrewR.Location = new System.Drawing.Point(235, 70); this.lbScrewR.Location = new System.Drawing.Point(215, 61);
this.lbScrewR.Name = "lbScrewR"; this.lbScrewR.Name = "lbScrewR";
this.lbScrewR.Size = new System.Drawing.Size(37, 37); this.lbScrewR.Size = new System.Drawing.Size(33, 33);
this.lbScrewR.TabIndex = 5; this.lbScrewR.TabIndex = 5;
this.lbScrewR.Text = "0"; this.lbScrewR.Text = "0";
// //
@ -917,9 +925,9 @@ namespace PunchingMistake
this.label17.AutoSize = true; this.label17.AutoSize = true;
this.label17.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label17.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ForeColor = System.Drawing.Color.White; this.label17.ForeColor = System.Drawing.Color.White;
this.label17.Location = new System.Drawing.Point(35, 70); this.label17.Location = new System.Drawing.Point(32, 61);
this.label17.Name = "label17"; this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(171, 37); this.label17.Size = new System.Drawing.Size(153, 33);
this.label17.TabIndex = 4; this.label17.TabIndex = 4;
this.label17.Text = "螺钉(右)"; this.label17.Text = "螺钉(右)";
// //
@ -928,9 +936,9 @@ namespace PunchingMistake
this.lbScrewLAll.AutoSize = true; this.lbScrewLAll.AutoSize = true;
this.lbScrewLAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbScrewLAll.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbScrewLAll.ForeColor = System.Drawing.Color.White; this.lbScrewLAll.ForeColor = System.Drawing.Color.White;
this.lbScrewLAll.Location = new System.Drawing.Point(351, 17); this.lbScrewLAll.Location = new System.Drawing.Point(322, 15);
this.lbScrewLAll.Name = "lbScrewLAll"; this.lbScrewLAll.Name = "lbScrewLAll";
this.lbScrewLAll.Size = new System.Drawing.Size(37, 37); this.lbScrewLAll.Size = new System.Drawing.Size(33, 33);
this.lbScrewLAll.TabIndex = 3; this.lbScrewLAll.TabIndex = 3;
this.lbScrewLAll.Text = "0"; this.lbScrewLAll.Text = "0";
// //
@ -939,9 +947,9 @@ namespace PunchingMistake
this.label8.AutoSize = true; this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label8.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.ForeColor = System.Drawing.Color.White; this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(291, 17); this.label8.Location = new System.Drawing.Point(267, 15);
this.label8.Name = "label8"; this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(37, 37); this.label8.Size = new System.Drawing.Size(33, 33);
this.label8.TabIndex = 2; this.label8.TabIndex = 2;
this.label8.Text = "/"; this.label8.Text = "/";
// //
@ -950,9 +958,9 @@ namespace PunchingMistake
this.lbScrewL.AutoSize = true; this.lbScrewL.AutoSize = true;
this.lbScrewL.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lbScrewL.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbScrewL.ForeColor = System.Drawing.Color.White; this.lbScrewL.ForeColor = System.Drawing.Color.White;
this.lbScrewL.Location = new System.Drawing.Point(235, 17); this.lbScrewL.Location = new System.Drawing.Point(215, 15);
this.lbScrewL.Name = "lbScrewL"; this.lbScrewL.Name = "lbScrewL";
this.lbScrewL.Size = new System.Drawing.Size(37, 37); this.lbScrewL.Size = new System.Drawing.Size(33, 33);
this.lbScrewL.TabIndex = 1; this.lbScrewL.TabIndex = 1;
this.lbScrewL.Text = "0"; this.lbScrewL.Text = "0";
// //
@ -961,9 +969,9 @@ namespace PunchingMistake
this.label2.AutoSize = true; this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.label2.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.ForeColor = System.Drawing.Color.White; this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(35, 17); this.label2.Location = new System.Drawing.Point(32, 15);
this.label2.Name = "label2"; this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(171, 37); this.label2.Size = new System.Drawing.Size(153, 33);
this.label2.TabIndex = 0; this.label2.TabIndex = 0;
this.label2.Text = "螺钉(左)"; this.label2.Text = "螺钉(左)";
// //
@ -978,15 +986,6 @@ namespace PunchingMistake
this.LoadScrewTimer.Interval = 1000; this.LoadScrewTimer.Interval = 1000;
this.LoadScrewTimer.Tick += new System.EventHandler(this.LoadScrewTimer_Tick); this.LoadScrewTimer.Tick += new System.EventHandler(this.LoadScrewTimer_Tick);
// //
// txtBarCode
//
this.txtBarCode.Font = new System.Drawing.Font("宋体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBarCode.Location = new System.Drawing.Point(33, 143);
this.txtBarCode.Name = "txtBarCode";
this.txtBarCode.Size = new System.Drawing.Size(425, 53);
this.txtBarCode.TabIndex = 6;
this.txtBarCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBarCode_KeyDown);
//
// txtBoxFocusTimer // txtBoxFocusTimer
// //
this.txtBoxFocusTimer.Enabled = true; this.txtBoxFocusTimer.Enabled = true;
@ -995,9 +994,9 @@ namespace PunchingMistake
// //
// FrmAssemble // FrmAssemble
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F); this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2125, 1538); this.ClientSize = new System.Drawing.Size(1948, 1346);
this.Controls.Add(this.tableLayoutPanel1); this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Name = "FrmAssemble"; this.Name = "FrmAssemble";

2
PunchingMistake/FrmAssemble.cs

@ -475,7 +475,7 @@ namespace PunchingMistake
ScanAll.barCode4, ScanAll.barCode5, ScanAll.barCode6, _stationNo, ConfigurationManager.AppSettings["StationDescription"]); ScanAll.barCode4, ScanAll.barCode5, ScanAll.barCode6, _stationNo, ConfigurationManager.AppSettings["StationDescription"]);
Function2.SaveZcCode(barcode, partNo1); Function2.SaveZcCode(barcode, partNo1);
Function2.AddCompleteCount(this.Tag?.ToString()); Function2.AddCompleteCount(this.Tag?.ToString(),"合格");
PrintAssembleBarCode(assembleBarCode, partNo1, lbPartDesc.Text, serailNo); PrintAssembleBarCode(assembleBarCode, partNo1, lbPartDesc.Text, serailNo);

14
PunchingMistake/FrmLogin.cs

@ -91,8 +91,18 @@ namespace PunchingMistake
this.Visible = false; this.Visible = false;
Program.UserName = textBox1.Text.Trim(); Program.UserName = textBox1.Text.Trim();
//Form fr = new FrmQualityNew(); //Form fr = new FrmQualityNew();
Form fr = new FrmAssemble();
fr.Show(); if (ConfigurationManager.AppSettings["LoadPage"]?.ToString() == "QA")
{
Form fr = new FrmQualityNew();
fr.Show();
}
else
{
Form fr = new FrmAssemble();
fr.Show();
}
} }
else else

126
PunchingMistake/FrmQualityNew.cs

@ -25,12 +25,12 @@ namespace PunchingMistake
private static string position = "", reason = "", responsible = ""; private static string position = "", reason = "", responsible = "";
private string _stationType = "上线前质检"; private string _stationType = "总成质检";
private string _isTest = "false"; private string _isTest = "false";
//责任方 //责任方
private List<string> _selectResponsibles = new List<string>(); private List<string> _selectResponsibles = new List<string>();
//扫描的喷涂行数据 //扫描的喷涂行数据
private DataRow _scanPaintRow = null; private DataRow _scanAssembleRow = null;
public FrmQualityNew() public FrmQualityNew()
{ {
InitializeComponent(); InitializeComponent();
@ -181,7 +181,7 @@ namespace PunchingMistake
{ {
try try
{ {
if (_scanPaintRow == null) if (_scanAssembleRow == null)
{ {
MessageBox.Show("请先扫描数据,然后操作."); MessageBox.Show("请先扫描数据,然后操作.");
return; return;
@ -189,7 +189,7 @@ namespace PunchingMistake
ShowHint(""); ShowHint("");
SaveRst("合格", _scanPaintRow); SaveRst("合格", _scanAssembleRow);
} }
catch(Exception ex) catch(Exception ex)
{ {
@ -208,7 +208,7 @@ namespace PunchingMistake
/// <summary> /// <summary>
/// 点修补按钮 /// 返修按钮
/// </summary> /// </summary>
/// <param name="sender"></param> /// <param name="sender"></param>
/// <param name="e"></param> /// <param name="e"></param>
@ -216,7 +216,7 @@ namespace PunchingMistake
{ {
try try
{ {
if (_scanPaintRow == null) if (_scanAssembleRow == null)
{ {
MessageBox.Show("请先扫描数据,然后操作."); MessageBox.Show("请先扫描数据,然后操作.");
return; return;
@ -232,12 +232,12 @@ namespace PunchingMistake
btnRepair.BackColor = Color.Yellow; btnRepair.BackColor = Color.Yellow;
SaveRst("点修补", _scanPaintRow); SaveRst("返修", _scanAssembleRow);
} }
catch (Exception ex) catch (Exception ex)
{ {
ShowHint("判定点修补操作发生异常,异常原因:" + ex.Message); ShowHint("判定返修操作发生异常,异常原因:" + ex.Message);
MessageBox.Show("判定点修补操作发生异常,异常原因:" + ex.Message); MessageBox.Show("判定返修操作发生异常,异常原因:" + ex.Message);
Clear(); Clear();
} }
@ -246,24 +246,21 @@ namespace PunchingMistake
{ {
try try
{ {
if (_scanPaintRow == null) if (_scanAssembleRow == null)
{ {
MessageBox.Show("请先扫描数据,然后操作."); MessageBox.Show("请先扫描数据,然后操作.");
return; return;
} }
ShowHint(""); ShowHint("");
#region 必须选择缺陷位置与缺陷原因,否则无法保存
if (CheckDefect() == false) return;
#endregion
SaveRst("抛光", _scanPaintRow); SaveRst("返修合格", _scanAssembleRow);
} }
catch (Exception ex) catch (Exception ex)
{ {
ShowHint("执行报废操作发生异常,异常原因:" + ex.Message); ShowHint("执行返修合格操作发生异常,异常原因:" + ex.Message);
MessageBox.Show("执行报废操作发生异常,异常原因:" + ex.Message); MessageBox.Show("执行返修合格操作发生异常,异常原因:" + ex.Message);
Clear(); Clear();
} }
} }
@ -276,7 +273,7 @@ namespace PunchingMistake
{ {
try try
{ {
if (_scanPaintRow == null) if (_scanAssembleRow == null)
{ {
MessageBox.Show("请先扫描数据,然后操作."); MessageBox.Show("请先扫描数据,然后操作.");
return; return;
@ -290,7 +287,7 @@ namespace PunchingMistake
#endregion #endregion
SaveRst("报废", _scanPaintRow); SaveRst("报废", _scanAssembleRow);
} }
catch(Exception ex) catch(Exception ex)
@ -316,10 +313,10 @@ namespace PunchingMistake
} }
string bcode = txtBarCode.Text.Trim(); string bcode = txtBarCode.Text.Trim();
//保存 //保存
string id = SaveInspect(state, _scanPaintRow, userName); string id = SaveInspect(state, _scanAssembleRow, userName);
if (!string.IsNullOrEmpty(id)) if (!string.IsNullOrEmpty(id))
{ {
_scanPaintRow = null; _scanAssembleRow = null;
ShowHint("操作成功", true); ShowHint("操作成功", true);
ClearPage(); ClearPage();
} }
@ -392,7 +389,7 @@ namespace PunchingMistake
{ {
try try
{ {
if (!string.IsNullOrWhiteSpace(txtBarCode.Text.Trim())) if (scanPaintRow !=null)
{ {
InspectModel model1 = new InspectModel(); InspectModel model1 = new InspectModel();
@ -406,9 +403,9 @@ namespace PunchingMistake
model1.Responsible = responsible;// string.Join(",", _selectResponsibles); model1.Responsible = responsible;// string.Join(",", _selectResponsibles);
model1.remark3 = scanPaintRow["remark3"].ToString(); //model1.remark3 = scanPaintRow["remark3"].ToString();
model1.ForeignPartCode = scanPaintRow["ForeignPartCode"].ToString(); model1.ForeignPartCode = scanPaintRow["ZcPartNo"].ToString();
model1.CarType = scanPaintRow["CarType"].ToString(); //model1.CarType = scanPaintRow["CarType"].ToString();
if (inspectResult != "合格") if (inspectResult != "合格")
@ -419,19 +416,33 @@ namespace PunchingMistake
return ""; return "";
} }
} }
model1.productInfo = scanPaintRow["productInfo"].ToString(); model1.productInfo = labProductInfo.Text;
model1.side = scanPaintRow["side"].ToString(); //model1.side = scanPaintRow["side"].ToString();
model1.InspectTimes = "1"; model1.InspectTimes = "1";
model1.remark1 = scanPaintRow["remark1"].ToString(); //model1.remark1 = scanPaintRow["remark1"].ToString();
model1.remark2 = scanPaintRow["remark2"].ToString(); //model1.remark2 = scanPaintRow["remark2"].ToString();
model1.remark3 = scanPaintRow["remark3"].ToString(); //model1.remark3 = scanPaintRow["remark3"].ToString();
model1.AddMan = userName; model1.AddMan = userName;
return Function2.InsertInspect3(model1); Function2.InsertInspect3(model1, scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ID"].ToString(), scanPaintRow["PlanID"].ToString());
}
if(inspectResult == "报废")
{
//更新计划的报废数量
Function2.AddCompleteCount(scanPaintRow["PlanID"].ToString(), "报废");
Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "0");
} }
if (inspectResult == "返修")
{
Function2.AddCompleteCount(scanPaintRow["PlanID"].ToString(), "返修");
Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "1");
}
//更新tb_Punch_Code_Record数据的状态
return ""; return "";
} }
catch (Exception ex) catch (Exception ex)
@ -527,14 +538,20 @@ namespace PunchingMistake
#endregion #endregion
_scanPaintRow = GetRecentRstInfo(barcode); _scanAssembleRow = GetRecentRstInfo(barcode);
if(_scanPaintRow["inspectResult"].ToString().Contains("合格") == false)
{ string zcPartNo = _scanAssembleRow["ZcPartNo"].ToString();
MessageBox.Show("扫描的条码号:" + barcode + "喷涂线不是合格状态,请重新扫描!"); string partName = Function2.GetProductName(zcPartNo);
txtBarCode.Text = ""; labProductInfo.Text = partName+"["+ zcPartNo+"]";
return;
}
labProductInfo.Text = _scanPaintRow["productInfo"].ToString(); //if (_scanAssembleRow["inspectResult"].ToString().Contains("合格") == false)
//{
// MessageBox.Show("扫描的条码号:" + barcode + "喷涂线不是合格状态,请重新扫描!");
// txtBarCode.Text = "";
// return;
//}
//labProductInfo.Text = _scanAssembleRow["productInfo"].ToString();
//根据条码查询,加载图片及原因 //根据条码查询,加载图片及原因
@ -586,13 +603,6 @@ namespace PunchingMistake
dLb[i].BackColor = Color.Transparent; dLb[i].BackColor = Color.Transparent;
dLb[i].TextAlign = ContentAlignment.MiddleCenter; dLb[i].TextAlign = ContentAlignment.MiddleCenter;
if (dLb[i].Text.Contains("点修补"))
{
dLb[i].Font = new Font(dLb[i].Font.FontFamily, 36, FontStyle.Bold);
dLb[i].Size = new Size(170, 60);
dLb[i].ForeColor = Color.Red;
//dLb[i].BackColor = Color.Red;
}
panel2.Controls.Add(dLb[i]); panel2.Controls.Add(dLb[i]);
dLb[i].Click += new EventHandler(dLbRoom_Click); dLb[i].Click += new EventHandler(dLbRoom_Click);
} }
@ -612,7 +622,7 @@ namespace PunchingMistake
try try
{ {
DataTable dt2 = Function2.SearchInfoByBarCode(barcode); DataTable dt2 = Function2.SearchInfoByBarCode(zcPartNo);
if (dt2 != null && dt2.Rows.Count > 0) if (dt2 != null && dt2.Rows.Count > 0)
{ {
@ -697,30 +707,12 @@ namespace PunchingMistake
DataTable dt = Function2.GetLastResult(barcode); DataTable dt = Function2.GetLastResult(barcode);
if(dt.Rows.Count == 0) if(dt.Rows.Count == 0)
{ {
throw new Exception("塑件条码没有喷涂质检记录"); throw new Exception("扫描条码没有装配记录,无法质检");
} }
DataRow dr = dt.Rows[0]; //写到这
if(_isTest == "false")
{
string errorMsg = string.Empty;
//wms是否喷涂下线
bool isExsit = Function2.GetPointRepairFrWms(barcode, ref errorMsg);
if (isExsit == false)
{
if (!string.IsNullOrEmpty(errorMsg))
{
throw new Exception("在wms系统的查询返修入库记录时发生错误,错误原因:" + errorMsg);
} DataRow dr = dt.Rows[0];
else
{
throw new Exception("没有在wms系统的返修入库记录,无法进行点修补.");
}
}
}
return dr; return dr;
} }

8
PunchingMistake/FrmQualityNew1.cs

@ -378,14 +378,6 @@ namespace PunchingMistake
if (CheckColor(ref colorName, ref partName) == false) return; if (CheckColor(ref colorName, ref partName) == false) return;
#endregion #endregion
int cs = Function.OtherTimes(txtBarCode.Text.Trim());
if (cs > 0)
{
MessageBox.Show("条码" + txtBarCode.Text.Trim() + "已存在判定为其它的记录,只允许判定1次.");
ShowHint("条码" + txtBarCode.Text.Trim() + "已存在判定为其它的记录,只允许判定1次.");
Clear();
return;
}
bool rr = SaveBeforeVerify("其它"); bool rr = SaveBeforeVerify("其它");
if (rr == false) if (rr == false)

182
PunchingMistake/Function2.cs

@ -438,12 +438,42 @@ namespace PunchingMistake
return res; return res;
} }
} }
public static int AddCompleteCount(string ID) public static int AddCompleteCount(string ID,string state)
{ {
int res = 0; int res = 0;
try try
{ {
string sql = " update tb_ZP_MK_Plan set OKCount = OKCount + 1 where ID = '" + ID + "' "; string sql = string.Empty;
if(state == "合格")
{
sql = " update tb_ZP_MK_Plan set OKCount = OKCount + 1 where ID = '" + ID + "' ";
}
else if (state == "报废")
{
sql = " update tb_ZP_MK_Plan set BadCount = BadCount + 1 where ID = '" + ID + "' ";
}
else if (state == "返修")
{
sql = " update tb_ZP_MK_Plan set RepairCount = RepairCount + 1 where ID = '" + ID + "' ";
}
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res;
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
return res;
}
}
public static int UpdateRecordFlag(string ID, string state)
{
int res = 0;
try
{
string sql = string.Empty;
sql = $" update tb_Punch_Code_Record set Flag = {state} where ID = '" + ID + "' ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null); res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res; return res;
} }
@ -987,30 +1017,158 @@ namespace PunchingMistake
return false; return false;
} }
public static string InsertInspect3(InspectModel model1) public static string InsertInspect3(InspectModel model,string zcBarCode, string planID, string recordID)
{ {
return ""; int res = 0; string sql = string.Empty;
try
{
sql = @" INSERT INTO [dbo].[tb_Punch_Quality]
(
[barcode]
,[side]
,[position]
,[stationNo]
,[workClass]
,[inspectResult]
,[damnPosition]
,[defectID]
,[reason]
,[productInfo]
,[productOption]
,[createTime]
,[InspectTimes]
,[remark1]
,[remark2]
,[remark3]
,[CarType]
,[AddMan]
,[ZcPartCode]
,[Responsible]
,[ZcBarCode]
,[RecordID]
,[PlanID]
)
VALUES
('" + model.barcode + @"'
,'" + model.side + @"'
,'" + model.position + @"'
,'" + model.stationNo + @"'
,'" + model.workClass + @"'
,'" + model.inspectResult + @"'
,'" + model.damnPosition + @"'
,'" + model.defectID + @"'
,'" + model.reason + @"'
,'" + model.productInfo + @"'
,'" + model.productOption + @"'
,(select getdate()), '" + model.InspectTimes + @"'
,'" + model.remark1 + @"'
,'" + model.remark2 + @"'
,'" + model.remark3 + @"'
,'" + model.CarType + @"'
,'" + model.AddMan + @"'
,'" + model.ForeignPartCode + @"'
,'" + model.Responsible + @"'
,'" + zcBarCode + @"'
,'" + planID + @"'
,'" + recordID + @"'
);select @@Identity ";
DataTable dt = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (dt.Rows.Count > 0)
{
return dt.Rows[0][0].ToString();
}
return "";
}
catch (Exception ex)
{
LogHelper.WriteLog($"插入tb_Punch_Quality表错误,sql ='{sql}' ,异常信息:" + ex.Message);
return "";
}
} }
public static DataTable SearchDefectInfo(string stationNo) public static DataTable SearchDefectInfo(string stationNo)
{ {
return null; DataTable res = new DataTable();
try
{
string sql = @" select * from tb_Defect where LineID = (select LineID from tb_Station where StationNo = '" + stationNo + @"') ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
//LogHelper.WriteSysLogBase("[入参:]stationNo=" + stationNo + "[sql:]" + sql, MethodBase.GetCurrentMethod().Name);
return res;
}
catch (Exception ex)
{
//LogHelper.WriteLogManager(ex);
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_Defect表错误,StationNo ='{stationNo}' ,异常信息:" + ex.Message);
return res;
}
} }
public static DataTable SearchInfoByBarCode(string barcode) public static DataTable SearchInfoByBarCode(string partNo)
{ {
return null; DataTable res = new DataTable();
try
{
string sql = "";
if (!string.IsNullOrWhiteSpace(partNo))
{
sql = " select * from tb_Product where PartNo = '" + partNo.Trim() + @"'";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
}
//LogHelper.WriteSysLogBase("[入参:]barcode=" + barcode+"[sql:]"+ sql, MethodBase.GetCurrentMethod().Name);
return res;
}
catch (Exception ex)
{
LogHelper.WriteLog($"查询tb_Product表错误,PartNo ='{partNo}' ,异常信息:" + ex.Message);
return res;
}
} }
public static string GetImgPath() public static string GetImgPath()
{ {
return ""; string res = "";
try
{
string sql_imgPath = " select top 1 value from tb_Config where name = 'ImgPath' ";
object aa = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql_imgPath, null);
if (aa != null)
{
res = aa.ToString();
}
}
catch (Exception ex)
{
LogHelper.WriteLog($"查询tb_Config表错误,name ='ImgPath' ,异常信息:" + ex.Message);
}
return res;
} }
public static DataTable GetLastResult(string barcode) public static DataTable GetLastResult(string barcode)
{ {
DataTable res = null;
try
{
string sql = string.Empty;
if (barcode.Contains("."))
{
sql = $"select top 1 * from tb_Punch_Code_Record where ZcBarCode ='{barcode}' order by id desc ";
}
else
{
sql = $"select top 1 * from tb_Punch_Code_Record where barcode ='{barcode}' order by id desc ";
}
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res;
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_Punch_Code_Record表错误,barcode ='{barcode}' ,异常信息:" + ex.Message);
}
return null; return null;
} }
public static bool GetPointRepairFrWms(string barcode ,ref string errorMsg)
{
return true;
}
} }

2
PunchingMistake/Function3.cs

@ -63,7 +63,7 @@ namespace PunchingMistake
bool res = false; bool res = false;
if (!string.IsNullOrWhiteSpace(barcode)) if (!string.IsNullOrWhiteSpace(barcode))
{ {
if (barcode.Contains(".")) if (barcode.Contains(".")&& barcode.Contains(";"))
{ {
res = true; res = true;
} }

2
PunchingMistake/Program.cs

@ -1,5 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Configuration;
using System.Data.SqlClient; using System.Data.SqlClient;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
@ -21,6 +22,7 @@ namespace PunchingMistake
Application.EnableVisualStyles(); Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false); Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new FrmLogin()); Application.Run(new FrmLogin());
} }
} }
} }

Loading…
Cancel
Save