ruoxing.wang 4 weeks ago
parent
commit
f7d998be9e
  1. 10
      WebService/WMSWebService.asmx.cs

10
WebService/WMSWebService.asmx.cs

@ -91,7 +91,7 @@ namespace Webservice
{ {
LogHelper.WriteSysLogBase("【WMS报废调入MES接口】条码:" + barcode, MethodBase.GetCurrentMethod().Name); LogHelper.WriteSysLogBase("【WMS报废调入MES接口】条码:" + barcode, MethodBase.GetCurrentMethod().Name);
errorReason = ""; //string errorReason = "";
//return true; //return true;
if (string.IsNullOrWhiteSpace(barcode)) if (string.IsNullOrWhiteSpace(barcode))
@ -110,7 +110,7 @@ namespace Webservice
string carType = string.Empty; string carType = string.Empty;
try 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 = ""; errorReason = "";
return sendRst; return sendRst;
} }
@ -140,7 +140,7 @@ namespace Webservice
string partNo = string.Empty; string partNo = string.Empty;
try 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) if (sendRst == true)
{ {
@ -179,7 +179,7 @@ namespace Webservice
return Function.ExsitBarCodeInDownRecord(barCode); 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 errorMsg = string.Empty;
string errorReason = ""; string errorReason = "";
@ -199,7 +199,7 @@ namespace Webservice
#endregion #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<NoModel> model = JSONTools.ScriptDeserialize<JsonModel<NoModel>>(res); JsonModel<NoModel> model = JSONTools.ScriptDeserialize<JsonModel<NoModel>>(res);
if (model.Result == "0") if (model.Result == "0")

Loading…
Cancel
Save