| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置条码分析验证规则 |
| | | /// </summary> |
| | | public void SetAnalysisRule() |
| | | { |
| | | Analyses.Clear(); |
| | | Analyses.Add(new YadaBarcode()); |
| | | //Analyses.Add(new BarcodeAnalysis()); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 条码(解析后的条码) |
| | | /// </summary> |
| | | private List<BarcodeAnalysis> Analyses { get; set; } = new(); |
| | |
| | | /// </summary> |
| | | public string LotNo { get; set; } |
| | | /// <summary> |
| | | /// 组织代码 |
| | | /// </summary> |
| | | public string Organization { get; set; } |
| | | /// <summary> |
| | | /// 订单号 |
| | | /// </summary> |
| | | public string OrderNo { get; set; } |
| | |
| | | /// <summary> |
| | | /// 数量 |
| | | /// </summary> |
| | | public decimal? Qty { get => Convert.ToDecimal(BarcodeAnalysis.GetDouble(QtyStr)); } |
| | | public double? Qty { get => BarcodeAnalysis.GetDouble(QtyStr); } |
| | | |
| | | /// <summary> |
| | | /// 毛重 |
| | |
| | | /// 毛重 |
| | | /// </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> |
| | | /// 条码分析异常信息 |
| | |
| | | /// </summary> |
| | | public bool IsQRCode => MetaSn.Contains(","); |
| | | |
| | | |
| | | public enum Types |
| | | { |
| | | /// <summary> |
| | |
| | | SubsidiaryMaterial, |
| | | [Description("原材料")] |
| | | RawMaterial, |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置条码分析验证规则 |
| | | /// </summary> |
| | | public void SetAnalysisRule() |
| | | { |
| | | Analyses.Clear(); |
| | | Analyses.Add(new YadaBarcode()); |
| | | Analyses.Add(new BarcodeAnalysis()); |
| | | } |
| | | |
| | | /// <summary> |