Browse Source

门槛装配

master
ruoxing.wang 5 days ago
parent
commit
719169b2b7
  1. 169
      FacOneZPStation/FrmZP.Designer.cs
  2. 396
      InjectionPC/FrmMain2411.Designer.cs
  3. 2
      MESClassLibrary/BussinessHelper.cs
  4. 27
      PaintingPC/FrmQualityOnLine.cs
  5. BIN
      PunchingMistake/DLL/Interop.OPCAutomation.dll
  6. BIN
      PunchingMistake/DLL/Interop.grdes6Lib.dll
  7. BIN
      PunchingMistake/DLL/Interop.gregn6Lib.dll
  8. BIN
      PunchingMistake/DLL/PlaySound.dll
  9. 692
      PunchingMistake/FrmAssemble.Designer.cs
  10. 558
      PunchingMistake/FrmAssemble.cs
  11. 9
      PunchingMistake/FrmAssemble.resx
  12. 53
      PunchingMistake/FrmLogin.Designer.cs
  13. 270
      PunchingMistake/FrmPlanSeach.Designer.cs
  14. 54
      PunchingMistake/FrmPlanSeach.cs
  15. 162
      PunchingMistake/FrmPlanSeach.resx
  16. 101
      PunchingMistake/FrmProScreen3.Designer.cs
  17. 1297
      PunchingMistake/FrmProScreen3.cs
  18. 590
      PunchingMistake/FrmQualityNew.Designer.cs
  19. 1194
      PunchingMistake/FrmQualityNew.cs
  20. 3
      PunchingMistake/FrmQualityNew.resx
  21. 656
      PunchingMistake/FrmQualityNew1.Designer.cs
  22. 1544
      PunchingMistake/FrmQualityNew1.cs
  23. 475
      PunchingMistake/FrmQualityNew1.resx
  24. 480
      PunchingMistake/Function2.cs
  25. 125
      PunchingMistake/Function3.cs
  26. BIN
      PunchingMistake/Images/正确.wav
  27. BIN
      PunchingMistake/Images/错误.wav
  28. 344
      PunchingMistake/PlcInvoke.cs
  29. 55
      PunchingMistake/Printer.cs
  30. 55
      PunchingMistake/PunchingMistake.csproj

169
FacOneZPStation/FrmZP.Designer.cs

@ -28,7 +28,6 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmZP));
this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
this.button6 = new System.Windows.Forms.Button();
@ -48,7 +47,7 @@
this.labPName = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.labPartNo = new System.Windows.Forms.Label();
this.timer1 = new System.Windows.Forms.Timer(this.components);
this.timer1 = new System.Windows.Forms.Timer();
this.label6 = new System.Windows.Forms.Label();
this.labBadCount = new System.Windows.Forms.Label();
this.labNum = new System.Windows.Forms.Label();
@ -77,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.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.Absolute, 737F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 807F));
this.tableLayoutPanel3.Controls.Add(this.button6, 3, 0);
this.tableLayoutPanel3.Controls.Add(this.button1, 0, 1);
this.tableLayoutPanel3.Controls.Add(this.button5, 2, 1);
@ -86,14 +85,14 @@
this.tableLayoutPanel3.Controls.Add(this.button2, 1, 1);
this.tableLayoutPanel3.Controls.Add(this.button7, 3, 1);
this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 1224);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.tableLayoutPanel3.Location = new System.Drawing.Point(7, 1400);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.tableLayoutPanel3.Name = "tableLayoutPanel3";
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.Absolute, 35F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(2335, 371);
this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(2546, 423);
this.tableLayoutPanel3.TabIndex = 3;
//
// button6
@ -102,10 +101,10 @@
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.ForeColor = System.Drawing.Color.Black;
this.button6.Location = new System.Drawing.Point(1610, 12);
this.button6.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button6.Location = new System.Drawing.Point(1751, 14);
this.button6.Margin = new System.Windows.Forms.Padding(14);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(712, 161);
this.button6.Size = new System.Drawing.Size(781, 183);
this.button6.TabIndex = 7;
this.button6.Text = "手动打印箱单";
this.button6.UseVisualStyleBackColor = false;
@ -116,10 +115,10 @@
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.Font = new System.Drawing.Font("黑体", 16F);
this.button1.Location = new System.Drawing.Point(6, 190);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Location = new System.Drawing.Point(7, 217);
this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(523, 176);
this.button1.Size = new System.Drawing.Size(568, 200);
this.button1.TabIndex = 6;
this.button1.Text = "打印标签";
this.button1.UseVisualStyleBackColor = false;
@ -131,10 +130,10 @@
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.ForeColor = System.Drawing.Color.Black;
this.button5.Location = new System.Drawing.Point(1085, 197);
this.button5.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button5.Location = new System.Drawing.Point(1180, 225);
this.button5.Margin = new System.Windows.Forms.Padding(14);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(499, 162);
this.button5.Size = new System.Drawing.Size(543, 184);
this.button5.TabIndex = 5;
this.button5.Text = "不合格";
this.button5.UseVisualStyleBackColor = false;
@ -145,10 +144,10 @@
this.button4.BackColor = System.Drawing.Color.RoyalBlue;
this.button4.Dock = System.Windows.Forms.DockStyle.Fill;
this.button4.Font = new System.Drawing.Font("黑体", 16F);
this.button4.Location = new System.Drawing.Point(541, 5);
this.button4.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button4.Location = new System.Drawing.Point(589, 6);
this.button4.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(525, 175);
this.button4.Size = new System.Drawing.Size(570, 199);
this.button4.TabIndex = 4;
this.button4.Text = "下一计划";
this.button4.UseVisualStyleBackColor = false;
@ -159,10 +158,10 @@
this.button3.BackColor = System.Drawing.Color.Aqua;
this.button3.Dock = System.Windows.Forms.DockStyle.Fill;
this.button3.Font = new System.Drawing.Font("黑体", 16F);
this.button3.Location = new System.Drawing.Point(6, 5);
this.button3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button3.Location = new System.Drawing.Point(7, 6);
this.button3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(523, 175);
this.button3.Size = new System.Drawing.Size(568, 199);
this.button3.TabIndex = 3;
this.button3.Text = "上一计划";
this.button3.UseVisualStyleBackColor = false;
@ -174,10 +173,10 @@
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.ForeColor = System.Drawing.Color.Black;
this.button2.Location = new System.Drawing.Point(548, 197);
this.button2.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button2.Location = new System.Drawing.Point(596, 225);
this.button2.Margin = new System.Windows.Forms.Padding(14);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(511, 162);
this.button2.Size = new System.Drawing.Size(556, 184);
this.button2.TabIndex = 2;
this.button2.Text = "补打标签";
this.button2.UseVisualStyleBackColor = false;
@ -188,10 +187,10 @@
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.Font = new System.Drawing.Font("黑体", 16F);
this.button7.Location = new System.Drawing.Point(1603, 190);
this.button7.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button7.Location = new System.Drawing.Point(1744, 217);
this.button7.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(726, 176);
this.button7.Size = new System.Drawing.Size(795, 200);
this.button7.TabIndex = 8;
this.button7.Text = "补打箱单";
this.button7.UseVisualStyleBackColor = false;
@ -203,11 +202,11 @@
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.ForeColor = System.Drawing.Color.White;
this.label7.Location = new System.Drawing.Point(1275, 3);
this.label7.Location = new System.Drawing.Point(1385, 3);
this.label7.Margin = new System.Windows.Forms.Padding(2);
this.label7.Name = "label7";
this.tableLayoutPanel4.SetRowSpan(this.label7, 2);
this.label7.Size = new System.Drawing.Size(249, 210);
this.label7.Size = new System.Drawing.Size(272, 241);
this.label7.TabIndex = 32;
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@ -215,10 +214,10 @@
//
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.Location = new System.Drawing.Point(368, 111);
this.textBox2.Margin = new System.Windows.Forms.Padding(4);
this.textBox2.Location = new System.Drawing.Point(399, 127);
this.textBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(900, 77);
this.textBox2.Size = new System.Drawing.Size(979, 87);
this.textBox2.TabIndex = 30;
this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown);
//
@ -227,10 +226,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(5, 107);
this.label3.Location = new System.Drawing.Point(5, 122);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(354, 108);
this.label3.Size = new System.Drawing.Size(385, 124);
this.label3.TabIndex = 29;
this.label3.Text = "扫描物料条码";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -240,10 +239,10 @@
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.ForeColor = System.Drawing.Color.White;
this.labOrderNo.Location = new System.Drawing.Point(1529, 218);
this.labOrderNo.Location = new System.Drawing.Point(1662, 249);
this.labOrderNo.Margin = new System.Windows.Forms.Padding(2);
this.labOrderNo.Name = "labOrderNo";
this.labOrderNo.Size = new System.Drawing.Size(807, 151);
this.labOrderNo.Size = new System.Drawing.Size(887, 174);
this.labOrderNo.TabIndex = 28;
this.labOrderNo.Text = "A64654646464";
this.labOrderNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -254,10 +253,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(1275, 218);
this.label4.Location = new System.Drawing.Point(1385, 249);
this.label4.Margin = new System.Windows.Forms.Padding(2);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(249, 151);
this.label4.Size = new System.Drawing.Size(272, 174);
this.label4.TabIndex = 27;
this.label4.Text = "计划编号";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -268,10 +267,10 @@
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.ForeColor = System.Drawing.Color.White;
this.labStationNo.Location = new System.Drawing.Point(366, 218);
this.labStationNo.Location = new System.Drawing.Point(397, 249);
this.labStationNo.Margin = new System.Windows.Forms.Padding(2);
this.labStationNo.Name = "labStationNo";
this.labStationNo.Size = new System.Drawing.Size(904, 151);
this.labStationNo.Size = new System.Drawing.Size(983, 174);
this.labStationNo.TabIndex = 26;
this.labStationNo.Text = "V253-MF-S后保下部延伸焊接";
this.labStationNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -282,10 +281,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(3, 218);
this.label2.Location = new System.Drawing.Point(3, 249);
this.label2.Margin = new System.Windows.Forms.Padding(2);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(358, 151);
this.label2.Size = new System.Drawing.Size(389, 174);
this.label2.TabIndex = 25;
this.label2.Text = "工位名称";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -295,10 +294,10 @@
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.ForeColor = System.Drawing.Color.White;
this.labPName.Location = new System.Drawing.Point(1529, 374);
this.labPName.Location = new System.Drawing.Point(1662, 428);
this.labPName.Margin = new System.Windows.Forms.Padding(2);
this.labPName.Name = "labPName";
this.labPName.Size = new System.Drawing.Size(807, 248);
this.labPName.Size = new System.Drawing.Size(887, 284);
this.labPName.TabIndex = 24;
this.labPName.Text = "MF253 MF S后保";
this.labPName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -309,10 +308,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(1275, 374);
this.label8.Location = new System.Drawing.Point(1385, 428);
this.label8.Margin = new System.Windows.Forms.Padding(2);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(249, 248);
this.label8.Size = new System.Drawing.Size(272, 284);
this.label8.TabIndex = 23;
this.label8.Text = "产品名称";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -323,10 +322,10 @@
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.ForeColor = System.Drawing.Color.White;
this.labPartNo.Location = new System.Drawing.Point(366, 374);
this.labPartNo.Location = new System.Drawing.Point(397, 428);
this.labPartNo.Margin = new System.Windows.Forms.Padding(2);
this.labPartNo.Name = "labPartNo";
this.labPartNo.Size = new System.Drawing.Size(904, 248);
this.labPartNo.Size = new System.Drawing.Size(983, 284);
this.labPartNo.TabIndex = 22;
this.labPartNo.Text = "A2530822665";
this.labPartNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -342,10 +341,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(3, 374);
this.label6.Location = new System.Drawing.Point(3, 428);
this.label6.Margin = new System.Windows.Forms.Padding(2);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(358, 248);
this.label6.Size = new System.Drawing.Size(389, 284);
this.label6.TabIndex = 21;
this.label6.Text = "产品代码";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -356,10 +355,10 @@
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.ForeColor = System.Drawing.Color.Lime;
this.labBadCount.Location = new System.Drawing.Point(1529, 627);
this.labBadCount.Location = new System.Drawing.Point(1662, 717);
this.labBadCount.Margin = new System.Windows.Forms.Padding(2);
this.labBadCount.Name = "labBadCount";
this.labBadCount.Size = new System.Drawing.Size(807, 451);
this.labBadCount.Size = new System.Drawing.Size(887, 515);
this.labBadCount.TabIndex = 20;
this.labBadCount.Text = "0";
this.labBadCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -370,10 +369,10 @@
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.ForeColor = System.Drawing.Color.Lime;
this.labNum.Location = new System.Drawing.Point(366, 627);
this.labNum.Location = new System.Drawing.Point(397, 717);
this.labNum.Margin = new System.Windows.Forms.Padding(2);
this.labNum.Name = "labNum";
this.labNum.Size = new System.Drawing.Size(904, 451);
this.labNum.Size = new System.Drawing.Size(983, 515);
this.labNum.TabIndex = 18;
this.labNum.Text = "152/210";
this.labNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -384,10 +383,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(3, 627);
this.label10.Location = new System.Drawing.Point(3, 717);
this.label10.Margin = new System.Windows.Forms.Padding(2);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(358, 451);
this.label10.Size = new System.Drawing.Size(389, 515);
this.label10.TabIndex = 17;
this.label10.Text = "计划/完成数";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -400,7 +399,7 @@
this.label14.Location = new System.Drawing.Point(5, 1);
this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(354, 105);
this.label14.Size = new System.Drawing.Size(385, 120);
this.label14.TabIndex = 12;
this.label14.Text = "扫描本体条码";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -409,10 +408,10 @@
//
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.Location = new System.Drawing.Point(368, 5);
this.textBox1.Margin = new System.Windows.Forms.Padding(4);
this.textBox1.Location = new System.Drawing.Point(399, 6);
this.textBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(900, 77);
this.textBox1.Size = new System.Drawing.Size(979, 87);
this.textBox1.TabIndex = 13;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
@ -421,11 +420,11 @@
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.ForeColor = System.Drawing.Color.Red;
this.labErrMessage.Location = new System.Drawing.Point(1531, 1);
this.labErrMessage.Location = new System.Drawing.Point(1664, 1);
this.labErrMessage.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.labErrMessage.Name = "labErrMessage";
this.tableLayoutPanel4.SetRowSpan(this.labErrMessage, 2);
this.labErrMessage.Size = new System.Drawing.Size(803, 214);
this.labErrMessage.Size = new System.Drawing.Size(883, 245);
this.labErrMessage.TabIndex = 16;
this.labErrMessage.Text = "条码与产品不匹配,重新扫描";
this.labErrMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -437,9 +436,9 @@
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, 71.47708F));
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, 810F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 37F));
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, 890F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayoutPanel4.Controls.Add(this.label7, 2, 0);
this.tableLayoutPanel4.Controls.Add(this.textBox2, 1, 1);
this.tableLayoutPanel4.Controls.Add(this.label3, 0, 1);
@ -459,17 +458,17 @@
this.tableLayoutPanel4.Controls.Add(this.textBox1, 1, 0);
this.tableLayoutPanel4.Controls.Add(this.labErrMessage, 3, 0);
this.tableLayoutPanel4.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 134);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4);
this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 154);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tableLayoutPanel4.Name = "tableLayoutPanel4";
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, 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, 40.52419F));
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, 35F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(2339, 1081);
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, 40F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(2552, 1235);
this.tableLayoutPanel4.TabIndex = 2;
//
// label12
@ -478,10 +477,10 @@
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.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(1275, 627);
this.label12.Location = new System.Drawing.Point(1385, 717);
this.label12.Margin = new System.Windows.Forms.Padding(2);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(249, 451);
this.label12.Size = new System.Drawing.Size(272, 515);
this.label12.TabIndex = 19;
this.label12.Text = "不合格数";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -491,10 +490,10 @@
this.labTime.BackColor = System.Drawing.Color.Transparent;
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.Location = new System.Drawing.Point(1743, 0);
this.labTime.Location = new System.Drawing.Point(1898, 0);
this.labTime.Margin = new System.Windows.Forms.Padding(0);
this.labTime.Name = "labTime";
this.labTime.Size = new System.Drawing.Size(604, 130);
this.labTime.Size = new System.Drawing.Size(662, 149);
this.labTime.TabIndex = 7;
this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTime.Click += new System.EventHandler(this.labTime_Click);
@ -508,7 +507,7 @@
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(0);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(315, 130);
this.pictureBox1.Size = new System.Drawing.Size(343, 149);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
@ -518,10 +517,10 @@
this.label1.BackColor = System.Drawing.Color.Transparent;
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.Location = new System.Drawing.Point(315, 0);
this.label1.Location = new System.Drawing.Point(343, 0);
this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(1428, 130);
this.label1.Size = new System.Drawing.Size(1555, 149);
this.label1.TabIndex = 1;
this.label1.Text = "装配工位信息看板";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -532,7 +531,7 @@
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, 81.89349F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 603F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 661F));
this.tableLayoutPanel2.Controls.Add(this.labTime, 2, 0);
this.tableLayoutPanel2.Controls.Add(this.pictureBox1, 0, 0);
this.tableLayoutPanel2.Controls.Add(this.label1, 1, 0);
@ -542,7 +541,7 @@
this.tableLayoutPanel2.Name = "tableLayoutPanel2";
this.tableLayoutPanel2.RowCount = 1;
this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
this.tableLayoutPanel2.Size = new System.Drawing.Size(2347, 130);
this.tableLayoutPanel2.Size = new System.Drawing.Size(2560, 149);
this.tableLayoutPanel2.TabIndex = 0;
//
// tableLayoutPanel1
@ -559,18 +558,18 @@
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, 89.30308F));
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 380F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2347, 1600);
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 434F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2560, 1829);
this.tableLayoutPanel1.TabIndex = 9;
//
// FrmZP
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2347, 1600);
this.ClientSize = new System.Drawing.Size(2560, 1829);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.Name = "FrmZP";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmZP";

