| | |
| | | using Rhea.Common; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.DirectoryServices.ActiveDirectory; |
| | | using System.Linq; |
| | | using System.Security.Cryptography; |
| | | using System.Text; |
| | |
| | | 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> |
| | | /// 补印条码 |
| | |
| | | OrgCode = input.AuthOption.OrgCode; |
| | | |
| | | //解析条码 |
| | | 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) |
| | | { |
| | |
| | | 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 = "" |
| | | }; |
| | |
| | | return action; |
| | | } |
| | | //解析条码 |
| | | 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", |