using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_DTO.Inbound; namespace WIDESEA_DTO.Allocate { /// /// /// [JsonObject(MemberSerialization.OptIn)] public class AllocateDto { /// /// 请求编码 /// [JsonProperty("reqCode")] public string ReqCode { get; set; } /// /// 请求时间 /// [JsonProperty("reqTime")] public DateTime ReqTime { get; set; } /// /// 订单编号 /// [JsonProperty("orderNo")] public string OrderNo { get; set; } /// /// 业务类型 /// [JsonProperty("business_type")] public string BusinessType { get; set; } /// /// 是否分批 /// [JsonProperty("isBatch")] public int IsBatch { get; set; } /// /// 厂区代码 /// [JsonProperty("factoryArea")] public string FactoryArea { get; set; } /// /// 操作类型 /// [JsonProperty("operationType")] public int OperationType { get; set; } /// /// 订单详情列表 /// [JsonProperty("details")] public List Details { get; set; } } /// /// 订单详情 /// [JsonObject(MemberSerialization.OptIn)] public class AllocateDtoDetail { /// /// 仓库编码 /// [JsonProperty("warehouseCode")] public string WarehouseCode { get; set; } /// /// 物料编码 /// [JsonProperty("materialCode")] public string MaterialCode { get; set; } /// /// 行号 /// [JsonProperty("lineNo")] public string LineNo { get; set; } /// /// 数量 /// [JsonProperty("qty")] public decimal Qty { get; set; } /// /// 单位 /// [JsonProperty("unit")] public string Unit { get; set; } /// /// 条码列表 /// [JsonProperty("barcodes")] public List? Barcodes { get; set; } } /// /// 条码信息 /// [JsonObject(MemberSerialization.OptIn)] public class BarcodeInfo { /// /// 条码 /// [JsonProperty("barcode")] public string Barcode { get; set; } /// /// 批次号 /// [JsonProperty("batchNo")] public string BatchNo { get; set; } [JsonProperty("supplyCode")] public string SupplyCode { get; set; } /// /// 数量 /// [JsonProperty("qty")] public decimal Qty { get; set; } /// /// 单位 /// [JsonProperty("unit")] public string Unit { get; set; } } }