396
InjectionPC/FrmMain2411.Designer.cs

File diff suppressed because it is too large

2
MESClassLibrary/BussinessHelper.cs

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
@ -47,6 +48,7 @@ namespace MESClassLibrary
}
/// <summary>
/// 喷涂质检,当前状态和上一次质检状态是否允许操作判断
/// </summary>

27
PaintingPC/FrmQualityOnLine.cs

@ -75,33 +75,6 @@ namespace PaintingPC
{ }
}
/// <summary>
/// 初始化颜色选择框列表
/// </summary>
/// <param name="stockNo"></param>
public void InitColor(string stockNo)
{
try
{
DataTable dt = Function.GetColorByStockNo(stockNo);
if(dt.Rows.Count == 0)
{
lbForeig.Text = $"基础数据-产品颜色菜单未配置[{stockNo}]的颜色信息";
}
DataRow dr = dt.NewRow();
dr["Color"] = "";
dt.Rows.InsertAt(dr, 0);
}
catch (Exception ex)
{
LogHelper.WriteLogManager(ex);
LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
throw ex;
}
}
private void TimeGo()
{
System.Timers.Timer timer = new System.Timers.Timer();

BIN
PunchingMistake/DLL/Interop.OPCAutomation.dll

Binary file not shown.

BIN
PunchingMistake/DLL/Interop.grdes6Lib.dll

Binary file not shown.

BIN
PunchingMistake/DLL/Interop.gregn6Lib.dll

Binary file not shown.

BIN
PunchingMistake/DLL/PlaySound.dll

Binary file not shown.

692
PunchingMistake/FrmAssemble.Designer.cs

File diff suppressed because it is too large

558
PunchingMistake/FrmAssemble.cs

@ -23,12 +23,34 @@ namespace PunchingMistake
{
public partial class FrmAssemble : Form
{
private PlcInvoke _plcInvoke = null;
private GridppReport Report = new GridppReport();
private string oneBarCode = "", _stationNo = "", stationId = "";
private UniqueBll _uniqueBll = new UniqueBll();
private string _sjBarCode = string.Empty;
private string _partNo1 = string.Empty;
private string _partNo2 = string.Empty;
/// <summary>
/// 当前设备行数据ID
/// </summary>
private string _lineDataID = string.Empty;
public FrmAssemble()
{
InitializeComponent();
this.StartPosition = FormStartPosition.CenterScreen;
string plcRate = ConfigurationManager.AppSettings["刷新频率"] ;
int rate = 0;
int.TryParse(plcRate, out rate);
if (rate == 0)
{
rate = 200;
}
_plcInvoke = new PlcInvoke("BBMPT.Assemble", _stationNo);
_plcInvoke.ShowLinkInfo = ShowLinkResult;
_plcInvoke.ShowMessage = ShowMassege;
_plcInvoke.InitDev(rate);
}
private void FrmAssemble_Load(object sender, EventArgs e)
@ -39,6 +61,8 @@ namespace PunchingMistake
Control.CheckForIllegalCrossThreadCalls = false;
Thread t = new Thread(new ThreadStart(TimeGo));
t.Start();
LoadScreen();
}
public void LoadScreen()
@ -48,11 +72,34 @@ namespace PunchingMistake
{
SetPage(dt);
}
if(string.IsNullOrEmpty(_lineDataID))
{
if (this.Tag != null)
{
DataTable lineTable = Function2.GetPunchLineInfo(this.Tag.ToString(), _stationNo);
if (lineTable.Rows.Count > 0)
{
_lineDataID = lineTable.Rows[0]["ID"].ToString();
_sjBarCode = lineTable.Rows[0]["SjBarCode"].ToString();
_partNo1 = lineTable.Rows[0]["PartNo1"].ToString();
_partNo2 = lineTable.Rows[0]["PartNo2"].ToString();
ScanAll.barCode1 = lineTable.Rows[0]["barCode1"].ToString();
ScanAll.barCode2 = lineTable.Rows[0]["barCode2"].ToString();
ScanAll.barCode3 = lineTable.Rows[0]["barCode3"].ToString();
ScanAll.barCode4 = lineTable.Rows[0]["barCode4"].ToString();
ScanAll.barCode5 = lineTable.Rows[0]["barCode5"].ToString();
ScanAll.barCode6 = lineTable.Rows[0]["barCode6"].ToString();
_plcInvoke.SetLineID(_lineDataID);
}
}
}
LoadScrewTimer_Tick(null, null);
}
public void SetPage(DataTable dt)
{
ClearPage();
if (dt.Rows.Count > 0)
{
this.Tag = dt.Rows[0]["ID"].ToString();
@ -71,7 +118,7 @@ namespace PunchingMistake
}
void ClearPage()
{
lbStation.Text = "";
//lbStation.Text = "";
lbPlan.Text = "";
lbPart.Text = "";
lbPartDesc.Text = "";
@ -79,6 +126,16 @@ namespace PunchingMistake
private void btnPlanUp_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(_lineDataID))
{
DataTable lineTable = Function2.GetPunchLineInfo(_lineDataID);
if (lineTable.Rows.Count > 0)
{
MessageBox.Show("当前订单未完成,无法切换下一计划.");
return;
}
}
LoadPlanScreen(this.Tag?.ToString(), "上一计划");
txtBarCode.Select();
txtBarCode.Focus();
@ -86,13 +143,22 @@ namespace PunchingMistake
private void btnPlanDown_Click(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(_lineDataID))
{
DataTable lineTable = Function2.GetPunchLineInfo(_lineDataID);
if(lineTable.Rows.Count>0)
{
MessageBox.Show("当前订单未完成,无法切换下一计划.");
return;
}
}
LoadPlanScreen(this.Tag?.ToString(), "下一计划");
ClearScanData(true);
txtBarCode.Select();
txtBarCode.Focus();
}
public void LoadPlanScreen(string id, string plan)
{
DataTable dt = Function2.GetProScreenPlan(id, _stationNo, plan);
if (dt != null && dt.Rows.Count > 0)
{
@ -121,74 +187,279 @@ namespace PunchingMistake
{
try
{
WriteHint("", true);
if (e.KeyCode != Keys.Enter)
{
return;
}
WriteHint("", true);
string barcode = txtBarCode.Text?.Trim();
if (string.IsNullOrEmpty(barcode))
{
throw new Exception("扫描条码为空!");
}
if (string.IsNullOrEmpty(this.Tag?.ToString()))
{
throw new Exception("当前没有生产计划.");
}
ScanBarCode();
if (barcode == "88888888")
{
if (string.IsNullOrEmpty(_sjBarCode))
{
throw new Exception("请先扫描半成品塑件条码!");
}
else if (string.IsNullOrEmpty(_partNo1))
{
throw new Exception("总成零件号为空,无法保存!");
}
else if (string.IsNullOrEmpty(_partNo2))
{
throw new Exception("半成品零件号为空,无法保存!");
}
if(ScrewCompleteVerify() == false)
{
throw new Exception("螺钉铆钉未打够数量,无法保存!");
}
SaveScanRecord(_sjBarCode, _partNo1, _partNo2);
Function2. DeleteLineData(_lineDataID);
ClearScanData(true);
SentToPlc(true, _lineDataID);
ShowHint(true);
WriteHint("保存成功", true);
return;
}
else
{
_sjBarCode = txtBarCode.Text?.Trim();
ScanBarCode();
}
}
catch(Exception ex)
{
//ClearScanData(false);
ShowHint(false);
WriteHint(ex.Message,false);
}
//finally
//{
// txtBarCode.Focus();
// txtBarCode.SelectAll();
//}
}
void ClearScanData(bool isAllClear)
{
_sjBarCode = string.Empty;
_partNo1 = string.Empty;
_partNo2 = string.Empty;
ScanAll.barCode1 = string.Empty;
ScanAll.barCode2 = string.Empty;
ScanAll.barCode3 = string.Empty;
ScanAll.barCode4 = string.Empty;
ScanAll.barCode5 = string.Empty;
ScanAll.barCode6 = string.Empty;
if(isAllClear == true)
{
lbScrewL.Text = "0";
lbScrewR.Text = "0";
lbScrewLAll.Text = "0";
lbScrewRAll.Text = "0";
lbRivetL.Text = "0";
lbRivetR.Text = "0";
lbRivetLAll.Text = "0";
lbRivetRAll.Text = "0";
lbIrls.Text = "0";
lbIrlsAll.Text = "0";
}
}
private void ScanBarCode()
{
string barCode = txtBarCode.Text?.Trim();
if (string.IsNullOrEmpty(barCode))
bool verifyPreProcess = Function2.GetVerifyPreProcess();
if(verifyPreProcess == true)
{
throw new Exception("扫描条码为空!");
bool isPass = Function2.GetInspectResultCheck(_sjBarCode);
if(isPass == false)
{
throw new Exception($"扫描条码[{_sjBarCode}],未通过上线前质检工序,无法使用.");
}
}
DataTable productTable = PartScanVerify();
_partNo2 = productTable.Rows[0]["PartNo"].ToString();
_partNo1 = Function2.GetAssemblePartCode(_partNo2, _stationNo);
if (lbPart.Text?.ToLower() != _partNo1?.ToLower())
{
throw new Exception($"扫描半成品码在BOM中对应的总成零件号[{_partNo1}]与当前计划的零件号[{lbPart.Text}]不匹配.");
}
if (barCode.Length != 20)
DataTable bomTable = Function2.GetBomTable(_partNo1, _stationNo);
//需要校验的关键件
List<DataRow> list = bomTable.AsEnumerable().Where(p => p.Field<bool>("IsChecked") == true).ToList();
//螺钉铆钉数量BOM集合
List<DataRow> list2 = bomTable.AsEnumerable().Where(p => p.Field<string>("PartDesc2").Contains("螺钉") || p.Field<string>("PartDesc2").Contains("铆钉") || p.Field<string>("PartDesc2").Contains("虹膜")).ToList();
if (list.Count > 0)
{
//需要校验关键件
FrmProScreen3 frm = new FrmProScreen3(list);
frm.ScanCompleted += (rst) =>
{
if(rst == false)
{
ClearScanData(true);
WriteHint("扫描关键件已取消", false);
return;
}
if (list2.Count > 0)
{
//接收到螺钉信号后再保存
SendScrewRivet(bomTable, list2, _sjBarCode);
}
else
{
_lineDataID = Function2.SaveLineInfo(_sjBarCode, this.Tag?.ToString(), _stationNo, _partNo1, _partNo2, 0, 0, 0, 0, 0);
WriteHint("验证成功,请扫完成码保存", true);
//SaveScanRecord(barCode, partNo1, partNo2);
}
};
frm.ShowDialog();
}
else
{
if (list2.Count > 0)
{
//接收到螺钉信号后再保存
SendScrewRivet(bomTable, list2, _sjBarCode);
}
else
{
_lineDataID = Function2.SaveLineInfo(_sjBarCode, this.Tag?.ToString(), _stationNo, _partNo1, _partNo2, 0, 0, 0, 0, 0);
WriteHint("验证成功,请扫完成码保存", true);
//SaveScanRecord(barCode, partNo1, partNo2);
}
}
}
/// <summary>
/// 扫描半成品的校验
/// </summary>
/// <returns></returns>
DataTable PartScanVerify()
{
if (_sjBarCode.Length != 20)
{
throw new Exception("扫描条码格式不正确,请扫描20位塑件条码!");
}
DataTable stockInTable = Function2.SearchStockIn(barCode);
DataTable stockInTable = Function2.SearchStockIn(_sjBarCode);
if (stockInTable.Rows.Count == 0)
{
throw new Exception("扫描半成品码没有喷涂完工记录,无法使用.");
}
DataTable punchTable = Function2.SearchPunchCodeRecord(barCode);
DataTable punchTable = Function2.SearchPunchCodeRecord(_sjBarCode);
if (punchTable.Rows.Count > 0)
{
if (punchTable.Rows[0]["Flag"].ToString() == "0" || punchTable.Rows[0]["Flag"].ToString() == "1")
{
{
throw new Exception("扫描半成品码已存在装配记录,无法使用.");
}
}
DataTable productTable = Function2.GetProductInfo(barCode.Substring(0, 10));
DataTable productTable = Function2.GetProductInfo(_sjBarCode.Substring(0, 10));
if (productTable.Rows.Count == 0)
{
throw new Exception($"扫描半成品码的存货代码[{barCode.Substring(0, 10)}]在零件表找不对对应零件号,请检查系统维护.");
throw new Exception($"扫描半成品码的存货代码[{_sjBarCode.Substring(0, 10)}]在零件表找不对对应零件号,请检查系统维护.");
}
string partNo2 = productTable.Rows[0]["PartNo"].ToString();
string partNo1 = Function2.GetAssemblePartCode(partNo2, _stationNo);
if (lbPart.Text?.ToLower() != partNo1?.ToLower())
{
throw new Exception($"扫描半成品码在BOM中对应的总成零件号[{partNo1}]与当前计划的零件号[{lbPart.Text}]不匹配.");
}
DataTable bomTable = Function2.GetBomTable(partNo1, _stationNo);
return productTable;
}
bool ScrewCompleteVerify()
{
int screwL = 0, screwR = 0, rivetL = 0, rivetR = 0, irls = 0;
int screwLAll = 0, screwRAll = 0, rivetLAll = 0, rivetRAll = 0, irlsAll = 0;
List<DataRow> list = bomTable.AsEnumerable().Where(p => p.Field<int>("IsChecked") == 1).ToList();
if (list.Count > 0)
{
//需要校验关键件
int.TryParse(lbScrewL.Text, out screwL);
int.TryParse(lbScrewR.Text, out screwR);
int.TryParse(lbRivetL.Text, out rivetL);
int.TryParse(lbRivetR.Text, out rivetR);
int.TryParse(lbIrls.Text, out irls);
int.TryParse(lbScrewLAll.Text, out screwLAll);
int.TryParse(lbScrewRAll.Text, out screwRAll);
int.TryParse(lbRivetLAll.Text, out rivetLAll);
int.TryParse(lbRivetRAll.Text, out rivetRAll);
int.TryParse(lbIrlsAll.Text, out irlsAll);
if (screwL < screwLAll)
return false;
if (screwR < screwRAll)
return false;
if (rivetL < rivetLAll)
return false;
if (rivetR < rivetRAll)
return false;
if (irls < irlsAll)
return false;
return true;
}
}
else
void SendScrewRivet(DataTable bomTable, List<DataRow> list2 ,string barCode)
{
if (list2.Count > 0)
{
SaveScanRecord(barCode,partNo1, partNo2);
}
string sjBarCode = barCode;
//螺钉数量
int leftQty1 = 0;
int rightQty1 = 0;
//铆钉数量
int leftQty2 = 0;
int rightQty2 = 0;
//虹膜
int leftQty3 = 0;
foreach (DataRow dr in list2)
{
string desc = dr["PartDesc2"].ToString();
if (desc.Contains("螺钉"))
{
leftQty1 = int.Parse(dr["LeftCount"].ToString());
rightQty1 = int.Parse(dr["RightCount"].ToString());
lbScrewLAll.Text = leftQty1.ToString();
lbScrewRAll.Text = rightQty1.ToString();
}
if (desc.Contains("铆钉"))
{
leftQty2 = int.Parse(dr["LeftCount"].ToString());
rightQty2 = int.Parse(dr["RightCount"].ToString());
lbRivetLAll.Text = leftQty2.ToString();
lbRivetRAll.Text = rightQty2.ToString();
}
if (desc.Contains("虹膜"))
{
leftQty3 = int.Parse(dr["LeftCount"].ToString());
lbIrlsAll.Text = leftQty3.ToString();
}
}
_lineDataID = Function2.SaveLineInfo(sjBarCode, this.Tag?.ToString(),_stationNo,_partNo1,_partNo2, leftQty2, rightQty2, leftQty1, rightQty1, leftQty3);
SentToPlc(false,_lineDataID);
}
}
private void SentToPlc(bool isInit, string lineID)
{
_plcInvoke.SendToPLC(isInit, lineID);
}
private void SaveScanRecord(string barcode,string partNo1,string partNo2)
@ -198,10 +469,10 @@ namespace PunchingMistake
//
string serailNo = "0001";
string assembleBarCode = _uniqueBll.GetPunchSerialNo(partNo1, 4,ref serailNo);
int res = Function2.SavePartAndProduct_New(barcode, partNo2, partNo1,
lbPlan.Text.Trim(), lbClass.Text, this.Tag?.ToString(), assembleBarCode,
int res = Function2.SavePartAndProduct_New(barcode, partNo1, partNo2, assembleBarCode,
lbPlan.Text.Trim(), lbClass.Text, this.Tag?.ToString(), serailNo,
ScanAll.barCode1, ScanAll.barCode2, ScanAll.barCode3,
ScanAll.barCode4, ScanAll.barCode5, ScanAll.barCode6, stationId, ConfigurationManager.AppSettings["StationDescription"]);
ScanAll.barCode4, ScanAll.barCode5, ScanAll.barCode6, _stationNo, ConfigurationManager.AppSettings["StationDescription"]);
Function2.SaveZcCode(barcode, partNo1);
Function2.AddCompleteCount(this.Tag?.ToString());
@ -220,92 +491,199 @@ namespace PunchingMistake
}
private void PrintAssembleBarCode(string BarCode, string PartNo, string PartName, string SerialNo )
{
string filename = GetPrintFileName();
DataTable headTable = new DataTable();
headTable.Columns.Add("BarCode");
headTable.Columns.Add("PartName");
headTable.Columns.Add("PartNo");
headTable.Columns.Add("BatchNo");
headTable.Columns.Add("SerialNo");
headTable.Columns.Add("Line");
DataRow row = headTable.NewRow();
Printer.PrintPunchAssembleBarCode(BarCode, PartNo, PartName, SerialNo);
row["BarCode"] = BarCode;
row["PartNo"] = PartNo;
row["PartName"] = PartName;
row["BatchNo"] = DateTime.Now.ToString("yyMMdd");
row["SerialNo"] = SerialNo;
row["Line"] = ConfigurationManager.AppSettings["Line"];
string printBoxName = "Printer1";
string reportName = ConfigurationManager.AppSettings[printBoxName].ToString();
headTable.Rows.Add(row);
ReportHelper rp = new ReportHelper(filename, headTable, null, (int)GRPaperOrientation.grpoLandscape, 1, reportName);
rp.Report.Print(false);
}
string GetPrintFileName()
void WriteHint(string txt,bool isOk)
{
lbHint.ForeColor = Color.LimeGreen;
if (!isOk)
{
lbHint.ForeColor = Color.Red;
}
lbHint.Text = txt;
}
private void label10_DoubleClick(object sender, EventArgs e)
{
this.Close();
}
private void TimeGo()
{
System.Timers.Timer timer = new System.Timers.Timer();
timer.Interval = 10;
timer.Enabled = true;
timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Tick);
}
private void timer_Tick(object sender, EventArgs e)
{
if(Program.station == "F01")
try
{
return System.AppDomain.CurrentDomain.BaseDirectory + "/Report/总成条码MI.grf";
lbPartDesc.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
Thread.Sleep(500);
}
catch (Exception ex)
{
return System.AppDomain.CurrentDomain.BaseDirectory + "/Report/总成条码MI.grf";
}
}
string GetSerialNo(string partNo1)
void ShowLinkResult(bool isSuccess, bool isWriteLog)
{
DateTime time = DateTime.Now;
string tmp = Function2.SerialNo(partNo1, time.ToString("yyMMdd"));
string sn = "";
if (tmp == "")
if (isSuccess)
{
sn = GetFullBarCode(partNo1, "0001");
txtLinkState.Text = "连接成功";
if (isWriteLog)
WriteLog("连接成功");
txtLinkState.BackColor = Color.Green;
// ShowScanResult(false);
}
else
{
sn = tmp.Substring(0, tmp.Length - 4) +
(int.Parse(tmp.Substring(tmp.Length - 4, 4)) + 1).ToString()
.PadLeft(4, '0');
txtLinkState.Text = "连接失败";
if (isWriteLog)
WriteLog("连接失败");
txtLinkState.BackColor = Color.Red;
//ShowScanResult(false);
}
return sn;
}
string GetFullBarCode(string partNo,string serialNo)
private void btnPlanSearch_Click(object sender, EventArgs e)
{
DateTime time = DateTime.Now;
return partNo + "." + time.ToString("yyMMdd") + ";" + serialNo + ";S104;;.1;" + time.ToString("yyyy/MM/dd") + ";";
FrmPlanSeach frm = new FrmPlanSeach(this.Tag.ToString());
frm.ShowDialog();
}
void WriteHint(string txt,bool isOk)
private void btnPlanFinish_Click(object sender, EventArgs e)
{
lbHint.ForeColor = Color.LimeGreen;
if (!isOk)
if (MessageBox.Show("计划结束后将不能再进行切换生产,确认将当前计划设置为结束状态?", "确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
return;
string planID = this.Tag?.ToString();
if (string.IsNullOrEmpty(planID))
{
lbHint.ForeColor = Color.Red;
MessageBox.Show("计划信息错误,当前没有正在执行的计划.");
return;
}
else
{
if (!string.IsNullOrEmpty(_lineDataID))
{
DataTable lineTable = Function2.GetPunchLineInfo(_lineDataID);
if (lineTable.Rows.Count > 0)
{
MessageBox.Show("当前订单未完成,无法结束当前计划.");
return;
}
}
Function2.UpdatePlanState("3", planID);
ClearPage();
ClearScanData(true);
MessageBox.Show("设置成功");
LoadScreen();
}
lbHint.Text = txt;
}
private void TimeGo()
private void showHintTimer_Tick(object sender, EventArgs e)
{
System.Timers.Timer timer = new System.Timers.Timer();
timer.Interval = 10;
timer.Enabled = true;
timer.Elapsed += new System.Timers.ElapsedEventHandler(timer_Tick);
showHintTimer.Enabled = false;
lbDisplay.Visible = false;
}
private void timer_Tick(object sender, EventArgs e)
/// <summary>
/// 螺钉铆钉刷新
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void LoadScrewTimer_Tick(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(_lineDataID))
{
DataTable dt = Function2.GetPunchLineInfo(_lineDataID);
if (dt.Rows.Count > 0)
{
DataRow dr = dt.Rows[0];
lbScrewL.Text = dr["LeftScrew1"].ToString();
lbScrewR.Text = dr["RightScrew1"].ToString();
lbRivetL.Text = dr["LeftRivet1"].ToString();
lbRivetR.Text = dr["RightRivet1"].ToString();
lbIrls.Text = dr["IrIs"].ToString();
lbScrewLAll.Text = dr["LeftScrew1All"].ToString();
lbScrewRAll.Text = dr["RightScrew1All"].ToString();
lbRivetLAll.Text = dr["LeftRivet1All"].ToString();
lbRivetRAll.Text = dr["RightRivet1All"].ToString();
lbIrlsAll.Text = dr["IrIsAll"].ToString();
}
}
}
void ShowMassege(string txt, bool isOK)
{
if (isOK)
{
lbScanState.ForeColor = Color.Green;
}
else
{
lbScanState.ForeColor = Color.Red;
}
lbScanState.Text = txt;
}
public void WriteLog(string log)
{
try
{
lbPartDesc.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
Thread.Sleep(500);
//this.lstState.Invoke(onMessage, log);
}
catch (Exception ex)
catch { }
}
private void txtBoxFocusTimer_Tick(object sender, EventArgs e)
{
lbClass.Text = Function3.GetWorkClass();
txtBarCode.Focus();
txtBarCode.SelectAll();
}
/// <summary>
/// 显示OK和NG 以及提示音
/// </summary>
/// <param name="isOk"></param>
private void ShowHint(bool isOk)
{
if (isOk)
{
lbDisplay.Text = "OK";
lbDisplay.ForeColor = Color.Lime;
}
else
{
lbDisplay.Text = "NG";
lbDisplay.ForeColor = Color.Red;
}
Play(isOk);
lbDisplay.Visible = true;
showHintTimer.Enabled = true;
}
void Play(bool isOK)
{
if (isOK)
{
PlaySound.PlaySounds.Play(AppDomain.CurrentDomain.BaseDirectory + "Images\\正确.wav");
}
else
{
PlaySound.PlaySounds.Play(AppDomain.CurrentDomain.BaseDirectory + "Images\\错误.wav");
}
}
}
}

