From cd8182d8fefc55c245400936b6330a00e866adbd Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 24 十二月 2024 21:25:06 +0800 Subject: [PATCH] 优化标准上下架 --- Tiger.Business.WMS/WMS_ITEM_Biz.cs | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Tiger.Business.WMS/WMS_ITEM_Biz.cs b/Tiger.Business.WMS/WMS_ITEM_Biz.cs index c31f406..4bc1e2f 100644 --- a/Tiger.Business.WMS/WMS_ITEM_Biz.cs +++ b/Tiger.Business.WMS/WMS_ITEM_Biz.cs @@ -43,17 +43,21 @@ result.Flag = Result.Flags.Failed; result.LocaleMsg = new("WMS.WmsItem.Barcode.EmptyFailure"); } + else if (barcode.IsException) + { + throw barcode.AnalyseException; + } //闈炴硶鏉$爜 else if (!barcode.IsRegular) { result.Flag = Result.Flags.Failed; result.LocaleMsg = new("WMS.WmsItem.Barcode.IllegalFailure"); } - else if (barcode.Qty <= 0) - { - result.Flag = Result.Flags.Failed; - result.LocaleMsg = new("鏁伴噺涓嶈兘灏忎簬绛変簬闆讹紝璇锋鏌ヤ簩缁寸爜锛�"); - } + //else if (barcode.Qty <= 0) + //{ + // result.Flag = Result.Flags.Failed; + // result.LocaleMsg = new("鏁伴噺涓嶈兘灏忎簬绛変簬闆讹紝璇锋鏌ヤ簩缁寸爜锛�"); + //} else { var query = Biz.Db.Queryable<WMS_ITEM_PKG>().ByAuth(option).Where(q => q.SN == barcode.SN).IncludesAllFirstLayer().First(); @@ -82,7 +86,6 @@ inv.ItemsExt.Add(new() { SN = item.SN, - SUPP_ITEM_CODE = barcode.OEMItemCode, META_SN = barcode.MetaSn, QR_CODE = barcode.MetaSn }); @@ -152,6 +155,10 @@ result.Flag = Result.Flags.Failed; result.LocaleMsg = new("WMS.WmsItem.Barcode.EmptyFailure"); } + else if (barcode.IsException) + { + throw barcode.AnalyseException; + } //闈炴硶鏉$爜 else if (!barcode.IsRegular) { @@ -191,7 +198,6 @@ inv.ItemsExt.Add(new() { SN = item.SN, - SUPP_ITEM_CODE = barcode.OEMItemCode, META_SN = barcode.MetaSn, QR_CODE = barcode.MetaSn }); @@ -285,7 +291,6 @@ { item.AUTH_ORG = option.OrgCode; item.SN = inv.Barcode.SN; - item.SUPP_ITEM_CODE = inv.Barcode.OEMItemCode; } result.Data.Items = inventory.Items; -- Gitblit v1.9.3