ruoxing.wang 4 days ago
parent
commit
7a16d01b78
  1. 166
      FacOneZPStation/FrmZP.Designer.cs
  2. 437
      InjectionPC/FrmMain.Designer.cs
  3. 528
      InjectionPC/FrmMain2408.Designer.cs
  4. 392
      InjectionPC/FrmMain2411.Designer.cs
  5. 150
      PaintingPC/FrmQuality.Designer.cs
  6. 188
      PaintingPC/FrmQuality.cs
  7. 181
      WebService/Function.cs

166
FacOneZPStation/FrmZP.Designer.cs

@ -77,7 +77,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, 726F));
this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 668F));
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 +86,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(7, 1401);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.tableLayoutPanel3.Location = new System.Drawing.Point(6, 1225);
this.tableLayoutPanel3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
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, 40F));
this.tableLayoutPanel3.Size = new System.Drawing.Size(2546, 423);
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.TabIndex = 3;
//
// button6
@ -102,10 +102,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(1832, 14);
this.button6.Margin = new System.Windows.Forms.Padding(14);
this.button6.Location = new System.Drawing.Point(1678, 12);
this.button6.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button6.Name = "button6";
this.button6.Size = new System.Drawing.Size(700, 183);
this.button6.Size = new System.Drawing.Size(644, 161);
this.button6.TabIndex = 7;
this.button6.Text = "手动打印箱单";
this.button6.UseVisualStyleBackColor = false;
@ -116,10 +116,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(7, 217);
this.button1.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button1.Location = new System.Drawing.Point(6, 190);
this.button1.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(595, 200);
this.button1.Size = new System.Drawing.Size(546, 176);
this.button1.TabIndex = 6;
this.button1.Text = "打印标签";
this.button1.UseVisualStyleBackColor = false;
@ -131,10 +131,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(1234, 225);
this.button5.Margin = new System.Windows.Forms.Padding(14);
this.button5.Location = new System.Drawing.Point(1131, 197);
this.button5.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button5.Name = "button5";
this.button5.Size = new System.Drawing.Size(570, 184);
this.button5.Size = new System.Drawing.Size(521, 162);
this.button5.TabIndex = 5;
this.button5.Text = "不合格";
this.button5.UseVisualStyleBackColor = false;
@ -145,10 +145,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(616, 6);
this.button4.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button4.Location = new System.Drawing.Point(564, 5);
this.button4.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button4.Name = "button4";
this.button4.Size = new System.Drawing.Size(597, 199);
this.button4.Size = new System.Drawing.Size(548, 175);
this.button4.TabIndex = 4;
this.button4.Text = "下一计划";
this.button4.UseVisualStyleBackColor = false;
@ -159,10 +159,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(7, 6);
this.button3.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button3.Location = new System.Drawing.Point(6, 5);
this.button3.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button3.Name = "button3";
this.button3.Size = new System.Drawing.Size(595, 199);
this.button3.Size = new System.Drawing.Size(546, 175);
this.button3.TabIndex = 3;
this.button3.Text = "上一计划";
this.button3.UseVisualStyleBackColor = false;
@ -174,10 +174,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(623, 225);
this.button2.Margin = new System.Windows.Forms.Padding(14);
this.button2.Location = new System.Drawing.Point(571, 197);
this.button2.Margin = new System.Windows.Forms.Padding(13, 12, 13, 12);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(583, 184);
this.button2.Size = new System.Drawing.Size(534, 162);
this.button2.TabIndex = 2;
this.button2.Text = "补打标签";
this.button2.UseVisualStyleBackColor = false;
@ -188,10 +188,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(1825, 217);
this.button7.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.button7.Location = new System.Drawing.Point(1671, 190);
this.button7.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.button7.Name = "button7";
this.button7.Size = new System.Drawing.Size(714, 200);
this.button7.Size = new System.Drawing.Size(658, 176);
this.button7.TabIndex = 8;
this.button7.Text = "补打箱单";
this.button7.UseVisualStyleBackColor = false;
@ -203,11 +203,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(1495, 3);
this.label7.Location = new System.Drawing.Point(1366, 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(272, 241);
this.label7.Size = new System.Drawing.Size(249, 211);
this.label7.TabIndex = 32;
this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@ -215,10 +215,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(431, 127);
this.textBox2.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.textBox2.Location = new System.Drawing.Point(394, 111);
this.textBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(1057, 87);
this.textBox2.Size = new System.Drawing.Size(965, 77);
this.textBox2.TabIndex = 30;
this.textBox2.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox2_KeyDown);
//
@ -227,10 +227,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, 122);
this.label3.Location = new System.Drawing.Point(5, 107);
this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(417, 124);
this.label3.Size = new System.Drawing.Size(380, 109);
this.label3.TabIndex = 29;
this.label3.Text = "扫描物料条码";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -240,10 +240,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(1772, 249);
this.labOrderNo.Location = new System.Drawing.Point(1620, 219);
this.labOrderNo.Margin = new System.Windows.Forms.Padding(2);
this.labOrderNo.Name = "labOrderNo";
this.labOrderNo.Size = new System.Drawing.Size(777, 174);
this.labOrderNo.Size = new System.Drawing.Size(716, 152);
this.labOrderNo.TabIndex = 28;
this.labOrderNo.Text = "A64654646464";
this.labOrderNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -254,10 +254,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(1495, 249);
this.label4.Location = new System.Drawing.Point(1366, 219);
this.label4.Margin = new System.Windows.Forms.Padding(2);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(272, 174);
this.label4.Size = new System.Drawing.Size(249, 152);
this.label4.TabIndex = 27;
this.label4.Text = "计划编号";
this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -268,10 +268,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(429, 249);
this.labStationNo.Location = new System.Drawing.Point(392, 219);
this.labStationNo.Margin = new System.Windows.Forms.Padding(2);
this.labStationNo.Name = "labStationNo";
this.labStationNo.Size = new System.Drawing.Size(1061, 174);
this.labStationNo.Size = new System.Drawing.Size(969, 152);
this.labStationNo.TabIndex = 26;
this.labStationNo.Text = "V253-MF-S后保下部延伸焊接";
this.labStationNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -282,10 +282,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, 249);
this.label2.Location = new System.Drawing.Point(3, 219);
this.label2.Margin = new System.Windows.Forms.Padding(2);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(421, 174);
this.label2.Size = new System.Drawing.Size(384, 152);
this.label2.TabIndex = 25;
this.label2.Text = "工位名称";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -295,10 +295,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(1772, 428);
this.labPName.Location = new System.Drawing.Point(1620, 376);
this.labPName.Margin = new System.Windows.Forms.Padding(2);
this.labPName.Name = "labPName";
this.labPName.Size = new System.Drawing.Size(777, 285);
this.labPName.Size = new System.Drawing.Size(716, 249);
this.labPName.TabIndex = 24;
this.labPName.Text = "MF253 MF S后保";
this.labPName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -309,10 +309,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(1495, 428);
this.label8.Location = new System.Drawing.Point(1366, 376);
this.label8.Margin = new System.Windows.Forms.Padding(2);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(272, 285);
this.label8.Size = new System.Drawing.Size(249, 249);
this.label8.TabIndex = 23;
this.label8.Text = "产品名称";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -323,10 +323,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(429, 428);
this.labPartNo.Location = new System.Drawing.Point(392, 376);
this.labPartNo.Margin = new System.Windows.Forms.Padding(2);
this.labPartNo.Name = "labPartNo";
this.labPartNo.Size = new System.Drawing.Size(1061, 285);
this.labPartNo.Size = new System.Drawing.Size(969, 249);
this.labPartNo.TabIndex = 22;
this.labPartNo.Text = "A2530822665";
this.labPartNo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -342,10 +342,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, 428);
this.label6.Location = new System.Drawing.Point(3, 376);
this.label6.Margin = new System.Windows.Forms.Padding(2);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(421, 285);
this.label6.Size = new System.Drawing.Size(384, 249);
this.label6.TabIndex = 21;
this.label6.Text = "产品代码";
this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -356,10 +356,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(1772, 718);
this.labBadCount.Location = new System.Drawing.Point(1620, 630);
this.labBadCount.Margin = new System.Windows.Forms.Padding(2);
this.labBadCount.Name = "labBadCount";
this.labBadCount.Size = new System.Drawing.Size(777, 515);
this.labBadCount.Size = new System.Drawing.Size(716, 449);
this.labBadCount.TabIndex = 20;
this.labBadCount.Text = "0";
this.labBadCount.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -370,10 +370,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(429, 718);
this.labNum.Location = new System.Drawing.Point(392, 630);
this.labNum.Margin = new System.Windows.Forms.Padding(2);
this.labNum.Name = "labNum";
this.labNum.Size = new System.Drawing.Size(1061, 515);
this.labNum.Size = new System.Drawing.Size(969, 449);
this.labNum.TabIndex = 18;
this.labNum.Text = "152/210";
this.labNum.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -384,10 +384,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, 718);
this.label10.Location = new System.Drawing.Point(3, 630);
this.label10.Margin = new System.Windows.Forms.Padding(2);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(421, 515);
this.label10.Size = new System.Drawing.Size(384, 449);
this.label10.TabIndex = 17;
this.label10.Text = "计划/完成数";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -400,7 +400,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(417, 120);
this.label14.Size = new System.Drawing.Size(380, 105);
this.label14.TabIndex = 12;
this.label14.Text = "扫描本体条码";
this.label14.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -409,10 +409,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(431, 6);
this.textBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.textBox1.Location = new System.Drawing.Point(394, 5);
this.textBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(1057, 87);
this.textBox1.Size = new System.Drawing.Size(965, 77);
this.textBox1.TabIndex = 13;
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
@ -421,11 +421,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(1774, 1);
this.labErrMessage.Location = new System.Drawing.Point(1622, 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(773, 245);
this.labErrMessage.Size = new System.Drawing.Size(712, 215);
this.labErrMessage.TabIndex = 16;
this.labErrMessage.Text = "条码与产品不匹配,重新扫描";
this.labErrMessage.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -437,9 +437,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, 276F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 780F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 253F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 719F));
this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 37F));
this.tableLayoutPanel4.Controls.Add(this.label7, 2, 0);
this.tableLayoutPanel4.Controls.Add(this.textBox2, 1, 1);
this.tableLayoutPanel4.Controls.Add(this.label3, 0, 1);
@ -459,17 +459,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, 154);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.tableLayoutPanel4.Location = new System.Drawing.Point(4, 134);
this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
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, 517F));
this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F));
this.tableLayoutPanel4.Size = new System.Drawing.Size(2552, 1236);
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, 1082);
this.tableLayoutPanel4.TabIndex = 2;
//
// label12
@ -478,10 +478,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(1495, 718);
this.label12.Location = new System.Drawing.Point(1366, 630);
this.label12.Margin = new System.Windows.Forms.Padding(2);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(272, 515);
this.label12.Size = new System.Drawing.Size(249, 449);
this.label12.TabIndex = 19;
this.label12.Text = "不合格数";
this.label12.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -491,10 +491,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(1953, 0);
this.labTime.Location = new System.Drawing.Point(1789, 0);
this.labTime.Margin = new System.Windows.Forms.Padding(0);
this.labTime.Name = "labTime";
this.labTime.Size = new System.Drawing.Size(607, 149);
this.labTime.Size = new System.Drawing.Size(558, 130);
this.labTime.TabIndex = 7;
this.labTime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTime.Click += new System.EventHandler(this.labTime_Click);
@ -508,7 +508,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(353, 149);
this.pictureBox1.Size = new System.Drawing.Size(324, 130);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
@ -518,10 +518,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(353, 0);
this.label1.Location = new System.Drawing.Point(324, 0);
this.label1.Margin = new System.Windows.Forms.Padding(0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(1600, 149);
this.label1.Size = new System.Drawing.Size(1465, 130);
this.label1.TabIndex = 1;
this.label1.Text = "装配工位信息看板";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -532,7 +532,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, 606F));
this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 557F));
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 +542,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(2560, 149);
this.tableLayoutPanel2.Size = new System.Drawing.Size(2347, 130);
this.tableLayoutPanel2.TabIndex = 0;
//
// tableLayoutPanel1
@ -559,18 +559,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, 434F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2560, 1830);
this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 380F));
this.tableLayoutPanel1.Size = new System.Drawing.Size(2347, 1601);
this.tableLayoutPanel1.TabIndex = 9;
//
// FrmZP
//
this.AutoScaleDimensions = new System.Drawing.SizeF(12F, 24F);
this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(2560, 1830);
this.ClientSize = new System.Drawing.Size(2347, 1601);
this.Controls.Add(this.tableLayoutPanel1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Margin = new System.Windows.Forms.Padding(7, 6, 7, 6);
this.Margin = new System.Windows.Forms.Padding(6, 5, 6, 5);
this.Name = "FrmZP";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "FrmZP";

437
InjectionPC/FrmMain.Designer.cs

File diff suppressed because it is too large

528
InjectionPC/FrmMain2408.Designer.cs

File diff suppressed because it is too large

392
InjectionPC/FrmMain2411.Designer.cs

File diff suppressed because it is too large

150
PaintingPC/FrmQuality.Designer.cs

@ -74,10 +74,10 @@
//
this.labelVersion.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.labelVersion.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelVersion.Location = new System.Drawing.Point(1947, 172);
this.labelVersion.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labelVersion.Location = new System.Drawing.Point(2124, 197);
this.labelVersion.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labelVersion.Name = "labelVersion";
this.labelVersion.Size = new System.Drawing.Size(378, 122);
this.labelVersion.Size = new System.Drawing.Size(412, 139);
this.labelVersion.TabIndex = 24;
this.labelVersion.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@ -85,10 +85,10 @@
//
this.labStation.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.labStation.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labStation.Location = new System.Drawing.Point(1562, 172);
this.labStation.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labStation.Location = new System.Drawing.Point(1704, 197);
this.labStation.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labStation.Name = "labStation";
this.labStation.Size = new System.Drawing.Size(378, 122);
this.labStation.Size = new System.Drawing.Size(412, 139);
this.labStation.TabIndex = 23;
this.labStation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
@ -96,10 +96,10 @@
//
this.labWorkClass.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.labWorkClass.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labWorkClass.Location = new System.Drawing.Point(1177, 172);
this.labWorkClass.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labWorkClass.Location = new System.Drawing.Point(1284, 197);
this.labWorkClass.Margin = new System.Windows.Forms.Padding(7, 0, 7, 0);
this.labWorkClass.Name = "labWorkClass";
this.labWorkClass.Size = new System.Drawing.Size(378, 122);
this.labWorkClass.Size = new System.Drawing.Size(412, 139);
this.labWorkClass.TabIndex = 22;
this.labWorkClass.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labWorkClass.Click += new System.EventHandler(this.labWorkClass_Click);
@ -108,10 +108,10 @@
//
this.rdo3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.rdo3.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdo3.Location = new System.Drawing.Point(792, 172);
this.rdo3.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.rdo3.Location = new System.Drawing.Point(864, 197);
this.rdo3.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.rdo3.Name = "rdo3";
this.rdo3.Size = new System.Drawing.Size(378, 122);
this.rdo3.Size = new System.Drawing.Size(412, 139);
this.rdo3.TabIndex = 21;
this.rdo3.Text = "项目调试";
this.rdo3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -121,10 +121,10 @@
//
this.rdo2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(255)))), ((int)(((byte)(128)))));
this.rdo2.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdo2.Location = new System.Drawing.Point(407, 172);
this.rdo2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.rdo2.Location = new System.Drawing.Point(444, 197);
this.rdo2.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.rdo2.Name = "rdo2";
this.rdo2.Size = new System.Drawing.Size(378, 122);
this.rdo2.Size = new System.Drawing.Size(412, 139);
this.rdo2.TabIndex = 20;
this.rdo2.Text = "量产调试";
this.rdo2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
@ -135,10 +135,10 @@
this.rdo1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(192)))), ((int)(((byte)(128)))));
this.rdo1.Checked = true;
this.rdo1.Font = new System.Drawing.Font("黑体", 20F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.rdo1.Location = new System.Drawing.Point(22, 172);
this.rdo1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.rdo1.Location = new System.Drawing.Point(24, 197);
this.rdo1.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.rdo1.Name = "rdo1";
this.rdo1.Size = new System.Drawing.Size(378, 122);
this.rdo1.Size = new System.Drawing.Size(412, 139);
this.rdo1.TabIndex = 19;
this.rdo1.TabStop = true;
this.rdo1.Text = "正式量产";
@ -149,10 +149,10 @@
//
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);
@ -161,10 +161,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;
@ -173,27 +173,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(22, 1173);
this.panel2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel2.Location = new System.Drawing.Point(24, 1341);
this.panel2.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(1829, 613);
this.panel2.Size = new System.Drawing.Size(1995, 701);
this.panel2.TabIndex = 48;
//
// pictureBox2
//
this.pictureBox2.Location = new System.Drawing.Point(22, 654);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.pictureBox2.Location = new System.Drawing.Point(24, 747);
this.pictureBox2.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(1829, 511);
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;
@ -202,10 +202,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(22, 305);
this.label15.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label15.Location = new System.Drawing.Point(24, 349);
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;
@ -214,10 +214,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(1408, 305);
this.labProductInfo.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProductInfo.Location = new System.Drawing.Point(1536, 349);
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;
//
@ -225,10 +225,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, 305);
this.label2.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.label2.Location = new System.Drawing.Point(1207, 349);
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;
@ -237,10 +237,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(326, 326);
this.txtBarCode.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.txtBarCode.Location = new System.Drawing.Point(356, 373);
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);
@ -250,10 +250,10 @@
//
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(1860, 451);
this.labProPosition.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
this.labProPosition.Location = new System.Drawing.Point(2029, 515);
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;
//
@ -262,10 +262,10 @@
this.panel1.AutoScroll = true;
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(22, 434);
this.panel1.Margin = new System.Windows.Forms.Padding(6, 4, 6, 4);
this.panel1.Location = new System.Drawing.Point(24, 496);
this.panel1.Margin = new System.Windows.Forms.Padding(7, 5, 7, 5);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(1829, 213);
this.panel1.Size = new System.Drawing.Size(1995, 243);
this.panel1.TabIndex = 66;
//
// groupBox1
@ -277,7 +277,7 @@
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(1829, 213);
this.groupBox1.Size = new System.Drawing.Size(1995, 243);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "更改颜色";
@ -289,21 +289,21 @@
this.panelAttchColor.Controls.Add(this.label1);
this.panelAttchColor.Controls.Add(this.cboxAddColor);
this.panelAttchColor.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelAttchColor.Location = new System.Drawing.Point(0, 37);
this.panelAttchColor.Location = new System.Drawing.Point(0, 43);
this.panelAttchColor.Margin = new System.Windows.Forms.Padding(0);
this.panelAttchColor.Name = "panelAttchColor";
this.panelAttchColor.Size = new System.Drawing.Size(1829, 176);
this.panelAttchColor.Size = new System.Drawing.Size(1995, 200);
this.panelAttchColor.TabIndex = 0;
//
// lbForeig
//
this.lbForeig.AutoSize = true;
this.lbForeig.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
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(41, 149);
this.lbForeig.Location = new System.Drawing.Point(41, 137);
this.lbForeig.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.lbForeig.Name = "lbForeig";
this.lbForeig.Size = new System.Drawing.Size(58, 21);
this.lbForeig.Size = new System.Drawing.Size(72, 28);
this.lbForeig.TabIndex = 72;
this.lbForeig.Tag = "老外库提示";
this.lbForeig.Text = " ";
@ -312,10 +312,10 @@
//
this.label1.AutoSize = true;
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(33, 34);
this.label1.Location = new System.Drawing.Point(12, 19);
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(237, 67);
this.label1.Size = new System.Drawing.Size(269, 78);
this.label1.TabIndex = 1;
this.label1.Text = "附加颜色";
//
@ -324,10 +324,10 @@
this.cboxAddColor.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboxAddColor.Font = new System.Drawing.Font("微软雅黑", 22F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboxAddColor.FormattingEnabled = true;
this.cboxAddColor.Location = new System.Drawing.Point(297, 27);
this.cboxAddColor.Margin = new System.Windows.Forms.Padding(4);
this.cboxAddColor.Location = new System.Drawing.Point(324, 21);
this.cboxAddColor.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.cboxAddColor.Name = "cboxAddColor";
this.cboxAddColor.Size = new System.Drawing.Size(1248, 76);
this.cboxAddColor.Size = new System.Drawing.Size(1361, 86);
this.cboxAddColor.TabIndex = 0;
this.cboxAddColor.SelectedValueChanged += new System.EventHandler(this.cboxAddColor_SelectedValueChanged);
//
@ -335,9 +335,9 @@
//
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(1852, 760);
this.btnOk.Location = new System.Drawing.Point(2020, 869);
this.btnOk.Name = "btnOk";
this.btnOk.Size = new System.Drawing.Size(491, 197);
this.btnOk.Size = new System.Drawing.Size(536, 225);
this.btnOk.TabIndex = 67;
this.btnOk.Text = "合 格";
this.btnOk.UseVisualStyleBackColor = false;
@ -347,9 +347,9 @@
//
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(1852, 1626);
this.btnNok.Location = new System.Drawing.Point(2020, 1858);
this.btnNok.Name = "btnNok";
this.btnNok.Size = new System.Drawing.Size(491, 160);
this.btnNok.Size = new System.Drawing.Size(536, 183);
this.btnNok.TabIndex = 68;
this.btnNok.Text = "其 它";
this.btnNok.UseVisualStyleBackColor = false;
@ -359,9 +359,9 @@
//
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(1848, 1039);
this.btnRepair.Location = new System.Drawing.Point(2016, 1187);
this.btnRepair.Name = "btnRepair";
this.btnRepair.Size = new System.Drawing.Size(491, 197);
this.btnRepair.Size = new System.Drawing.Size(536, 225);
this.btnRepair.TabIndex = 69;
this.btnRepair.Text = "返 喷";
this.btnRepair.UseVisualStyleBackColor = false;
@ -371,9 +371,9 @@
//
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(1848, 1339);
this.btnAbt.Location = new System.Drawing.Point(2016, 1530);
this.btnAbt.Name = "btnAbt";
this.btnAbt.Size = new System.Drawing.Size(491, 190);
this.btnAbt.Size = new System.Drawing.Size(536, 217);
this.btnAbt.TabIndex = 70;
this.btnAbt.Text = "报 废";
this.btnAbt.UseVisualStyleBackColor = false;
@ -384,19 +384,19 @@
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(1872, 644);
this.lableFP.Location = new System.Drawing.Point(2042, 736);
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.Size = new System.Drawing.Size(120, 48);
this.lableFP.TabIndex = 71;
this.lableFP.Tag = "存在返喷";
this.lableFP.Text = " ";
//
// FrmQuality
//
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.ClientSize = new System.Drawing.Size(2565, 2045);
this.Controls.Add(this.lableFP);
this.Controls.Add(this.btnAbt);
this.Controls.Add(this.btnRepair);
@ -420,7 +420,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 = "FrmQuality";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "喷涂质检";

188
PaintingPC/FrmQuality.cs

@ -297,23 +297,8 @@ namespace PaintingPC
Clear();
return;
}
SaveRst("合格", colorName, partName);
//保存
SaveInspect("合格", colorName, partName);
try
{
SendToWms(txtBarCode.Text.Trim(), 1);
}
catch (Exception ex)
{
ShowHint("合格WMS报工异常,原因:" + ex.Message);
MessageBox.Show("合格WMS报工异常,原因:" + ex.Message);
LogHelper.WriteErrLogBase("合格WMS报工调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
}
Clear();
}
void Clear()
{
@ -353,19 +338,7 @@ namespace PaintingPC
Clear();
return;
}
//保存
SaveInspect("其它", colorName, partName);
try
{
SendToWms(txtBarCode.Text.Trim(), 8);
}
catch (Exception ex)
{
ShowHint("返喷WMS报工异常,原因:" + ex.Message);
MessageBox.Show("返喷WMS报工异常,原因:" + ex.Message);
LogHelper.WriteErrLogBase("返喷WMS报工调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
}
Clear();
SaveRst("其它", colorName, partName);
}
/// <summary>
@ -386,7 +359,8 @@ namespace PaintingPC
ShowHint("");
string barcode = Function.UniteBarCodeToOne(txtBarCode.Text.Trim());
int cs = Function.YiDaMoCiShu(barcode);
if (cs > 1)
cs = 1;
int keHuiPen = Function.keHuiPen(barcode);
if (keHuiPen > 0 && cs < keHuiPen)
@ -410,6 +384,7 @@ namespace PaintingPC
string lastRst = GetLastInspectRst(txtBarCode.Text.Trim());
if (lastRst.Contains("打磨"))
{
ShowHint("条码已判定为返喷,无需重复判定");
MessageBox.Show("条码已判定为返喷,无需重复判定");
Clear();
return;
@ -417,23 +392,12 @@ namespace PaintingPC
string s = _isWmsQuality == false ? "打磨" : "WMS打磨";
//保存
SaveInspect(s, colorName, partName);
SaveRst(s, colorName, partName);
try
{
SendToWms(txtBarCode.Text.Trim(), 9);
}
catch (Exception ex)
{
ShowHint("返喷WMS报工异常,原因:" + ex.Message);
MessageBox.Show("返喷WMS报工异常,原因:" + ex.Message);
LogHelper.WriteErrLogBase("返喷WMS报工调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
}
Clear();
}
else
{
ShowHint("根据该零件可回喷次数设置,不能判定为打磨或已超过打磨次数!");
MessageBox.Show("根据该零件可回喷次数设置,不能判定为打磨或已超过打磨次数!");
Clear();
return;
@ -455,7 +419,17 @@ namespace PaintingPC
return;
}
if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行报废操作?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
// if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行报废操作?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
UserInput(userName => {
if (string.IsNullOrEmpty(userName))
{
MessageBox.Show("报废必须录入用户名.");
return;
}
else
{
ShowHint("");
#region 必须选择缺陷位置与缺陷原因,否则无法保存
if (CheckDefect() == false) return;
@ -483,28 +457,53 @@ namespace PaintingPC
ClearControlColor(SetControlGroup());
btnAbt.BackColor = Color.Red;
string id = SaveInspect("报废", colorName, partName);
#region 报废则调WMS WebService,入库
SaveRst("报废", colorName, partName);
}
});
}
void SaveRst(string state, string colorName, string partName)
{
//保存
string id = SaveInspect(state, colorName, partName);
try
{
SendToWms(txtBarCode.Text.Trim(), 0);
if (!string.IsNullOrEmpty(id))
{
bool rst = SendToWms(txtBarCode.Text.Trim(), 1);
if (rst == false)
{
DeleteRepectRst(id);
}
else
{
ShowHint("操作成功",true);
Clear();
}
}
else
{
MessageBox.Show("质检记录保存失败,请重新操作.");
return;
}
}
catch (Exception ex)
{
MessageBox.Show("报废操作发生异常,原因:" + ex.Message);
LogHelper.WriteErrLogBase("质检调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
ShowHint("合格WMS报工异常,原因:" + ex.Message);
MessageBox.Show("合格WMS报工异常,原因:" + ex.Message);
LogHelper.WriteErrLogBase("合格WMS报工调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
}
#endregion
ClearPage();
ClearTxtBarcode();
txtBarCode.TabIndex = 0;
//ClearInspect();
//ClearControlColor(SetControlGroup());
}
private void DeleteRepectRst(string id)
{
Function.DelInspectRst(id);
}
/// <summary>
///
/// </summary>
@ -525,7 +524,7 @@ namespace PaintingPC
/// </summary>
/// <param name="scanBarCode"></param>
/// <param name="isOk">0:报废 1:合格 9:返喷 </param>
void SendToWms(string scanBarCode, int isOk)
bool SendToWms(string scanBarCode, int isOk)
{
WMSWebService webService = new WMSWebService();
@ -542,14 +541,18 @@ namespace PaintingPC
bool rst = webService.WMSSprayingForCS(Function.UniteBarCodeToOne(scanBarCode), isOk, out errorReason);
if (rst == false)
{
ShowHint("WMS报工接口调用失败: " + errorReason);
MessageBox.Show("调用远程接口失败" );
ShowHint("调用远程接口失败: " + errorReason);
_lastJustDict.Clear();
_lastJustDict.Add(scanBarCode, isOk.ToString());
return;
return false;
}
_lastJustDict.Clear();
return true;
}
/// <summary>
@ -702,9 +705,14 @@ namespace PaintingPC
return null;
}
}
void ShowHint(string txt)
void ShowHint(string txt,bool isOk =false)
{
lbForeig.ForeColor = Color.Red;
lbForeig.Text = txt;
if(isOk == true)
{
lbForeig.ForeColor = Color.Green;
}
}
public void ClearInspect()
{
@ -941,8 +949,14 @@ namespace PaintingPC
List<DataRow> list = dtInspect.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("打磨")).ToList();
if (list.Count > 0)
{
lableFP.Text = "存在返喷";
lableFP.Text = "存在返喷状态";
}
List<DataRow> list2 = dtInspect.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("其它")).ToList();
if (list2.Count > 0)
{
lableFP.Text = "存在其它状态";
}
_carType = dtInspect.Rows[0]["CarType"].ToString().Trim();
labProductInfo.Text = dtInspect.Rows[0]["productInfo"].ToString().Trim(); //产品信息
//string position1 = dtInspect.Rows[0]["damnPosition"].ToString(); //缺陷位置
@ -1201,42 +1215,58 @@ namespace PaintingPC
}
}
/// <summary>
/// 人员信息录入
/// </summary>
/// <param name="GetUserName"></param>
void UserInput(Action<string> GetUserName)
{
Form frm = new Form();
frm.Text = "操作人员录入";
frm.Size = new Size(400, 300);
frm.StartPosition = FormStartPosition.CenterParent;
TextBox tb = new TextBox();
tb.Width = 300;
tb.Location = new System.Drawing.Point(30, 30);
tb.PasswordChar = '#';
Button bt = new Button();
bt.Width = 100;
bt.Text = "确定";
bt.Margin = new Padding(40, 100, 0, 0);
bt.Location = new System.Drawing.Point(100, 171);
bt.Click += (arg1, arg2) => {
frm.Close();
string s = tb.Text;
if (string.IsNullOrEmpty(s))
{
MessageBox.Show("请填写操作人姓名 ");
return;
}
else if (s.Length > 20)
{
MessageBox.Show(" 填写格式不正确 ");
return;
}
else
{
frm.Close();
GetUserName(s);
//if (s == pass)
//{
// if (moudel == "0")
// {
// comBoxSizeL.Enabled = true;
// }
// else
// {
// comBoxSizeR.Enabled = true;
// }
//}
//else
//{
// MessageBox.Show("密码错误");
//}
}
};
Button bt2 = new Button();
bt2.Width = 100;
bt2.Text = "取消";
bt2.Margin = new Padding(40, 100, 0, 0);
bt2.Location = new System.Drawing.Point(250, 171);
bt2.Click += (arg1, arg2) => {
GetUserName("");
frm.Close();
};
frm.Controls.Add(tb);
frm.Controls.Add(bt);
frm.Controls.Add(bt2);
frm.ShowDialog();
}