9
PunchingMistake/FrmAssemble.resx

@ -1036,4 +1036,13 @@
gg==
</value>
</data>
<metadata name="showHintTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="LoadScrewTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>268, 17</value>
</metadata>
<metadata name="txtBoxFocusTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>534, 17</value>
</metadata>
</root>

53
PunchingMistake/FrmLogin.Designer.cs

@ -45,10 +45,10 @@
this.label1.AutoSize = true;
this.label1.BackColor = System.Drawing.Color.White;
this.label1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(396, 340);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Location = new System.Drawing.Point(432, 389);
this.label1.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(117, 34);
this.label1.Size = new System.Drawing.Size(131, 38);
this.label1.TabIndex = 0;
this.label1.Text = "用户名";
//
@ -57,31 +57,31 @@
this.label2.AutoSize = true;
this.label2.BackColor = System.Drawing.Color.White;
this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(396, 432);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Location = new System.Drawing.Point(432, 494);
this.label2.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(83, 34);
this.label2.Size = new System.Drawing.Size(93, 38);
this.label2.TabIndex = 1;
this.label2.Text = "密码";
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(543, 324);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox1.Location = new System.Drawing.Point(592, 370);
this.textBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(288, 45);
this.textBox1.Size = new System.Drawing.Size(314, 51);
this.textBox1.TabIndex = 2;
this.textBox1.Click += new System.EventHandler(this.textBox1_Click);
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(543, 432);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.textBox2.Location = new System.Drawing.Point(592, 494);
this.textBox2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.textBox2.Name = "textBox2";
this.textBox2.PasswordChar = '*';
this.textBox2.Size = new System.Drawing.Size(288, 45);
this.textBox2.Size = new System.Drawing.Size(314, 51);
this.textBox2.TabIndex = 3;
this.textBox2.Click += new System.EventHandler(this.textBox2_Click);
//
@ -89,10 +89,10 @@
//
this.button1.BackColor = System.Drawing.Color.LightSkyBlue;
this.button1.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(424, 536);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Location = new System.Drawing.Point(463, 613);
this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(154, 66);
this.button1.Size = new System.Drawing.Size(168, 75);
this.button1.TabIndex = 4;
this.button1.Text = "登录";
this.button1.UseVisualStyleBackColor = false;
@ -102,10 +102,10 @@
//
this.button2.BackColor = System.Drawing.Color.LightSkyBlue;
this.button2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button2.Location = new System.Drawing.Point(710, 536);
this.button2.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button2.Location = new System.Drawing.Point(775, 613);
this.button2.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(152, 66);
this.button2.Size = new System.Drawing.Size(166, 75);
this.button2.TabIndex = 5;
this.button2.Text = "取消";
this.button2.UseVisualStyleBackColor = false;
@ -116,10 +116,10 @@
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(0, 0);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(1289, 793);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.Size = new System.Drawing.Size(1348, 905);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 6;
this.pictureBox1.TabStop = false;
//
@ -129,17 +129,17 @@
this.lbtip.BackColor = System.Drawing.Color.White;
this.lbtip.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbtip.ForeColor = System.Drawing.Color.Red;
this.lbtip.Location = new System.Drawing.Point(387, 494);
this.lbtip.Location = new System.Drawing.Point(422, 565);
this.lbtip.Name = "lbtip";
this.lbtip.Size = new System.Drawing.Size(58, 21);
this.lbtip.Size = new System.Drawing.Size(62, 24);
this.lbtip.TabIndex = 7;
this.lbtip.Text = " ";
//
// FrmLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1289, 793);
this.ClientSize = new System.Drawing.Size(1348, 905);
this.Controls.Add(this.lbtip);
this.Controls.Add(this.label2);
this.Controls.Add(this.textBox1);
@ -148,7 +148,8 @@
this.Controls.Add(this.button2);
this.Controls.Add(this.label1);
this.Controls.Add(this.pictureBox1);
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.Name = "FrmLogin";
this.Text = "登录";
this.Load += new System.EventHandler(this.FrmLogin_Load);

270
PunchingMistake/FrmPlanSeach.Designer.cs

@ -0,0 +1,270 @@

namespace PunchingMistake
{
partial class FrmPlanSeach
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
this.panel1 = new System.Windows.Forms.Panel();
this.btnRePrint = new System.Windows.Forms.Button();
this.txtBarCode = new System.Windows.Forms.TextBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.date1 = new System.Windows.Forms.DateTimePicker();
this.date2 = new System.Windows.Forms.DateTimePicker();
this.btnSearch = new System.Windows.Forms.Button();
this.dataGridView1 = new System.Windows.Forms.DataGridView();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this. = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.tableLayoutPanel1.SuspendLayout();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout();
//
// tableLayoutPanel1
//
this.tableLayoutPanel1.ColumnCount = 1;
this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 0);
this.tableLayoutPanel1.Controls.Add(this.dataGridView1, 0, 1);
this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0);
this.tableLayoutPanel1.Name = "tableLayoutPanel1";
this.tableLayoutPanel1.RowCount = 3;
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F));
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.Absolute, 40F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(1807, 983);
this.tableLayoutPanel1.TabIndex = 0;
//
// panel1
//
this.panel1.Controls.Add(this.btnSearch);
this.panel1.Controls.Add(this.date2);
this.panel1.Controls.Add(this.date1);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.txtBarCode);
this.panel1.Controls.Add(this.label2);
this.panel1.Controls.Add(this.btnRePrint);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(3, 3);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1801, 44);
this.panel1.TabIndex = 0;
//
// btnRePrint
//
this.btnRePrint.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)));
this.btnRePrint.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnRePrint.Location = new System.Drawing.Point(3, -3);
this.btnRePrint.Name = "btnRePrint";
this.btnRePrint.Size = new System.Drawing.Size(137, 55);
this.btnRePrint.TabIndex = 0;
this.btnRePrint.Text = "补 打";
this.btnRePrint.UseVisualStyleBackColor = true;
this.btnRePrint.Click += new System.EventHandler(this.btnRePrint_Click);
//
// txtBarCode
//
this.txtBarCode.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.txtBarCode.Location = new System.Drawing.Point(989, 2);
this.txtBarCode.Name = "txtBarCode";
this.txtBarCode.Size = new System.Drawing.Size(200, 35);
this.txtBarCode.TabIndex = 4;
//
// label2
//
this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(925, 8);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(58, 24);
this.label2.TabIndex = 3;
this.label2.Text = "条码";
//
// label3
//
this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(1200, 7);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(58, 24);
this.label3.TabIndex = 5;
this.label3.Text = "时间";
//
// date1
//
this.date1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.date1.Location = new System.Drawing.Point(1259, 4);
this.date1.Name = "date1";
this.date1.Size = new System.Drawing.Size(200, 35);
this.date1.TabIndex = 6;
//
// date2
//
this.date2.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.date2.Location = new System.Drawing.Point(1465, 4);
this.date2.Name = "date2";
this.date2.Size = new System.Drawing.Size(200, 35);
this.date2.TabIndex = 7;
//
// btnSearch
//
this.btnSearch.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.btnSearch.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnSearch.Location = new System.Drawing.Point(1667, -3);
this.btnSearch.Name = "btnSearch";
this.btnSearch.Size = new System.Drawing.Size(137, 47);
this.btnSearch.TabIndex = 8;
this.btnSearch.Text = "查询";
this.btnSearch.UseVisualStyleBackColor = true;
this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
//
// dataGridView1
//
this.dataGridView1.AllowUserToAddRows = false;
this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.,
this.,
this.,
this.,
this.,
this.,
this.});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(3, 53);
this.dataGridView1.Name = "dataGridView1";
this.dataGridView1.ReadOnly = true;
this.dataGridView1.RowHeadersWidth = 10;
this.dataGridView1.RowTemplate.Height = 37;
this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
this.dataGridView1.Size = new System.Drawing.Size(1801, 887);
this.dataGridView1.TabIndex = 1;
//
// 塑件条码
//
this..DataPropertyName = "barcode";
this..HeaderText = "塑件条码";
this..MinimumWidth = 10;
this..Name = "塑件条码";
this..ReadOnly = true;
//
// 半成品零件号
//
this..DataPropertyName = "BcpID";
this..HeaderText = "半成品零件号";
this..MinimumWidth = 10;
this..Name = "半成品零件号";
this..ReadOnly = true;
//
// 总成条码
//
this..DataPropertyName = "ZcBarCode";
this..HeaderText = "总成条码";
this..MinimumWidth = 10;
this..Name = "总成条码";
this..ReadOnly = true;
this..Width = 200;
//
// 工位
//
this..DataPropertyName = "StationNo";
this..HeaderText = "工位";
this..MinimumWidth = 10;
this..Name = "工位";
this..ReadOnly = true;
//
// 计划编号
//
this..DataPropertyName = "OrderNo";
this..HeaderText = "计划编号";
this..MinimumWidth = 10;
this..Name = "计划编号";
this..ReadOnly = true;
//
// 班组
//
this..DataPropertyName = "WorkClass";
this..HeaderText = "班组";
this..MinimumWidth = 10;
this..Name = "班组";
this..ReadOnly = true;
//
// 质量状态
//
this..DataPropertyName = "Flag";
this..HeaderText = "质量状态";
this..MinimumWidth = 10;
this..Name = "质量状态";
this..ReadOnly = true;
//
// FrmPlanSeach
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1807, 983);
this.Controls.Add(this.tableLayoutPanel1);
this.Name = "FrmPlanSeach";
this.Text = "计划数据查询补打";
this.tableLayoutPanel1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnRePrint;
private System.Windows.Forms.TextBox txtBarCode;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Button btnSearch;
private System.Windows.Forms.DateTimePicker date2;
private System.Windows.Forms.DateTimePicker date1;
private System.Windows.Forms.DataGridView dataGridView1;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
private System.Windows.Forms.DataGridViewTextBoxColumn ;
}
}

