using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tiger.Model { public class BaseInput { /// /// 数据库授权查询选项 /// public AuthOption AuthOption { get; set; } /// /// 客户端显示的语言 /// public string Locale { get; set; } /// /// 操作指令 /// public string Command { get; set; } /// /// 条码 /// public string SN { get; set; } /// /// 料号 /// public string ItemCode { get; set; } /// /// 单据号 /// public string OrderNo { get; set; } /// /// 当前操作需要提交的选项 /// public Dictionary Options { get; set; } = new Dictionary(); /// /// 当前操作需要提交的数据 /// public string Data { get; set; } } public class BaseInput : 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(input.Data); } } /// /// 当前操作需要提交的数据 /// 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 { public List data { get; set; } public int total { get; set; } } public class BaseCodeInput { public AuthOption AuthOption { get; set; } public string Code { get; set; } } 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 SnList { get; set; }=new List(); } public class RePrintLabelEntity { public string ID { get; set; } public string SN { get; set; } public double Qty { get; set; } } }