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)