54
PunchingMistake/FrmPlanSeach.cs

@ -0,0 +1,54 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace PunchingMistake
{
public partial class FrmPlanSeach : Form
{
private string _planID = string.Empty;
public FrmPlanSeach(string planID)
{
InitializeComponent();
dataGridView1.AutoGenerateColumns = false;
this.StartPosition = FormStartPosition.CenterParent;
_planID = planID;
date1.Value = DateTime.Now.AddDays(-1);
btnSearch_Click(null, null);
}
private void btnSearch_Click(object sender, EventArgs e)
{
string d1 = date1.Value.ToString("yyyy-MM-dd 00:00:00:000");
string d2 = date2.Value.ToString("yyyy-MM-dd 23:59:59:000");
DataTable dt = Function2.GetPunchRecord(_planID, txtBarCode.Text, d1, d2);
dataGridView1.DataSource = dt;
}
private void btnRePrint_Click(object sender, EventArgs e)
{
if( dataGridView1.SelectedRows.Count == 0)
{
MessageBox.Show("请先选择数据.");
return;
}
DataRow row = (dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row;
string partName = Function2.GetProductName(row["ZcPartNo"].ToString());
if (string.IsNullOrEmpty(partName))
{
MessageBox.Show($"总成零件号[{row["ZcPartNo"].ToString()}]在零件表中不存在.");
return;
}
Printer.PrintPunchAssembleBarCode(row["ZcBarCode"].ToString(), row["ZcPartNo"].ToString(), partName, row["SerialNo"].ToString());
}
}
}

162
PunchingMistake/FrmPlanSeach.resx

@ -0,0 +1,162 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="塑件条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="半成品零件号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="总成条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="工位.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="计划编号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="班组.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="质量状态.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="塑件条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="半成品零件号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="总成条码.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="工位.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="计划编号.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="班组.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<metadata name="质量状态.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root>

101
PunchingMistake/FrmProScreen3.Designer.cs

@ -52,54 +52,60 @@
// label1
//
this.label1.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label1.Location = new System.Drawing.Point(12, 43);
this.label1.Location = new System.Drawing.Point(24, 86);
this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(180, 40);
this.label1.Size = new System.Drawing.Size(360, 80);
this.label1.TabIndex = 0;
this.label1.Text = "关键零件号1:";
//
// textBox1
//
this.textBox1.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox1.Location = new System.Drawing.Point(403, 40);
this.textBox1.Location = new System.Drawing.Point(806, 80);
this.textBox1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(486, 43);
this.textBox1.Size = new System.Drawing.Size(968, 78);
this.textBox1.TabIndex = 1;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// textBox2
//
this.textBox2.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox2.Location = new System.Drawing.Point(403, 111);
this.textBox2.Location = new System.Drawing.Point(806, 222);
this.textBox2.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(486, 43);
this.textBox2.Size = new System.Drawing.Size(968, 78);
this.textBox2.TabIndex = 3;
this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown);
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(12, 114);
this.label2.Location = new System.Drawing.Point(24, 228);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(180, 40);
this.label2.Size = new System.Drawing.Size(360, 80);
this.label2.TabIndex = 2;
this.label2.Text = "关键零件号2:";
//
// textBox3
//
this.textBox3.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox3.Location = new System.Drawing.Point(403, 186);
this.textBox3.Location = new System.Drawing.Point(806, 372);
this.textBox3.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(486, 43);
this.textBox3.Size = new System.Drawing.Size(968, 78);
this.textBox3.TabIndex = 5;
this.textBox3.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox3_KeyDown);
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(12, 189);
this.label3.Location = new System.Drawing.Point(24, 378);
this.label3.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(180, 40);
this.label3.Size = new System.Drawing.Size(360, 80);
this.label3.TabIndex = 4;
this.label3.Text = "关键零件号3:";
//
@ -107,9 +113,10 @@
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
this.button1.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button1.Location = new System.Drawing.Point(742, 470);
this.button1.Location = new System.Drawing.Point(1484, 940);
this.button1.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(147, 55);
this.button1.Size = new System.Drawing.Size(294, 110);
this.button1.TabIndex = 6;
this.button1.Text = "关闭";
this.button1.UseVisualStyleBackColor = false;
@ -119,9 +126,10 @@
//
this.label4.AutoSize = true;
this.label4.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label4.Location = new System.Drawing.Point(184, 46);
this.label4.Location = new System.Drawing.Point(368, 92);
this.label4.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(92, 35);
this.label4.Size = new System.Drawing.Size(185, 70);
this.label4.TabIndex = 7;
this.label4.Text = "label4";
//
@ -129,9 +137,10 @@
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label5.Location = new System.Drawing.Point(184, 119);
this.label5.Location = new System.Drawing.Point(368, 238);
this.label5.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(92, 35);
this.label5.Size = new System.Drawing.Size(185, 70);
this.label5.TabIndex = 8;
this.label5.Text = "label5";
//
@ -139,9 +148,10 @@
//
this.label6.AutoSize = true;
this.label6.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label6.Location = new System.Drawing.Point(184, 194);
this.label6.Location = new System.Drawing.Point(368, 388);
this.label6.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(92, 35);
this.label6.Size = new System.Drawing.Size(185, 70);
this.label6.TabIndex = 9;
this.label6.Text = "label6";
//
@ -149,27 +159,30 @@
//
this.label7.AutoSize = true;
this.label7.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label7.Location = new System.Drawing.Point(184, 267);
this.label7.Location = new System.Drawing.Point(368, 534);
this.label7.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(92, 35);
this.label7.Size = new System.Drawing.Size(185, 70);
this.label7.TabIndex = 12;
this.label7.Text = "label7";
//
// textBox4
//
this.textBox4.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox4.Location = new System.Drawing.Point(403, 259);
this.textBox4.Location = new System.Drawing.Point(806, 518);
this.textBox4.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(486, 43);
this.textBox4.Size = new System.Drawing.Size(968, 78);
this.textBox4.TabIndex = 11;
this.textBox4.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox4_KeyDown);
//
// label8
//
this.label8.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label8.Location = new System.Drawing.Point(12, 262);
this.label8.Location = new System.Drawing.Point(24, 524);
this.label8.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(180, 40);
this.label8.Size = new System.Drawing.Size(360, 80);
this.label8.TabIndex = 10;
this.label8.Text = "关键零件号4:";
//
@ -177,27 +190,30 @@
//
this.label9.AutoSize = true;
this.label9.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label9.Location = new System.Drawing.Point(184, 341);
this.label9.Location = new System.Drawing.Point(368, 682);
this.label9.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(92, 35);
this.label9.Size = new System.Drawing.Size(185, 70);
this.label9.TabIndex = 15;
this.label9.Text = "label9";
//
// textBox5
//
this.textBox5.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox5.Location = new System.Drawing.Point(403, 333);
this.textBox5.Location = new System.Drawing.Point(806, 666);
this.textBox5.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox5.Name = "textBox5";
this.textBox5.Size = new System.Drawing.Size(486, 43);
this.textBox5.Size = new System.Drawing.Size(968, 78);
this.textBox5.TabIndex = 14;
this.textBox5.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox5_KeyDown);
//
// label10
//
this.label10.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label10.Location = new System.Drawing.Point(12, 336);
this.label10.Location = new System.Drawing.Point(24, 672);
this.label10.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(180, 40);
this.label10.Size = new System.Drawing.Size(360, 80);
this.label10.TabIndex = 13;
this.label10.Text = "关键零件号5:";
//
@ -205,35 +221,39 @@
//
this.label11.AutoSize = true;
this.label11.Font = new System.Drawing.Font("微软雅黑", 20F);
this.label11.Location = new System.Drawing.Point(184, 418);
this.label11.Location = new System.Drawing.Point(368, 836);
this.label11.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(108, 35);
this.label11.Size = new System.Drawing.Size(217, 70);
this.label11.TabIndex = 18;
this.label11.Text = "label11";
//
// textBox6
//
this.textBox6.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.textBox6.Location = new System.Drawing.Point(403, 410);
this.textBox6.Location = new System.Drawing.Point(806, 820);
this.textBox6.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.textBox6.Name = "textBox6";
this.textBox6.Size = new System.Drawing.Size(486, 43);
this.textBox6.Size = new System.Drawing.Size(968, 78);
this.textBox6.TabIndex = 17;
this.textBox6.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox6_KeyDown);
//
// label12
//
this.label12.Font = new System.Drawing.Font("微软雅黑", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label12.Location = new System.Drawing.Point(12, 413);
this.label12.Location = new System.Drawing.Point(24, 826);
this.label12.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(180, 40);
this.label12.Size = new System.Drawing.Size(360, 80);
this.label12.TabIndex = 16;
this.label12.Text = "关键零件号6:";
//
// FrmProScreen3
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(917, 543);
this.BackColor = System.Drawing.Color.SteelBlue;
this.ClientSize = new System.Drawing.Size(1834, 1086);
this.Controls.Add(this.label11);
this.Controls.Add(this.textBox6);
this.Controls.Add(this.label12);
@ -254,6 +274,7 @@
this.Controls.Add(this.textBox1);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
this.Name = "FrmProScreen3";
this.Text = " ";
this.Load += new System.EventHandler(this.FrmProScreen3_Load);

1297
PunchingMistake/FrmProScreen3.cs

File diff suppressed because it is too large

590
PunchingMistake/FrmQualityNew.Designer.cs

@ -35,6 +35,7 @@
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmQualityNew));
this.labTime = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
@ -47,55 +48,32 @@
this.txtBarCode = new System.Windows.Forms.TextBox();
this.labProPosition = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btnPlanDown = new System.Windows.Forms.Button();
this.btnPlanUp = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.panelResponsibility = new System.Windows.Forms.Panel();
this.label19 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label17 = new System.Windows.Forms.Label();
this.lbForeig = new System.Windows.Forms.Label();
this.btnOk = new System.Windows.Forms.Button();
this.btnRepair = new System.Windows.Forms.Button();
this.btnNok = new System.Windows.Forms.Button();
this.btnAbt = new System.Windows.Forms.Button();
this.lableFP = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lbProductName = new System.Windows.Forms.Label();
this.lbProductCode = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lbPlanCode = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lbPlanQty = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lbPlanCompleteQty = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.lbOkCount = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lbRepairCount = new System.Windows.Forms.Label();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.lbBadCount = new System.Windows.Forms.Label();
this.lbForeig = new System.Windows.Forms.Label();
this.labWorkClass = new System.Windows.Forms.Label();
this.labStation = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
this.btnPG = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.panelResponsibility.SuspendLayout();
this.SuspendLayout();
//
// labTime
//
this.labTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labTime.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTime.Location = new System.Drawing.Point(1867, 17);
this.labTime.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labTime.Location = new System.Drawing.Point(2037, 19);
this.labTime.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labTime.Name = "labTime";
this.labTime.Size = new System.Drawing.Size(457, 146);
this.labTime.Size = new System.Drawing.Size(498, 167);
this.labTime.TabIndex = 18;
this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTime.Click += new System.EventHandler(this.labTime_Click);
@ -104,10 +82,10 @@
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(22, 17);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.pictureBox1.Location = new System.Drawing.Point(24, 19);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(291, 146);
this.pictureBox1.Size = new System.Drawing.Size(317, 167);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
@ -116,27 +94,27 @@
//
this.labTitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labTitle.Font = new System.Drawing.Font("宋体", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTitle.Location = new System.Drawing.Point(296, 17);
this.labTitle.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labTitle.Location = new System.Drawing.Point(323, 19);
this.labTitle.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(1576, 146);
this.labTitle.Size = new System.Drawing.Size(1719, 167);
this.labTitle.TabIndex = 16;
this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel2
//
this.panel2.Location = new System.Drawing.Point(18, 870);
this.panel2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel2.Location = new System.Drawing.Point(24, 1232);
this.panel2.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1829, 578);
this.panel2.Size = new System.Drawing.Size(1995, 701);
this.panel2.TabIndex = 48;
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(18, 352);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.pictureBox2.Location = new System.Drawing.Point(24, 601);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(1829, 509);
this.pictureBox2.Size = new System.Drawing.Size(1995, 584);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 47;
this.pictureBox2.TabStop = false;
@ -145,10 +123,10 @@
//
this.label15.BackColor = System.Drawing.Color.Lime;
this.label15.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(21, 163);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label15.Location = new System.Drawing.Point(24, 202);
this.label15.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(292, 130);
this.label15.Size = new System.Drawing.Size(319, 149);
this.label15.TabIndex = 49;
this.label15.Text = "扫码信息";
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -157,10 +135,10 @@
//
this.labProductInfo.BackColor = System.Drawing.Color.White;
this.labProductInfo.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labProductInfo.Location = new System.Drawing.Point(1407, 163);
this.labProductInfo.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProductInfo.Location = new System.Drawing.Point(1536, 202);
this.labProductInfo.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labProductInfo.Name = "labProductInfo";
this.labProductInfo.Size = new System.Drawing.Size(917, 130);
this.labProductInfo.Size = new System.Drawing.Size(1000, 149);
this.labProductInfo.TabIndex = 52;
this.labProductInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@ -168,10 +146,10 @@
//
this.label2.BackColor = System.Drawing.Color.Lime;
this.label2.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(1106, 163);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Location = new System.Drawing.Point(1207, 202);
this.label2.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(292, 130);
this.label2.Size = new System.Drawing.Size(319, 149);
this.label2.TabIndex = 51;
this.label2.Text = "产品信息";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -180,10 +158,10 @@
//
this.txtBarCode.BackColor = System.Drawing.Color.White;
this.txtBarCode.Font = new System.Drawing.Font("黑体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBarCode.Location = new System.Drawing.Point(325, 184);
this.txtBarCode.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.txtBarCode.Location = new System.Drawing.Point(356, 226);
this.txtBarCode.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.txtBarCode.Name = "txtBarCode";
this.txtBarCode.Size = new System.Drawing.Size(764, 87);
this.txtBarCode.Size = new System.Drawing.Size(833, 99);
this.txtBarCode.TabIndex = 0;
this.txtBarCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.txtBarCode.DoubleClick += new System.EventHandler(this.txtBarCode_DoubleClick);
@ -193,84 +171,118 @@
//
this.labProPosition.BackColor = System.Drawing.Color.White;
this.labProPosition.Font = new System.Drawing.Font("黑体", 22F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labProPosition.Location = new System.Drawing.Point(1870, 315);
this.labProPosition.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProPosition.Location = new System.Drawing.Point(2029, 369);
this.labProPosition.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labProPosition.Name = "labProPosition";
this.labProPosition.Size = new System.Drawing.Size(465, 151);
this.labProPosition.Size = new System.Drawing.Size(507, 173);
this.labProPosition.TabIndex = 64;
this.labProPosition.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.btnPlanDown);
this.panel1.Controls.Add(this.btnPlanUp);
this.panel1.Controls.Add(this.btnOk);
this.panel1.Controls.Add(this.btnRepair);
this.panel1.Controls.Add(this.btnNok);
this.panel1.Controls.Add(this.btnAbt);
this.panel1.Controls.Add(this.groupBox1);
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(18, 1469);
this.panel1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel1.Location = new System.Drawing.Point(24, 350);
this.panel1.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1829, 317);
this.panel1.Size = new System.Drawing.Size(1995, 243);
this.panel1.TabIndex = 66;
//
// button4
//
this.button4.BackColor = System.Drawing.Color.Red;
this.button4.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(1275, 181);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(326, 90);
this.button4.TabIndex = 74;
this.button4.Text = "结束计划";
this.button4.UseVisualStyleBackColor = false;
//
// button3
//
this.button3.BackColor = System.Drawing.Color.LawnGreen;
this.button3.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(1275, 45);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(326, 90);
this.button3.TabIndex = 73;
this.button3.Text = "计划查询";
this.button3.UseVisualStyleBackColor = false;
//
// btnPlanDown
//
this.btnPlanDown.BackColor = System.Drawing.Color.LawnGreen;
this.btnPlanDown.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanDown.Location = new System.Drawing.Point(852, 181);
this.btnPlanDown.Name = "btnPlanDown";
this.btnPlanDown.Size = new System.Drawing.Size(326, 81);
this.btnPlanDown.TabIndex = 72;
this.btnPlanDown.Text = "下一计划";
this.btnPlanDown.UseVisualStyleBackColor = false;
this.btnPlanDown.Click += new System.EventHandler(this.btnPlanDown_Click);
//
// btnPlanUp
//
this.btnPlanUp.BackColor = System.Drawing.Color.LawnGreen;
this.btnPlanUp.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanUp.Location = new System.Drawing.Point(852, 45);
this.btnPlanUp.Name = "btnPlanUp";
this.btnPlanUp.Size = new System.Drawing.Size(326, 90);
this.btnPlanUp.TabIndex = 71;
this.btnPlanUp.Text = "上一计划";
this.btnPlanUp.UseVisualStyleBackColor = false;
this.btnPlanUp.Click += new System.EventHandler(this.btnPlanUp_Click);
// groupBox1
//
this.groupBox1.Controls.Add(this.panelResponsibility);
this.groupBox1.Controls.Add(this.lbForeig);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Margin = new System.Windows.Forms.Padding(0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(0);
this.groupBox1.Size = new System.Drawing.Size(1995, 243);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "责任部门";
//
// panelResponsibility
//
this.panelResponsibility.AutoScroll = true;
this.panelResponsibility.Controls.Add(this.label19);
this.panelResponsibility.Controls.Add(this.label3);
this.panelResponsibility.Controls.Add(this.label17);
this.panelResponsibility.Dock = System.Windows.Forms.DockStyle.Top;
this.panelResponsibility.Location = new System.Drawing.Point(0, 43);
this.panelResponsibility.Margin = new System.Windows.Forms.Padding(0);
this.panelResponsibility.Name = "panelResponsibility";
this.panelResponsibility.Size = new System.Drawing.Size(1995, 130);
this.panelResponsibility.TabIndex = 0;
this.panelResponsibility.Paint += new System.Windows.Forms.PaintEventHandler(this.panelResponsibility_Paint);
//
// label19
//
this.label19.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label19.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label19.ForeColor = System.Drawing.Color.Blue;
this.label19.Location = new System.Drawing.Point(980, 9);
this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label19.Name = "label19";
this.label19.Size = new System.Drawing.Size(375, 105);
this.label19.TabIndex = 12;
this.label19.Tag = "Response";
this.label19.Text = "物流";
this.label19.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label19.Click += new System.EventHandler(this.Responsibility_Click);
//
// label3
//
this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label3.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.ForeColor = System.Drawing.Color.Blue;
this.label3.Location = new System.Drawing.Point(515, 9);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(321, 105);
this.label3.TabIndex = 11;
this.label3.Tag = "Response";
this.label3.Text = "注塑";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label3.Click += new System.EventHandler(this.Responsibility_Click);
//
// label17
//
this.label17.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.label17.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label17.ForeColor = System.Drawing.Color.Blue;
this.label17.Location = new System.Drawing.Point(9, 9);
this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(361, 105);
this.label17.TabIndex = 10;
this.label17.Tag = "Response";
this.label17.Text = "喷涂";
this.label17.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.label17.Click += new System.EventHandler(this.Responsibility_Click);
//
// lbForeig
//
this.lbForeig.AutoSize = true;
this.lbForeig.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbForeig.ForeColor = System.Drawing.Color.Red;
this.lbForeig.Location = new System.Drawing.Point(3, 192);
this.lbForeig.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbForeig.Name = "lbForeig";
this.lbForeig.Size = new System.Drawing.Size(72, 28);
this.lbForeig.TabIndex = 72;
this.lbForeig.Tag = "老外库提示";
this.lbForeig.Text = " ";
//
// btnOk
//
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.Location = new System.Drawing.Point(30, 45);
this.btnOk.Location = new System.Drawing.Point(2029, 747);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(326, 90);
this.btnOk.Size = new System.Drawing.Size(536, 225);
this.btnOk.TabIndex = 67;
this.btnOk.Text = "合 格";
this.btnOk.UseVisualStyleBackColor = false;
@ -280,300 +292,52 @@
//
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.Location = new System.Drawing.Point(30, 181);
this.btnRepair.Location = new System.Drawing.Point(2029, 1081);
this.btnRepair.Name = "btnRepair";
this.btnRepair.Size = new System.Drawing.Size(326, 90);
this.btnRepair.Size = new System.Drawing.Size(536, 225);
this.btnRepair.TabIndex = 69;
this.btnRepair.Text = "返修";
this.btnRepair.UseVisualStyleBackColor = false;
this.btnRepair.Click += new System.EventHandler(this.btnRepair_Click);
//
// btnNok
//
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.Location = new System.Drawing.Point(466, 45);
this.btnNok.Name = "btnNok";
this.btnNok.Size = new System.Drawing.Size(321, 90);
this.btnNok.TabIndex = 68;
this.btnNok.Text = "返修合格";
this.btnNok.UseVisualStyleBackColor = false;
this.btnNok.Click += new System.EventHandler(this.btnNok_Click);
//
// btnAbt
//
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.Location = new System.Drawing.Point(466, 181);
this.btnAbt.Location = new System.Drawing.Point(2029, 1715);
this.btnAbt.Name = "btnAbt";
this.btnAbt.Size = new System.Drawing.Size(314, 90);
this.btnAbt.Size = new System.Drawing.Size(536, 217);
this.btnAbt.TabIndex = 70;
this.btnAbt.Text = "报 废";
this.btnAbt.UseVisualStyleBackColor = false;
this.btnAbt.Click += new System.EventHandler(this.btnAbt_Click);
//
// lableFP
//
this.lableFP.AutoSize = true;
this.lableFP.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lableFP.ForeColor = System.Drawing.Color.Red;
this.lableFP.Location = new System.Drawing.Point(2201, 552);
this.lableFP.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lableFP.Name = "lableFP";
this.lableFP.Size = new System.Drawing.Size(106, 42);
this.lableFP.TabIndex = 71;
this.lableFP.Tag = "存在返喷";
this.lableFP.Text = " ";
// btnPG
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lbProductName);
this.groupBox1.Controls.Add(this.lbProductCode);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.lbPlanCode);
this.groupBox1.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.ForeColor = System.Drawing.Color.Blue;
this.groupBox1.Location = new System.Drawing.Point(1879, 604);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(456, 192);
this.groupBox1.TabIndex = 72;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "当前计划";
//
// lbProductName
//
this.lbProductName.AutoSize = true;
this.lbProductName.ForeColor = System.Drawing.Color.Black;
this.lbProductName.Location = new System.Drawing.Point(114, 156);
this.lbProductName.Name = "lbProductName";
this.lbProductName.Size = new System.Drawing.Size(105, 33);
this.lbProductName.TabIndex = 5;
this.lbProductName.Text = " ";
//
// lbProductCode
//
this.lbProductCode.AutoSize = true;
this.lbProductCode.ForeColor = System.Drawing.Color.Black;
this.lbProductCode.Location = new System.Drawing.Point(114, 105);
this.lbProductCode.Name = "lbProductCode";
this.lbProductCode.Size = new System.Drawing.Size(87, 33);
this.lbProductCode.TabIndex = 4;
this.lbProductCode.Text = " ";
//
// label10
//
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.Black;
this.label10.Location = new System.Drawing.Point(17, 156);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(83, 33);
this.label10.TabIndex = 3;
this.label10.Text = "描述";
//
// label9
//
this.label9.AutoSize = true;
this.label9.ForeColor = System.Drawing.Color.Black;
this.label9.Location = new System.Drawing.Point(16, 105);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(83, 33);
this.label9.TabIndex = 2;
this.label9.Text = "产品";
//
// label8
//
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.Color.Black;
this.label8.Location = new System.Drawing.Point(16, 55);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(83, 33);
this.label8.TabIndex = 1;
this.label8.Text = "编号";
//
// lbPlanCode
//
this.lbPlanCode.AutoSize = true;
this.lbPlanCode.ForeColor = System.Drawing.Color.Black;
this.lbPlanCode.Location = new System.Drawing.Point(114, 55);
this.lbPlanCode.Name = "lbPlanCode";
this.lbPlanCode.Size = new System.Drawing.Size(87, 33);
this.lbPlanCode.TabIndex = 0;
this.lbPlanCode.Text = " ";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.lbPlanQty);
this.groupBox2.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.ForeColor = System.Drawing.Color.Blue;
this.groupBox2.Location = new System.Drawing.Point(1879, 821);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(456, 138);
this.groupBox2.TabIndex = 73;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "生产计划数量";
//
// lbPlanQty
//
this.lbPlanQty.AutoSize = true;
this.lbPlanQty.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlanQty.ForeColor = System.Drawing.Color.Black;
this.lbPlanQty.Location = new System.Drawing.Point(41, 40);
this.lbPlanQty.Name = "lbPlanQty";
this.lbPlanQty.Size = new System.Drawing.Size(78, 84);
this.lbPlanQty.TabIndex = 1;
this.lbPlanQty.Text = "0";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.lbPlanCompleteQty);
this.groupBox3.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.ForeColor = System.Drawing.Color.Blue;
this.groupBox3.Location = new System.Drawing.Point(1885, 983);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(456, 138);
this.groupBox3.TabIndex = 74;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "计划完成数量";
//
// lbPlanCompleteQty
//
this.lbPlanCompleteQty.AutoSize = true;
this.lbPlanCompleteQty.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlanCompleteQty.ForeColor = System.Drawing.Color.Black;
this.lbPlanCompleteQty.Location = new System.Drawing.Point(36, 40);
this.lbPlanCompleteQty.Name = "lbPlanCompleteQty";
this.lbPlanCompleteQty.Size = new System.Drawing.Size(78, 84);
this.lbPlanCompleteQty.TabIndex = 0;
this.lbPlanCompleteQty.Text = "0";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.lbOkCount);
this.groupBox4.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox4.ForeColor = System.Drawing.Color.Blue;
this.groupBox4.Location = new System.Drawing.Point(1885, 1153);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(456, 138);
this.groupBox4.TabIndex = 75;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "合格数量";
//
// lbOkCount
//
this.lbOkCount.AutoSize = true;
this.lbOkCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbOkCount.ForeColor = System.Drawing.Color.Black;
this.lbOkCount.Location = new System.Drawing.Point(36, 40);
this.lbOkCount.Name = "lbOkCount";
this.lbOkCount.Size = new System.Drawing.Size(78, 84);
this.lbOkCount.TabIndex = 1;
this.lbOkCount.Text = "0";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.lbRepairCount);
this.groupBox5.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox5.ForeColor = System.Drawing.Color.Blue;
this.groupBox5.Location = new System.Drawing.Point(1885, 1324);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(456, 138);
this.groupBox5.TabIndex = 76;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "返修数量";
//
// lbRepairCount
//
this.lbRepairCount.AutoSize = true;
this.lbRepairCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRepairCount.ForeColor = System.Drawing.Color.Black;
this.lbRepairCount.Location = new System.Drawing.Point(36, 40);
this.lbRepairCount.Name = "lbRepairCount";
this.lbRepairCount.Size = new System.Drawing.Size(78, 84);
this.lbRepairCount.TabIndex = 1;
this.lbRepairCount.Text = "0";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.lbBadCount);
this.groupBox6.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox6.ForeColor = System.Drawing.Color.Blue;
this.groupBox6.Location = new System.Drawing.Point(1885, 1494);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(456, 138);
this.groupBox6.TabIndex = 77;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "报废数量";
//
// lbBadCount
//
this.lbBadCount.AutoSize = true;
this.lbBadCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbBadCount.ForeColor = System.Drawing.Color.Black;
this.lbBadCount.Location = new System.Drawing.Point(36, 40);
this.lbBadCount.Name = "lbBadCount";
this.lbBadCount.Size = new System.Drawing.Size(78, 84);
this.lbBadCount.TabIndex = 1;
this.lbBadCount.Text = "0";
this.btnPG.BackColor = System.Drawing.Color.Yellow;
this.btnPG.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPG.Location = new System.Drawing.Point(2029, 1401);
this.btnPG.Name = "btnPG";
this.btnPG.Size = new System.Drawing.Size(536, 225);
this.btnPG.TabIndex = 73;
this.btnPG.Text = "返修合格";
this.btnPG.UseVisualStyleBackColor = false;
this.btnPG.Click += new System.EventHandler(this.btnPG_Click);
//
// lbForeig
// timer1
//
this.lbForeig.AutoSize = true;
this.lbForeig.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbForeig.Location = new System.Drawing.Point(26, 306);
this.lbForeig.Name = "lbForeig";
this.lbForeig.Size = new System.Drawing.Size(69, 33);
this.lbForeig.TabIndex = 78;
this.lbForeig.Text = " ";
//
// labWorkClass
//
this.labWorkClass.AutoSize = true;
this.labWorkClass.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWorkClass.Location = new System.Drawing.Point(1879, 487);
this.labWorkClass.Name = "labWorkClass";
this.labWorkClass.Size = new System.Drawing.Size(67, 33);
this.labWorkClass.TabIndex = 79;
this.labWorkClass.Text = "A班";
//
// labStation
//
this.labStation.AutoSize = true;
this.labStation.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStation.Location = new System.Drawing.Point(2123, 487);
this.labStation.Name = "labStation";
this.labStation.Size = new System.Drawing.Size(69, 33);
this.labStation.TabIndex = 80;
this.labStation.Text = "F02";
//
// labelVersion
//
this.labelVersion.AutoSize = true;
this.labelVersion.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelVersion.Location = new System.Drawing.Point(1879, 552);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(159, 33);
this.labelVersion.TabIndex = 81;
this.labelVersion.Text = "10.0.0.1";
this.timer1.Interval = 1000;
//
// FrmQualityNew
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2351, 1789);
this.Controls.Add(this.labelVersion);
this.Controls.Add(this.labStation);
this.Controls.Add(this.labWorkClass);
this.Controls.Add(this.lbForeig);
this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.ClientSize = new System.Drawing.Size(2565, 2045);
this.Controls.Add(this.btnPG);
this.Controls.Add(this.btnAbt);
this.Controls.Add(this.btnRepair);
this.Controls.Add(this.btnOk);
this.Controls.Add(this.panel1);
this.Controls.Add(this.lableFP);
this.Controls.Add(this.labProPosition);
this.Controls.Add(this.txtBarCode);
this.Controls.Add(this.labProductInfo);
@ -585,7 +349,7 @@
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.labTitle);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.Name = "FrmQualityNew";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "喷涂质检";
@ -595,16 +359,7 @@
this.panel1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.panelResponsibility.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
@ -622,35 +377,16 @@
private System.Windows.Forms.TextBox txtBarCode;
private System.Windows.Forms.Label labProPosition;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.Button btnNok;
private System.Windows.Forms.Button btnRepair;
private System.Windows.Forms.Button btnAbt;
private System.Windows.Forms.Label lableFP;
private System.Windows.Forms.Button btnPlanDown;
private System.Windows.Forms.Button btnPlanUp;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Panel panelResponsibility;
private System.Windows.Forms.Label lbForeig;
private System.Windows.Forms.Label labWorkClass;
private System.Windows.Forms.Label labStation;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label lbPlanCode;
private System.Windows.Forms.Label lbPlanCompleteQty;
private System.Windows.Forms.Label lbOkCount;
private System.Windows.Forms.Label lbRepairCount;
private System.Windows.Forms.Label lbBadCount;
private System.Windows.Forms.Label lbPlanQty;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lbProductName;
private System.Windows.Forms.Label lbProductCode;
private System.Windows.Forms.Label label19;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.Button btnPG;
private System.Windows.Forms.Timer timer1;
}
}

