From a47e45d04ca5beadcf815d852cae52ef56f669e5 Mon Sep 17 00:00:00 2001 From: czw <selecti@yeah.net> Date: 星期三, 23 七月 2025 16:39:33 +0800 Subject: [PATCH] 1 --- 2025年6月12日/AuxAllWCS/Build/Project/代码/界面事件.cs | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" index 1b10889..b14d39f 100644 --- "a/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" +++ "b/2025\345\271\2646\346\234\21012\346\227\245/AuxAllWCS/Build/Project/\344\273\243\347\240\201/\347\225\214\351\235\242\344\272\213\344\273\266.cs" @@ -29,6 +29,7 @@ using GZ.DB.IRepository.OIDATABASE; using GZ.DB.Entity.OIDATABASE; using static GZ.Projects.AuxAllWCS.ToWMSMES.CreateTask; +using GZ.Device.PLC; namespace GZ.Projects.AuxAllWCS { /// <summary> @@ -64,7 +65,14 @@ } View1_Init(sender, e); + var path = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Configs"); + string text = File.ReadAllText(configPath); + PlcConfig plcConfig = JsonConvert.DeserializeObject<PlcConfig>(text); + if (plcConfig != null && FactoryMap.ContainsKey((int)plcConfig.Brand) && FactoryMap[(int)plcConfig.Brand].Contains((int)plcConfig.Comm)) + { + } + Console.Write(path); /// <summary> /// 绋嬪簭鐗囨:鍒濆鍖栭厤缃� /// 鎻忚堪: -- Gitblit v1.9.1