diff --git a/WebService/WMSWebService.asmx.cs b/WebService/WMSWebService.asmx.cs index 0f6b5ab..caae1df 100644 --- a/WebService/WMSWebService.asmx.cs +++ b/WebService/WMSWebService.asmx.cs @@ -91,7 +91,7 @@ namespace Webservice { LogHelper.WriteSysLogBase("【WMS报废调入MES接口】条码:" + barcode, MethodBase.GetCurrentMethod().Name); - errorReason = ""; + //string errorReason = ""; //return true; if (string.IsNullOrWhiteSpace(barcode)) @@ -110,7 +110,7 @@ namespace Webservice string carType = string.Empty; try { - sendRst = SendToWmsService(barcode, ref stcokNo, ref batchNo, ref partNo, ref colorName, ref productName, ref carType); + sendRst = SendToWmsService(barcode, isOK, ref stcokNo, ref batchNo, ref partNo, ref colorName, ref productName, ref carType); errorReason = ""; return sendRst; } @@ -140,7 +140,7 @@ namespace Webservice string partNo = string.Empty; try { - sendRst = SendToWmsService(barCode, ref stcokNo, ref batchNo, ref partNo, ref colorName, ref productName, ref carType); + sendRst = SendToWmsService(barCode,1, ref stcokNo, ref batchNo, ref partNo, ref colorName, ref productName, ref carType); if (sendRst == true) { @@ -179,7 +179,7 @@ namespace Webservice return Function.ExsitBarCodeInDownRecord(barCode); } - bool SendToWmsService(string barCode, ref string stcokNo, ref string batchNo, ref string partNo, ref string colorName, ref string productName, ref string carType) + bool SendToWmsService(string barCode,int isPass, ref string stcokNo, ref string batchNo, ref string partNo, ref string colorName, ref string productName, ref string carType) { string errorMsg = string.Empty; string errorReason = ""; @@ -199,7 +199,7 @@ namespace Webservice #endregion - string res = Function.WMSSpraying(barCode, 1, stcokNo, partNo, batchNo, ref colorName, ref productName, ref carType); + string res = Function.WMSSpraying(barCode, isPass, stcokNo, partNo, batchNo, ref colorName, ref productName, ref carType); JsonModel model = JSONTools.ScriptDeserialize>(res); if (model.Result == "0")