1194
PunchingMistake/FrmQualityNew.cs

File diff suppressed because it is too large

3
PunchingMistake/FrmQualityNew.resx

@ -472,4 +472,7 @@
RK5CYII=
</value>
</data>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

656
PunchingMistake/FrmQualityNew1.Designer.cs

@ -0,0 +1,656 @@
namespace PunchingMistake
{
partial class FrmQualityNew1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
try
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
catch
{
}
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmQualityNew1));
this.labTime = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.labTitle = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.label15 = new System.Windows.Forms.Label();
this.labProductInfo = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txtBarCode = new System.Windows.Forms.TextBox();
this.labProPosition = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.button4 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.btnPlanDown = new System.Windows.Forms.Button();
this.btnPlanUp = new System.Windows.Forms.Button();
this.btnOk = new System.Windows.Forms.Button();
this.btnRepair = new System.Windows.Forms.Button();
this.btnNok = new System.Windows.Forms.Button();
this.btnAbt = new System.Windows.Forms.Button();
this.lableFP = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.lbProductName = new System.Windows.Forms.Label();
this.lbProductCode = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.lbPlanCode = new System.Windows.Forms.Label();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.lbPlanQty = new System.Windows.Forms.Label();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.lbPlanCompleteQty = new System.Windows.Forms.Label();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.lbOkCount = new System.Windows.Forms.Label();
this.groupBox5 = new System.Windows.Forms.GroupBox();
this.lbRepairCount = new System.Windows.Forms.Label();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.lbBadCount = new System.Windows.Forms.Label();
this.lbForeig = new System.Windows.Forms.Label();
this.labWorkClass = new System.Windows.Forms.Label();
this.labStation = new System.Windows.Forms.Label();
this.labelVersion = new System.Windows.Forms.Label();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
this.panel1.SuspendLayout();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.groupBox4.SuspendLayout();
this.groupBox5.SuspendLayout();
this.groupBox6.SuspendLayout();
this.SuspendLayout();
//
// labTime
//
this.labTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labTime.Font = new System.Drawing.Font("宋体", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTime.Location = new System.Drawing.Point(1867, 17);
this.labTime.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labTime.Name = "labTime";
this.labTime.Size = new System.Drawing.Size(457, 146);
this.labTime.TabIndex = 18;
this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTime.Click += new System.EventHandler(this.labTime_Click);
//
// pictureBox1
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(22, 17);
this.pictureBox1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(291, 146);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 17;
this.pictureBox1.TabStop = false;
//
// labTitle
//
this.labTitle.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.labTitle.Font = new System.Drawing.Font("宋体", 48F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTitle.Location = new System.Drawing.Point(296, 17);
this.labTitle.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labTitle.Name = "labTitle";
this.labTitle.Size = new System.Drawing.Size(1576, 146);
this.labTitle.TabIndex = 16;
this.labTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel2
//
this.panel2.Location = new System.Drawing.Point(18, 870);
this.panel2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1829, 578);
this.panel2.TabIndex = 48;
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(18, 352);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(1829, 509);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox2.TabIndex = 47;
this.pictureBox2.TabStop = false;
//
// label15
//
this.label15.BackColor = System.Drawing.Color.Lime;
this.label15.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label15.Location = new System.Drawing.Point(21, 163);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(292, 130);
this.label15.TabIndex = 49;
this.label15.Text = "扫码信息";
this.label15.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// labProductInfo
//
this.labProductInfo.BackColor = System.Drawing.Color.White;
this.labProductInfo.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labProductInfo.Location = new System.Drawing.Point(1407, 163);
this.labProductInfo.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProductInfo.Name = "labProductInfo";
this.labProductInfo.Size = new System.Drawing.Size(917, 130);
this.labProductInfo.TabIndex = 52;
this.labProductInfo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Lime;
this.label2.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label2.Location = new System.Drawing.Point(1106, 163);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(292, 130);
this.label2.TabIndex = 51;
this.label2.Text = "产品信息";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// txtBarCode
//
this.txtBarCode.BackColor = System.Drawing.Color.White;
this.txtBarCode.Font = new System.Drawing.Font("黑体", 30F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBarCode.Location = new System.Drawing.Point(325, 184);
this.txtBarCode.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.txtBarCode.Name = "txtBarCode";
this.txtBarCode.Size = new System.Drawing.Size(764, 87);
this.txtBarCode.TabIndex = 0;
this.txtBarCode.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
this.txtBarCode.DoubleClick += new System.EventHandler(this.txtBarCode_DoubleClick);
this.txtBarCode.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtBarCode_KeyDown);
//
// labProPosition
//
this.labProPosition.BackColor = System.Drawing.Color.White;
this.labProPosition.Font = new System.Drawing.Font("黑体", 22F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labProPosition.Location = new System.Drawing.Point(1870, 315);
this.labProPosition.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProPosition.Name = "labProPosition";
this.labProPosition.Size = new System.Drawing.Size(465, 151);
this.labProPosition.TabIndex = 64;
this.labProPosition.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.button4);
this.panel1.Controls.Add(this.button3);
this.panel1.Controls.Add(this.btnPlanDown);
this.panel1.Controls.Add(this.btnPlanUp);
this.panel1.Controls.Add(this.btnOk);
this.panel1.Controls.Add(this.btnRepair);
this.panel1.Controls.Add(this.btnNok);
this.panel1.Controls.Add(this.btnAbt);
this.panel1.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.panel1.Location = new System.Drawing.Point(18, 1469);
this.panel1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1829, 317);
this.panel1.TabIndex = 66;
//
// button4
//
this.button4.BackColor = System.Drawing.Color.Red;
this.button4.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button4.Location = new System.Drawing.Point(1275, 181);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(326, 90);
this.button4.TabIndex = 74;
this.button4.Text = "结束计划";
this.button4.UseVisualStyleBackColor = false;
//
// button3
//
this.button3.BackColor = System.Drawing.Color.LawnGreen;
this.button3.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.button3.Location = new System.Drawing.Point(1275, 45);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(326, 90);
this.button3.TabIndex = 73;
this.button3.Text = "计划查询";
this.button3.UseVisualStyleBackColor = false;
//
// btnPlanDown
//
this.btnPlanDown.BackColor = System.Drawing.Color.LawnGreen;
this.btnPlanDown.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanDown.Location = new System.Drawing.Point(852, 181);
this.btnPlanDown.Name = "btnPlanDown";
this.btnPlanDown.Size = new System.Drawing.Size(326, 81);
this.btnPlanDown.TabIndex = 72;
this.btnPlanDown.Text = "下一计划";
this.btnPlanDown.UseVisualStyleBackColor = false;
this.btnPlanDown.Click += new System.EventHandler(this.btnPlanDown_Click);
//
// btnPlanUp
//
this.btnPlanUp.BackColor = System.Drawing.Color.LawnGreen;
this.btnPlanUp.Font = new System.Drawing.Font("宋体", 25.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.btnPlanUp.Location = new System.Drawing.Point(852, 45);
this.btnPlanUp.Name = "btnPlanUp";
this.btnPlanUp.Size = new System.Drawing.Size(326, 90);
this.btnPlanUp.TabIndex = 71;
this.btnPlanUp.Text = "上一计划";
this.btnPlanUp.UseVisualStyleBackColor = false;
this.btnPlanUp.Click += new System.EventHandler(this.btnPlanUp_Click);
//
// btnOk
//
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.Location = new System.Drawing.Point(30, 45);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(326, 90);
this.btnOk.TabIndex = 67;
this.btnOk.Text = "合 格";
this.btnOk.UseVisualStyleBackColor = false;
this.btnOk.Click += new System.EventHandler(this.btnOk_Click);
//
// btnRepair
//
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.Location = new System.Drawing.Point(30, 181);
this.btnRepair.Name = "btnRepair";
this.btnRepair.Size = new System.Drawing.Size(326, 90);
this.btnRepair.TabIndex = 69;
this.btnRepair.Text = "返修";
this.btnRepair.UseVisualStyleBackColor = false;
this.btnRepair.Click += new System.EventHandler(this.btnRepair_Click);
//
// btnNok
//
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.Location = new System.Drawing.Point(466, 45);
this.btnNok.Name = "btnNok";
this.btnNok.Size = new System.Drawing.Size(321, 90);
this.btnNok.TabIndex = 68;
this.btnNok.Text = "返修合格";
this.btnNok.UseVisualStyleBackColor = false;
this.btnNok.Click += new System.EventHandler(this.btnNok_Click);
//
// btnAbt
//
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.Location = new System.Drawing.Point(466, 181);
this.btnAbt.Name = "btnAbt";
this.btnAbt.Size = new System.Drawing.Size(314, 90);
this.btnAbt.TabIndex = 70;
this.btnAbt.Text = "报 废";
this.btnAbt.UseVisualStyleBackColor = false;
this.btnAbt.Click += new System.EventHandler(this.btnAbt_Click);
//
// lableFP
//
this.lableFP.AutoSize = true;
this.lableFP.Font = new System.Drawing.Font("宋体", 18F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lableFP.ForeColor = System.Drawing.Color.Red;
this.lableFP.Location = new System.Drawing.Point(2201, 552);
this.lableFP.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lableFP.Name = "lableFP";
this.lableFP.Size = new System.Drawing.Size(106, 42);
this.lableFP.TabIndex = 71;
this.lableFP.Tag = "存在返喷";
this.lableFP.Text = " ";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.lbProductName);
this.groupBox1.Controls.Add(this.lbProductCode);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.lbPlanCode);
this.groupBox1.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.ForeColor = System.Drawing.Color.Blue;
this.groupBox1.Location = new System.Drawing.Point(1879, 604);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(456, 192);
this.groupBox1.TabIndex = 72;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "当前计划";
//
// lbProductName
//
this.lbProductName.AutoSize = true;
this.lbProductName.ForeColor = System.Drawing.Color.Black;
this.lbProductName.Location = new System.Drawing.Point(114, 156);
this.lbProductName.Name = "lbProductName";
this.lbProductName.Size = new System.Drawing.Size(105, 33);
this.lbProductName.TabIndex = 5;
this.lbProductName.Text = " ";
//
// lbProductCode
//
this.lbProductCode.AutoSize = true;
this.lbProductCode.ForeColor = System.Drawing.Color.Black;
this.lbProductCode.Location = new System.Drawing.Point(114, 105);
this.lbProductCode.Name = "lbProductCode";
this.lbProductCode.Size = new System.Drawing.Size(87, 33);
this.lbProductCode.TabIndex = 4;
this.lbProductCode.Text = " ";
//
// label10
//
this.label10.AutoSize = true;
this.label10.ForeColor = System.Drawing.Color.Black;
this.label10.Location = new System.Drawing.Point(17, 156);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(83, 33);
this.label10.TabIndex = 3;
this.label10.Text = "描述";
//
// label9
//
this.label9.AutoSize = true;
this.label9.ForeColor = System.Drawing.Color.Black;
this.label9.Location = new System.Drawing.Point(16, 105);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(83, 33);
this.label9.TabIndex = 2;
this.label9.Text = "产品";
//
// label8
//
this.label8.AutoSize = true;
this.label8.ForeColor = System.Drawing.Color.Black;
this.label8.Location = new System.Drawing.Point(16, 55);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(83, 33);
this.label8.TabIndex = 1;
this.label8.Text = "编号";
//
// lbPlanCode
//
this.lbPlanCode.AutoSize = true;
this.lbPlanCode.ForeColor = System.Drawing.Color.Black;
this.lbPlanCode.Location = new System.Drawing.Point(114, 55);
this.lbPlanCode.Name = "lbPlanCode";
this.lbPlanCode.Size = new System.Drawing.Size(87, 33);
this.lbPlanCode.TabIndex = 0;
this.lbPlanCode.Text = " ";
//
// groupBox2
//
this.groupBox2.Controls.Add(this.lbPlanQty);
this.groupBox2.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.ForeColor = System.Drawing.Color.Blue;
this.groupBox2.Location = new System.Drawing.Point(1879, 821);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(456, 138);
this.groupBox2.TabIndex = 73;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "生产计划数量";
//
// lbPlanQty
//
this.lbPlanQty.AutoSize = true;
this.lbPlanQty.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlanQty.ForeColor = System.Drawing.Color.Black;
this.lbPlanQty.Location = new System.Drawing.Point(41, 40);
this.lbPlanQty.Name = "lbPlanQty";
this.lbPlanQty.Size = new System.Drawing.Size(78, 84);
this.lbPlanQty.TabIndex = 1;
this.lbPlanQty.Text = "0";
//
// groupBox3
//
this.groupBox3.Controls.Add(this.lbPlanCompleteQty);
this.groupBox3.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox3.ForeColor = System.Drawing.Color.Blue;
this.groupBox3.Location = new System.Drawing.Point(1885, 983);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Size = new System.Drawing.Size(456, 138);
this.groupBox3.TabIndex = 74;
this.groupBox3.TabStop = false;
this.groupBox3.Text = "计划完成数量";
//
// lbPlanCompleteQty
//
this.lbPlanCompleteQty.AutoSize = true;
this.lbPlanCompleteQty.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbPlanCompleteQty.ForeColor = System.Drawing.Color.Black;
this.lbPlanCompleteQty.Location = new System.Drawing.Point(36, 40);
this.lbPlanCompleteQty.Name = "lbPlanCompleteQty";
this.lbPlanCompleteQty.Size = new System.Drawing.Size(78, 84);
this.lbPlanCompleteQty.TabIndex = 0;
this.lbPlanCompleteQty.Text = "0";
//
// groupBox4
//
this.groupBox4.Controls.Add(this.lbOkCount);
this.groupBox4.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox4.ForeColor = System.Drawing.Color.Blue;
this.groupBox4.Location = new System.Drawing.Point(1885, 1153);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Size = new System.Drawing.Size(456, 138);
this.groupBox4.TabIndex = 75;
this.groupBox4.TabStop = false;
this.groupBox4.Text = "合格数量";
//
// lbOkCount
//
this.lbOkCount.AutoSize = true;
this.lbOkCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbOkCount.ForeColor = System.Drawing.Color.Black;
this.lbOkCount.Location = new System.Drawing.Point(36, 40);
this.lbOkCount.Name = "lbOkCount";
this.lbOkCount.Size = new System.Drawing.Size(78, 84);
this.lbOkCount.TabIndex = 1;
this.lbOkCount.Text = "0";
//
// groupBox5
//
this.groupBox5.Controls.Add(this.lbRepairCount);
this.groupBox5.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox5.ForeColor = System.Drawing.Color.Blue;
this.groupBox5.Location = new System.Drawing.Point(1885, 1324);
this.groupBox5.Name = "groupBox5";
this.groupBox5.Size = new System.Drawing.Size(456, 138);
this.groupBox5.TabIndex = 76;
this.groupBox5.TabStop = false;
this.groupBox5.Text = "返修数量";
//
// lbRepairCount
//
this.lbRepairCount.AutoSize = true;
this.lbRepairCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbRepairCount.ForeColor = System.Drawing.Color.Black;
this.lbRepairCount.Location = new System.Drawing.Point(36, 40);
this.lbRepairCount.Name = "lbRepairCount";
this.lbRepairCount.Size = new System.Drawing.Size(78, 84);
this.lbRepairCount.TabIndex = 1;
this.lbRepairCount.Text = "0";
//
// groupBox6
//
this.groupBox6.Controls.Add(this.lbBadCount);
this.groupBox6.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox6.ForeColor = System.Drawing.Color.Blue;
this.groupBox6.Location = new System.Drawing.Point(1885, 1494);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(456, 138);
this.groupBox6.TabIndex = 77;
this.groupBox6.TabStop = false;
this.groupBox6.Text = "报废数量";
//
// lbBadCount
//
this.lbBadCount.AutoSize = true;
this.lbBadCount.Font = new System.Drawing.Font("宋体", 36F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbBadCount.ForeColor = System.Drawing.Color.Black;
this.lbBadCount.Location = new System.Drawing.Point(36, 40);
this.lbBadCount.Name = "lbBadCount";
this.lbBadCount.Size = new System.Drawing.Size(78, 84);
this.lbBadCount.TabIndex = 1;
this.lbBadCount.Text = "0";
//
// lbForeig
//
this.lbForeig.AutoSize = true;
this.lbForeig.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbForeig.Location = new System.Drawing.Point(26, 306);
this.lbForeig.Name = "lbForeig";
this.lbForeig.Size = new System.Drawing.Size(69, 33);
this.lbForeig.TabIndex = 78;
this.lbForeig.Text = " ";
//
// labWorkClass
//
this.labWorkClass.AutoSize = true;
this.labWorkClass.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWorkClass.Location = new System.Drawing.Point(1879, 487);
this.labWorkClass.Name = "labWorkClass";
this.labWorkClass.Size = new System.Drawing.Size(67, 33);
this.labWorkClass.TabIndex = 79;
this.labWorkClass.Text = "A班";
//
// labStation
//
this.labStation.AutoSize = true;
this.labStation.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStation.Location = new System.Drawing.Point(2123, 487);
this.labStation.Name = "labStation";
this.labStation.Size = new System.Drawing.Size(69, 33);
this.labStation.TabIndex = 80;
this.labStation.Text = "F02";
//
// labelVersion
//
this.labelVersion.AutoSize = true;
this.labelVersion.Font = new System.Drawing.Font("宋体", 13.875F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelVersion.Location = new System.Drawing.Point(1879, 552);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(159, 33);
this.labelVersion.TabIndex = 81;
this.labelVersion.Text = "10.0.0.1";
//
// FrmQualityNew
//
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2351, 1789);
this.Controls.Add(this.labelVersion);
this.Controls.Add(this.labStation);
this.Controls.Add(this.labWorkClass);
this.Controls.Add(this.lbForeig);
this.Controls.Add(this.groupBox6);
this.Controls.Add(this.groupBox5);
this.Controls.Add(this.groupBox4);
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.groupBox2);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.lableFP);
this.Controls.Add(this.labProPosition);
this.Controls.Add(this.txtBarCode);
this.Controls.Add(this.labProductInfo);
this.Controls.Add(this.label2);
this.Controls.Add(this.label15);
this.Controls.Add(this.panel2);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.labTime);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.labTitle);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.Name = "FrmQualityNew";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "喷涂质检";
this.Load += new System.EventHandler(this.FrmSecondCheck_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
this.panel1.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.groupBox4.ResumeLayout(false);
this.groupBox4.PerformLayout();
this.groupBox5.ResumeLayout(false);
this.groupBox5.PerformLayout();
this.groupBox6.ResumeLayout(false);
this.groupBox6.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label labTime;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label labTitle;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label labProductInfo;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtBarCode;
private System.Windows.Forms.Label labProPosition;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Button btnOk;
private System.Windows.Forms.Button btnNok;
private System.Windows.Forms.Button btnRepair;
private System.Windows.Forms.Button btnAbt;
private System.Windows.Forms.Label lableFP;
private System.Windows.Forms.Button btnPlanDown;
private System.Windows.Forms.Button btnPlanUp;
private System.Windows.Forms.Button button4;
private System.Windows.Forms.Button button3;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.GroupBox groupBox2;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.GroupBox groupBox5;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Label lbForeig;
private System.Windows.Forms.Label labWorkClass;
private System.Windows.Forms.Label labStation;
private System.Windows.Forms.Label labelVersion;
private System.Windows.Forms.Label lbPlanCode;
private System.Windows.Forms.Label lbPlanCompleteQty;
private System.Windows.Forms.Label lbOkCount;
private System.Windows.Forms.Label lbRepairCount;
private System.Windows.Forms.Label lbBadCount;
private System.Windows.Forms.Label lbPlanQty;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label lbProductName;
private System.Windows.Forms.Label lbProductCode;
}
}

