From beca28ecb3a730ffb33c21e0c55c729774725faf Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期五, 25 四月 2025 16:51:28 +0800 Subject: [PATCH] 优化备料单发料逻辑 --- Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 158 insertions(+), 16 deletions(-) diff --git a/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs b/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs index 4a67ea9..a492ca3 100644 --- a/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs +++ b/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs @@ -1,27 +1,169 @@ -锘縰sing System; +锘縰sing Newtonsoft.Json; +using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; -using Tiger.Model.Minsun; namespace Tiger.Model { - public class ScanShelfInfo + public class BaseInput { - public string WarehouseCode { get; set; } - public string RegionCode { get; set; } - public string ShelfCode { get; set; } - public string LocationCode { get; set; } - public string RackCode => ShelfCode; - public bool IsSmartRack { get; set; } - public decimal Capacity { get; set; } - public int LotCount { get; set; } - public decimal MaxSize { get; set; } - public int ShelfType { get; set; } - public bool IsScanShelf { get; set; } - public WMS_SHELF Shelf { get; set; } - public WMS_LOCATION Location { get; set; } + /// <summary> + /// 鏁版嵁搴撴巿鏉冩煡璇㈤�夐」 + /// </summary> + public AuthOption AuthOption { get; set; } + /// <summary> + /// 瀹㈡埛绔樉绀虹殑璇█ + /// </summary> + public string Locale { get; set; } + /// <summary> + /// 鎿嶄綔鎸囦护 + /// </summary> + public string Command { get; set; } + /// <summary> + /// 鏉$爜 + /// </summary> + public string SN { get; set; } + /// <summary> + /// 鏂欏彿 + /// </summary> + public string ItemCode { get; set; } + /// <summary> + /// 鍗曟嵁鍙� + /// </summary> + public string OrderNo { get; set; } + /// <summary> + /// 褰撳墠鎿嶄綔闇�瑕佹彁浜ょ殑閫夐」 + /// </summary> + public Dictionary<string, string> Options { get; set; } = new Dictionary<string, string>(); + /// <summary> + /// 褰撳墠鎿嶄綔闇�瑕佹彁浜ょ殑鏁版嵁 + /// </summary> + public string Data { get; set; } + } + + + public class BaseInput<T> : BaseInput + { + public BaseInput() + { + } + + public BaseInput(BaseInput input) + { + if (input != null) + { + AuthOption = input.AuthOption; + Locale = input.Locale; + Command = input.Command; + SN = input.SN; + ItemCode = input.ItemCode; + OrderNo = input.OrderNo; + Options = input.Options; + Data = JsonConvert.DeserializeObject<T>(input.Data); + } + } + + /// <summary> + /// 褰撳墠鎿嶄綔闇�瑕佹彁浜ょ殑鏁版嵁 + /// </summary> + public new T Data { get; set; } + } + + public class BaseInputWithPage : BaseInput + { + public int pageIndex { get; set; } + public int pageSize { get; set; } + public int total { get; set; } + } + + public class BasePageInput + { + public AuthOption AuthOption { get; set; } + public int pageIndex { get; set; } + public int pageSize { get; set; } + public int total { get; set; } + public string Code { get; set; } + } + + public class BasePageOutput<T> + { + public List<T> data { get; set; } + public int total { get; set; } + } + + public class BaseCodeInput + { + public AuthOption AuthOption { get; set; } + public string Code { get; set; } + } + + /// <summary> + /// 澶囨枡鐗╂枡鎺ㄨ崘閫夐」 + /// </summary> + public class SuggestOption + { + /// <summary> + /// 褰撳墠澶囨枡琛岀殑琛孖D + /// </summary> + public string LineID { get; set; } + /// <summary> + /// ERP浠撳簱缂栫爜 + /// </summary> + public string ErpWH { get; set; } + /// <summary> + /// 浠撳簱ID + /// </summary> + public string WHID { get; set; } + /// <summary> + /// 鍌ㄥ尯ID + /// </summary> + public string RegionID { get; set; } + /// <summary> + /// 璐ф灦ID + /// </summary> + public string ShelfID { get; set; } + /// <summary> + /// 鍌ㄤ綅ID + /// </summary> + public string LocationID { get; set; } + /// <summary> + /// 鍙戞枡绛栫暐 + /// </summary> + public WMS_ITEM_POOL.STRATEGYs Strategy { get; set; } = WMS_ITEM_POOL.STRATEGYs.FIFO; + /// <summary> + /// 鍙戞枡鏂瑰紡 + /// </summary> + public WMS_ITEM_POOL.DLVY_MODEs DlvyMode { get; set; } = WMS_ITEM_POOL.DLVY_MODEs.Supply; + /// <summary> + /// 鏄惁瑕侀攣瀹氱墿鏂� + /// </summary> + public bool NeedLock { get; set; } = false; + } + + public class OutOthDtlInput : BasePageInput + { + public bool IsItemCodeList { get; set; } + } + + public class OutWoDtlInput : BasePageInput + { + public bool IsItemCodeList { get; set; } + } + + public class RePrintLabelBase + { + public string BatchNo { get; set; } + public double BatchQty { get; set; } + public List<RePrintLabelEntity> SnList { get; set; }=new List<RePrintLabelEntity>(); + } + + public class RePrintLabelEntity + { + public string ID { get; set; } + public string SN { get; set; } + public double Qty { get; set; } } } -- Gitblit v1.9.3