diff --git a/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs index b05f307c..e889fa27 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/BaseWareHouseService.cs @@ -17,6 +17,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using NPOI.SS.Formula.Functions; using SqlSugar; using Tnb.BasicData.Entities; using Tnb.Common.Core.EventBus.Constants; @@ -280,6 +281,7 @@ namespace Tnb.WarehouseMgr } else { + //ret = PPLBUtility.B_CreatePrn(13, "192.168.1.233"); _ = System.IO.Directory.CreateDirectory(PPLBUtility.szSavePath); ret = PPLBUtility.B_CreatePrn(0, PPLBUtility.szSaveFile);// open file. strmsg += "Open "; @@ -298,6 +300,9 @@ namespace Tnb.WarehouseMgr return; } + + + // sample setting. _ = PPLBUtility.B_Set_Originpoint(0, 0); _ = PPLBUtility.B_Select_Option(2); diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs index 230fd054..cdb28f8e 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPurchaseService.cs @@ -152,11 +152,19 @@ namespace Tnb.WarehouseMgr [HttpPost] public async Task BarCodePrint(BarCodeInput input) { + ; + if (input == null) { throw new AppFriendlyException(nameof(input), 500); } List barcodes = new(); + barcodes.Add("2300100051901001211210002"); + barcodes.Add("2300100051901001211210008"); + barcodes.Add("2300100051901001211210009"); + + + base.BarCodePrint(barcodes, 1); try { await _db.Ado.BeginTranAsync();