From dcf435df4eca7add8a52efdb75297ecfc4e610d7 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 22 Nov 2024 11:35:47 +0800 Subject: [PATCH] =?UTF-8?q?add-=E6=B7=BB=E5=8A=A0RFID=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E4=B8=8D=E5=88=B0=E6=89=8B=E5=8A=A8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Business/ProdCompletionBusiness.cs | 4 +++ SlnMesnac.Config/DebugConfig.cs | 11 ++++++++ SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml | 4 +++ SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml.cs | 28 ++++++++++++++++++- 4 files changed, 46 insertions(+), 1 deletion(-) diff --git a/SlnMesnac.Business/ProdCompletionBusiness.cs b/SlnMesnac.Business/ProdCompletionBusiness.cs index 62497d2..21be577 100644 --- a/SlnMesnac.Business/ProdCompletionBusiness.cs +++ b/SlnMesnac.Business/ProdCompletionBusiness.cs @@ -322,6 +322,9 @@ namespace SlnMesnac.Business if (realPalletTask != null) { epcStr = realPalletTask.PalletCode; + }else if (!string.IsNullOrEmpty(debugConfig.MdjOutRFID)) + { //判断人工是否有输入条码 + epcStr = debugConfig.MdjOutRFID; } else { @@ -394,6 +397,7 @@ namespace SlnMesnac.Business plc.writeStringByAddress(GetPlcAddressByConfigKey("2楼码垛出口RFID条码地址"), epcStr, 12); // plc.writeByteByAddress(GetPlcAddressByConfigKey("2楼小包出口到位信号"), 2); readRfidAmount = 0; + debugConfig.MdjOutRFID = ""; sqlSugarClient.AsTenant().CommitTran(); #endregion } diff --git a/SlnMesnac.Config/DebugConfig.cs b/SlnMesnac.Config/DebugConfig.cs index 7a12ae9..46d3563 100644 --- a/SlnMesnac.Config/DebugConfig.cs +++ b/SlnMesnac.Config/DebugConfig.cs @@ -169,5 +169,16 @@ namespace SlnMesnac.Config set { iniHelper.IniWriteValue("system", "ConfigInfoPassWprd", value); } } + + /// + ///灏忓寘鍑哄彛RFID浜哄伐杈撳叆澶囩敤 + ///璇诲彇涓嶅埌鏃讹紝浜哄伐鍙互鎵嬪姩杈撳叆 + /// + public string MdjOutRFID + { + get { return iniHelper.IniReadValue("system", "MdjOutRFID"); } + set { iniHelper.IniWriteValue("system", "MdjOutRFID", value); } + } + } } diff --git a/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml b/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml index 3b7787e..3585f2b 100644 --- a/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml +++ b/SlnMesnac.WPF/Page/BaseConfigInfoPage.xaml @@ -20,6 +20,10 @@