From 3dcba36d78cafaa611026662640806d12aa2221f Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 17 三月 2025 21:08:14 +0800 Subject: [PATCH] 雅达-调整参数顺序并优化空值处理 --- Tiger.Business.WMS/Common/Barcode/Barcode.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Tiger.Business.WMS/Common/Barcode/Barcode.cs b/Tiger.Business.WMS/Common/Barcode/Barcode.cs index 2d7878a..31c4935 100644 --- a/Tiger.Business.WMS/Common/Barcode/Barcode.cs +++ b/Tiger.Business.WMS/Common/Barcode/Barcode.cs @@ -73,6 +73,10 @@ /// </summary> public string LotNo { get; set; } /// <summary> + /// 缁勭粐浠g爜 + /// </summary> + public string Organization { get; set; } + /// <summary> /// 璁㈠崟鍙� /// </summary> public string OrderNo { get; set; } @@ -105,7 +109,7 @@ /// <summary> /// 鏁伴噺 /// </summary> - public decimal? Qty { get => Convert.ToDecimal(BarcodeAnalysis.GetDouble(QtyStr)); } + public double? Qty { get => BarcodeAnalysis.GetDouble(QtyStr); } /// <summary> /// 姣涢噸 @@ -115,11 +119,14 @@ /// 姣涢噸 /// </summary> public double? GrossWeight { get => BarcodeAnalysis.GetDouble(GrossWeightStr); } - /// <summary> - /// 鏂欏彿闀垮害 + /// 浠撳簱 /// </summary> - public int ItemLength { get; set; } + public string Warehouse { get; set; } + /// <summary> + /// 鍌ㄤ綅 + /// </summary> + public string Location { get; set; } /// <summary> /// 鏉$爜鍒嗘瀽寮傚父淇℃伅 @@ -174,6 +181,7 @@ /// 鏄惁浜岀淮鐮� /// </summary> public bool IsQRCode => MetaSn.Contains(","); + public enum Types { @@ -238,7 +246,7 @@ { Analyses.Clear(); Analyses.Add(new YadaBarcode()); - Analyses.Add(new BarcodeAnalysis()); + //Analyses.Add(new BarcodeAnalysis()); } /// <summary> -- Gitblit v1.9.3