From 119287ea2b1527a3e3c00464b5fe7032e5917495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AB=E9=94=84=E5=A4=B4?= Date: Tue, 16 Apr 2024 19:31:01 +0800 Subject: [PATCH] dmeo --- ProductionSystem/Untils/MFSerialInfo.cs | 4 +--- ProductionSystem/Untils/Tool/ExvTool.cs | 7 +------ ProductionSystem/Untils/Tool/TmTool.cs | 3 --- ProductionSystem/Untils/Tool/UxTool.cs | 2 +- 4 files changed, 3 insertions(+), 13 deletions(-) diff --git a/ProductionSystem/Untils/MFSerialInfo.cs b/ProductionSystem/Untils/MFSerialInfo.cs index bee3673..c24f57b 100644 --- a/ProductionSystem/Untils/MFSerialInfo.cs +++ b/ProductionSystem/Untils/MFSerialInfo.cs @@ -89,7 +89,7 @@ namespace ProductionSystem.Untils } - public void SendMsg2(string data, int num = 3, int mill = 500) + public void SendMsg2(string data, int num = 3, int mill = 300) { @@ -106,8 +106,6 @@ namespace ProductionSystem.Untils { break; } - - Thread.Sleep(mill); _mfser.SendLinMasterSend(Export); diff --git a/ProductionSystem/Untils/Tool/ExvTool.cs b/ProductionSystem/Untils/Tool/ExvTool.cs index 3b8cdb6..ec91d69 100644 --- a/ProductionSystem/Untils/Tool/ExvTool.cs +++ b/ProductionSystem/Untils/Tool/ExvTool.cs @@ -88,14 +88,9 @@ namespace ProductionSystem.Untils.Tool mfSerialInfo.MsgFunc = null; mfSerialInfo.Exit = true; b = true; - } - - } - - - + }; mfSerialInfo.SendMsg2(sendMes, 200, 300); diff --git a/ProductionSystem/Untils/Tool/TmTool.cs b/ProductionSystem/Untils/Tool/TmTool.cs index c9bc788..62c53f7 100644 --- a/ProductionSystem/Untils/Tool/TmTool.cs +++ b/ProductionSystem/Untils/Tool/TmTool.cs @@ -169,8 +169,6 @@ namespace ProductionSystem.Untils.Tool } SitongTool sitongTool = new SitongTool(stf1.Com, val); - - var b = sitongTool.ToAction(); sitongTool.Dispose(); stopwatch.Stop(); @@ -180,7 +178,6 @@ namespace ProductionSystem.Untils.Tool step.CreateTime = DateTime.Now; step.EquipmentName = eqName; step.Ms = stopwatch.Elapsed.TotalSeconds.ToString(CultureInfo.InvariantCulture); - stepService.AddProductStep(step); return b; diff --git a/ProductionSystem/Untils/Tool/UxTool.cs b/ProductionSystem/Untils/Tool/UxTool.cs index 50c20d6..539d19a 100644 --- a/ProductionSystem/Untils/Tool/UxTool.cs +++ b/ProductionSystem/Untils/Tool/UxTool.cs @@ -145,7 +145,7 @@ namespace ProductionSystem.Untils.Tool mfSerialInfo.SendMessage(sendMes); } - Exit = true; + Dispose(); } }