From 5fe58913bff8e3360622755de2db22bb8afdf12f Mon Sep 17 00:00:00 2001 From: lilili Date: Fri, 17 Mar 2023 14:21:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=87=BA=E5=BA=93=E4=B8=8B?= =?UTF-8?q?=E6=9E=B6=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WMSBarCoreController.cs | 10 +++++++++- ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Web.config | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Controllers/WMSBarCoreController.cs b/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Controllers/WMSBarCoreController.cs index d7a1451..a7c7efe 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Controllers/WMSBarCoreController.cs +++ b/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Controllers/WMSBarCoreController.cs @@ -595,7 +595,15 @@ namespace ICSSoft.WebAPI.Controllers //var resultStr = action.LOTStockDownCreate(model); var resultStr = ICSSubmitService.LOTStockDownCreate(model); res.Success = true; - res.PrintStr = DBHelper.ReadFileStream(); + //res.PrintStr = DBHelper.ReadFileStream(); + if (resultStr.Columns.Contains("OLDLotNo")) + { + res.PrintStr = DBHelper.ReadFileStream(); + } + else + { + res.PrintStr = ""; + } res.Message = LanguageHelper.GetNameSingle("WMSAPI001");// "接口调用成功!"; if (resultStr != null && resultStr.Rows.Count > 0 && resultStr.ToString() != "[]") { diff --git a/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Web.config b/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Web.config index a555745..c146188 100644 --- a/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Web.config +++ b/ICSSoft.WMS.WebAPI/ICSSoft.WMS.WebAPI/Web.config @@ -11,7 +11,7 @@ - +