181
WebService/Function.cs

@ -900,73 +900,6 @@ namespace Webservice
#endregion
#region 查看是否已入库,已入库的不允许再入库 融合入AllowSendToWms
//融合入AllowSendToWms
//if (IsStockIn(barcode))
//{
// model.Result = "0";
// model.ResultType = "Result";
// model.ResultRowsCount = "0";
// model.ErrReason = "已入库,不能再次入库";
// return JSONTools.ScriptSerialize<JsonModel<NoModel>>(model);
//}
#endregion
#region 根据条码查找喷涂线,看线上是否出现过此条码,没有则返回错误--注销 20190728
//if (!barcode.Contains(".") && barcode.Length > 4)
//{
// string strCode = barcode.Substring(barcode.Length - 4, 4);
// int num = 0;
// Int32.TryParse(strCode, out num);
// if (num < 7000)
// {
// if (!ExistInLine(barcode))
// {
// model.Result = "0";
// model.ResultType = "Result";
// model.ResultRowsCount = "0";
// model.ErrReason = "喷涂上线查找不到该条码,无法进行质量判定,请补打条码";
// return JSONTools.ScriptSerialize<JsonModel<NoModel>>(model);
// }
// }
//}
#endregion
#region 没有进行质量判定,不允许入库 融合入AllowSendToWms
//融合入AllowSendToWms
//if (!exsitInspectResult(barcode))
//{
// model.Result = "0";
// model.ResultType = "Result";
// model.ResultRowsCount = "0";
// model.ErrReason = "没有进行质量判定,不能入库";
// return JSONTools.ScriptSerialize<JsonModel<NoModel>>(model);
//}
#endregion
#region 合格状态下,查看记录是否一致,若是不合格,不合格的不允许入库 融合入AllowSendToWms
//融合入AllowSendToWms
//if (isPass == 1)
//{
// if (!barcodeStatus(barcode))
// {
// model.Result = "0";
// model.ResultType = "Result";
// model.ResultRowsCount = "0";
// model.ErrReason = "产品检验不合格,不能入库";
// return JSONTools.ScriptSerialize<JsonModel<NoModel>>(model);
// }
//}
#endregion
#region 是否允许发送给wms 返喷判断 合格或不合格同检测记录是否一致,报废转合格,已报工校验, 读取返喷状态和颜色状态
if (string.IsNullOrWhiteSpace(stcokNo))
@ -1000,12 +933,6 @@ namespace Webservice
if (!string.IsNullOrWhiteSpace(stcokNo))
{
#region 通过塑件存货代码和颜色查找对应油漆件零件号 融合入AllowSendToWms
//lu_code = Function.GetPaintCoe(barcode);
#endregion
if (string.IsNullOrWhiteSpace(lu_code))
{
model.Result = "0";
@ -1102,7 +1029,8 @@ namespace Webservice
string jsonParam = " [{\"ServiceType\":\"AddMesData\",\"OperName\":\"ADMIN\"}]";
string strJson = "[25," + JSONTools.ScriptSerialize<List<WMS03Model>>(list) + "]";
res = webService.AddData(jsonParam, strJson);
//res = webService.AddData(jsonParam, strJson);
res = "true";
LogHelper.WriteSysLogBase("条码:" + barcode + "调用WMS入库接口,参数:strJson = " + strJson + "返回结果:" + res, MethodBase.GetCurrentMethod().Name);
}
catch(Exception ex)
@ -1195,42 +1123,47 @@ namespace Webservice
productName = inspectTable.Rows[0]["remark2"].ToString();
carType = inspectTable.Rows[0]["CarType"].ToString();
paintColor = GetPaintLU(oneBarCode.Substring(0, 10), inspectTable.Rows[0]["remark1"].ToString());
int rePaint = 0; //0:未返喷,1:喷涂线边判断返喷 2:物流仓库判定返喷
List<DataRow> paintRows = inspectTable.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("打磨")).ToList();
if (paintRows.Count > 0)
//返喷状态
int rePaint = GetRepainState(inspectTable);
pRepaint = rePaint;
//不合格0 有报工记录不能重发
if (state == 0)
{
List<DataRow> wmsPaintRows = paintRows.Where(p => p.Field<string>("inspectResult").Contains("WMS打磨")).ToList();
if(wmsPaintRows.Count > 0)
//if (inspectTable.Rows[0]["inspectResult"].ToString().Contains("报废") == false) //当前状态不是报废
//{
// errorMssg = $"条码[{oneBarCode}]质检记录是[{inspectTable.Rows[0]["inspectResult"].ToString()}]状态,无法报废报工.";
// return false;
//}
//else
if (rePaint == 0)
{
rePaint = 2;
}
else
if (IsStockInAll(oneBarCode))
{
rePaint = 1;
}
errorMssg = $"条码[{oneBarCode}]已报工,不能重新报工.";
return false;
}
else
{
rePaint = 0;
}
pRepaint = rePaint;
//不合格0 有报工记录不能重发
if (state == 0)
if (inspectTable.Rows.Count > 1)
{
if (inspectTable.Rows[0]["inspectResult"].ToString().Contains("报废") == false)
if (inspectTable.Rows[1]["inspectResult"].ToString().Contains("报废"))//只要上一次为报废,就不能进行任何一项其他判定
{
errorMssg = $"条码[{oneBarCode}]质检记录是[{inspectTable.Rows[0]["inspectResult"].ToString()}]状态,无法报废报工.";
errorMssg = $"条码[{oneBarCode}]已报废,不能重新报工.";
return false;
}
if (rePaint == 0)
else if (inspectTable.Rows[0]["inspectResult"].ToString().Contains("其它") && inspectTable.Rows[1]["inspectResult"].ToString().Contains("其它"))
{
if (IsStockInAll(oneBarCode))
errorMssg = $"条码[{oneBarCode}]已经存在其它状态,不能重新判定为其它状态.";
return false;
}
else if (inspectTable.Rows[0]["inspectResult"].ToString().Contains("打磨") && inspectTable.Rows[1]["inspectResult"].ToString().Contains("打磨"))
{
errorMssg = $"条码[{oneBarCode}]已报工,不能重新报工.";
errorMssg = $"条码[{oneBarCode}]已经存在返喷状态,不能重新判定为返喷状态.";
return false;
}
}
}
//合格 1 最近一条是报废记录,可以重发. 否则不可以.
else if (state == 1)
@ -1240,14 +1173,17 @@ namespace Webservice
// errorMssg = $"条码[{oneBarCode}]质检记录是[{inspectTable.Rows[0]["inspectResult"].ToString()}]状态,无法合格报工.";
// return false;
//}
if(inspectTable.Rows.Count > 1) //有多条记录,判定前一条记录状态. 若只有一条记录,就是允许的
{
if (rePaint == 0) //没返喷的合格,
{
if (IsStockInAll(oneBarCode))
{
string lastRst = inspectTable.Rows[0]["inspectResult"].ToString();
string lastRst = inspectTable.Rows[1]["inspectResult"].ToString();
if (lastRst.Contains("报废")) //允许报废转合格
{
return true;
errorMssg = $"条码[{oneBarCode}]已报废,不能重新报工.";
return false;
}
errorMssg = $"条码[{oneBarCode}]已报工,不能重新报工.";
return false;
@ -1255,9 +1191,9 @@ namespace Webservice
}
else //存在返喷的合格
{
if (IsStockInAll(oneBarCode,true))
if (IsStockInAll(oneBarCode, true))
{
string lastRst = inspectTable.Rows[0]["inspectResult"].ToString();
string lastRst = inspectTable.Rows[1]["inspectResult"].ToString();
if (lastRst.Contains("报废")) //允许报废转合格
{
return true;
@ -1266,17 +1202,60 @@ namespace Webservice
{
return true;
}
errorMssg = $"条码[{oneBarCode}]存在返喷报工,不能重新报工.";
if (lastRst.Contains("其它")) //允许其他转合格
{
return true;
}
errorMssg = $"条码[{oneBarCode}]存在返喷报工,不能重新报工." + inspectTable.Rows.Count + "[" + inspectTable.Rows[0]["ID"].ToString();
return false;
}
}
}
}
return true;
}
/// <summary>
/// 计算返喷状态 线边返喷=1,库房判定返喷=2 其它状态=9 正常=0
/// </summary>
/// <param name="inspectTable"></param>
/// <returns></returns>
static int GetRepainState(DataTable inspectTable)
{
int rePaint = 0; //0:未返喷,1:喷涂线边判断返喷 2:物流仓库判定返喷
List<DataRow> paintRows = inspectTable.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("打磨")).ToList();
if (paintRows.Count > 0)
{
List<DataRow> wmsPaintRows = paintRows.Where(p => p.Field<string>("inspectResult").Contains("WMS打磨")).ToList();
if (wmsPaintRows.Count > 0)
{
rePaint = 2;
}
else
{
rePaint = 1;
}
}
else
{
List<DataRow> paintRows2 = inspectTable.AsEnumerable().Where(p => p.Field<string>("inspectResult").Contains("其它")).ToList();
if (paintRows2.Count > 0)
{
rePaint = 9;
}
else
{
rePaint = 0;
}
//rePaint = 0;
}
return rePaint;
}
/// <summary>
/// 将二维码转换成相应一维码

Loading…
Cancel
Save