From 5563f93c09bd957e3a08cf6314f2c4395143d238 Mon Sep 17 00:00:00 2001 From: YangYuGang <1378265336@qq.com> Date: 星期三, 12 三月 2025 08:59:19 +0800 Subject: [PATCH] 收货单查询方法补充 --- Tiger.Business.WMS/iWMS/RePrintBarcode.cs | 21 ++++++++++----------- 1 files changed, 10 insertions(+), 11 deletions(-) diff --git a/Tiger.Business.WMS/iWMS/RePrintBarcode.cs b/Tiger.Business.WMS/iWMS/RePrintBarcode.cs index 06c159a..c5f345d 100644 --- a/Tiger.Business.WMS/iWMS/RePrintBarcode.cs +++ b/Tiger.Business.WMS/iWMS/RePrintBarcode.cs @@ -3,7 +3,6 @@ using Rhea.Common; using System; using System.Collections.Generic; -using System.DirectoryServices.ActiveDirectory; using System.Linq; using System.Security.Cryptography; using System.Text; @@ -21,11 +20,11 @@ public class RePrintBarcode : IRePrintBarcode { #region Propertys & Variables - public static string UserCode { get; set; } - public static long UserId { get; set; } - public static string OrgCode { get; set; } - public static List<Inventory> invs { get; set; } = new(); - public static Inventory CurInv { get; set; } + public string UserCode { get; set; } + public long UserId { get; set; } + public string OrgCode { get; set; } + public List<Inventory> invs { get; set; } = new(); + public Inventory CurInv { get; set; } #endregion /// <summary> /// 琛ュ嵃鏉$爜 @@ -48,14 +47,14 @@ OrgCode = input.AuthOption.OrgCode; //瑙f瀽鏉$爜 - Result<Inventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true); + Result<IInventory> result = WMS_ITEM_Biz.WmsItem.Get(input.SN, input.AuthOption, true); if (!result.IsSuccessed) { action.IsSuccessed = false; action.LocaleMsg = result.LocaleMsg; return action; } - CurInv = result.Data; + CurInv = result.Data as Inventory; if (!CurInv.isExists) { @@ -68,7 +67,7 @@ MaterialName = CurInv.Barcode.ItemName, MaterialStandard = CurInv.Barcode.ItemName, DateCode = (DateTime)CurInv.Barcode.ProdDate, - ScanQty = (decimal)CurInv.Barcode.Qty, + ScanQty = (double)CurInv.Barcode.Qty, Unit = CurInv.Barcode.Unit, VenderSName = "" }; @@ -290,14 +289,14 @@ return action; } //瑙f瀽鏉$爜 - Result<Inventory> result = WMS_ITEM_Biz.WmsItem.Get(input.Barcode, new AuthOption { ByOrg = true, CurOrg = "DGXC", UserId = "admin" }, false); + Result<IInventory> result = WMS_ITEM_Biz.WmsItem.Get(input.Barcode, new AuthOption { ByOrg = true, CurOrg = "DGXC", UserId = "admin" }, false); if (!result.IsSuccessed) { action.IsSuccessed = false; action.LocaleMsg = result.LocaleMsg; return action; } - var CurInv = result.Data; + var CurInv = result.Data as Inventory; var newItem = CurInv.isExists ? CurInv.Items[0] : new WMS_ITEM() { AUTH_ORG = "DGXC", -- Gitblit v1.9.3