From 8ef454eb0bbd2e74eb66c11fd5aa1438348ed75c Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期四, 24 十月 2024 11:35:13 +0800 Subject: [PATCH] 增加打印入库标签打印行为 --- Tiger.Business.WMS/Transaction/OutOther.cs | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/Tiger.Business.WMS/Transaction/OutOther.cs b/Tiger.Business.WMS/Transaction/OutOther.cs index 86c33bc..4101933 100644 --- a/Tiger.Business.WMS/Transaction/OutOther.cs +++ b/Tiger.Business.WMS/Transaction/OutOther.cs @@ -218,7 +218,7 @@ { if (!input.Code.IsNullOrEmpty()) { - Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => CurPoolList.Select(q => q.SN).Contains(q.SN)).ExecuteCommand(); + Biz.Db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand(); //濡傛灉涓婁竴娆℃帹鑽愭湁鏁版嵁锛屽垯鍏堢伃鎺変寒鐨勭伅 if (Suggests.Any()) { @@ -276,16 +276,7 @@ Suggests.RemoveAll(q => q.poolItem.IsNullOrEmpty()); //淇濆瓨鐗╂枡姹犲埌鏁版嵁搴� - var db = Biz.Db; - var dbTran = db.UseTran(() => - { - db.Deleteable<WMS_ITEM_POOL>().Where(q => q.TRANS_CODE == req.BILLCODE).ExecuteCommand(); - db.Insertable(CurPoolList).ExecuteCommand(); - }); - if (!dbTran.IsSuccess) - { - throw dbTran.ErrorException; - } + Biz.Db.Insertable(CurPoolList).ExecuteCommand(); action = await LightAll(new() { AuthOption = input.AuthOption, ReqType = ReqType.IsWhole, Color = LedColor.Blue,ItemCode = input.Code }); } } -- Gitblit v1.9.3