bug
This commit is contained in:
@@ -17,6 +17,7 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
using NPOI.SS.Formula.Functions;
|
||||||
using SqlSugar;
|
using SqlSugar;
|
||||||
using Tnb.BasicData.Entities;
|
using Tnb.BasicData.Entities;
|
||||||
using Tnb.Common.Core.EventBus.Constants;
|
using Tnb.Common.Core.EventBus.Constants;
|
||||||
@@ -280,6 +281,7 @@ namespace Tnb.WarehouseMgr
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
//ret = PPLBUtility.B_CreatePrn(13, "192.168.1.233");
|
||||||
_ = System.IO.Directory.CreateDirectory(PPLBUtility.szSavePath);
|
_ = System.IO.Directory.CreateDirectory(PPLBUtility.szSavePath);
|
||||||
ret = PPLBUtility.B_CreatePrn(0, PPLBUtility.szSaveFile);// open file.
|
ret = PPLBUtility.B_CreatePrn(0, PPLBUtility.szSaveFile);// open file.
|
||||||
strmsg += "Open ";
|
strmsg += "Open ";
|
||||||
@@ -298,6 +300,9 @@ namespace Tnb.WarehouseMgr
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// sample setting.
|
// sample setting.
|
||||||
_ = PPLBUtility.B_Set_Originpoint(0, 0);
|
_ = PPLBUtility.B_Set_Originpoint(0, 0);
|
||||||
_ = PPLBUtility.B_Select_Option(2);
|
_ = PPLBUtility.B_Select_Option(2);
|
||||||
|
|||||||
@@ -152,11 +152,19 @@ namespace Tnb.WarehouseMgr
|
|||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task BarCodePrint(BarCodeInput input)
|
public async Task BarCodePrint(BarCodeInput input)
|
||||||
{
|
{
|
||||||
|
;
|
||||||
|
|
||||||
if (input == null)
|
if (input == null)
|
||||||
{
|
{
|
||||||
throw new AppFriendlyException(nameof(input), 500);
|
throw new AppFriendlyException(nameof(input), 500);
|
||||||
}
|
}
|
||||||
List<string> barcodes = new();
|
List<string> barcodes = new();
|
||||||
|
barcodes.Add("2300100051901001211210002");
|
||||||
|
barcodes.Add("2300100051901001211210008");
|
||||||
|
barcodes.Add("2300100051901001211210009");
|
||||||
|
|
||||||
|
|
||||||
|
base.BarCodePrint(barcodes, 1);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
await _db.Ado.BeginTranAsync();
|
await _db.Ado.BeginTranAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user