From 5ad50ebf9f94625aa94e9a10853aba13d0f8c848 Mon Sep 17 00:00:00 2001
From: "ruoxing.wang" <88384874@qq.com>
Date: Tue, 5 Aug 2025 10:27:20 +0800
Subject: [PATCH] 1
---
PaintingPC/FrmQuality.Designer.cs | 2 +-
PunchingMistake/FrmAssemble.cs | 2 +-
PunchingMistake/FrmQualityNew.cs | 41 +-
PunchingMistake/FrmQualityNew1.Designer.cs | 656 ---------
PunchingMistake/FrmQualityNew1.cs | 1536 --------------------
PunchingMistake/FrmQualityNew1.resx | 475 ------
PunchingMistake/Function2.cs | 97 ++
PunchingMistake/PunchingMistake.csproj | 9 -
8 files changed, 136 insertions(+), 2682 deletions(-)
delete mode 100644 PunchingMistake/FrmQualityNew1.Designer.cs
delete mode 100644 PunchingMistake/FrmQualityNew1.cs
delete mode 100644 PunchingMistake/FrmQualityNew1.resx
diff --git a/PaintingPC/FrmQuality.Designer.cs b/PaintingPC/FrmQuality.Designer.cs
index 2efc2a1..568ac43 100644
--- a/PaintingPC/FrmQuality.Designer.cs
+++ b/PaintingPC/FrmQuality.Designer.cs
@@ -365,7 +365,7 @@
this.btnNok.Name = "btnNok";
this.btnNok.Size = new System.Drawing.Size(491, 153);
this.btnNok.TabIndex = 68;
- this.btnNok.Text = "其 它";
+ this.btnNok.Text = "抛 光";
this.btnNok.UseVisualStyleBackColor = false;
this.btnNok.Click += new System.EventHandler(this.btnNok_Click);
//
diff --git a/PunchingMistake/FrmAssemble.cs b/PunchingMistake/FrmAssemble.cs
index bc912fb..6e68ebf 100644
--- a/PunchingMistake/FrmAssemble.cs
+++ b/PunchingMistake/FrmAssemble.cs
@@ -30,6 +30,7 @@ namespace PunchingMistake
private string _sjBarCode = string.Empty;
private string _partNo1 = string.Empty;
private string _partNo2 = string.Empty;
+
///
/// 当前设备行数据ID
///
@@ -62,7 +63,6 @@ namespace PunchingMistake
Thread t = new Thread(new ThreadStart(TimeGo));
t.Start();
-
LoadScreen();
}
public void LoadScreen()
diff --git a/PunchingMistake/FrmQualityNew.cs b/PunchingMistake/FrmQualityNew.cs
index cd31a71..fb28f5a 100644
--- a/PunchingMistake/FrmQualityNew.cs
+++ b/PunchingMistake/FrmQualityNew.cs
@@ -253,7 +253,9 @@ namespace PunchingMistake
}
ShowHint("");
-
+
+
+
SaveRst("返修合格", _scanAssembleRow);
}
@@ -264,6 +266,25 @@ namespace PunchingMistake
Clear();
}
}
+
+ private void VerifyLastScan(string type)
+ {
+ DataTable dt = Function2.GetLastQualityResult(_scanAssembleRow["barCode"].ToString());
+ if (dt.Rows.Count == 0) return;
+ if(type == "返修合格")
+ {
+ if(dt.Rows[0]["inspectResult"].ToString() != "返修")
+ {
+ throw new Exception("前置操作不是[返修],无法判定返修合格");
+ }
+ }
+ else
+ {
+ throw new Exception("已判定为[" + dt.Rows[0]["inspectResult"].ToString() + "],无法重新判定.");
+ }
+
+
+ }
///
/// 报废按钮
///
@@ -311,7 +332,8 @@ namespace PunchingMistake
{
userName = Program.UserName;
}
- string bcode = txtBarCode.Text.Trim();
+ string bcode = txtBarCode.Text.Trim();
+ VerifyLastScan(state);
//保存
string id = SaveInspect(state, _scanAssembleRow, userName);
if (!string.IsNullOrEmpty(id))
@@ -427,21 +449,32 @@ namespace PunchingMistake
model1.AddMan = userName;
- Function2.InsertInspect3(model1, scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ID"].ToString(), scanPaintRow["PlanID"].ToString());
+ Function2.InsertInspect3(model1, scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ID"].ToString(), scanPaintRow["PlanID"].ToString());
}
if(inspectResult == "报废")
{
//更新计划的报废数量
Function2.AddCompleteCount(scanPaintRow["PlanID"].ToString(), "报废");
Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "0");
+ Function2.InsertPunchQuality("0", scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ZcPartNo"].ToString(), scanPaintRow["barcode"].ToString(), Program.UserName);
}
if (inspectResult == "返修")
{
Function2.AddCompleteCount(scanPaintRow["PlanID"].ToString(), "返修");
- Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "1");
+ Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "2");
}
+
//更新tb_Punch_Code_Record数据的状态
+ if (inspectResult == "返修合格")
+ {
+ Function2.UpdateRecordFlag(scanPaintRow["ID"].ToString().ToString(), "1");
+ Function2.InsertPunchQuality("1", scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ZcPartNo"].ToString(), scanPaintRow["barcode"].ToString(), Program.UserName);
+ }
+ if (inspectResult == "合格")
+ {
+ Function2.InsertPunchQuality("1", scanPaintRow["ZcBarCode"].ToString(), scanPaintRow["ZcPartNo"].ToString(), scanPaintRow["barcode"].ToString(), Program.UserName);
+ }
return "";
}
diff --git a/PunchingMistake/FrmQualityNew1.Designer.cs b/PunchingMistake/FrmQualityNew1.Designer.cs
deleted file mode 100644
index 116fecd..0000000
--- a/PunchingMistake/FrmQualityNew1.Designer.cs
+++ /dev/null
@@ -1,656 +0,0 @@
-namespace PunchingMistake
-{
- partial class FrmQualityNew1
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- try
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
- catch
- {
-
- }
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- 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;
- }
-}
\ No newline at end of file
diff --git a/PunchingMistake/FrmQualityNew1.cs b/PunchingMistake/FrmQualityNew1.cs
deleted file mode 100644
index d9a3006..0000000
--- a/PunchingMistake/FrmQualityNew1.cs
+++ /dev/null
@@ -1,1536 +0,0 @@
-
-using PaintingPC.Model;
-using PaintingPC.WebReference;
-using System;
-using System.Linq;
-using System.Collections.Generic;
-using System.Configuration;
-using System.Data;
-using System.Drawing;
-using System.IO;
-using System.Net.NetworkInformation;
-using System.Reflection;
-using System.Threading;
-using System.Windows.Forms;
-using MESClassLibrary.BLL.BasicInfo;
-using static System.Windows.Forms.AxHost;
-using PaintingPC;
-
-namespace PunchingMistake
-{
- public partial class FrmQualityNew1 : Form
- {
- int count = 0; //缺陷图选择个数
- public static string ColorName = ""; //修改颜色
- public static string paintId = "";
-
- private static string position = "", reason = "";
-
- private string _carType = string.Empty;
- private Dictionary _lastJustDict = new Dictionary();
- private string _foreighColor = string.Empty;
- private string _lineCode = string.Empty;
- private List _stations = new List();
-
- private StationBLL _stationBLL = new StationBLL();
- ///
- /// 从tb_ForeignColorMap表得到的零件号
- ///
- private string _foreignPartCode = string.Empty;
- private bool _isSingleStation = false;
- private string _isTest = "false";
- private string _stationNo = "";
- private string IsHigh = "1";
- public FrmQualityNew1()
- {
- InitializeComponent();
- //WindowState = FormWindowState.Normal;
- this.Size = new Size(1280, 1020);
-
-
-
- }
-
-
-
-
- private void FrmSecondCheck_Load(object sender, EventArgs e)
- {
- try
- {
- Control.CheckForIllegalCrossThreadCalls = false;
- InitPage();
- }
- catch (Exception ex)
- {
- MessageBox.Show("网络故障,请联系网络管理员");
- LogHelper.WriteLog(ex.ToString(), MethodBase.GetCurrentMethod().Name);
- }
- }
-
- public void InitPage()
- {
- try
- {
- string title = ConfigurationManager.AppSettings["Display"].ToString();
- string workClass = Function.GetWorkClass2();
- _stationNo = ConfigurationManager.AppSettings["Station"].ToString();
-
- labTitle.Text = title;
-
- labWorkClass.Text = workClass;
- labStation.Text = _stationNo;
- labelVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
-
- LoadScreen();
-
-
- Thread t = new Thread(new ThreadStart(TimeGo));
- t.Start();
- }
- catch (Exception ex)
- { }
- }
-
-
-
- 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)
- {
- try
- {
- labTime.Text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
- Thread.Sleep(500);
- }
- catch
- {
-
- }
- }
-
- ///
- /// 缺陷图点击
- ///
- ///
- ///
- void lblRoom_Click(object sender, EventArgs e)
- {
- Label a = (Label)sender;
- string aa = a.Text;
- if (a.BackColor == Color.Transparent)
- {
- a.BackColor = Color.FromArgb(150, System.Drawing.Color.Chartreuse);
- position += aa;
- count++;
- }
- else
- {
- a.BackColor = Color.Transparent;
- count--;
- }
- }
-
- ///
- /// 缺陷原因点击
- ///
- ///
- ///
- void dLbRoom_Click(object sender, EventArgs e)
- {
- if (count == 0)
- {
- MessageBox.Show("请选择缺陷区域!");
- return;
- }
- Label a = (Label)sender;
- string aa = a.Text;
- if (a.BackColor == Color.Transparent)
- {
- a.BackColor = Color.Chartreuse;
- reason += a.Text + ";";
- }
- else
- {
- a.BackColor = Color.Transparent;
- reason = reason.Replace(a.Text + ";", "");
- }
- }
-
- private Control[] SetControlGroup()
- {
- //Control[] controls = { btnPass, btnAbt, btnRepair };
- Control[] controls = { };
- return controls;
- }
-
- ///
- /// 清除控件选中
- ///
- ///
- public void ClearControlColor(Control[] controls)
- {
- foreach (Control c in controls)
- {
- c.BackColor = Color.LightGray;
- }
- }
-
- bool SaveBeforeVerify( string currentRst)
- {
- string lastRst = GetLastInspectRst(txtBarCode.Text.Trim());
- if (lastRst.Contains("报废"))
- {
- MessageBox.Show($"条码已判定为报废,不能再判定为{currentRst}.");
- Clear();
- return false;
- }
- return true;
- }
- ///
- /// 合格
- ///
- ///
- ///
- private void btnOk_Click(object sender, EventArgs e)
- {
- try
- {
- if (string.IsNullOrEmpty(txtBarCode.Text.Trim()))
- {
- MessageBox.Show("请先扫描数据,然后操作.");
- return;
- }
- #region 返喷下线数据验证
- if (lableFP.Text.Contains("[返喷]"))
- {
- string barcode = txtBarCode.Text.Trim();
- DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
- if (dtInspect != null && dtInspect.Rows.Count > 0)
- {
- string inspectResult = dtInspect.Rows[0]["inspectResult"].ToString(); //检测结果
- string inspectColorInfo = dtInspect.Rows[0]["remark1"].ToString(); //颜色
- if (inspectResult.Contains("打磨"))
- {
- string createTime = dtInspect.Rows[0]["createTime"].ToString(); //创建时间
- int count = 0;
- string colorInfo = "";
- if (_lineCode == "2")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA", createTime ,ref colorInfo);
- }
- else if (_lineCode == "1")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA_OLD", createTime , ref colorInfo);
-
- }
- else
- {
-
- }
-
- if (count == 0)
- {
- MessageBox.Show("未发现返喷下线数据!,无法进行质量判定");
- return;
- }
- else
- {
- if(inspectColorInfo != colorInfo)
- {
- btnOk.Enabled = false;
- btnRepair.Enabled = false;
- btnNok.Enabled = false;
-
- MessageBox.Show("当前产品返喷颜色与原颜色不符,需报废!");
- return;
- }
-
- }
- }
- }
-
- }
- #endregion
-
- ShowHint("");
- #region 判断产品是否有颜色
- string colorName = string.Empty;
- string partName = string.Empty;
- if (CheckColor(ref colorName, ref partName) == false) return;
-
-
- #endregion
- ClearControlColor(SetControlGroup());
- btnAbt.BackColor = Color.Red;
-
- bool rr = SaveBeforeVerify("合格");
- if (rr == false)
- {
- return;
- }
-
- //if (lastRst.Contains("合格"))
- //{
- // MessageBox.Show("条码已判定为合格,无需重复判定");
- // Clear();
- // return;
- //}
- SaveRst("合格", colorName, partName, 1);
- }
- catch(Exception ex)
- {
- ShowHint("执行合格判定发生异常,异常原因:" + ex.Message);
- MessageBox.Show("执行合格判定发生异常,异常原因:" + ex.Message);
- Clear();
- }
-
- }
- void Clear()
- {
- ClearPage();
- ClearTxtBarcode();
- txtBarCode.TabIndex = 0;
- }
-
- ///
- /// 其它
- ///
- ///
- ///
- private void btnNok_Click(object sender, EventArgs e)
- {
- try
- {
- if (string.IsNullOrEmpty(txtBarCode.Text.Trim()))
- {
- MessageBox.Show("请先扫描数据,然后操作.");
- return;
- }
-
- #region 返喷下线数据验证
- if (lableFP.Text.Contains("[返喷]"))
- {
- string barcode = txtBarCode.Text.Trim();
- DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
- if (dtInspect != null && dtInspect.Rows.Count > 0)
- {
- string inspectResult = dtInspect.Rows[0]["inspectResult"].ToString(); //检测结果
- string inspectColorInfo = dtInspect.Rows[0]["remark1"].ToString(); //颜色
- if (inspectResult.Contains("打磨"))
- {
- string createTime = dtInspect.Rows[0]["createTime"].ToString(); //创建时间
- int count = 0;
- string colorInfo = "";
- if (_lineCode == "2")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA", createTime, ref colorInfo);
- }
- else if (_lineCode == "1")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA_OLD", createTime, ref colorInfo);
-
- }
- else
- {
-
- }
-
- if (count == 0)
- {
- MessageBox.Show("未发现返喷下线数据!,无法进行质量判定");
- return;
- }
- else
- {
- if (inspectColorInfo != colorInfo)
- {
- btnOk.Enabled = false;
- btnRepair.Enabled = false;
- btnNok.Enabled = false;
-
- MessageBox.Show("当前产品返喷颜色与原颜色不符,需报废!");
- return;
- }
-
- }
- }
- }
-
- }
- #endregion
-
- if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行[其它]判定?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
- ShowHint("");
- #region 必须选择缺陷位置与缺陷原因,否则无法保存
- if (CheckDefect() == false) return;
- #endregion
-
- #region 判断产品是否有颜色
- string colorName = string.Empty;
- string partName = string.Empty;
- if (CheckColor(ref colorName, ref partName) == false) return;
- #endregion
-
-
- bool rr = SaveBeforeVerify("其它");
- if (rr == false)
- {
- return;
- }
- SaveRst("其它", colorName, partName, 4);
- }
- catch(Exception ex)
- {
- ShowHint("执行其它判定发生异常,异常原因:" + ex.Message);
- MessageBox.Show("执行其它判定发生异常,异常原因:" + ex.Message);
- Clear();
- }
- }
-
- ///
- /// 返喷按钮
- ///
- ///
- ///
- private void btnRepair_Click(object sender, EventArgs e)
- {
- try
- {
- #region 可回喷次数 =1,不能打磨, =2 可以, 不能有两次质检结果为打磨
- if (string.IsNullOrEmpty(txtBarCode.Text.Trim()))
- {
- MessageBox.Show("请先扫描数据,然后操作.");
- return;
- }
-
- if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行返喷操作?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
- ShowHint("");
- string barcode = Function.UniteBarCodeToOne(txtBarCode.Text.Trim());
- int cs = Function.YiDaMoCiShu(barcode); //记录中已返喷次数
-
- int keHuiPen = Function.keHuiPen(barcode); //基础数据中,可返喷次数
- if (keHuiPen > 1)
- keHuiPen = 1;
-
- if (keHuiPen > 0 && cs < keHuiPen)
- {
- #region 必须选择缺陷位置与缺陷原因,否则无法保存
-
- if (CheckDefect() == false) return;
-
- #endregion
-
- #region 判断产品是否有颜色
- string colorName = string.Empty;
- string partName = string.Empty;
-
- if (CheckColor(ref colorName, ref partName) == false) return;
- #endregion
-
- ClearControlColor(SetControlGroup());
- btnRepair.BackColor = Color.Yellow;
-
- //string lastRst = GetLastInspectRst(txtBarCode.Text.Trim());
- //if (lastRst.Contains("打磨"))
- //{
- // ShowHint("条码已判定为返喷,无需重复判定");
- // MessageBox.Show("条码已判定为返喷,无需重复判定");
- // Clear();
- // return;
- //}
-
-
- bool rr = SaveBeforeVerify("返喷");
- if (rr == false)
- {
- return;
- }
- SaveRst("", colorName, partName, 9);
-
- }
- else
- {
- ShowHint("根据该零件可回喷次数设置,不能判定为返喷或已超过返喷次数!");
- MessageBox.Show("根据该零件可回喷次数设置,不能判定为返喷或已超过返喷次数!");
- Clear();
- return;
- }
-
- #endregion
- }
- catch(Exception ex)
- {
- ShowHint("执行返喷操作发生异常,异常原因:"+ex.Message);
- MessageBox.Show("执行返喷操作发生异常,异常原因:" + ex.Message);
- Clear();
- }
-
- }
-
- ///
- /// 报废按钮
- ///
- ///
- ///
- private void btnAbt_Click(object sender, EventArgs e)
- {
- try
- {
- if (string.IsNullOrEmpty(txtBarCode.Text.Trim()))
- {
- MessageBox.Show("请先扫描数据,然后操作.");
- return;
- }
-
- #region 返喷下线数据验证
- if (lableFP.Text.Contains("[返喷]"))
- {
- string barcode = txtBarCode.Text.Trim();
- DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
- if (dtInspect != null && dtInspect.Rows.Count > 0)
- {
- string inspectResult = dtInspect.Rows[0]["inspectResult"].ToString(); //检测结果
- string inspectColorInfo = dtInspect.Rows[0]["remark1"].ToString(); //颜色
- if (inspectResult.Contains("打磨"))
- {
- string createTime = dtInspect.Rows[0]["createTime"].ToString(); //创建时间
- int count = 0;
- string colorInfo = "";
- if (_lineCode == "2")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA", createTime, ref colorInfo);
- }
- else if (_lineCode == "1")
- {
- count = Function.GetProducColorFromWms(barcode, "TM_BJBMPT_MES_DATA_OLD", createTime, ref colorInfo);
-
- }
- else
- {
-
- }
-
- if (count == 0)
- {
- MessageBox.Show("未发现返喷下线数据!,无法进行质量判定");
- return;
- }
- }
- }
-
- }
- #endregion
-
- // if (MessageBox.Show($"确认对[{txtBarCode.Text}]进行报废操作?", "操作确认", MessageBoxButtons.OKCancel) == DialogResult.Cancel) return;
-
- //UserInput(userName => {
-
- //string userName = Program.UserName;
- // if (string.IsNullOrEmpty(userName))
- // {
- // MessageBox.Show("报废必须录入用户名.");
- // return;
- // }
- // else
- // {
- ShowHint("");
- #region 必须选择缺陷位置与缺陷原因,否则无法保存
- if (CheckDefect() == false) return;
- #endregion
-
- #region 判断产品是否有颜色
- string colorName = string.Empty;
- string partName = string.Empty;
- if (CheckColor(ref colorName, ref partName) == false) return;
- #endregion
-
- //string lastRst = GetLastInspectRst(txtBarCode.Text.Trim());
- //if (lastRst.Contains("合格"))
- //{
- // MessageBox.Show("条码已判定为合格,无法重新判定为报废");
- // Clear();
- // return;
- //}
- //if (lastRst.Contains("报废"))
- //{
- // MessageBox.Show("条码已判定为报废,无需重复报废");
- // Clear();
- // return;
- //}
-
- ClearControlColor(SetControlGroup());
- btnAbt.BackColor = Color.Red;
-
- bool rr = SaveBeforeVerify("报废");
- if (rr == false)
- {
- return;
- }
-
- SaveRst("报废", colorName, partName, 2);
-
- // }
- // });
- }
-
- catch(Exception ex)
- {
- ShowHint("执行报废操作发生异常,异常原因:" + ex.Message);
- MessageBox.Show("执行报废操作发生异常,异常原因:" + ex.Message);
- Clear();
- }
-
- }
- ///
- ///
- ///
- ///
- ///
- ///
- /// 0-不合格;1-合格;9-返喷 8-其他
- void SaveRst(string state, string colorName, string partName,int isOK,string userName="")
- {
- if (string.IsNullOrEmpty(userName))
- {
- userName = Program.UserName;
- }
- if (string.IsNullOrEmpty(userName))
- {
-
- }
-
- if(reason.Contains("点修补") && state!="其它")
- {
- MessageBox.Show("选择[点修补],只能判定为[其它]状态,不能判定为"+ state);
- return;
- }
- string bcode = txtBarCode.Text.Trim();
-
- bool ispass = ScanCodeValidVerify(bcode);
- if (ispass == false)
- {
- txtBarCode.SelectAll();
- return;
- }
-
-
-
- //保存
- string id = SaveInspect(state, colorName, partName, userName);
-
- try
- {
- if (!string.IsNullOrEmpty(id))
- {
- string interfaceMsg = string.Empty;
- bool rst = SendToWms(txtBarCode.Text.Trim(), isOK,ref interfaceMsg);
- if (rst == false)
- {
- DeleteRepectRst(id, "Web接口调用返回false,原因:" + interfaceMsg, bcode);
- }
- else
- {
- ShowHint(txtBarCode.Text.Trim()+"操作成功",true);
- Clear();
- }
- }
- else
- {
- MessageBox.Show("质检记录保存失败,请重新操作.");
- return;
- }
-
- }
- catch (Exception ex)
- {
- if (ex.Message.Contains("WMS"))
- {
- DeleteRepectRst(id,"Web接口调用抛出异常,异常原因:" + ex.Message , bcode);
- }
- ShowHint(state+"-WMS报工异常,原因:" + ex.Message);
- MessageBox.Show(state+"-WMS报工异常,原因:" + ex.Message);
- LogHelper.WriteLog(state+"-WMS报工调用WMS接口:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
- }
- }
- private void DeleteRepectRst(string id,string msg,string oneBarCode)
- {
- Function.DelInspectRst(id);
- LogHelper.WriteLog($"接口异常,删除塑件[{oneBarCode}]喷涂质检记录,异常内容:" + msg, MethodBase.GetCurrentMethod().Name);
- }
-
- ///
- ///
- ///
- ///
- ///
- string GetLastInspectRst(string barCode)
- {
- DataTable inspectTable = Function.GetInspectInfoByBarCode2(txtBarCode.Text.Trim());
- if (inspectTable.Rows.Count > 0)
- {
- return inspectTable.Rows[0]["inspectResult"].ToString();
- }
- return "";
- }
-
- ///
- /// 发送wms罢工
- ///
- ///
- /// 0:报废 1:合格 9:返喷
- bool SendToWms(string scanBarCode, int isOk,ref string errorMsg)
- {
- try
- {
- if (_isTest == "true")
- return true;
-
- //WMSWebService webService = new WMSWebService();
- //webService.Url = ConfigurationManager.AppSettings["WMSWebServiceURL"].ToString();
- ////webService.Timeout = 1200000;
- //string errorReason = "";
- ////上次异常提交
- //if (_lastJustDict.Count > 0)
- //{
- // bool rst2 = webService.WMSSprayingForCS(Function.UniteBarCodeToOne(_lastJustDict.First().Key), int.Parse(_lastJustDict.First().Value), out errorReason);
- //}
-
-
- //bool rst = webService.WMSSprayingForCS(Function.UniteBarCodeToOne(scanBarCode), isOk, out errorReason);
- //if (rst == false)
- //{
-
- // MessageBox.Show("调用远程接口失败");
- // ShowHint("调用远程接口失败: " + errorReason);
-
- // _lastJustDict.Clear();
- // _lastJustDict.Add(scanBarCode, isOk.ToString());
-
- // return false;
- //}
- //_lastJustDict.Clear();
- return true;
- }
- catch(Exception ex)
- {
- throw new Exception("WMS接口调用异常,异常原因:" + ex.Message);
- }
-
- }
- ///
- /// 判断产品是否有颜色
- ///
- ///
- bool CheckColor(ref string colorName,ref string partName)
- {
- string[] ss = null;
- if (string.IsNullOrEmpty(labProductInfo.Text))
- {
- MessageBox.Show("颜色信息有误,请重新扫描");
- return false;
- }
- if (labProductInfo.Text.Contains(","))
- {
- ss = labProductInfo.Text.Split(',');
- }
- else
- {
- ss = labProductInfo.Text.Split(',');
- }
- if (ss.Length >= 1)
- {
- if (string.IsNullOrWhiteSpace(ss[0]))
- {
- MessageBox.Show("无颜色信息,请重新扫描");
- return false;
- }
- }
- else
- {
- MessageBox.Show("颜色信息有误1,请重新扫描");
- return false;
- }
- colorName = ss[0];
- if (ss.Length > 1)
- {
- if (!string.IsNullOrEmpty(ss[1]))
- {
- partName = ss[1];
- }
- }
- return true;
- }
- ///
- /// 必须选择缺陷位置与缺陷原因,否则无法保存
- ///
- ///
- bool CheckDefect()
- {
- string damnPositionTemp = "";
- string reasonTemp = "";
- //缺陷位置
- foreach (Control c in pictureBox2.Controls)
- {
- Label lab = c as Label;
- if (lab.BackColor != Color.Transparent)
- {
- damnPositionTemp += lab.Text + ";";
- position = damnPositionTemp;
- }
- }
- //缺陷原因
- foreach (Control c in panel2.Controls)
- {
- Label lab = c as Label;
- if (lab.BackColor != Color.Transparent)
- {
- reasonTemp += lab.Text + ";";
- reason = reasonTemp;
- }
- }
-
- if (string.IsNullOrWhiteSpace(damnPositionTemp) || string.IsNullOrWhiteSpace(reasonTemp))
- {
- MessageBox.Show("必须选择缺陷位置与缺陷原因,否则无法保存!");
- return false;
- }
- return true;
- }
- ///
- /// 保存质检记录 tb_InspectResult
- ///
- ///
- ///
- ///
- /// 返回插入记录的ID
- public string SaveInspect(string inspectResult,string colorName, string partName,string userName)
- {
- try
- {
-
- return "";
- }
- catch (Exception ex)
- {
- ShowHint("质检提交异常,原因:" + ex.Message);
- LogHelper.WriteLog("质检提交:" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
- MessageBox.Show("质检提交异常,原因:" + ex.Message);
- return null;
- }
- }
- void ShowHint(string txt,bool isOk =false)
- {
- lbForeig.ForeColor = Color.Red;
- lbForeig.Text = txt;
- if(isOk == true)
- {
- lbForeig.ForeColor = Color.Green;
- }
- }
- public void ClearInspect()
- {
- //缺陷位置
- foreach (Control c in pictureBox2.Controls)
- {
- Label lab = c as Label;
- lab.BackColor = Color.Transparent;
- }
- //缺陷原因
- foreach (Control c in panel2.Controls)
- {
- Label lab = c as Label;
- lab.BackColor = Color.Transparent;
- }
- }
-
- ///
- /// 扫码-根据条码查询信息(产品信息、加载图片及缺陷原因、三次检验信息)
- ///
- ///
- ///
- private void txtBarCode_KeyDown(object sender, KeyEventArgs e)
- {
- if (e.KeyCode == Keys.Enter)
- {
- try
- {
- btnOk.Enabled = true;
- btnRepair.Enabled = true;
- btnNok.Enabled = true;
-
- lbForeig.Text = "";
- ClearPage();
- if (string.IsNullOrEmpty(lbPlanCode.Text))
- {
- throw new Exception("当前没有生产计划.");
- }
- ScanBarCode();
- }
- catch (Exception ex)
- {
- MessageBox.Show("请查看网络是否与服务器连通,无法连通请联系网络管理员。"+ ex);
- LogHelper.WriteLog(ex.ToString(), MethodBase.GetCurrentMethod().Name);
- }
- }
- }
-
- private void ScanBarCode()
- {
- try
- {
- ButtonEnable(SetControlGroup());
- //ClearPage();
-
- string barcode = txtBarCode.Text.Trim();
- if (barcode.Contains("."))
- {
- barcode = Function.TransToBarCodeOne(barcode);
- }
-
- #region 判断条码有效性
-
- if (! Function.BarCodeValid(barcode))
- {
- MessageBox.Show("扫描的条码号:"+barcode+"无效,请重新扫描!");
- txtBarCode.Text = "";
- return;
- }
- //bool ispass = ScanCodeValidVerify(barcode);
- //if (ispass == false)
- //{
- // txtBarCode.SelectAll();
- // return;
- //}
-
- DataTable stockInTable = Function2.SearchStockIn(barcode);
- if(stockInTable.Rows.Count == 0)
- {
- ShowHint("扫描半成品码没有喷涂完工记录,无法使用.",false);
- return;
- }
-
- DataTable punchTable = Function2.SearchPunchCodeRecord(barcode);
- if(punchTable.Rows.Count > 0)
- {
- if(punchTable.Rows[0]["Flag"].ToString() == "0" || punchTable.Rows[0]["Flag"].ToString() == "1")
- {
- ShowHint("扫描半成品码已存在装配记录,无法使用.", false);
- return;
- }
- }
- DataTable productTable = Function2.GetProductInfo(barcode.Substring(0, 10));
- if(productTable.Rows.Count == 0)
- {
- ShowHint($"扫描半成品码的存货代码[{barcode.Substring(0, 10)}]在零件表找不对对应零件号,请检查系统维护.", false);
- return;
- }
- string asselblePartCode = Function2.GetAssemblePartCode(productTable.Rows[0]["PartNo"].ToString(), _stationNo);
-
- if(lbProductCode.Text?.ToLower() != asselblePartCode?.ToLower())
- {
- ShowHint($"扫描半成品码在BOM中对应的总成零件号[{asselblePartCode}]与当前计划的零件号[{lbProductCode.Text}]不匹配.", false);
- return;
- }
-
- DataTable bomTable = Function2.GetBomTable(asselblePartCode, _stationNo);
- List list = bomTable.AsEnumerable().Where(p => p.Field("IsChecked") == 1).ToList();
-
-
- #endregion
-
-
-
-
- #region 如果是补打的条码,查询产品信息
-
- //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)
- // {
- // labProductInfo.Text = Function.GetReprintInfo2(barcode);
- // if (string.IsNullOrWhiteSpace(labProductInfo.Text.Trim()))
- // {
- // ButtonDisable(SetControlGroup());
- // labProductInfo.Text = "没有查询到补打条码信息";
- // return;
- // }
- // }
-
- //}
-
- #endregion
-
- //根据条码查询,加载图片及原因
- int row = 0, col = 0;
- string picture = "";
-
- #region 缺陷原因
-
- try
- {
- int drow = 0, dcol = 5; //行,列
-
- DataTable dt3 = Function.SearchDefectInfo(ConfigurationManager.AppSettings["Station"].Trim());
- if (dt3 != null && dt3.Rows.Count > 0)
- {
- drow = Convert.ToInt32(Math.Ceiling((double)dt3.Rows.Count / dcol));
- Label[] dLb = new Label[7];
- string[] dstr = new string[dt3.Rows.Count];
-
- for (int i = 0; i < dt3.Rows.Count; i++)
- {
- dstr[i] = dt3.Rows[i]["DefectName"].ToString();
- }
-
- for (int i = 0; i < dcol; i++) //列
- {
- for (int j = 0; j < drow; j++) //行
- {
- dLb[i] = new Label();
- if ((i + dcol * j) < dstr.Length)
- {
-
- dLb[i].Text = dstr[i + dcol * j].ToString();
- dLb[i].Font = new Font(dLb[i].Font.FontFamily, 24, FontStyle.Bold);
- dLb[i].Size = new Size(150, 50);
- dLb[i].Location = new Point(20 + i * (dLb[i].Size.Width + 25), 5 + j * (dLb[i].Size.Height + 20));
- dLb[i].BorderStyle = BorderStyle.FixedSingle;
- dLb[i].BackColor = Color.Transparent;
- dLb[i].TextAlign = ContentAlignment.MiddleCenter;
-
- if (dLb[i].Text.Contains("点修补"))
- {
- dLb[i].Font = new Font(dLb[i].Font.FontFamily, 36, FontStyle.Bold);
- dLb[i].Size = new Size(170, 60);
- dLb[i].ForeColor = Color.Red;
- //dLb[i].BackColor = Color.Red;
- }
- panel2.Controls.Add(dLb[i]);
- dLb[i].Click += new EventHandler(dLbRoom_Click);
- }
- }
- }
- }
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog("缺陷项-"+ex.ToString(), MethodBase.GetCurrentMethod().Name);
- throw ex;
- }
-
- #endregion
-
- #region 加载图片
-
- try
- {
- DataTable dt2 = Function.SearchInfoByBarCode(barcode);
-
- if (dt2 != null && dt2.Rows.Count > 0)
- {
- row = Convert.ToInt32(dt2.Rows[0]["Rows"].ToString());
- col = Convert.ToInt32(dt2.Rows[0]["Cols"].ToString());
- picture = dt2.Rows[0]["PicturePath"].ToString();
- }
- dt2.Dispose();
-
- if (!string.IsNullOrEmpty(picture))
- {
- if (!File.Exists(System.IO.Directory.GetCurrentDirectory() + @"\" + picture))
- {
-
- string strImageURL = Function.GetImgPath() + picture;
-
- if(_isTest != "true")
- {
- System.Net.WebClient webClient = new System.Net.WebClient();
- webClient.DownloadFile(strImageURL, Directory.GetCurrentDirectory() + @"\" + picture);
- }
-
- }
-
-
- FileStream fs = new FileStream(Directory.GetCurrentDirectory() + "\\" + picture, FileMode.Open,
- FileAccess.Read);//获取图片文件流
- Image img = Image.FromStream(fs); // 文件流转换成Image格式
- pictureBox2.Image = img; //给 图片框设置要显示的图片
- fs.Close(); // 关闭流,释放图片资源
- }
- }
- catch (Exception ex)
- {
- LogHelper.WriteLog("图片项-" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
- }
- #endregion
-
- #region 缺陷图划分区域
-
- Label[] lb = new Label[5];
- string[] str = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z" };
-
- for (int i = 0; i < col; i++)
- {
- for (int j = 0; j < row; j++)
- {
- lb[i] = new Label();
- lb[i].Text = str[i + col * j].ToString();
- lb[i].Font = new Font(lb[i].Font.FontFamily, 32, FontStyle.Bold);
-
- lb[i].Size = new Size(pictureBox2.Width / col, pictureBox2.Height / row);
- lb[i].Location = new Point(0 + i * lb[i].Size.Width, 0 + j * lb[i].Size.Height);
- lb[i].BorderStyle = BorderStyle.FixedSingle;
- lb[i].BackColor = Color.Transparent;
- lb[i].TextAlign = ContentAlignment.MiddleCenter;
- pictureBox2.Controls.Add(lb[i]);
-
- lb[i].Click += new EventHandler(lblRoom_Click);
- }
- }
-
- #endregion
-
- //不是补打的条码,根据条码查询产品信息、检验信息,选中缺陷位置及原因
- DataTable dtInspect = Function.GetInspectInfoByBarCode2(barcode);
- if (dtInspect != null && dtInspect.Rows.Count > 0)
- {
- //List list = dtInspect.AsEnumerable().Where(p => p.Field("inspectResult").Contains("打磨")).ToList();
- //string state = string.Empty;
- //if (list.Count > 0)
- //{
- // state = "返喷";
- //}
- //List list2 = dtInspect.AsEnumerable().Where(p => p.Field("inspectResult").Contains("其它")).ToList();
- //if (list2.Count > 0)
- //{
- // if(list2.Where(p=> p.Field("inspectResult")=="其它WMS").Count() > 0)
- // {
- // state = state + ",其它WMS";
- // }
- // if (list2.Where(p => p.Field("inspectResult") == "其它").Count() > 0)
- // {
- // state = state + ",其它";
- // }
-
- //}
-
- //if (!string.IsNullOrEmpty(state))
- //{
- // lableFP.Text = "存在[" + state + "]状态";
- //}
-
- //_carType = dtInspect.Rows[0]["CarType"].ToString().Trim();
- //labProductInfo.Text = dtInspect.Rows[0]["productInfo"].ToString().Trim(); //产品信息
- ////string position1 = dtInspect.Rows[0]["damnPosition"].ToString(); //缺陷位置
- ////string reason1 = dtInspect.Rows[0]["reason"].ToString(); //原因
- //position= dtInspect.Rows[0]["damnPosition"].ToString(); //缺陷位置
- //reason= dtInspect.Rows[0]["reason"].ToString(); //原因
-
-
-
- //paintId = dtInspect.Rows[0]["remark3"].ToString(); //原因
-
- //string stationNo = dtInspect.Rows[0]["stationNo"].ToString(); //质检工位
- //if(!_stations.Contains(stationNo))
- //{
-
- // //ShowHint(em, false);
- // txtBarCode.Text = "";
- // txtBarCode.TabIndex = 0;
- // txtBarCode.Select();
- // return;
- //}
-
- //#region 选中缺陷位置及原因
-
- //foreach (Control c in pictureBox2.Controls)
- //{
- // Label lab = c as Label;
- // if (position.Contains(lab.Text))
- // {
- // lab.BackColor = Color.FromArgb(150, System.Drawing.Color.Chartreuse);
- // count++;
- // }
- //}
- //foreach (Control c in panel2.Controls)
- //{
- // Label lab = c as Label;
- // if (reason.Contains(lab.Text))
- // {
- // lab.BackColor = Color.Chartreuse;
- // reason += lab.Text + ";";
- // }
- //}
-
- //#endregion
-
- #region 根据一检结果显示一检时的位置--暂时不要
-
- labProPosition.Text = Function.GetFirstInsPosition2(dtInspect);
-
- #endregion
- }
- else
- {
-
- #region 没有一检结果,查询老外数据库,取产品信息
- if ((_isSingleStation==true ))
- {
- string paintError = string.Empty;
- //喷涂线边质检,没有质检结果,查询老外数据库,取产品信息
- string foreignVal = string.Empty;
- if(_lineCode == "2")
- {
- foreignVal = Function.GetProductInfoFrWms(barcode, "TM_BJBMPT_MES_DATA", ref paintError);
- }
- else if (_lineCode == "1")
- {
- foreignVal = Function.GetProductInfoFrWms(barcode, "TM_BJBMPT_MES_DATA_OLD", ref paintError);
-
- }
- else
- {
- foreignVal = Function.GetProductInfo2(barcode, ref paintError);
- }
- if (!string.IsNullOrEmpty(paintError))
- {
- lbForeig.Text = paintError;
- }
- if (string.IsNullOrEmpty(foreignVal))
- {
- return;
- }
- string[] info = foreignVal.Split(',');
- if (!string.IsNullOrEmpty(paintError))
- {
- ShowHint(paintError);
- }
- _foreighColor = info[0];
- labProductInfo.Text = info[0] + "," + info[1];
- paintId = info[2];
- labProPosition.Tag = paintId;
- labProductInfo.Tag = Function.GetSide(barcode, paintId);
- labProPosition.Text = labProductInfo.Tag.ToString().Replace(';', ' ');
- if (info.Length == 4)
- {
- _foreignPartCode = info[3];
- }
- }
- else
- {
- //库房返喷,没有质检结果,不能查老外库,就是条码不正确
- MessageBox.Show("没有喷涂线边质检记录,无法返喷操作!");
- txtBarCode.Text = "";
- txtBarCode.TabIndex = 0;
- txtBarCode.Select();
- return ;
- }
-
-
- #endregion
- }
-
-
- txtBarCode.SelectAll();
- }
- catch (Exception ex)
- {
- MessageBox.Show("请查看网络是否与服务器连通,无法连通请联系网络管理员。" + ex.ToString());
- LogHelper.WriteLog("整体项-" + ex.ToString(), MethodBase.GetCurrentMethod().Name);
- }
- }
- ///
- /// 一检 二检 点修补扫码是否允许验证
- ///
- ///
- ///
- private bool ScanCodeValidVerify(string barcode)
- {
- //string position = _stationType;
- // switch (position)
- // {
- // case "下线一检": return First(barcode);
- // case "下线二检": return Second(barcode);;
- // case "下线点修补": return Third(barcode);
- // default:return true;
-
- // }
- return true;
-
- }
-
- private bool First(string barcode)
- {
- if(_isSingleStation == true)
- {
- ShowHint("当前系统配置为[单工位生产],无法在此工位扫码,请去终检工位进行操作.", false);
- return false;
- }
-
- DataTable dt = Function.GetLastResult(barcode);
- if (dt.Rows.Count > 0)
- {
- ShowHint("扫描条码["+ barcode + "]已存在质检记录,无法在[下线一检]工位进行重新扫码." , false);
- return false;
- }
- return true;
- }
-
- private bool Second(string barcode)
- {
- DataTable dt = Function.GetLastResult(barcode);
- if (_isSingleStation == false)
- {
- if (dt.Rows.Count == 0)
- {
- ShowHint("扫描条码[" + barcode + "]不存在[下线一检]记录,无法在[下线二检]工位进行扫码.", false);
- return false;
- }
-
- DataRow dr = dt.Rows[0];
- if (dr["reason"].ToString().Contains("点修补") && dr["inspectResult"].ToString().Contains("其它"))
- {
- ShowHint("扫描条码[" + barcode + "]上次质量判定为[点修补],无法进行二检扫码.", false);
- return false;
- }
- if (dr["inspectResult"].ToString().Contains("报废"))
- {
- ShowHint("上次质量判定为[报废],无法进行二检扫码.", false);
- return false;
- }
- }
-
-
- return true;
- }
-
- ///
- /// 点修补扫码校验
- ///
- ///
- ///
- private bool Third(string barcode)
- {
- string errorMsg = string.Empty;
- bool isExsit = Function. GetPointRepairFrWms(barcode, ref errorMsg);
- if(isExsit == false)
- {
- if (!string.IsNullOrEmpty(errorMsg))
- {
- ShowHint("在wms系统的查询返修入库记录时发生错误,错误原因:"+errorMsg, false);
- return false;
-
- }
- else{
- ShowHint("没有在wms系统的返修入库记录,无法进行点修补.", false);
- return false;
- }
-
- }
- DataTable dt = Function.GetLastResult(barcode);
- if (dt.Rows.Count > 0)
- {
- if(dt.Rows[0]["reason"].ToString().Contains("点修补") && dt.Rows[0]["inspectResult"].ToString().Contains("其它"))
- {
- return true;
- }
- else
- {
- ShowHint("必须上次质量判定记录为点修补,类型为其它,才能在当前[点修补]工位扫码.", false);
- return false;
- }
- }
- else
- {
- ShowHint("没有初始质量判定记录,无法在[点修补]工位扫码.", false);
- return false;
- }
-
-
-
- }
-
- ///
- /// 设置按钮不可用
- ///
- ///
- private void ButtonDisable(Control[] controls)
- {
- foreach (Control c in controls)
- {
- Button btn = c as Button;
- btn.Enabled = false;
- }
- }
-
- ///
- /// 设置按钮可用
- ///
- ///
- private void ButtonEnable(Control[] controls)
- {
- foreach (Control c in controls)
- {
- Button btn = c as Button;
- btn.Enabled = true;
- }
- }
-
- private void labWorkClass_Click(object sender, EventArgs e)
- {
- Function.ChangeWorkClass(labWorkClass);
- }
-
- ///
- /// 点击退出
- ///
- ///
- ///
- private void labTime_Click(object sender, EventArgs e)
- {
- Environment.Exit(0);
- }
-
- ///
- /// 清空页面
- ///
- private void ClearPage()
- {
- labProductInfo.Tag = null;
- labProductInfo.Text = "";
- //btnAbt.BackColor = Color.LightGray;
- //btnRepair.BackColor = Color.LightGray;
-
- //ClearRadioButton();
- ClearInspect();
- ClearControlColor(SetControlGroup());
- pictureBox2.Controls.Clear();
- panel2.Controls.Clear();
- pictureBox2.Image = null;
- txtBarCode.TabIndex = 0;
- txtBarCode.Select();
- position = "";
- reason = "";
- lableFP.Text = "";
- _foreighColor = "";
- _foreignPartCode = "";
- _carType = string.Empty;
- }
-
- public void ClearRadioButton()
- {
- groupBox1.Controls.Clear();
- }
-
- public void ClearTxtBarcode()
- {
- txtBarCode.Text = "";
- labProPosition.Text = "";
- }
-
- public void LoadScreen()
- {
- DataTable dt = Function2.GetProScreen(_stationNo);
- if (dt != null && dt.Rows.Count > 0)
- {
- SetPage(dt);
- }
-
- }
- private void SetPage(DataTable dt)
- {
- IsHigh = "1";
- lbPlanCode.Text = "";
- lbProductCode.Text = "";
- lbProductName.Text = "";
-
-
- if (dt != null && dt.Rows.Count > 0)
- {
- lbPlanCode.Text = dt.Rows[0]["OrderNo"].ToString();
- lbPlanCode.Tag = dt.Rows[0]["ID"].ToString();
- lbProductName.Text = dt.Rows[0]["ProductName"].ToString();
- lbProductCode.Text = dt.Rows[0]["PartNo"].ToString();
-
- SetProduceCount(dt.Rows[0]);
- }
-
- }
- ///
- /// 设置生产数量
- ///
- ///
- void SetProduceCount(DataRow planRow)
- {
- int planQty = 0;
- int okQty = 0;
- int badQty = 0;
- int repairQty = 0;
-
- int.TryParse(planRow["OrderCount"].ToString(), out planQty);
- int.TryParse(planRow["OKCount"].ToString(), out okQty);
- int.TryParse(planRow["BadCount"].ToString(), out badQty);
- int.TryParse(planRow["RepairCount"].ToString(), out repairQty);
- lbPlanQty.Text = planQty.ToString();
- lbPlanCompleteQty.Text = (okQty+ badQty).ToString();
- lbOkCount.Text = okQty.ToString();
- lbRepairCount.Text = repairQty.ToString();
- lbBadCount.Text = badQty.ToString();
- }
-
- private void btnPlanUp_Click(object sender, EventArgs e)
- {
- LoadPlanScreen(lbPlanCode.Tag?.ToString(), "上一计划");
- txtBarCode.Select();
- txtBarCode.Focus();
- }
-
- private void btnPlanDown_Click(object sender, EventArgs e)
- {
- LoadPlanScreen(lbPlanCode.Tag?.ToString(), "下一计划");
- 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)
- {
- SetPage(dt);
- }
- else
- {
- if (plan == "下一计划")
- {
- MessageBox.Show("无下一计划");
- txtBarCode.SelectAll();
- txtBarCode.Focus();
- }
- else
- {
- MessageBox.Show("无上一计划");
- txtBarCode.SelectAll();
- txtBarCode.Focus();
- }
- }
- txtBarCode.SelectAll();
- txtBarCode.Focus();
- }
-
- private void txtBarCode_DoubleClick(object sender, EventArgs e)
- {
- txtBarCode.SelectAll();
- }
-
- }
-}
diff --git a/PunchingMistake/FrmQualityNew1.resx b/PunchingMistake/FrmQualityNew1.resx
deleted file mode 100644
index 3d1eb78..0000000
--- a/PunchingMistake/FrmQualityNew1.resx
+++ /dev/null
@@ -1,475 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
-
-
- iVBORw0KGgoAAAANSUhEUgAAAH0AAABMCAYAAABAprgtAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1
- MAAA6mAAADqYAAAXb5JfxUYAAAAJcEhZcwAADsMAAA7DAcdvqGQAAFFXSURBVHhezb11lFXXuvZJj/63
- v/7uPfdIFEhCiOuJyyHueuLuAiFoCE6QhOASIAQJ7u7uWljhReEURbls33v5r8czdy1S4ZDcc/q73feb
- NebYu/Zaay555vvO11cd/pPmuq7pQ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s2axcOFC5s6da8bQWOvXr2fVqlXmmIMHD5p9NVF0rM63adMms5/+1/i6vg0bNpj/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++yFVX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
- 8NiQWkPZRi0cRwBpPz300MkSWh+1Xd91Lk2g8NjwvBpXn9pHx+sYnSPkAvo/vM5QttJ3fWps/RZSscDV
- GOG++qwt04TPStcYGpu0vU7tB6UW7hweXFs4+1d6eOL/r/q55zu3n7t/2HVv4Wf4kM79rL1PbYH23OP1
- qW3h97CHRppwzNrXHO5/7nnC38NjQ6BDMMNrCP+vDbTGCCfOufceHlf7fP8P96ttgrNI9esAAAAASUVO
- RK5CYII=
-
-
-
\ No newline at end of file
diff --git a/PunchingMistake/Function2.cs b/PunchingMistake/Function2.cs
index 9dc42e3..0313b78 100644
--- a/PunchingMistake/Function2.cs
+++ b/PunchingMistake/Function2.cs
@@ -1085,6 +1085,103 @@ namespace PunchingMistake
return "";
}
}
+ public static DataTable GetLastQualityResult(string barcode)
+ {
+
+ DataTable res = null;
+ try
+ {
+ string sql = string.Empty;
+ if (barcode.Contains("."))
+ {
+ sql = $"select top 1 * from tb_Punch_Quality where ZcBarCode ='{barcode}' order by id desc ";
+ }
+ else
+ {
+ sql = $"select top 1 * from tb_Punch_Quality where barcode ='{barcode}' order by id desc ";
+
+ }
+
+ res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
+ return res;
+ }
+ catch (Exception ex)
+ {
+ //LogHelper.WriteErrLogBase(ex.ToString(), MethodBase.GetCurrentMethod().Name);
+ LogHelper.WriteLog($"查询tb_Punch_Quality表错误,barcode ='{barcode}' ,异常信息:" + ex.Message);
+ }
+ return null;
+ }
+ public static string GetCarType(string partNo)
+ {
+
+ DataTable res = null;
+ try
+ {
+ string sql = sql = $"select CarTypeName from v_Car where PartNo='{partNo}' ";
+
+ res = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
+
+ if (res.Rows.Count > 0)
+ {
+ return res.Rows[0]["CarTypeName"].ToString();
+ }
+ return null;
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"查询tb_CarType表错误 ,异常信息:" + ex.Message);
+ }
+ return null;
+ }
+ ///
+ ///
+ ///
+ ///
+ /// (1合格、2报废)
+ ///
+ ///
+ ///
+ ///
+ public static string InsertPunchQuality(string state, string zcBarCode, string ZcPartNo,string barcode, string userName)
+ {
+ int res = 0; string sql = string.Empty;
+ try
+ {
+ string carType = Function2.GetCarType(ZcPartNo);
+ sql = @" INSERT INTO [dbo].[TM_BJBMPT_MYASSEMBE]
+ (
+ [BarCode]
+ ,[LU_Code]
+ ,[IsOk]
+ ,[CreationTime]
+ ,[MESOperName]
+ ,[Models]
+ ,[Remark]
+ )
+ VALUES
+ ('" + zcBarCode + @"'
+ ,'" + ZcPartNo + @"'
+ ,'" + state + @"'
+ ,(select getdate()), '" + @"'
+ ,'" + userName + @"'
+ ,'" + carType + @"'
+ ,'" + barcode + @"'
+ );select @@Identity ";
+ DataTable dt = SqlHelper.GetDataDateTable(SqlHelper.SqlConnString, CommandType.Text, sql, null);
+ if (dt.Rows.Count > 0)
+ {
+ return dt.Rows[0][0].ToString();
+ }
+ return "";
+ }
+ catch (Exception ex)
+ {
+ LogHelper.WriteLog($"插入tb_Punch_Quality表错误,sql ='{sql}' ,异常信息:" + ex.Message);
+ return "";
+ }
+ }
+
public static DataTable SearchDefectInfo(string stationNo)
{
DataTable res = new DataTable();
diff --git a/PunchingMistake/PunchingMistake.csproj b/PunchingMistake/PunchingMistake.csproj
index 12b807b..fff6b59 100644
--- a/PunchingMistake/PunchingMistake.csproj
+++ b/PunchingMistake/PunchingMistake.csproj
@@ -106,12 +106,6 @@
FrmProScreen3.cs
-
- Form
-
-
- FrmQualityNew1.cs
-
Form
@@ -152,9 +146,6 @@
FrmProScreen3.cs
-
- FrmQualityNew1.cs
-
FrmQuality.cs