|
|
@@ -519,12 +519,13 @@ namespace UAS_MES.PublicMethod
|
|
|
|
|
|
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");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql("select pd_makecode,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);
|
|
|
+ string makecode = dt.Rows[i]["pd_makecode"].ToString();
|
|
|
+ CS_SetResult(makecode, iSourceCode, sn, iUserCode, iResult, out oErrorMessage);
|
|
|
}
|
|
|
}
|
|
|
|