/******************************************************************************** ** auth: DBS ** date: 2018/11/20 20:06:57 ** desc: 尚未编写描述 ** Ver.: V1.0.0 *********************************************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HH.WMS.Entitys.Basic; using HH.WMS.Entitys.Sys; using HH.WMS.Entitys.Algorithm; namespace HH.WMS.Common { public static class SysCache { public static string GetStrategyValue(string stockCode, string key) { TN_WM_B_STRATEGY_VALUEEntity model = _sysStrategy.Find(x => x.CN_S_STOCK_CODE.Equals(stockCode) && x.CN_S_CODE.Equals(key)); if (model == null) return ""; return model.CN_S_VALUE; } public static string GetStrategyValue(string key) { var model = _sysStrategy.Find(x => x.CN_S_CODE == key); if (model != null) return model.CN_S_VALUE; return string.Empty; } private static List _stock = new List(); /// /// 仓库 /// public static List Stock { get { return _stock; } set { _stock = value; } } private static List _area = new List(); public static List Area { get { return _area; } set { _area = value; } } public static List _sysStrategy = new List(); /// /// 系统策略 /// public static List SysStrategy { get { return _sysStrategy; } set { _sysStrategy = value; } } } public static class StrategyKey { /// /// 到货单是否审核 /// public const string ArrivalAutoAudit = "ArrivalAutoAudit"; /// /// 到货是否检验 /// public const string ArrivalAutoInspect = "ArrivalAutoInspect"; /// /// 当前模式 /// public const string CurrentMode = "CurrentMode"; /// /// 入库单自动审核 /// public const string IncreaseAutoAudit = "IncreaseAutoAudit"; /// /// 是否存在单独包装码 /// public const string IsPrintIndependentPackCode = "IsPrintIndependentPackCode"; /// /// 是否启用AMS /// public const string IsUseAms = "IsUseAms"; /// /// 是否启用OMS /// public const string IsUseOms = "IsUseOms"; /// /// 是否启用K3对接 /// public const string IsUseK3 = "IsUseK3"; /// /// 是否启用唯一码 /// public const string IsUseSNCode = "IsUseSNCode"; /// /// 码盘是否直接生成入库单 /// public const string CodeDiscWithIncrease = "CodeDiscWithIncrease"; /// /// 上架是否直接生成入库单 /// public const string UpshelfWithIncrease = "UpshelfWithIncrease"; /// /// 库存不足是否接收上游订单 /// public const string LackContinueReceiveOrder = "LackContinueReceiveOrder"; /// /// 是否系统指引货位 /// public const string IsGuideLocation = "IsGuideLocation"; /// /// 不同物料混放数量上限 /// public const string TrayItemMixingUpNum = "TrayItemMixingUpNum"; /// /// 码盘校验方式 /// public const string PackTrayCheckMode = "PackTrayCheckMode"; /// /// 是否周转箱拣货 /// public const string IsNeedUniPak = "IsNeedUniPak"; /// /// 质保快到期早先出 /// public const string FirstWarrantFirstOut = "FirstWarrantFirstOut"; /// /// 先进先出 /// public const string FirstInFirstOut = "FirstInFirstOut"; /// /// 出库提交审核不校验库存 /// public const string NotCheckStock = "NotCheckStock"; /// /// 任务调度 /// public const string TaskDispatch = "TaskDispatch"; /// /// 批次是否混放 /// public const string MixedBatchesOrNot = "MixedBatchesOrNot"; /// /// 库存是否启用收货区 /// public const string AreaQtyReceiveGood = "AreaQtyReceiveGood"; /// /// 库存是否启用发货区 /// public const string AreaQtyDeliverGood = "AreaQtyDeliverGood"; } }