using System;
using System.Collections.Generic;
//用于存放各种返回值类的集合
namespace HH.WCS.SJML.Entitys
{
///
/// 可出库货位信息
///
public class outAssignLocation
{
}
public class RoadTask
{
///
/// 巷道
///
public string roadWay { get; set; }
///
/// 当前设备编码待执行的任务数量
///
public int taskNum { get; set; }
}
public class LocationLogic
{
///
/// 巷道
///
public string location { get; set; }
///
/// 当前设备编码待执行的任务数量
///
public int relationCount { get; set; }
}
#region 计算出库分组后的数据
///
/// 计算出库分组后的数据
///
public class itemQty
{
///
/// 物料名称
///
public string ID { get; set; }
///
/// 物料数量或托盘数量
///
public decimal Qty { get; set; }
///
/// 包装数量
///
public decimal PAKQty { get; set; }
///
/// 物料数量或托盘数量
///
public decimal CN_F_ALLOC_QTY { get; set; }
///
/// 物料名称
///
public string itemCode { get; set; }
///
/// 托盘码
///
public string trayCode { get; set; }
///
/// 所在货位
///
public string locationCode { get; set; }
///
/// 所在库区
///
public string stockAreaCode { get; set; }
///
/// 贮存状态 空/满/不满
///
public string useState { get; set; }
///
/// 托盘分割位置
///
public string trayGrid { get; set; }
///
/// 当前托盘共有几个分隔位置
///
public int latticeNum { get; set; }
///
/// 业务日期
///
public DateTime opTime { get; set; }
///
/// 托盘规格
///
public string traySpec { get; set; }
///
/// 批次号
///
public string lotNo { get; set; }
///
/// 货主
///
public string CN_S_OWNER { get; set; }
///
/// 物料状态
///
public string CN_S_ITEM_STATE { get; set; }
///
/// 生产批次号
///
public string prodBatchCode { get; set; }
///
/// 生产日期
///
public string productDate { get; set; }
///
/// 过期日期
///
public string ExpireDate { get; set; }
///
/// 时间戳
///
public string CN_S_TIMESTAMP { get; set; }
///
/// 包装单位
///
public string packUnit { get; set; }
}
#endregion
public class MsgEntity
{
public string Msg { get; set; }
public bool Success { get; set; }
public object Data { get; set; }
}
#region 计算出库库区算法分组后的数据
public class OutAreaItemQty
{
///
/// 库区编码
///
public string areaCode { get; set; }
///
/// 物料编码
///
public string itemCode { get; set; }
///
/// 数量
///
public decimal Qty { get; set; }
///
/// 货位编码
///
public string locationCode { get; set; }
///
/// 库区优先级
///
public int Prior { get; set; }
}
#endregion
#region 物料详细实体
///
/// 入库物料详细实体
///
public class itemInClass
{
///
/// 物料编码
///
public string itemCode { get; set; }
///
/// 包装编码
///
public string packingCode { get; set; }
///
/// 批次号
///
public string lotNo { get; set; }
///
/// 是否可以混放
///
public string canMix { get; set; }
///
/// 物料毛重
///
public decimal itemWeight { get; set; }
///
/// 需要补重数量
///
public decimal needFridWeight { get; set; }
///
/// 物料数量
///
public decimal itemQty { get; set; }
///
/// 托盘数量
///
public decimal trayQty { get; set; }
///
/// 最小包装数
///
public decimal CN_F_MIN_PACK_QTY { get; set; }
///
/// 关联的货位
///
public string locationCodes { get; set; }
///
/// 物料的存储类别
///
public string storeType { get; set; }
}
#endregion
#region 库区优先级实体
///
/// 库区优先级实体
///
public class areaPriorClass
{
///
/// 库区编码
///
public string areaCode { get; set; }
///
/// 库区出库优先级
///
public int Prior { get; set; }
public string S_FlowNo { get; set; }
}
#endregion
#region 出库归类因子实体
///
/// 出库归类因子
///
public class itemQueryClass
{
///
/// 仓库
///
public string stockCode { get; set; }
///
/// 库区 返回库区算法调用时不传递此参数
///
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; }
///
/// 物料编码
///
public string itemCode { get; set; }
///
/// 物料数量
///
public decimal itemQty { get; set; }
///
/// 物料名称(2019-1-8 zh add)
///
public string itemName { get; set; }
}
#endregion
#region 可用的逻辑分区
///
/// 可用的逻辑分区
///
public class LogicTrue
{
///
/// 仓库编号
///
public string stockCode { get; set; }
///
/// 库区编码
///
public string areaCode { get; set; }
///
/// 货位编号
///
public string locationCode { get; set; }
///
/// 货位编号
///
public List lstLocationCode { get; set; }
///
/// 优先级
///
public string item_position { get; set; }
///
/// 仓库/库区/货位优先级
///
public string stockarea_position { get; set; }
///
/// 1:仓库 2:库区 3:货位 4:流离式库区 5 流离式货位
///
public int type { get; set; }
}
#endregion
#region 返回的货位实体信息
///
/// 返回的货位实体信息
///
public class feedLocationEntity
{
///
/// 货位编码
///
public string locationCode { get; set; }
///
/// 物料编码
///
public string itemCode { get; set; }
///
/// 补料数量
///
public int feedQty { get; set; }
}
#endregion
#region 返回的货位实体信息
///
/// 返回的货位实体信息
///
public class locationEntity
{
///
/// 货位编码
///
public string locationCode { get; set; }
///
/// 对应的AGV编码
///
public int avcLocationCode { get; set; }
}
#endregion
#region 设备信息-调用AMS接口获取
///
/// 设备信息-调用AMS接口获取
///
public class Device
{
///
/// 设备编码
///
public string deviceCode { get; set; }
///
/// 设备分管巷道 多个巷道以逗号分隔
///
public string roadWay { get; set; }
///
/// 当前设备编码待执行的任务数量
///
public int taskNum { get; set; }
}
#endregion
#region 算法策略
public enum OutStrategy
{
FirstInFirstOut,//先进先出
IntegerTrayFirstOut,//出库整托优先
FirstWarrantFirstOut// 质保快到期早先出
}
#endregion
public enum FeedGoodType
{
EmptyTrayFirst,//优先空托
FridTrayFirst,//优先补料
None//不传递策略
}
///
/// trayCapacity 归类后规格对应的物料
///
public class capacityRelateItem
{
public string itemCode { get; set; }
public string lotNo { get; set; }
public decimal itemQty { get; set; }
}
#region 按重量补料
///
/// 不满托盘可以补料的重量
///
public class FridTrayWeight
{
///
/// 载重
///
public decimal loadWeight { get; set; }
///
/// 自身毛重
///
public decimal crossWeight { get; set; }
///
/// 实际称重
///
public decimal realWeight { get; set; }
///
/// 该托盘剩余可放重量
///
public decimal fridWeight { get; set; }
///
/// 托盘码
///
public string trayCode { get; set; }
public string traySpec { get; set; }
///
/// 所在货位
///
public string locationCode { get; set; }
public List lstItem { get; set; }
}
///
/// 存放托盘中的物料信息
///
public class ItemInWeight
{
public string itemCode { get; set; }
public string lotNo { get; set; }
public int itemQty { get; set; }
}
///
/// 补料空托盘信息(数据库读取)
///
public class FeedEmptyTrayEntity
{
///
/// 货位编码
///
public string locationCode { get; set; }
///
/// 托盘码
///
public string trayCode { get; set; }
///
/// 规格
///
public string traySpec { get; set; }
///
/// 规格
///
public decimal bareWeight { get; set; }
}
#endregion
#region 未满托盘补料
///
/// 不满托盘可以补料的重量
///
public class FridTray
{
///
/// 托盘码
///
public string trayCode { get; set; }
public string traySpec { get; set; }
///
/// 所在货位
///
public string locationCode { get; set; }
///
/// 托盘物料混放上限
///
public int CN_N_GOODUPLINE { get; set; }
public List lstItem { get; set; }
}
///
/// 存放托盘中的物料信息
///
public class ItemInTray
{
public string itemCode { get; set; }
public string lotNo { get; set; }
public int itemQty { get; set; }
}
#endregion
///
/// trayCapacity 归类后规格对应的物料
///
public class rowTaskNT
{
public string row { get; set; }
public int taskNum { get; set; }
public int GoodLocationNum { get; set; }
public int canInLocation { get; set; }
public int canOutLocation { get; set; }
}
}