From 265b4040f9c7ec2325f0a9ca0fcb625732445c49 Mon Sep 17 00:00:00 2001 From: "ruoxing.wang" <88384874@qq.com> Date: Mon, 4 Aug 2025 11:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=96=B7=E6=B6=82,=E5=85=B6=E5=AE=83=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E5=8F=AF=E5=A4=9A=E6=AC=A1=E7=82=B9=E9=80=89,=20?= =?UTF-8?q?=E7=82=B9=E4=BF=AE=E8=A1=A5=E8=87=AA=E5=8A=A8=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E4=B8=BA=E5=85=B6=E4=BB=96=E7=8A=B6=E6=80=81=E4=B8=94=E5=8F=AA?= =?UTF-8?q?=E8=83=BD=E4=B8=80=E6=AC=A1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PaintingPC/FrmQuality.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/PaintingPC/FrmQuality.cs b/PaintingPC/FrmQuality.cs index ed8db19..7bdf2c8 100644 --- a/PaintingPC/FrmQuality.cs +++ b/PaintingPC/FrmQuality.cs @@ -73,7 +73,10 @@ namespace PaintingPC if(_stations.Contains(_stationNo) == false) { - + MessageBox.Show("产线[" + _lineCodeSys + "]与当前配置的工位[" + _stationNo + "]不匹配,当前查询包含工位有["+string.Join(",", _stations) +"],请先核对配置."); + this.Close(); + return; + //ShowHint("产线[" + _lineCodeSys + "]与当前配置的工位["+ _stationNo + "]不匹配,请先核对配置.", false); } } @@ -165,12 +168,12 @@ namespace PaintingPC { string title = ConfigurationManager.AppSettings["Display"].ToString(); ; string workClass = Function.GetWorkClass2(); - string station = ConfigurationManager.AppSettings["Station"].ToString(); + //string station = ConfigurationManager.AppSettings["Station"].ToString(); labTitle.Text = title; labWorkClass.Text = workClass; - labStation.Text = station; + labStation.Text = _stationNo; labelVersion.Text = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); Program.IP = ConfigurationManager.AppSettings["IP"].ToString(); @@ -1280,7 +1283,7 @@ namespace PaintingPC { int drow = 0, dcol = 5; //行,列 - DataTable dt3 = Function.SearchDefectInfo(ConfigurationManager.AppSettings["Station"].Trim()); + DataTable dt3 = Function.SearchDefectInfo(_stationNo); if (dt3 != null && dt3.Rows.Count > 0) { //if(_stationType != "下线点修补")