|
|
@ -1997,7 +1997,7 @@ namespace PaintingPC |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
public static string GetProductInfoFrWms(string barcode, ref string errorMsg) |
|
|
|
public static string GetProductInfoFrWms(string barcode,string tableName, ref string errorMsg) |
|
|
|
{ |
|
|
|
string res = ""; |
|
|
|
//string colorNo = "";
|
|
|
@ -2018,8 +2018,8 @@ namespace PaintingPC |
|
|
|
else |
|
|
|
{ |
|
|
|
|
|
|
|
#region 从老外系统获得颜色信息
|
|
|
|
string wmsSql = $"select TypeCode,WMSColor as paintcode from TM_BJBMPT_MES_DATA where ProductBarcode='{barcode}'"; |
|
|
|
#region 从WMS系统获得喷涂上件的颜色信息
|
|
|
|
string wmsSql = $"select TypeCode,WMSColor as paintcode from {tableName} where ProductBarcode='{barcode}'"; |
|
|
|
|
|
|
|
string wmsSqlConnString = ConfigurationManager.ConnectionStrings["WmsSqlConnString"].ToString(); |
|
|
|
DataTable dtColor = SqlHelper.GetDataDateTable(wmsSqlConnString, CommandType.Text, wmsSql, null); |
|
|
|