using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HH.WMS.Entitys.Common { public class WorkflowEntity : WorkflowCondition { public WorkflowEntity() { } public WorkflowEntity(string type) { this.Type = type; } /// /// 类型(Out/In) /// public string Type { get; set; } /// /// 起点库区 /// public string StartArea { get; set; } /// /// 起点位置 /// public string StartBit { get; set; } /// /// 终点库区 /// public string EndArea { get; set; } /// /// 终点位置 /// public string EndBit { get; set; } /// /// 对象(托盘/周转箱/出库单/分拣单) /// public string CirObj { get; set; } /// /// 对象值 /// public string CirObjCode { get; set; } /// /// 是否返回所有,否则只返回第一条 /// public bool ReturnList { get; set; } } /// /// 条件 -- 可拓展 /// public class WorkflowCondition { //托盘类型(托盘/周转箱) public string TrayType { get; set; } //拣货模式(先拣后播/边拣边播) public string PickModel { get; set; } //是否合并(Y/N) public string NeedMerge { get; set; } //是否整托(Y/N) public string IsFullTray { get; set; } //物料状态(字符串) public string ItemState { get; set; } //托盘是否为空(Y/N) public string IsEmptyTray { get; set; } //销售形式(内销/外销) public string SalesStyle { get; set; } //是否大件(Y/N) public string IsBig { get; set; } } public class ConditionConfig { public LogicSymBol Logic { get; set; } public List List { get; set; } } public class RelationConfig { public RelationSymBol Symbol { get; set; } public string Name { get; set; } public string Value { get; set; } } /// /// 逻辑符号 /// public enum LogicSymBol { /// /// 并且 /// And, /// /// 或 /// Or } /// /// 关系符号 /// public enum RelationSymBol { /// /// 等于 /// Eq, /// /// 不等于 /// Ne } }