using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HH.WMS.Entitys.Basic; namespace HH.WMS.Entitys.Common { #region 表单权限 /// /// 表单权限 /// public enum OperateType { Add = 1, Edit = 2, Read = 3, Audit = 4 } #endregion #region 批分类型 /// /// 批分类型 /// public enum BatchesType { /// /// 正批分 /// ForwardBatch = 0, /// /// 反批分 /// ReverseBatch = 1 } #endregion #region 打印类型 /// /// 打印类型 /// public enum PrintType { /// /// 物流单 /// Logistics = 0, /// /// 出库单 /// Invoice = 1, /// /// 分拣单 /// Sorting = 2, /// /// 装箱码 /// Pack = 3 } #endregion #region 仓库批分字段 /// /// 仓库批分字段 /// public enum StockBatchesField { /// /// 编辑量 /// EditingQty = 0, /// /// 分配量 /// AllocationQty = 1 } #endregion #region 批分通用实体 /// /// 批分通用实体 /// public class BatchesEntity { /// /// 批分时记录实体 /// public TN_WM_OUT_MSTEntity OutMst { get; set; } /// /// 单据号 /// public string OpNo { get; set; } /// /// 物料编码 /// public string ItemCode { get; set; } /// /// 物料状态 /// public string ItemState { get; set; } /// /// 到货批次 /// public string ItemArrivalLot { get; set; } /// /// 生产批次 /// public string ItemProductionLot { get; set; } /// /// 托盘码 /// public string TrayCode { get; set; } /// /// 货主 /// public string Owner { get; set; } /// /// 待批数量 /// public decimal Qty { get; set; } /// /// 是否过滤 /// public bool IsFilter { get; set; } /// /// 仓库 /// public string StockCode { get; set; } /// /// 库区 /// public string AreaCode { get; set; } } #endregion #region 批分返回结果 /// /// 批分返回结果 /// public class BatchesResult { /// /// 构造方法 /// public BatchesResult() { this.OutLockingDtlList = new List(); this.ReduceInventoryMstList = new List(); this.ReduceInventoryDtlList = new List(); this.OutMstList = new List(); this.SortingList = new List(); this.StockAreaList = new List(); this.WaveMst = new TN_WM_WAVE_MSTEntity(); this.ShortageOutList = new List(); this.CancelAndAllShortageOut = new List(); } /// /// 库存锁定明细 /// public List OutLockingDtlList { get; set; } /// /// 出库单 /// public List ReduceInventoryMstList { get; set; } /// /// 出库单子表 /// public List ReduceInventoryDtlList { get; set; } /// /// 出库订单数据 /// public List OutMstList { get; set; } /// /// 分拣单 /// public List SortingList { get; set; } /// /// 库区量表 /// public List StockAreaList { get; set; } /// /// 托盘物料关联 /// public List TrayItemList { get; set; } /// /// 波次 /// public TN_WM_WAVE_MSTEntity WaveMst { get; set; } /// /// 缺货生成新的发货单 /// public List ShortageOutList { get; set; } /// /// 所有取消跟全部缺货的发货单 /// public List CancelAndAllShortageOut { get; set; } } #endregion }