1544
PunchingMistake/FrmQualityNew1.cs

File diff suppressed because it is too large

475
PunchingMistake/FrmQualityNew1.resx

@ -0,0 +1,475 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAH0AAABMCAYAAABAprgtAAAAIGNIUk0AAHolAACAgwAA+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6vg0bNpj/w17nqSYL
aPBQT+rd14HbXujNBbd+wZMf9GZboegVyvyAaavW8cU33zFm3gqKMh6zVm6iXb9RvN6xP49/PZAXu4zj
rV7T+GDoQj4evpi3f1jAq/1mcVvz/tzSbAA3NBvCNV8M4tqmQ7muxU/c3nkK93SYwEMdJvHOwOV0nHGA
YetOs+BAJXlxl2ICCj2H0posVAGtGLYlB4v5csAM7n67C9c91Y4bnuzGtc/256b3xnLj50u58qNl/N8v
zuDf35xLvc9X8oeXJ3DpOz9y0SvduP7N9nSfuoq9cY9TJlMHtiU8ZuXsZ9biFRw6tB8rUYafKAZHBREr
WT53Onfediu333EXDzzyKHc2asQd99zLrbfdye133Mntt9/G7bffwbPPPsvs2bMNAALi5Zdf5oYbbuDO
O+/k/vvv59577zWfw4YNM/sItL/97W/ccsst3H333ea7tv/1r39l+vTpZh8Bre133HGH2XbPPfeYMfW/
9tf3a665hkGDBrFt2zb+/ve/07BhQ7P95ptvNp+33Xab+dR1qIf/1+k7/iB3Pvcdl93dhotubMYND/Xm
opua8lGHSewutsy6mR9PMGnlWuZvOGgiYAtTNvtKIyw/dJpha/fReeYG3h8wmce+7scdn3fmhg/acf0H
7bmtybfc+9VAHu4ylhf7z+K90StoOT+XzuvKGLqjjLn55WwriZOXyoKaLT2YBbnKlc3fZXN+Bf3nbuGV
LqO58c3vqPdSbxq8MohrXx7JX1+eza1vLOPqNxfxh+en8T+enELddxfS4Isl/PHVn7nw1R+47J2ufDZ2
NusLi01okwS+Q+k0c46W0W/pRvpOncu6HVsprSo2VsbAUqWphFmvly1fxo033cJtt9/NHffew/W33Mz9
f7vfPPR777nbAPHII4/wxz/+0QAtCq6srDQAXHnlleYB33XXXdx6660GoG7dupn7Gzt2rPlNgAvo22+/
3YAisMaNG2f2mT9/PpdffjmNGjXigQceMMcLNJ1TXdcgkB9++GH69evHiy++yFVXXWXOp/000XTcfffd
Z8bV//pd562zIS/K7Y+34Mp7vqDebU25+bHvufGh77n63k582H4hh+PZaJgi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lf7fP8P96ttgrNI9esAAAAASUVO
RK5CYII=
</value>
</data>
</root>

