diff --git a/Rs.SkyLine/Properties/AssemblyInfo.cs b/Rs.SkyLine/Properties/AssemblyInfo.cs index 88647ac..0e9ebf1 100644 --- a/Rs.SkyLine/Properties/AssemblyInfo.cs +++ b/Rs.SkyLine/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ using System.Runtime.InteropServices; // //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: - [assembly: AssemblyVersion("20.25.15.03")] + [assembly: AssemblyVersion("20.25.15.04")] //[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs index 9bbd5d1..733e0b3 100644 --- a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs +++ b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs @@ -184,6 +184,7 @@ namespace Rs.MotionPlat.Recipe { if(NormalTrayLogic.Update(txt.Name.Replace("txt", ""),pos,GlobalVar.CurRecipe,m_trayName)>0) { + BindPoints(); Msg.ShowInfo("teach point ok!"); } } diff --git a/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs b/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs index ce208f5..4f5144b 100644 --- a/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs +++ b/Rs.SkyLine/Recipe/TurnoverLocationRecipe.cs @@ -64,6 +64,7 @@ namespace Rs.MotionPlat.Recipe private void BindPoints() { + dt = BindTrayInfo(); DataTable dtRunPoints = TrayPointsLogic.GetData(GlobalVar.CurRecipe, trayName); if (ObjectHelper.IsNotNullorEmpty(dtRunPoints)) { @@ -89,7 +90,7 @@ namespace Rs.MotionPlat.Recipe { LanguageHelper.LoadLanguage(this, this.GetType()); dgvSlotOffset.AutoGenerateColumns = false; - dt= NormalTrayLogic.GetData(GlobalVar.CurRecipe,trayName); + dt = BindTrayInfo(); if(ObjectHelper.IsNotNullorEmpty(dt)) { DataRow dr = dt.Rows[0]; @@ -159,14 +160,18 @@ namespace Rs.MotionPlat.Recipe { if(NormalTrayLogic.Update(txt.Name.Replace("txtTurnoverTray", ""),pos,GlobalVar.CurRecipe,trayName)>0) { - string querySql = "select * from NormalTray where trayname='Turnover'"; - dt = db.GetDataTable(querySql); + Msg.ShowInfo("teach point ok!"); } } } } + DataTable BindTrayInfo() + { + return NormalTrayLogic.GetData(GlobalVar.CurRecipe, trayName); + } + private void btnMove_Click(object sender, EventArgs e) { Button btnTeach = (Button)sender;