using System.ComponentModel.DataAnnotations; using Newtonsoft.Json; namespace HH.WCS.Mobox3.DSZSH.Dtos.Request { public class MoboxRequest { #region PDA 数据 /// /// 好运箱-满托下线入库(PDA)数据类 /// public class GoodpackOfflineInfo { /// /// 物料编码 /// [JsonProperty("s_item_code")] public string ItemCode { get; set; } ///// ///// 物料名称 ///// // //[JsonProperty("item_name")] //public string ItemName { get; set; } /// /// 批次号 /// [JsonProperty("s_batch_no")] public string BatchNo { get; set; } /// /// 物料规格 /// [JsonProperty("s_spec")] public string Spec { get; set; } /// /// 数量 /// [JsonProperty("n_num")] public int Qty { get; set; } /// /// 货位信息 /// [JsonProperty("s_start_loc")] public string StartLoc { get; set; } } /// /// 空托/空箱入库绑定(PDA)数据类 /// public class EmptyBindInfo { /// /// 容器编码 /// [JsonProperty("s_cntr_code")] public string CntrCode { get; set; } /// /// 容器类型 /// [JsonProperty("s_cntr_type")] public string CntrType { get; set; } ///// ///// 托盘数量(仅当容器类型为托盘时使用) ///// //[JsonProperty("pallet_count", NullValueHandling = NullValueHandling.Ignore)] //public int PalletCount { get; set; } /// /// 货位编码 /// [JsonProperty("s_loc_code")] public string LocCode { get; set; } } /// /// 空托绑定 /// public class EmptyBindPalletInfo { /// /// 容器编码 /// public string CntrCode { get; set; } /// /// 托盘数量 /// public int PalletCount { get; set; } /// /// 货位编码 /// public string LocCode { get; set; } } /// /// 空箱绑定 /// public class EmptyBindGoodpackInfo { /// /// 容器编码 /// public string CntrCode { get; set; } /// /// 货位编码 /// public string LocCode { get; set; } } /// /// 空托/空箱入库(PDA)数据类 /// public class EmptyInboundInfo { /// /// 容器编码 /// [JsonProperty("cntr_code")] public string CntrCode { get; set; } /// /// 容器类型 /// [JsonProperty("cntr_type")] public string CnteType { get; set; } /// /// 终点库区编码 /// [JsonProperty("end_area")] public string EndArea { get; set; } } public class EmptyInboundDetailInfo : StartCntInfo { } //public class EmptyOnlineInfo { // public string ItemCode { get; set; } // public string ItemName { get; set; } // public string PatchNo { get; set; } // public string EndLoc { get; set; } //} public class EmptyOnlinePalletInfo { /// /// 物料编码 /// [JsonProperty("item_code")] public string ItemCode { get; set; } ///// ///// 物料名称 ///// // //[JsonProperty("item_name")] //public string ItemName { get; set; } /// /// 批次号 /// [JsonProperty("batch_no")] public string BatchNo { get; set; } /// /// 物料规格 /// [JsonProperty("spe")] public string Spe { get; set; } /// /// 容器编码 /// [JsonProperty("cnt_id")] public string CntId { get; set; } // 容器类型 = 托盘 } public class EmptyOnlineGoodpackInfo { // 容器类型 = 好运箱 /// /// 容器编码 /// [JsonProperty("cnt_id")] public string CntId { get; set; } } /// /// 抽检-创建抽检单(WMS)数据类 /// public class CreateCheckOrderInfo { /// /// 物料编码 /// [JsonProperty("item_code")] public string ItemCode { get; set; } ///// ///// 物料名称 ///// // //[JsonProperty("item_name")] //public string ItemName { get; set; } /// /// 物料规格 /// [JsonProperty("spe")] public string Spe { get; set; } /// /// 批次号 /// [JsonProperty("batch_no")] public string BatchNo { get; set; } /// /// 需出库数量 /// [JsonProperty("qty")] public int Qty { get; set; } /// /// 容器类型 /// [JsonProperty("cntr_type")] public string CntrType { get; set; } /// /// 出库终点货区 /// [JsonProperty("end_area")] public string EndArea { get; set; } } public class QualifiedBackInfo { /// /// 物料编码 /// [JsonProperty("item_code")] public string ItemCode { get; set; } /// /// 容器编码 /// [JsonProperty("cntr_code")] public string CntrCode { get; set; } } public class UnqualifiedShiftInfo : QualifiedBackInfo { /// /// 不合格移库终点库区 /// [JsonProperty("end_area")] public string EndArea { get; set; } } public class CheckShiftInfo : UnqualifiedShiftInfo { public bool Qualified { get; set; } } #endregion #region WMS 数据 /// /// 成品胶出库(PDA) /// public class FinishedOutboundInfo { /// /// 物料编码 /// [JsonProperty("item_code")] public string ItemCode { get; set; } ///// ///// 物料名称 ///// // //[JsonProperty("item_name")] //public string ItemName { get; set; } /// /// 物料规格 /// [JsonProperty("spe")] public string Spe { get; set; } /// /// 批次号 /// [JsonProperty("batch_no")] public string BatchNo { get; set; } /// /// 需出库数量 /// [JsonProperty("qty")] public int Qty { get; set; } /// /// 容器类型 /// [JsonProperty("cntr_type")] public string CntrType { get; set; } /// /// 出库终点货区 /// [JsonProperty("end_area")] public string EndArea { get; set; } /// /// 是否强制出库 /// [JsonProperty("force_out")] public bool ForcedOut { get; set; } } /// /// 移库-创建移库任务数据类 /// public class CreateShiftOrderInfo { /// /// 物料编码 /// [JsonProperty("item_code")] public string ItemCode { get; set; } ///// ///// 物料名称 ///// // //[JsonProperty("item_name")] //public string ItemName { get; set; } /// /// 批次号 /// [JsonProperty("batch_no")] public string BatchNo { get; set; } /// /// 移库终点货区 /// [JsonProperty("end_area")] public string EndArea { get; set; } } /// /// 余料尾箱回库(PDA)数据类 /// public class RestBackInfo { /// /// 起点货位 /// [JsonProperty("start_loc")] public string StartLoc { get; set; } } #endregion //------------------------------------------------------------------------------ #region 模板数据 /// /// 模板抽象数据类:起点货位、容器号 /// public abstract class StartCntInfo { /// /// 起点货位 /// public string StartLoc { get; set; } /// /// 容器号 /// public string CntId { get; set; } } #endregion } }