|
|
|
@ -35,6 +35,13 @@ namespace Rs.MotionPlat.Recipe
|
|
|
|
|
|
|
|
|
|
private void BindPoints()
|
|
|
|
|
{
|
|
|
|
|
string sql = $"select * from normaltray where trayname='{m_trayName}' and recipename='{GlobalVar.CurRecipe}'";
|
|
|
|
|
DataTable dt=db.GetDataTable(sql);
|
|
|
|
|
if(dt!=null && dt.Rows.Count>0)
|
|
|
|
|
{
|
|
|
|
|
trayStock.RowNum = int.Parse(dt.Rows[0]["RowNum"].ToString());
|
|
|
|
|
trayStock.ColumnNum = int.Parse(dt.Rows[0]["ColumnNum"].ToString());
|
|
|
|
|
}
|
|
|
|
|
string querySql = $"select * from TrayPoints where trayname='{m_trayName}' and recipename='{GlobalVar.CurRecipe}' order by slotindex";
|
|
|
|
|
DataTable dtBasePoints = db.GetDataTable(querySql);
|
|
|
|
|
if (ObjectHelper.IsNotNullorEmpty(dtBasePoints))
|
|
|
|
|