diff --git a/Rs.SkyLine/Recipe/StockTrayHaveOrNot.cs b/Rs.SkyLine/Recipe/StockTrayHaveOrNot.cs index 5999c04..ce57d16 100644 --- a/Rs.SkyLine/Recipe/StockTrayHaveOrNot.cs +++ b/Rs.SkyLine/Recipe/StockTrayHaveOrNot.cs @@ -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))