| | |
| | | } |
| | | } |
| | | } |
| | | public static void ResMesTask() |
| | | { |
| | | ///1. |
| | | |
| | | AutoThread.InvokeMethod(AutoThread.Instance, "ResolveMesTask"); |
| | | //var VERX = Settings.deviceInfos?.FindAll(x => x.deviceName.Contains("æ·ç¬æè")); |
| | | //if () |
| | | ///2 çç¼ååºã 没满çã |
| | | |
| | | |
| | | } |
| | | public static void ResMesTask(Tag tag) |
| | | { |
| | | ///1. |
| | | |
| | | AutoThread.InvokeMethod(AutoThread.Instance, "ResolveMesTask", new object[] { tag }); |
| | | //var VERX = Settings.deviceInfos?.FindAll(x => x.deviceName.Contains("æ·ç¬æè")); |
| | | //if () |
| | | ///2 çç¼ååºã 没满çã |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | #endregion [èªå®ä¹ç±»][20250531152402452][ToWMSMES] |
| | | } |
| | | public class ConsoleInterceptor:TextWriter |
| | | { |
| | | #region [èªå®ä¹ç±»][20250702112833751][ConsoleInterceptor] |
| | | private readonly TextWriter _originalOut; |
| | | |
| | | public ConsoleInterceptor() |
| | | { |
| | | _originalOut = Console.Out; |
| | | } |
| | | |
| | | public override Encoding Encoding => Encoding.UTF8; |
| | | |
| | | public override void WriteLine(string value = "") |
| | | { |
| | | string values = (string)AutoThread.InvokeMethod(AutoThread.Instance, "WriteLine", new object[] { value }); |
| | | //// å¯ä»¥éæ©ç»§ç»è¾åºå°åæ§å¶å° |
| | | if (!string.IsNullOrEmpty(values)) |
| | | _originalOut.WriteLine(values); |
| | | } |
| | | #endregion [èªå®ä¹ç±»][20250702112833751][ConsoleInterceptor] |
| | | } |
| | | } |