From 09a1f81787e075cd8a8e85ce63118e8d49d3599e Mon Sep 17 00:00:00 2001 From: "ruoxing.wang" <88384874@qq.com> Date: Thu, 29 May 2025 16:58:08 +0800 Subject: [PATCH] 1 --- WebService/Function.cs | 44 +----------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/WebService/Function.cs b/WebService/Function.cs index 4aa3075..36b1392 100644 --- a/WebService/Function.cs +++ b/WebService/Function.cs @@ -1109,7 +1109,7 @@ namespace Webservice static bool GetWmsCompleteState(string sjBarCode,string workLine, ref string wmsMsg) { - string jsonParam = " [{\"ServiceType\":\"GetMesData\",\"BarCode\":\""+sjBarCode+ "\",\"WorkLine\":\"" + workLine + "\"}]"; + string jsonParam = " [{\"ServiceType\":\"GetMesData\",\"BarCode\":\""+sjBarCode+ "\",\"WorkLineId\":\"" + workLine + "\"}]"; //string jsonParam = " [{\"ServiceType\":\"GetMesData\",\"BarCode\":\""+sjBarCode+ "\"}]"; WebService.WebReference.JsonService webService = GetWebService(); //true 可以操作, false 已经移库,不能操作 @@ -1231,48 +1231,6 @@ namespace Webservice } - #region 原来的 - - //if (inspectTable.Rows.Count > 1) //有多条记录,判定前一条记录状态. 若只有一条记录,就是允许的 - //{ - // if (rePaint == 0) //没返喷的合格, - // { - // if (IsStockInAll(oneBarCode)) - // { - // string lastRst = inspectTable.Rows[1]["inspectResult"].ToString(); - // if (lastRst.Contains("报废")) //允许报废转合格 - // { - // errorMssg = $"条码[{oneBarCode}]已报废,不能重新报工."; - // return false; - // } - // errorMssg = $"条码[{oneBarCode}]已报工,不能重新报工."; - // return false; - // } - // } - // else //存在返喷的合格 - // { - // if (IsStockInAll(oneBarCode, true)) - // { - // string lastRst = inspectTable.Rows[1]["inspectResult"].ToString(); - // if (lastRst.Contains("报废")) //允许报废转合格 - // { - // return true; - // } - // if (lastRst.Contains("打磨")) //允许返喷二次判定为合格 - // { - // return true; - // } - // if (lastRst.Contains("其它")) //允许其他转合格 - // { - // return true; - // } - // errorMssg = $"条码[{oneBarCode}]存在返喷报工,不能重新报工." + inspectTable.Rows.Count + "[" + inspectTable.Rows[0]["ID"].ToString(); - // return false; - // } - // } - //} - #endregion - }