服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
昨天 0c0309afae85b72746bd2431c10c7f5982e210e3
Tiger.Business.WMS/Common/Barcode/Barcode.cs
@@ -21,6 +21,16 @@
        }
        /// <summary>
        /// 设置条码分析验证规则
        /// </summary>
        public void SetAnalysisRule()
        {
            Analyses.Clear();
            Analyses.Add(new YadaBarcode());
            //Analyses.Add(new BarcodeAnalysis());
        }
        /// <summary>
        /// 条码(解析后的条码)
        /// </summary>
        private List<BarcodeAnalysis> Analyses { get; set; } = new();
@@ -59,7 +69,7 @@
        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime? ProdDate { get => BarcodeAnalysis.GetDateTime(ProdDateStr) ?? BarcodeAnalysis.GetDateTime(PrintDateStr); }
        public DateTime? ProdDate { get => BarcodeAnalysis.GetDateTime(ProdDateStr); }
        /// <summary>
        /// 打印日期
        /// </summary>
@@ -72,6 +82,10 @@
        /// 批次号
        /// </summary>
        public string LotNo { get; set; }
        /// <summary>
        /// 组织代码
        /// </summary>
        public string Organization { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
@@ -105,7 +119,7 @@
        /// <summary>
        /// 数量
        /// </summary>
        public decimal? Qty { get => Convert.ToDecimal(BarcodeAnalysis.GetDouble(QtyStr)); }
        public double? Qty { get => BarcodeAnalysis.GetDouble(QtyStr); }
        /// <summary>
        /// 毛重
@@ -115,11 +129,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>
        /// 条码分析异常信息
@@ -175,6 +192,7 @@
        /// </summary>
        public bool IsQRCode => MetaSn.Contains(",");
        public enum Types
        {
            /// <summary>
@@ -229,16 +247,6 @@
            SubsidiaryMaterial,
            [Description("原材料")]
            RawMaterial,
        }
        /// <summary>
        /// 设置条码分析验证规则
        /// </summary>
        public void SetAnalysisRule()
        {
            Analyses.Clear();
            Analyses.Add(new YadaBarcode());
            //Analyses.Add(new BarcodeAnalysis());
        }
        /// <summary>