|
|
@@ -693,6 +693,19 @@ namespace UAS_MES.PublicMethod
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ public static String GetNextStep(string iCraftCode, string iPrCode, string iStepCode)
|
|
|
+ {
|
|
|
+ sql.Clear();
|
|
|
+ sql.Append("select cd_nextstepcode from craft left join craftdetail on cr_id =cd_crid where ");
|
|
|
+ sql.Append("cr_code='" + iCraftCode + "' and cr_prodcode='" + iPrCode + "' and cd_stepcode='" + iStepCode + "'");
|
|
|
+ DataTable dt = (DataTable)dh.ExecuteSql(sql.ToString(), "select");
|
|
|
+ if (dt.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ return dt.Rows[0][0].ToString();
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 保存Mac地址和BT地址
|
|
|
/// </summary>
|