From b6478836da00540202dc214afddc51accda7858d Mon Sep 17 00:00:00 2001 From: "ruoxing.wang" <88384874@qq.com> Date: Sun, 27 Apr 2025 10:29:53 +0800 Subject: [PATCH] =?UTF-8?q?wms=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E4=B8=AAWMSSprayingForCSForTest=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=94=A8=E4=BA=8E=E6=89=8B=E5=B7=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebService/WMSWebService.asmx.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/WebService/WMSWebService.asmx.cs b/WebService/WMSWebService.asmx.cs index e070b6d..d8c119e 100644 --- a/WebService/WMSWebService.asmx.cs +++ b/WebService/WMSWebService.asmx.cs @@ -85,6 +85,17 @@ namespace Webservice Context.Response.Write(res); } + [WebMethod] + [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] + public string WMSSprayingForCSForTest(string barcode, int isOK) + { + string errorReason = string.Empty; + bool b = WMSSprayingForCS(barcode, isOK, out errorReason); + if (string.IsNullOrEmpty(errorReason)) + return "true"; + return errorReason; + } + /// /// 调用WMS接口03 /// lx 20190610,wff2022-04-19修改,报废由0变为2