From a5b1e40482ece683eb30e0592026286c0f3a3661 Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 21 Dec 2023 17:37:11 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=99=E7=9B=98=E4=BA=A7=E5=93=81=E6=9C=89?= =?UTF-8?q?=E6=97=A0=E6=A3=80=E6=B5=8B=E7=95=8C=E9=9D=A2=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=97=B6=E8=87=AA=E5=8A=A8=E4=BB=8E=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E4=B8=AD=E5=8A=A0=E8=BD=BD=E8=A1=8C=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Recipe/StockTrayHaveOrNot.cs | 7 +++++++ 1 file changed, 7 insertions(+) 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))