| | |
| | | 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 |
| | | { |
| | |
| | | /// </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> |
| | | 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 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; } |
| | | } |
| | | } |