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 | 76 +++++++++++++++++++++++++++++++++++++- 1 files changed, 74 insertions(+), 2 deletions(-) diff --git a/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs b/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs index 5119042..a492ca3 100644 --- a/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs +++ b/Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs @@ -1,10 +1,10 @@ -锘縰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 { @@ -43,6 +43,35 @@ /// </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; } @@ -71,6 +100,49 @@ 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; } -- Gitblit v1.9.3