480
PunchingMistake/Function2.cs

@ -1,9 +1,11 @@
using DBUtility;
using PaintingPC.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace PunchingMistake
@ -111,7 +113,10 @@ namespace PunchingMistake
order by CreateTime asc
";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count > 0)
{
UpdatePlanState2(res.Rows[0]["ID"].ToString(), stationNo);
}
#endregion
}
else if (plan == "上一计划")
@ -149,7 +154,10 @@ namespace PunchingMistake
order by CreateTime asc
";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count > 0)
{
UpdatePlanState2(res.Rows[0]["ID"].ToString(), stationNo);
}
#endregion
}
@ -167,6 +175,10 @@ namespace PunchingMistake
where a.ID='" + id + @"'
";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count > 0)
{
UpdatePlanState2(res.Rows[0]["ID"].ToString(), stationNo);
}
}
return res;
@ -177,7 +189,40 @@ namespace PunchingMistake
return res;
}
}
static int UpdatePlanState2(string planID,string stationNo)
{
int res = 0;
try
{
string sql1 = @" update tb_ZP_MK_Plan set State = '2' where State = 1 and Station='" + stationNo + "' ";
string sql2 = @" update tb_ZP_MK_Plan set State = '1' where ID='" + planID + "' ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql1, null);
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql2, null);
return res;
}
catch (Exception ex)
{
LogHelper.WriteLog("切换计划时,更新计划状态失败[UpdatePlanState2],失败原因:"+ex.Message);
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
return res;
}
}
public static int DeleteLineData(string id )
{
int res = 0;
try
{
string sql1 = @" delete from tb_Punch_Line where ID='" + id + "' ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql1, null);
return res;
}
catch (Exception ex)
{
LogHelper.WriteLog("扫码生产完成,删除操作临时数据失败,[DeleteLineData],失败原因:" + ex.Message);
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
return res;
}
}
/// <summary>
/// 塑件码是否通过了Wms报工
/// </summary>
@ -220,7 +265,7 @@ namespace PunchingMistake
DataTable res = new DataTable();
try
{
string sql = $" select Top 1 * from tb_Product where StockNo='{stockNo}' order by id desc ";
string sql = $" select Top 1 * from tb_Product where StockNo='{stockNo}' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res;
}
@ -230,6 +275,25 @@ namespace PunchingMistake
return res;
}
}
public static string GetProductName(string partNo)
{
DataTable res = new DataTable();
try
{
string sql = $" select Top 1 * from tb_Product where PartNo='{partNo}' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count > 0)
{
return res.Rows[0]["ProductName"].ToString();
}
return "";
}
catch (Exception ex)
{
LogHelper.WriteLog("通过零件号查询零件名称,tb_Product表发生异常,异常原因:" + ex.ToString());
return "";
}
}
/// <summary>
/// 半成品条码,找总成条码
/// </summary>
@ -241,7 +305,7 @@ namespace PunchingMistake
DataTable res = new DataTable();
try
{
string sql = $" select Top 1 * from tb_Bom_MK where PartNo2='{partCode}' and IsPartAssemble=1 and StationNo='{stationNo}' order by id desc ";
string sql = $" select Top 1 * from tb_Bom_MK where PartNo2='{partCode}' and IsPartAssemble=1 and StationNo='{stationNo}' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if(res .Rows.Count > 1)
@ -268,7 +332,7 @@ namespace PunchingMistake
DataTable res = new DataTable();
try
{
string sql = $" select Top 1 * from tb_Bom_MK where PartNo1='{assemblePartCode}' and StationNo='{stationNo}' order by id desc ";
string sql = $" select * from tb_Bom_MK where PartNo1='{assemblePartCode}' and StationNo='{stationNo}' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res;
@ -301,26 +365,26 @@ namespace PunchingMistake
}
}
public static int SavePartAndProduct_New(string barcode, string BcpID, string ZcID, string OrderNo, string WorkClass, string planID, string SerialNo, string barCode1, string barCode2, string barCode3, string barCode4, string barCode5, string barCode6, string stationId, string description)
public static int SavePartAndProduct_New(string barcode, string partNo1, string partNo2, string ZcID, string OrderNo, string WorkClass, string planID, string SerialNo, string barCode1, string barCode2, string barCode3, string barCode4, string barCode5, string barCode6, string stationId, string description)
{
int res = 0;
try
{
string sql = @"
INSERT INTO [dbo].[tb_Punch_Code_Record]
([ID]
,[barcode]
([barcode]
,[BcpID]
,[ZcID]
,ZcPartNo
,[ZcBarCode]
,[OrderNo]
,[WorkClass]
,[CreateTime], PlanID,SerialNo
,barCode1,barCode2,barCode3
,barCode4,barCode5,barCode6,StationId,StationDescription)
,barCode4,barCode5,barCode6,StationNo,StationDescription)
VALUES
((select newid())
,'" + barcode + @"'
,'" + BcpID + @"'
('" + barcode + @"'
,'" + partNo2 + @"'
,'" + partNo1 + @"'
,'" + ZcID + @"'
,'" + OrderNo + @"'
,'" + WorkClass + @"'
@ -379,7 +443,7 @@ namespace PunchingMistake
int res = 0;
try
{
string sql = " update tb_Plan_Punch set CompleteCount = CompleteCount + 1 where ID = '" + ID + "' ";
string sql = " update tb_ZP_MK_Plan set OKCount = OKCount + 1 where ID = '" + ID + "' ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null);
return res;
}
@ -419,6 +483,177 @@ namespace PunchingMistake
return res;
}
}
static string GetPartNoFromBarCode(string pBarCode)
{
if (pBarCode.Length == 33 || pBarCode.Length == 31)
{
string color = pBarCode.Substring(19, 3);
if (Regex.IsMatch(color, "^[0-9]+$") == true) //三位全是数字,认为不含颜色
{
pBarCode = pBarCode.Substring(6, 13);
}
else
{
pBarCode = pBarCode.Substring(6, 16);
}
}
else if (pBarCode.Length == 28)
{
pBarCode = pBarCode.Substring(6, 13);
}
else if (pBarCode.Length == 24)
{
pBarCode = pBarCode.Substring(0, 13);
}
else
{
if (pBarCode.Length > 10)
{
if (pBarCode.Contains("."))
{
pBarCode = pBarCode.Substring(0, pBarCode.IndexOf("."));
}
else if (pBarCode.Contains("/"))
{
pBarCode = pBarCode.Substring(0, pBarCode.IndexOf("/"));
}
else if (pBarCode.Length == 11)
{
pBarCode = pBarCode;
}
else
{
pBarCode = pBarCode.Substring(0, 10);
}
}
}
return pBarCode;
}
public static string GetProductNo(string barcode)
{
string res = "";
try
{
if (barcode.Length != 20)
{
return GetPartNoFromBarCode(barcode);
}
//LogHelper.WriteSysLogBase("[一码到底]扫入条码:" + barcode, MethodBase.GetCurrentMethod().Name);
//if (barcode.Length != 20)
//{
// barcode = UniteBarCodeToOne(barcode);
//}
string sql = @" select top 1 paintCode from tb_StockIn where barcode = '" + barcode + @"' ";
object aa = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (aa != null)
res = aa.ToString();
if (string.IsNullOrEmpty(res))
{
string sql1 = @" select top 1 productInfo
from tb_InspectResult
where barcode = '" + barcode + @"'
order by createtime desc ";
object bb = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql1, null);
if (bb != null)
{
string color = "";
string colorInfo = bb.ToString();
string[] colors = colorInfo.Split(',');
if (colors.Length >= 2)
{
color = colors[2];
string sql2 = @" select partNo from tb_Product where stockNo = '" + barcode.Substring(0, 10) + @"' ";
object cc = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql2, null);
if (cc != null)
{
res = cc.ToString();
//string partNo = cc.ToString();
//string paintCode = partNo.Replace("-P", "") + "-" + color;
//string sql3 = @" select ProductID
// from tb_Product
// where partNo = '" + paintCode + @"' ";
//object dd = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql3, null);
//if (dd != null)
//{
// res = dd.ToString();
//}
}
}
}
else
{
string partNo = "", stockNo = "";
if (barcode.Contains('/'))
{
string[] aastr = barcode.Split('/');
partNo = aastr[0];
}
else if (barcode.Contains('.'))
{
string[] aastr = barcode.Split('.');
partNo = aastr[0];
}
else if (barcode.Length == 20)
{
stockNo = barcode.Substring(0, 10);
}
else
{
partNo = barcode;
}
if (!string.IsNullOrEmpty(stockNo))
{
string sql3 = @"select partNo
from tb_Product
where StockNo = '" + stockNo + @"'";
object dd = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql3, null);
if (dd != null)
{
res = dd.ToString();
}
}
//string sql3 = "";
//if (partNo != "")
//{
// sql3 = @"select ProductID
// from tb_Product
// where partNo = '" + partNo + @"'";
//}
//else
//{
// sql3 = @"select ProductID
// from tb_Product
// where StockNo = '" + stockNo + @"'";
//}
//object dd = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql3, null);
//if (dd != null)
//{
// res = dd.ToString();
//}
}
}
//LogHelper.WriteSysLogBase("[一码到底]传出ProductID2:" + res, MethodBase.GetCurrentMethod().Name);
return res;
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
return res;
}
}
public static string GetProductID(string barcode)
{
string res = "";
@ -584,49 +819,202 @@ namespace PunchingMistake
return res;
}
}
public static class ScanAll
{
public static bool ScanResult;
public static string barCode1;
public static string barCode2;
public static string barCode3;
public static string barCode4;
public static string barCode5;
public static string barCode6;
public static string partNo1;
public static string partNo2;
public static string partNo3;
public static string partNo4;
public static string partNo5;
public static string partNo6;
}
public static string SaveLineInfo(string sjBarCode, string planID,string stationNo,string partNo1,string partNo2, int LeftRivet1All, int RightRivet1All, int LeftScrew1All, int RightScrew1All, int IrIsAll )
{
string res = string.Empty;
try
{
string sql = $"insert into tb_Punch_Line (SjBarCode,PlanID,StationNo,PartNo1,PartNo2,barCode1,barCode2,barCode3,barCode4,barCode5,barCode6, LeftRivet1All,RightRivet1All,LeftScrew1All,RightScrew1All,IrIsAll ) " +
$"values('{sjBarCode}','{planID}','{stationNo}','{partNo1}','{partNo2}','{ScanAll.barCode1}','{ScanAll.barCode2}','{ScanAll.barCode3}','{ScanAll.barCode4}','{ScanAll.barCode5}','{ScanAll.barCode6}','{LeftRivet1All}','{RightRivet1All}','{LeftScrew1All}','{RightScrew1All}','{IrIsAll}' );select @@Identity";
object dd = SqlHelper.ExecuteScalar(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (dd != null)
{
res = dd.ToString();
}
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog("保存tb_Punch_Line表数据时发生异常,异常原因:" + ex.ToString());
}
return res;
public class OtherPart
{
public string productID3 { get; set; }
}
public string qty3 { get; set; }
public static int UpdateLineCount(string field, string id)
{
int res = -1;
try
{
string sql = $"update tb_Punch_Line set {field} where id={id} ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null);
public string productID4 { get; set; }
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog(ex.ToString());
}
return res;
}
public static DataTable GetPunchLineInfo( string id)
{
DataTable res = null;
try
{
string sql = @"select * from tb_Punch_Line where ID ='" + id + @"'";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_Punch_Line表错误,ID={id},异常信息:"+ex.Message);
}
return res;
}
public static DataTable GetPunchLineInfo(string planID,string stationNo)
{
DataTable res = null;
try
{
string sql = @"select * from tb_Punch_Line where PlanID ='" + planID + @"' and StationNo='"+ stationNo + "'";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
public string qty4 { get; set; }
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"根据计划ID,工位号查询tb_Punch_Line表错误,planID={planID},stationNo={stationNo},异常信息:" + ex.Message);
}
public string productID5 { get; set; }
return res;
}
public static int UpdatePlanState(string state, string id)
{
int res = -1;
try
{
string sql = $"update tb_ZP_MK_Plan set State='{state}' where id={id} ";
res = SqlHelper.ExecuteNonQuery(SqlHelper.SqlConnString, CommandType.Text, sql, null);
public string qty5 { get; set; }
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog(ex.ToString());
}
return res;
}
public string productID6 { get; set; }
public static DataTable GetPunchRecord(string planID,string barcode,string date1,string date2)
{
DataTable res = null;
try
{
string where = "(1 = 1)";
if (!string.IsNullOrEmpty(barcode))
{
where = $" barcode='{barcode}' ";
}
string sql = $"select * from tb_Punch_Code_Record where PlanID ='{planID}' and {where} and CreateTime>'{date1}' and CreateTime<'{date2}'";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
public string qty6 { get; set; }
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_Punch_Code_Record表错误,planID={planID},异常信息:" + ex.Message);
}
public string productID7 { get; set; }
return res;
}
public string qty7 { get; set; }
/// <summary>
/// 是否需要前置工序验证
/// </summary>
/// <returns></returns>
public static bool GetVerifyPreProcess()
{
DataTable res = null;
try
{
string sql = $"select * from tb_Config where name ='PunchAssembleVerifyQA' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count == 0)
{
return true;
}
else
{
if (res.Rows[0]["value"].ToString()?.ToLower() == "false")
return false;
}
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_Config表错误 ,异常信息:" + ex.Message);
}
public string productID8 { get; set; }
return true;
}
public string qty8 { get; set; }
/// <summary>
/// 查询前置工序,上线前质检是否存在
/// </summary>
/// <returns></returns>
public static bool GetInspectResultCheck(string sjBarCode)
{
DataTable res = null;
try
{
string sql = $"select * from tb_InspectResult_Check where barcode ='{sjBarCode}' and inspectResult='合格' ";
res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
if (res.Rows.Count > 0)
{
return true;
}
}
catch (Exception ex)
{
//LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
LogHelper.WriteLog($"查询tb_InspectResult_Check表错误,barcode ='{sjBarCode}' ,异常信息:" + ex.Message);
}
return false;
}
public static string InsertInspect3(InspectModel model1)
{
return "";
}
public static DataTable SearchDefectInfo(string stationNo)
{
return null;
}
public static DataTable SearchInfoByBarCode(string barcode)
{
return null;
}
public static string GetImgPath()
{
return "";
}
public static DataTable GetLastResult(string barcode)
{
return null;
}
public static bool GetPointRepairFrWms(string barcode ,ref string errorMsg)
{
return true;
}
}
}

