From 195b4a9f4ce855f550070ba90b9f3c57471e1d5b Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期三, 04 九月 2024 18:10:18 +0800 Subject: [PATCH] 物料添加单个流转卡数量,批量生成流转卡优化,到货确认模块添加添康科技客户 --- WebAPI/Controllers/POStockInBillController.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/WebAPI/Controllers/POStockInBillController.cs b/WebAPI/Controllers/POStockInBillController.cs index 8c671f1..9dcce14 100644 --- a/WebAPI/Controllers/POStockInBillController.cs +++ b/WebAPI/Controllers/POStockInBillController.cs @@ -5335,9 +5335,11 @@ string sql = string.Empty; if (FCusName.Contains("瀹夌憺")) sql = $"select top 1 HItemID,HSourceBillNo,HQty,HSourceInterID,HSourceEntryID from Gy_BarCodeBill where HSourceInterID =(select distinct HSourceInterID from Cg_POInStockBillSub where HInterID ={HInterID}) and HBarCode = '{HBarcode}' and HBarCodeType ='绠卞彿鍐呮潯鐮�'"; + else if(FCusName.Contains("娣诲悍绉戞妧")) + sql = $"select top 1 HItemID,HSourceBillNo,HQty,HSourceInterID,HSourceEntryID,HMaterID,HBatchNo,HProduceDate,HExpiryDate from Gy_BarCodeBill where HSourceInterID = {HInterID} and HBarCode = '{HBarcode}' and HBarCodeType ='绠卞彿鍐呮潯鐮�'"; else sql = $"select HItemID,HSourceBillNo,HQty,HSourceInterID,HSourceEntryID from Gy_BarCodeBill where HSourceInterID ={HInterID} and HBarCode = '{HBarcode.Split('#')[0]}' and HQty = {HBarcode.Split('#')[1]}"; - DataSet ds = oCn.RunProcReturn(sql, "H_v_SRM_POOrderBillList"); + DataSet ds = oCn.RunProcReturn(sql, "Gy_BarCodeBill"); if (ds.Tables[0].Rows.Count == 0) { objJsonResult.code = "0"; -- Gitblit v1.9.1