From eb919fa09a754f9006550a1eb4fa79e43d671aa0 Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Wed, 3 Apr 2024 11:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BD=93=E9=87=8D=E6=96=B0?= =?UTF-8?q?=E7=94=9F=E6=88=90=E7=82=B9=E4=BD=8D=E5=90=8E=EF=BC=8C=E5=86=85?= =?UTF-8?q?=E5=AD=98=E4=B8=AD=E7=9A=84=E7=82=B9=E4=BD=8D=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Commom/TrayPointManager.cs | 1 + Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs | 1 + Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/Rs.SkyLine/Commom/TrayPointManager.cs b/Rs.SkyLine/Commom/TrayPointManager.cs index b776766..68c252d 100644 --- a/Rs.SkyLine/Commom/TrayPointManager.cs +++ b/Rs.SkyLine/Commom/TrayPointManager.cs @@ -22,6 +22,7 @@ namespace Rs.MotionPlat.Commom static ConcurrentDictionary trayPoints = new ConcurrentDictionary(); public static void LoadPoint() { + trayPoints.Clear(); string querySql = "select * from TrayPoints"; DataTable dt = db.GetDataTable(querySql); if (ObjectHelper.IsNotNullorEmpty(dt)) diff --git a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs index 9fe2268..e71452b 100644 --- a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs +++ b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs @@ -108,6 +108,7 @@ namespace Rs.MotionPlat.Recipe } } BindPoints(); + TrayPointManager.LoadPoint(); } } diff --git a/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs b/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs index 9e64ee6..9fa6d52 100644 --- a/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs +++ b/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs @@ -145,6 +145,7 @@ namespace Rs.MotionPlat.Recipe } BindPoints(); + TrayPointManager.LoadPoint(); } private void btnTeach_Click(object sender, EventArgs e)