From 02f59803e73ced52e29ba361ce7d5c1806f82879 Mon Sep 17 00:00:00 2001 From: lhiven Date: Thu, 21 Dec 2023 17:38:09 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=99=E7=9B=98=E5=AE=9A=E4=BD=8D=E7=95=8C?= =?UTF-8?q?=E9=9D=A2=E4=BF=9D=E5=AD=98=E7=82=B9=E4=BD=8D=E6=97=B6MARK1?= =?UTF-8?q?=E7=9A=84=E4=BD=8D=E7=BD=AE=E4=BB=8E=E7=95=8C=E9=9D=A2=E4=B8=AD?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs index 8f1aa8d..31b3957 100644 --- a/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs +++ b/Rs.SkyLine/Recipe/StockTrayLocationRecipe.cs @@ -103,8 +103,8 @@ namespace Rs.MotionPlat.Recipe //double yBase = double.Parse(dt.Rows[0]["MarkY1"].ToString()) + double.Parse(dt.Rows[0]["Mark2CenterDistY"].ToString()) + (i * double.Parse(dt.Rows[0]["SlotOffsetDistY"].ToString())); //double xRun = double.Parse(dt.Rows[0]["MarkX1"].ToString()) + double.Parse(dt.Rows[0]["Mark2CenterDistX"].ToString()) + (j * double.Parse(dt.Rows[0]["SlotOffsetDistX"].ToString())); //double yRun = double.Parse(dt.Rows[0]["MarkY1"].ToString()) + double.Parse(dt.Rows[0]["Mark2CenterDistY"].ToString()) + (i * double.Parse(dt.Rows[0]["SlotOffsetDistY"].ToString())); - double xRun = double.Parse(dt.Rows[0]["MarkX1"].ToString()) + (j * double.Parse(dt.Rows[0]["SlotOffsetDistX"].ToString())); - double yRun = double.Parse(dt.Rows[0]["MarkY1"].ToString()) + (i * double.Parse(dt.Rows[0]["SlotOffsetDistY"].ToString())); + double xRun = double.Parse(txtMarkX1.Text) + (j * double.Parse(txtSlotOffsetDistX.Text)); + double yRun = double.Parse(txtMarkY1.Text) + (i * double.Parse(txtSlotOffsetDistY.Text)); string insertRunSql = $"insert into TrayPoints(trayid,recipename,trayname,slotindex,x,y) values('{dt.Rows[0]["id"]}','{dt.Rows[0]["recipename"]}','{dt.Rows[0]["TrayName"]}',{tempIndex},{xRun},{yRun})"; db.ExecuteNonQuery(insertRunSql); index++;