服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
5 天以前 beca28ecb3a730ffb33c21e0c55c729774725faf
Tiger.Model.Net/Entitys/WMS/Api/Input_Entitys.cs
@@ -1,10 +1,10 @@
using System;
using 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
{
@@ -31,6 +31,10 @@
        /// </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>();
@@ -38,6 +42,41 @@
        /// 当前操作需要提交的数据
        /// </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
@@ -61,6 +100,49 @@
        public string Code { get; set; }
    }
    /// <summary>
    /// 备料物料推荐选项
    /// </summary>
    public class SuggestOption
    {
        /// <summary>
        /// 当前备料行的行ID
        /// </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; }
@@ -76,11 +158,6 @@
        public string BatchNo { get; set; }
        public double BatchQty { get; set; }
        public List<RePrintLabelEntity> SnList { get; set; }=new List<RePrintLabelEntity>();
    }
    public class PrintSemiProdLabelEntity: RePrintLabelBase
    {
    }
    public class RePrintLabelEntity