服务端的TigerApi 框架,基于.NET6 2024 版本
Rodney Chen
2025-04-18 c3bb5047c194a0145caca7681f0df5a8feeaaa9b
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
{
@@ -27,6 +27,14 @@
        /// </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>();
@@ -34,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
@@ -72,11 +115,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