using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.Common.Algorithm.Out { #region 出库返回物料对应货位 /// /// 出库算法返回实体 /// public class OutResultAllEntity { /// /// 是否成功 /// public bool Success { get; set; } /// /// 错误提示 /// public string Msg { get; set; } /// /// 物料可能对应多个托盘存在于多个货位 /// public List itemOutResult { get; set; } } /// /// 出库算法返回实体 /// public class OutResultEntity { /// /// 是否成功 /// public bool Success { get; set; } /// /// 错误提示 /// public string Msg { get; set; } /// /// 物料编码 /// public string itemCode { get; set; } #region 根据条件返回 响应出库条件 /* 与出库方法传递的形参类型 * 当传递的形参中加入新的条件 此处也应追加 * 如果不追加 返回时前台不知道出的物料条件 */ /// /// 库区 /// public string areaCode { get; set; } /// /// 条件 -货主 /// public string ownerName { get; set; } /// /// 条件 -批次号 /// public string batchCode { get; set; } /// /// 条件 -生产批次号 /// public string prodBatchCode { get; set; } /// /// 条件 -物料状态 /// public string itemState { get; set; } #endregion /// /// 物料可能对应多个托盘存在于多个货位 /// public List itemLocations { get; set; } } public class OutResultEntityNew { /// /// 是否成功 /// public bool Success { get; set; } /// /// 错误提示 /// public string Msg { get; set; } /// /// 不满足出库数量的物料信息 /// public List lstItemNotEnough { get; set; } /// /// 物料可能对应多个托盘存在于多个货位 /// public List itemLocations { get; set; } } #region 用于出库算法返回的详细信息 /// /// 用于出库算法返回的详细信息 /// public class itemTrayLocation { /// /// 库区编码 /// public string areaCode { get; set; } /// /// 托盘码 /// public string trayCode { get; set; } /// /// 托盘货格位置 /// public string trayGrid { get; set; } /// /// 当前分格位置拣货数量 /// public int itemQty { get; set; } /// /// 货位码 /// public string locationCode { get; set; } /// /// 货位码 /// public string index { get; set; } /// /// AGV对照码 /// public int agvLocationCode { get; set; } } #endregion #region 用于出库算法返回的详细信息新 /// /// 用于出库算法返回的详细信息 /// public class trayOutItem { /// /// 库区编码 /// public string areaCode { get; set; } /// /// 托盘码 /// public string trayCode { get; set; } /// /// 托盘货格位置 /// public string trayGrid { get; set; } /// /// 当前分格位置拣货数量 /// public decimal itemQty { get; set; } /// /// 是否需要分拣Y/N /// public string needSort { get; set; } /// /// 包装单位 /// public string packUnit { get; set; } /// /// 包装数量 /// public decimal packQty { get; set; } /// /// 货位码 /// public string locationCode { get; set; } /// /// 货主 /// public string ownerName { get; set; } /// /// 批次号 /// public string batchCode { get; set; } /// /// 生产批次号 /// public string prodBatchCode { get; set; } /// /// 物料状态 /// public string itemState { get; set; } /// /// 物料编码 /// public string itemCode { get; set; } /// /// 时间戳 /// public string CN_S_TIMESTAMP { get; set; } /// /// AGV对照码 /// public int agvLocationCode { get; set; } } #endregion #endregion #region 出库返回库区 public class OutAreaResultAllEntity { /// /// 是否成功 /// public bool Success { get; set; } /// /// 错误提示 /// public string Msg { get; set; } /// /// 物料可能对应多个托盘存在于多个货位 /// public List itemOutAreaResult { get; set; } } /// /// 出库算法 返回库区算法 /// public class OutAreaResultEntity { /// /// 仓库 /// public string stockCode { get; set; } /// /// 库区 返回库区算法调用时不传递此参数 /// public string areaCode { get; set; } #region 根据条件返回 响应出库条件 /* 与出库方法传递的形参类型 * 当传递的形参中加入新的条件 此处也应追加 * 如果不追加 返回时前台不知道出的物料条件 */ /// /// 条件 -货主 /// public string ownerName { get; set; } /// /// 条件 -批次号 /// public string batchCode { get; set; } /// /// 条件 -生产批次号 /// public string prodBatchCode { get; set; } /// /// 条件 -物料状态 /// public string itemState { get; set; } #endregion /// /// 出库物料信息 /// public List lstItem { get; set; } } public class itemOutClass { /// /// 是否成功 /// public bool Success { get; set; } /// /// 错误提示 /// public string Msg { get; set; } /// /// 物料编码 /// public string itemCode { get; set; } /// /// 物料数量 /// public decimal itemQty { get; set; } } #endregion #region 补料算法返回实体信息 /// /// 补料算法返回实体信息 /// public class OutFeedResultEntity { /// /// 是否计算成功 /// public bool Success { get; set; } /// /// 失败的消息 /// public string Msg { get; set; } /// /// 非空托盘物料摆放信息展示 /// public List lstFeedItem { get; set; } /// /// 空托盘补料返回信息 /// public List lstEmptyTray { get; set; } } /// /// 存料存放信息 /// public class FeedItemEntity { /// /// 物料编码 /// public string itemCode { get; set; } /// /// 批次号 /// public string lotNo { get; set; } /// /// 物料可存放数量 /// public decimal itemQty { get; set; } /// /// 托盘所在货位 /// public string locationCode { get; set; } /// /// 托盘码 /// public string trayCode { get; set; } /// /// 托盘分隔位置 /// public string trayGrid { get; set; } } /// /// 存料存放信息 根据重量补料 /// public class FeedItemWeightEntity { /// /// 托盘所在货位 /// public string locationCode { get; set; } /// /// 托盘码 /// public string trayCode { get; set; } /// /// 托盘分隔位置 /// public string trayGrid { get; set; } public List lstItem { get; set; } } /// /// 空托盘补料返回信息 /// public class FeedTrayEmptyEntity { /// /// 托盘吗 /// public string trayCode { get; set; } /// /// 托盘所在货位码 /// public string locationCode { get; set; } } #endregion }