|
|
|
@ -64,6 +64,7 @@ namespace Rs.MotionPlat.Recipe
|
|
|
|
|
|
|
|
|
|
|
|
private void BindPoints()
|
|
|
|
private void BindPoints()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
dt = BindTrayInfo();
|
|
|
|
DataTable dtRunPoints = TrayPointsLogic.GetData(GlobalVar.CurRecipe, trayName);
|
|
|
|
DataTable dtRunPoints = TrayPointsLogic.GetData(GlobalVar.CurRecipe, trayName);
|
|
|
|
if (ObjectHelper.IsNotNullorEmpty(dtRunPoints))
|
|
|
|
if (ObjectHelper.IsNotNullorEmpty(dtRunPoints))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -89,7 +90,7 @@ namespace Rs.MotionPlat.Recipe
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LanguageHelper.LoadLanguage(this, this.GetType());
|
|
|
|
LanguageHelper.LoadLanguage(this, this.GetType());
|
|
|
|
dgvSlotOffset.AutoGenerateColumns = false;
|
|
|
|
dgvSlotOffset.AutoGenerateColumns = false;
|
|
|
|
dt= NormalTrayLogic.GetData(GlobalVar.CurRecipe,trayName);
|
|
|
|
dt = BindTrayInfo();
|
|
|
|
if(ObjectHelper.IsNotNullorEmpty(dt))
|
|
|
|
if(ObjectHelper.IsNotNullorEmpty(dt))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
DataRow dr = dt.Rows[0];
|
|
|
|
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)
|
|
|
|
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!");
|
|
|
|
Msg.ShowInfo("teach point ok!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DataTable BindTrayInfo()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return NormalTrayLogic.GetData(GlobalVar.CurRecipe, trayName);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void btnMove_Click(object sender, EventArgs e)
|
|
|
|
private void btnMove_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Button btnTeach = (Button)sender;
|
|
|
|
Button btnTeach = (Button)sender;
|
|
|
|
|