125
PunchingMistake/Function3.cs

@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PunchingMistake
{
public class Function3
{
/// <summary>
/// 获取班次,规定早8至晚8为A班
/// </summary>
/// <returns></returns>
public static string GetWorkClass()
{
bool classA = IsBetweenTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), DateTime.Now.ToString("yyyy-MM-dd") + " 08:00:00", DateTime.Now.ToString("yyyy-MM-dd") + " 20:00:00");
if (classA)
{
return "A班";
}
else
{
return "B班";
}
} /// <summary>
/// 判断传入时间是否在工作时间段内
/// </summary>
/// <param name="timeStr"></param>
/// <param name="startTime"></param>
/// <param name="endTime"></param>
/// <returns></returns>
public static bool IsBetweenTime(string timeStr, string startTime, string endTime)
{
//判断传入时间是否在工作时间段内
try
{
TimeSpan startSpan = DateTime.Parse(startTime).TimeOfDay;
TimeSpan endSpan = DateTime.Parse(endTime).TimeOfDay;
DateTime t1 = Convert.ToDateTime(timeStr);
TimeSpan dspNow = t1.TimeOfDay;
if (dspNow > startSpan && dspNow < endSpan)
{
return true;
}
return false;
}
catch (Exception ex)
{
LogHelper.WriteLog(ex.ToString());
return false;
}
}
/// <summary>
/// 判断条码有效性
/// </summary>
/// <param name="barcode"></param>
/// <returns></returns>
public static bool BarCodeValid(string barcode)
{
bool res = false;
if (!string.IsNullOrWhiteSpace(barcode))
{
if (barcode.Contains("."))
{
res = true;
}
else
{
if (barcode.Length == 20)
{
res = true;
}
}
}
return res;
}
}
public static class ScanAll
{
public static bool ScanResult;
public static string barCode1;
public static string barCode2;
public static string barCode3;
public static string barCode4;
public static string barCode5;
public static string barCode6;
public static string partNo1;
public static string partNo2;
public static string partNo3;
public static string partNo4;
public static string partNo5;
public static string partNo6;
}
public class OtherPart
{
public string productID3 { get; set; }
public string qty3 { get; set; }
public string productID4 { get; set; }
public string qty4 { get; set; }
public string productID5 { get; set; }
public string qty5 { get; set; }
public string productID6 { get; set; }
public string qty6 { get; set; }
public string productID7 { get; set; }
public string qty7 { get; set; }
public string productID8 { get; set; }
public string qty8 { get; set; }
}
}

BIN
PunchingMistake/Images/正确.wav

Binary file not shown.

BIN
PunchingMistake/Images/错误.wav

Binary file not shown.

344
PunchingMistake/PlcInvoke.cs

@ -0,0 +1,344 @@
using OPCAutomation;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading;
namespace PunchingMistake
{
public class PlcInvoke
{
private OPCServer opcServer;
private OPCGroups opcGroups;
private OPCGroup opcGroup1;
private OPCItems opcItems;
private static OPCItem[] opcItemm1;
public static bool _linkDev = true;
public Action<bool, bool> ShowLinkInfo = null;
//public Action<string> ShowScanInfo = null;
public Action<string, bool> ShowMessage = null;
public event Action<string> DevAfterReturnResult = null;
//private Entity_t_PreAssembleLine t_PreAssembleLine = new Entity_t_PreAssembleLine();
/// <summary>
/// 接收到的值
/// </summary>
public Dictionary<int, string> _OpcAddressDict = new Dictionary<int, string>();
public DataTable _OpcAddressTable = new DataTable();
private string _channelDev = string.Empty;
public bool AllowReceive = false;
public string _stationNo;
private string _lineRowID = "";
public PlcInvoke(string channelDev, string stationNo)
{
_channelDev = channelDev;
_stationNo = stationNo;
}
public void SetLineID(string lineID)
{
_lineRowID = lineID;
}
public bool InitDev(int rate)
{
if (_linkDev == false)
{
return false;
}
try
{
// int rate = 500;
CreateServer();
if (ConnectServer())
{
opcGroups = opcServer.OPCGroups;
opcGroup1 = opcGroups.Add("GRP");
SetGroupProperty(opcGroup1, rate);
opcItems = opcGroup1.OPCItems;
opcItems.DefaultIsActive = true;
LoadOpcItem(_stationNo);
opcGroup1.DataChange += OpcGroup1_DataChange;
ShowLinkInfo(true, true);
}
return true;
}
catch (Exception ex)
{
ShowLinkInfo(false, true);
//MyLogger.Write("设备初始化发生错误,错误原因:" + ex.Message);
LogHelper.WriteLog("设备初始化发生错误,错误原因:" + ex.Message);
//throw new Exception("设备初始化发生错误,错误原因:" + ex.Message);
return false;
}
}
/// <summary>
///
/// </summary>
/// <param name="addresses">PLC地址点位</param>
/// <param name="operType">操作类型 冲孔,流钻,EOL,返修</param>
public void SendToPLC( bool isInit,string lineRowID)
{
if(isInit == false)
{
_lineRowID = lineRowID;
foreach (OPCItem item in opcItemm1)
{
if (item.ItemID.Contains("Start"))
{
item.Write(2);
ShowMessage("发送启动信号:" + 2, true);
}
//if (item.ItemID.Contains("caseNo"))
//{
// item.Write(caseNo);
// ShowMessage("发送料盒号:" + caseNo, true);
//}
}
ShowMessage("发送启动信号成功", true);
}
else
{
foreach (OPCItem item in opcItemm1)
{
if (item.ItemID.Contains("Start"))
{
item.Write(1);
}
if (item.ItemID.Contains("ScrewL"))
{
item.Write(0);
}
if (item.ItemID.Contains("ScrewR"))
{
item.Write(0);
}
if (item.ItemID.Contains("RivetL"))
{
item.Write(0);
}
if (item.ItemID.Contains("RivetR"))
{
item.Write(0);
}
if (item.ItemID.Contains("IrIs"))
{
item.Write(0);
}
//if (item.ItemID.Contains("NutL"))
//{
// item.Write(0);
//}
//if (item.ItemID.Contains("NutR"))
//{
// item.Write(0);
//}
//螺钉类型 不用初始化
}
ShowMessage("发送初始化设备信号成功", true);
}
AllowReceive = true;
}
public void WriteToPLCTest()
{
foreach (OPCItem item in opcItemm1)
{
if (item.ItemID.Contains("ScrewL"))
{
item.Write(8);
}
if (item.ItemID.Contains("ScrewR"))
{
item.Write(8);
}
if (item.ItemID.Contains("RivetL"))
{
item.Write(8);
}
if (item.ItemID.Contains("RivetR"))
{
item.Write(8);
}
if (item.ItemID.Contains("IrIs"))
{
item.Write(8);
}
//if (item.ItemID.Contains("NutL"))
//{
// item.Write(8);
//}
//if (item.ItemID.Contains("NutR"))
//{
// item.Write(8);
//}
//螺钉类型 不用初始化
}
}
void LoadOpcItem(string stationNo)
{
Dictionary<int, string> dict = GetPlcAddress();// GetDevInfo();
opcItemm1 = new OPCItem[dict.Count];
int i = 0;
foreach (var dictItem in dict)
{
opcItemm1[i] = opcItems.AddItem(dictItem.Value, dictItem.Key);
i++;
}
}
public Dictionary<int, string> GetPlcAddress()
{
Dictionary<int, string> dict = new Dictionary<int, string>();
dict.Add(0, _channelDev + ".LinkRate");
dict.Add(1, _channelDev + ".Start");
dict.Add(2, _channelDev + ".ScrewL");
dict.Add(3, _channelDev + ".ScrewR");
dict.Add(4, _channelDev + ".RivetL");
dict.Add(5, _channelDev + ".RivetR");
dict.Add(6, _channelDev + ".IrIs");
//dict.Add(7, _channelDev + ".caseNo");
//dict.Add(8, _channelDev + ".NutL");
//dict.Add(9, _channelDev + ".NutR");
return dict;
}
private string GetOpcName(DataRow row)
{
return $"{row["ChannelName"].ToString()}.{row["DevName"].ToString()}.{row["LableName"].ToString()}";
}
private void OpcGroup1_DataChange(int TransactionID, int NumItems, ref Array ClientHandles, ref Array ItemValues, ref Array Qualities, ref Array TimeStamps)
{
try
{
if (_linkDev == false) return;
for (int i = 1; i <= NumItems; i++)
{
int handle = Convert.ToInt32(ClientHandles.GetValue(i).ToString().Trim());
string itemValue = ItemValues.GetValue(i).ToString();
string address = opcItemm1[(handle)].ItemID;
if (!string.IsNullOrEmpty(_lineRowID))
{
if (address.Contains("ScrewL"))
{
Function2.UpdateLineCount("LeftScrew1=" + itemValue, _lineRowID);
}
else if (address.Contains("ScrewR"))
{
Function2.UpdateLineCount("RightScrew1=" + itemValue, _lineRowID);
}
else if (address.Contains("RivetL"))
{
Function2.UpdateLineCount("LeftRivet1=" + itemValue, _lineRowID);
}
else if (address.Contains("RivetR"))
{
Function2.UpdateLineCount("RightRivet1=" + itemValue, _lineRowID);
}
else if (address.Contains("IrIs"))
{
Function2.UpdateLineCount("IrIs=" + itemValue, _lineRowID);
}
//else if (address.Contains("NutL"))
//{
// Function2.UpdateLineCount("LeftNut=" + itemValue, _lineRowID);
//}
//else if (address.Contains("NutR"))
//{
// Function2.UpdateLineCount("RightNut=" + itemValue, _lineRowID);
//}
}
}
}
catch (Exception ex)
{
//MyLogger.Write("设备返回数据发生异常,错误原因:" + ex.Message);
LogHelper.WriteLog("设备返回数据发生异常,错误原因:" + ex.Message);
ShowMessage("设备返回数据发生异常,错误原因:" + ex.Message, false);
}
}
/// <summary>
/// 创建服务
/// </summary>
/// <returns></returns>
private void CreateServer()
{
try
{
opcServer = new OPCServer();
}
catch (Exception ex)
{
throw new Exception("创建OpcServer时发生异常,异常信息:" + ex.Message);
}
}
/// <summary>
/// 连接到服务器
/// </summary>
/// <param name="strHostIP"></param>
/// <param name="strHostName"></param>
/// <returns></returns>
private bool ConnectServer()
{
try
{
opcServer.Connect("Kepware.KEPServerEX.V6", "");
ShowLinkResult(true, true);
}
catch (Exception ex)
{
ShowLinkResult(false, true);
//ShowScanResult(false);
LogHelper.WriteLog($"设备连接异常,异常原因:" + ex.Message);
throw new Exception($"设备连接异常");
}
return true;
}
/// <summary>
/// 设置组的属性
/// </summary>
/// <param name="opcGroup"></param>
/// <param name="updateRate"></param>
private void SetGroupProperty(OPCGroup opcGroup, int updateRate)
{
opcGroup.IsActive = true;
opcGroup.DeadBand = 0;
opcGroup.UpdateRate = updateRate;
opcGroup.IsSubscribed = true;
}
private void ShowLinkResult(bool isSuccess, bool isWriteLog)
{
if (ShowLinkInfo != null)
{
ShowLinkInfo(isSuccess, isWriteLog);
}
}
}
}

55
PunchingMistake/Printer.cs

@ -0,0 +1,55 @@
using grproLib;
using InjectionPC;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PunchingMistake
{
public class Printer
{
/// <summary>
/// 小件总成装配打印总成条码
/// </summary>
public static void PrintPunchAssembleBarCode( string barCode, string partNo1, string partName, string serialNo)
{
string filename = GetPrintFileName();
DataTable headTable = new DataTable();
headTable.Columns.Add("BarCode");
headTable.Columns.Add("PartName");
headTable.Columns.Add("PartNo");
headTable.Columns.Add("BatchNo");
headTable.Columns.Add("SerialNo");
headTable.Columns.Add("Line");
DataRow row = headTable.NewRow();
row["BarCode"] = barCode;
row["PartNo"] = partNo1;
row["PartName"] = partName;
row["BatchNo"] = DateTime.Now.ToString("yyMMdd");
row["SerialNo"] = serialNo;
row["Line"] = ConfigurationManager.AppSettings["Line"];
string printBoxName = "Printer1";
string reportName = ConfigurationManager.AppSettings[printBoxName].ToString();
headTable.Rows.Add(row);
ReportHelper rp = new ReportHelper(filename, headTable, null, (int)GRPaperOrientation.grpoLandscape, 1, reportName);
rp.Report.Print(false);
}
static string GetPrintFileName()
{
if (Program.station == "F01")
{
return System.AppDomain.CurrentDomain.BaseDirectory + "Report\\总成条码MI.grf";
}
return System.AppDomain.CurrentDomain.BaseDirectory + "Report\\总成条码MI.grf";
}
}
}

55
PunchingMistake/PunchingMistake.csproj

@ -49,6 +49,13 @@
<HintPath>..\..\BjbmptMesNgccNew\Stone.Common.Dlls\Interop.grproLib.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="Interop.OPCAutomation">
<HintPath>DLL\Interop.OPCAutomation.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="PlaySound">
<HintPath>DLL\PlaySound.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Configuration" />
<Reference Include="System.Core" />
@ -87,17 +94,23 @@
<Compile Include="FrmLogin.Designer.cs">
<DependentUpon>FrmLogin.cs</DependentUpon>
</Compile>
<Compile Include="FrmPlanSeach.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmPlanSeach.Designer.cs">
<DependentUpon>FrmPlanSeach.cs</DependentUpon>
</Compile>
<Compile Include="FrmProScreen3.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmProScreen3.Designer.cs">
<DependentUpon>FrmProScreen3.cs</DependentUpon>
</Compile>
<Compile Include="FrmQualityNew.cs">
<Compile Include="FrmQualityNew1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmQualityNew.Designer.cs">
<DependentUpon>FrmQualityNew.cs</DependentUpon>
<Compile Include="FrmQualityNew1.Designer.cs">
<DependentUpon>FrmQualityNew1.cs</DependentUpon>
</Compile>
<Compile Include="FrmQuality.cs">
<SubType>Form</SubType>
@ -105,6 +118,12 @@
<Compile Include="FrmQuality.Designer.cs">
<DependentUpon>FrmQuality.cs</DependentUpon>
</Compile>
<Compile Include="FrmQualityNew.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="FrmQualityNew.designer.cs">
<DependentUpon>FrmQualityNew.cs</DependentUpon>
</Compile>
<Compile Include="FrmScan.cs">
<SubType>Form</SubType>
</Compile>
@ -112,7 +131,10 @@
<DependentUpon>FrmScan.cs</DependentUpon>
</Compile>
<Compile Include="Function2.cs" />
<Compile Include="Function3.cs" />
<Compile Include="LogHelper.cs" />
<Compile Include="PlcInvoke.cs" />
<Compile Include="Printer.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
@ -124,15 +146,21 @@
<EmbeddedResource Include="FrmLogin.resx">
<DependentUpon>FrmLogin.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmPlanSeach.resx">
<DependentUpon>FrmPlanSeach.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmProScreen3.resx">
<DependentUpon>FrmProScreen3.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmQualityNew.resx">
<DependentUpon>FrmQualityNew.cs</DependentUpon>
<EmbeddedResource Include="FrmQualityNew1.resx">
<DependentUpon>FrmQualityNew1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmQuality.resx">
<DependentUpon>FrmQuality.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmQualityNew.resx">
<DependentUpon>FrmQualityNew.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="FrmScan.resx">
<DependentUpon>FrmScan.cs</DependentUpon>
</EmbeddedResource>
@ -154,7 +182,9 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<None Include="Report\总成条码MI.grf" />
<None Include="Report\总成条码MI.grf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
@ -181,7 +211,18 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Content Include="Images\assembleHead.png" />
<Content Include="Images\assembleHead.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\assembleLine.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\正确.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\错误.wav">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="DLL\" />

Loading…
Cancel
Save