Browse Source

添加卡通箱号过站方法

章政 8 năm trước cách đây
mục cha
commit
bd19c4e835
1 tập tin đã thay đổi với 11 bổ sung0 xóa
  1. 11 0
      UAS-MES/PublicMethod/LogicHandler.cs

+ 11 - 0
UAS-MES/PublicMethod/LogicHandler.cs

@@ -517,6 +517,17 @@ namespace UAS_MES.PublicMethod
             return new DataTable[] { Form, Grid };
         }
 
+        public static void CartonBoxStepPass(string iMakeCode, string iSourceCode, string iCartonBox, string iUserCode, string iResult, out string oErrorMessage)
+        {
+            DataTable dt = (DataTable)dh.ExecuteSql("select pd_barcode from packagedetail where pd_outboxcode='" + iCartonBox + "'", "select");
+            oErrorMessage = "";
+            for (int i = 0; i < dt.Rows.Count; i++)
+            {
+                string sn = dt.Rows[i]["pd_barcode"].ToString();
+                CS_SetResult(iMakeCode, iSourceCode, sn, iUserCode, iResult, out oErrorMessage);
+            }
+        }
+
         /// <summary>
         /// 箱号过站的公用方法
         /// </summary>