using HH.WMS.Entitys.Common; using HH.WMS.Entitys.Sys; /*------------------------------------------------------------------ -- COPYRIGHT (C) 2011-2020 hanhe -- ALL RIGHTS RESERVED. -- han he -- CREATE DATE: 2014/06/11 -- CREATE MAN: 姜新军 -- 常量类 -- MODIFY HISTORY: -- MODIFY DATE: -- MODIFY MAN: -- MODIFY DESC: -- MODIFY DATE: -- MODIFY MAN: -- MODIFY DESC: ---------------------------------------------------------------------*/ using System; using System.Collections.Generic; namespace HH.WMS.Common { /// /// 放置常数 /// public static class Constants { public static SysConfigParamEntity SysConfig = new SysConfigParamEntity(); public static List InfDataFormat; /// /// 是:Y 否:N /// public static readonly string Y = "Y"; /// /// 是:Y 否:N /// public static readonly string N = "N"; /// /// 重置初始密码 /// public static readonly string INIT_PASSWORD = "123456"; /// /// 设置当前系统应用ID /// public static readonly string appCode = "AutoWMS"; //Util.ToStutoring(System.Configuration.ConfigurationManager.AppSettings["appCode"]); /// /// 设置系统应用ID /// public static readonly string appOmsCode = "OMS"; /// /// 当前所属系统 /// //public static readonly string WmsApp = Util.ToString(System.Configuration.ConfigurationManager.AppSettings["WmsApp"]); /// /// 用户信息存储到redis Hash表中的实体名称 /// public static readonly string user_HashId = "userEntity"; /// /// 托盘 /// public static readonly string Tray = "托盘"; /// /// 周转箱 /// public static readonly string TurnoverBox = "周转箱"; #region 单据规则名称 /// /// 工单号 /// public static readonly string Rule_WorkOrder = "工单号"; /// /// /// public static readonly string Rule_TaskNo = "任务号"; /// /// 入库订单号 /// public static readonly string Rule_InOrder = "入库订单号"; /// /// 到货单号 /// public static readonly string Rule_Arrival = "到货单号"; /// /// 入库单号 /// public static readonly string Rule_In = "入库单号"; /// /// 检验单号 /// public static readonly string Rule_Inspect = "检验单号"; /// /// 出库单号 /// public static readonly string Rule_Out = "出库单号"; /// /// 批次号 /// public static readonly string BatchNo = "批次号"; /// /// 盘点单号 /// public static readonly string CheckCode = "盘点单号"; /// /// 移库单号 /// public static readonly string MoveCode = "移库单号"; /// /// 移库单 /// public static readonly string MoveOrder = "移库单"; /// /// 还料单 /// public static readonly string ItemBackNo = "还料单号"; #endregion #region 货位状态 /// /// 货位状态-正常 /// public static readonly string Location_State_Normal = "正常"; /// /// 货位状态-盘点锁定 /// public static readonly string Location_Check_Lock = "盘点锁定"; /// /// 货位状态-盘点锁定 /// public static readonly string Location_Carry_Lock = "搬运锁定"; /// /// 货位状态-预入库锁定 /// public static readonly string Location_State_InLock = "预入库锁定"; /// /// 货位状态-入库故障 /// public static readonly string Location_State_InFault = "入库故障"; /// /// 货位状态-预出库锁定 /// public static readonly string Location_State_OutLock = "预出库锁定"; /// /// 货位状态-出库故障 /// public static readonly string Location_State_OutFault = "出库故障"; /// /// 货位状态-全部故障 /// public static readonly string Location_State_AllFault = "全部故障"; /// /// 货位状态-ERP锁定 /// public static readonly string Location_State_ERPLock = "ERP锁定"; #endregion #region 贮存状态 /// /// 贮存状态-空 /// public static readonly string Use_State_Empty = "空"; /// /// 贮存状态-不满 /// public static readonly string Use_State_NoFull = "不满"; /// /// 贮存状态-满 /// public static readonly string Use_State_Full = "满"; #endregion #region 检验单状态 /// /// 检验单状态-待检验 /// public static readonly string Inspect_State_Wait = "待检验"; /// /// 检验单状态-已送检 /// public static readonly string Inspect_State_Already = "已送检"; /// /// 检验单状态-已检验 /// public static readonly string Use_State_Tested = "已检验"; #endregion #region 使用状态 /// /// 未使用 /// public static readonly string TrayState_NotUse = "未使用"; /// /// 使用中 /// public static readonly string TrayState_InUse = "使用中"; #endregion /// /// 出库订单 /// public static readonly string Rule_OutOrder = "出库订单"; /// /// 出库单 /// public static readonly string Rule_OutNo = "出库单"; /// /// 分拣单 /// public static readonly string Rule_SortingNo = "分拣单"; /// /// 波次号 /// public static readonly string Rule_WaveNo = "波次号"; /// /// 分拣单组号 /// public static readonly string SortingGroup = "分拣单组号"; /// /// 分拣单号 /// public static readonly string SortingNo = "分拣单号"; /// /// 合单 /// public static readonly string MergeSplit_Merge = "合单"; /// /// 拆单 /// public static readonly string MergeSplit_Split = "拆单"; /// /// 一进一出 /// public static readonly string Auto_InOut = "一进一出"; /// /// 消耗出库 /// //public static readonly string OutOpType_Consume = "消耗出库"; /// /// 维修销售 /// public static readonly string OutOpType_WxXs = "维修销售"; /// /// 维修消耗 /// public static readonly string OutOpType_WxXh = "维修消耗"; /// /// 发运方式-物流 /// public static readonly string Forwarding_Logistics = "物流"; /// /// 装箱码 /// public static readonly string PackCode = "装箱码"; /// /// 出库 /// public static readonly string Out = "出库"; /// /// 入库 /// public static readonly string In = "入库"; #region 操作类型 /// /// 提交 /// public static readonly string Operate_Sumit = "提交"; /// /// 审核 /// public static readonly string Operate_Audit = "审核"; /// /// 驳回 /// public static readonly string Operate_Reject = "驳回"; /// /// 反审 /// public static readonly string Operate_ReAudit = "反审"; /// /// 合单 /// public static readonly string Operate_MergeOrder = "合单"; #endregion #region 分拣单状态 /// /// 待分拣 /// public static readonly string Sorting_Stay = "待分拣"; /// /// 分拣中 /// public static readonly string Sorting_Being = "分拣中"; /// /// 已分拣 /// public static readonly string Sorting_Sorted = "已分拣"; #endregion #region 波次状态 /// /// 已分播 /// public static readonly string Wave_Sowed = "已分播"; /// /// 分播中 /// public static readonly string Wave_Sowing = "分播中"; #endregion #region 分拣模式 /// /// 先拣后播 /// public static readonly string SeedingMode_DAS = "先拣后播"; /// /// 边拣边播 /// public static readonly string SeedingMode_DPS = "边拣边播"; #endregion #region 创建类型 /// /// 手工 /// public static readonly string CreateType_Manual = "手工"; /// /// 自动 /// public static readonly string CreateType_Auto = "自动"; #endregion #region 策略 /// /// 是否启用AMS /// public const string IsUseAms = "IsUseAms"; /// /// 是否启用K3对接 /// public const string IsUseK3 = "IsUseK3"; /// /// 是否出库模式 /// public static string CL_OutServiceMode = "OutServiceMode"; /// ///盘点模式 /// public static string CL_CheckMode = "Check"; /// ///空闲模式 /// public static string CL_FreekMode = "Free"; /// /// 上班时间 /// public static string Strategy_StartTime = "StartTime"; /// /// 下班时间 /// public static string Strategy_EndTime = "EndTime"; /// /// 内销最多几单一波 /// public static string Strategy_SeveralMaxCreateWave = "SeveralMaxCreateWave"; /// /// 不足时几分钟一波 /// public static string Strategy_LessMinute = "LessMinute"; #endregion /// /// 默认货主 /// public static string DefaultOwner = string.Empty; /// /// 默认货主 /// public static string DefaultOpType = "快速入库"; /// /// 默认物料状态 /// public static string DefaultItemState = string.Empty; /// /// 检验部门-默认 /// public static string InspectDept = "配件公司"; /// /// 修改并提交 /// public static string Operate_EditAndSubmit = "修改并提交"; /// /// 初始化入库 /// public static string OpSystemInit = "初始化入库"; /// /// K3默认保管员编码 /// public static string K3ManagerCode = "003"; /// /// K3默认保管员名称 /// public static string K3ManagerName = "王刚"; /// /// 波次策略 /// public static string WaveStrategy = "波次策略"; /// /// 发票初始化编码 /// public static readonly string PURCHASE_TICKET_NO = "发票初始化编码"; #region 库区结构 /// /// 立库 /// public static readonly string Area_Struc_LiStock = "立库"; /// /// 平库 /// public static readonly string Area_Struc_PingStock = "平库"; /// /// 流离式 /// public static readonly string Area_Struc_LiuLiStock = "流离式"; /// /// 堆叠式 /// public static readonly string Area_Struc_DuiDieStock = "堆叠式"; #endregion #region 任务状态 /// /// 任务状态-未执行 /// public static readonly string TaskState_NoExecuted = "未执行"; /// /// 任务状态-执行中 /// public static readonly string TaskState_Executing = "执行中"; /// /// 任务状态-完成 /// public static readonly string TaskState_Complete = "完成"; /// /// 任务状态-取消 /// public static readonly string TaskState_Cancel = "取消"; #endregion #region 任务执行反馈结果 /// /// 未执行 /// public const int TaskExecState_NoExec = 0; /// /// 执行中 /// public const int TaskExecState_Start = 1; /// /// 完成 /// public const int TaskExecState_Complete = 2; /// /// 开始取货 /// public const int TaskExecState_StartPick = 3; /// /// 取货完成 /// public const int TaskExecState_PickSucc = 4; /// /// 开始卸货 /// public const int TaskExecState_StartUnloading = 5; /// /// 卸货完成 /// public const int TaskExecState_UnloadingSucc = 6; /// /// 取消 /// public const int TaskExecState_Cancel = 7; /// /// 失败 /// public const int TaskExecState_Error = 11; /// /// 空取 /// public const int TaskExecState_NullPickup = 12; /// /// 任务状态集合 /// public static Dictionary TaskStateList = new Dictionary() { { 0, "未执行" },{ 1, "执行中" }, { 2, "完成" },{ 3, "开始取货" }, { 4, "取货完成" },{ 5, "开始卸货" }, { 6, "卸货完成" },{ 7, "取消" }, { 11, "失败" },{ 12, "空取" },{ 1022, "强制完成" } }; #endregion #region 库区标志 /// /// 发货区 /// public static readonly string ShippingArea = "发货区"; /// /// 暂存区 /// public static readonly string TempStorageArea = "暂存区"; /// /// 收货区 /// public static readonly string ReceivingArea = "收货区"; /// /// 托盘区 /// public static readonly string TrayArea = "托盘区"; /// /// 大件区 /// public static readonly string BigArea = "大件区"; /// /// 集散区 /// public static readonly string JSArea = "集散区"; /// /// 虚拟托盘 /// public static readonly string VirtualTray = "虚拟托盘"; /// /// 集散区-集散来源 /// public static string FixedLogicArea_JS_FROM = "JSZHX"; #endregion /// ///码盘时相同物料不通批次,是否允许混放 /// public static string CL_IsAllowMixing = "IsAllowMixing"; /// ///托盘区物料混放上限 /// public static string TPGoodUpLine = "TPGoodUpLine"; /// ///料箱物料混放上限 /// public static string LXGoodUpLine = "LXGoodUpLine"; #region 物料状态 /// /// 合格 /// public static readonly string ItemState_Qualified = "合格"; /// /// 待检 /// public static readonly string ItemState_WaitCheck = "待检"; /// /// 不合格 /// public static readonly string ItemState_UnQualified = "不合格"; /// /// 废品 /// public static readonly string ItemState_Waste = "废品"; #endregion #region 单据状态 /// /// 新建 /// public static readonly string State_New = "新建"; /// /// 已驳回 /// public static readonly string State_Reject = "已驳回"; /// /// 已反审 /// public static readonly string State_ReAudit = "已反审"; /// /// 已提交 /// public static readonly string State_Submit = "已提交"; /// /// 已审核 /// public static readonly string State_Audit = "已审核"; /// /// 已完成 /// //public static readonly string State_Complete = "已完成"; /// /// 执行中 /// public static readonly string State_Executing = "执行中"; /// /// 取消 /// public static readonly string State_Cancel = "已取消"; /// /// 待出库 /// public static readonly string State_WaitOut = "待出库"; /// /// 缺货 /// public static readonly string State_Shortage = "缺货"; /// /// 拦截 /// public static readonly string State_Intercept = "拦截"; /// /// 已复验 /// public static readonly string State_Rechecked = "已复验"; /// /// 已完成 /// public static readonly string State_Completed = "已完成"; /// /// 已送检 /// public static readonly string State_BeenTest = "已送检"; /// /// 已码盘 /// public static readonly string State_BeenOnTray = "已码盘"; /// /// 已检验 /// public static readonly string State_BeenCheck = "已检验"; /// /// 预出库 /// public static readonly string State_PreOut = "预出库"; /// /// 新建 /// public static readonly string State_HK_New = "新建"; /// /// 执行中 /// public static readonly string State_HK_Excuting = "执行中"; /// /// 完成 /// public static readonly string State_HK_Complete = "完成"; /// /// 强制完成 /// public static readonly string State_HK_QZComplete = "强制完成"; #endregion #region 出库模式 /// /// 出库模式 /// public static string CurrentMode_Out = "Out"; /// /// 入库模式 /// public static string CurrentMode_In = "In"; /// /// 预出库模式 /// public static string CurrentMode_WaitOut = "WaitOut"; /// /// 预入库模式 /// public static string CurrentMode_WaitIn = "WaitIn"; #endregion /// /// Out /// public static string Workflow_Out = "Out"; /// /// In /// public static string Workflow_In = "In"; #region 任务类型 /// /// 分拣出 /// public static readonly string TaskType_SortingOut = "分拣出"; /// /// 分拣回 /// public static readonly string TaskType_SortingIn = "分拣回"; /// /// 搬运 /// public static readonly string TaskType_Transport = "暂存搬运"; /// /// 盘点出 /// public static readonly string TaskType_CheckOut = "盘点出"; /// /// 拆包呼叫 /// public static readonly string TaskType_UnpackedCall = "拆包呼叫"; #endregion /// /// U8同步默认货主 /// public static string DefaultU8Owner = "三生成品库"; /// /// 入库任务号 /// public static string TaskNo_In = "入库任务号"; /// /// 出库任务号 /// public static string TaskNo_Out = "出库任务号"; #region 销售形式 /// /// 外销 /// public static string SalesStyle_WX = "外销"; /// /// 内销 /// public static string SalesStyle_NX = "内销"; #endregion #region 波次配置默认值 /// /// 波次创建默认时间 /// public static string WaveDefault_StartTime = "08:30"; /// /// 波次创建默认时间 /// public static string WaveDefault_EndTime = "17:30"; /// /// 波次创建最大出库单数 /// public static string WaveDefault_SeveralMaxCreateWave = "5"; /// /// 波次创建多少时间 /// public static string WaveDefault_LessMinute = "30"; #endregion #region 出库类型 /// /// 缺货出库 /// public static string OutType_ShortageOut = "缺货出库"; /// /// 大件出库 /// public static string OutType_BigOut = "大件出库"; #endregion /// /// 入库任务号 /// public static readonly string Rule_InTaskNo = "入库任务号"; /// /// 出库任务号 /// public static readonly string Rule_OutTaskNo = "出库任务号"; /// /// 转运任务号 /// public static readonly string Rule_TransTaskNo = "转运任务号"; #region 输送单元 /// /// 托盘 /// public static readonly string TU_Tray = "托盘"; /// /// 分拣车 /// public static readonly string TU_PickCar = "分拣车"; /// /// 周转箱 /// public static readonly string TU_UniPak = "周转箱"; /// /// 物料 /// public static readonly string TU_Item = "物料"; #endregion #region 作业类型 /// /// 上游入 /// public static readonly string WorkType_UpperReachesIn = "URIN"; /// /// 上游出 /// public static readonly string WorkType_UpperReachesOut = "UROUT"; /// /// 下游入 /// public static readonly string WorkType_LowerReachesIn = "LRIN"; /// /// 下游出 /// public static readonly string WorkType_LowerReachesOut = "LROUT"; #endregion #region 南通桑德 public static readonly string Rule_CarPound = "大磅单号"; public static readonly string Rule_ItemPound = "小磅单号"; public static readonly string Rule_SerialNum = "流水号"; public static readonly string Rule_StockOut_SerialNum = "领料流水"; #endregion } }