From da5c19c0b36250c10ae52c32ec4d05478a97077b Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期四, 02 一月 2025 14:58:33 +0800 Subject: [PATCH] Merge branch 'master' of http://47.115.28.255:8110/r/TigerClouds-Tech/Server/TigerApi6_2024 --- Tiger.Business.WMS/iWMS/RePrintBarcode.cs | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Tiger.Business.WMS/iWMS/RePrintBarcode.cs b/Tiger.Business.WMS/iWMS/RePrintBarcode.cs index dd094ff..398db1f 100644 --- a/Tiger.Business.WMS/iWMS/RePrintBarcode.cs +++ b/Tiger.Business.WMS/iWMS/RePrintBarcode.cs @@ -20,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> /// 琛ュ嵃鏉$爜 @@ -47,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) { @@ -289,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