jt
2021-06-10 5d0d028456874576560552f5a5c4e8b801786f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
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;
        }
        /// <summary>
        /// 类型(Out/In)
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 起点库区
        /// </summary>
        public string StartArea { get; set; }
        /// <summary>
        /// 起点位置
        /// </summary>
        public string StartBit { get; set; }
        /// <summary>
        /// 终点库区
        /// </summary>
        public string EndArea { get; set; }
        /// <summary>
        /// 终点位置
        /// </summary>
        public string EndBit { get; set; }
        /// <summary>
        /// 对象(托盘/周转箱/出库单/分拣单)
        /// </summary>
        public string CirObj { get; set; }
        /// <summary>
        /// 对象值
        /// </summary>
        public string CirObjCode { get; set; }
        /// <summary>
        /// 是否返回所有,否则只返回第一条
        /// </summary>
        public bool ReturnList { get; set; }
    }
 
    /// <summary>
    /// 条件 -- 可拓展
    /// </summary>
    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<object> List { get; set; }
    }
 
    public class RelationConfig
    {
        public RelationSymBol Symbol { get; set; }
        public string Name { get; set; }
        public string Value { get; set; }
    }
    /// <summary>
    /// 逻辑符号
    /// </summary>
    public enum LogicSymBol
    {
        /// <summary>
        /// 并且
        /// </summary>
        And,
        /// <summary>
        /// 或
        /// </summary>
        Or
    }
    /// <summary>
    /// 关系符号
    /// </summary>
    public enum RelationSymBol
    {
        /// <summary>
        /// 等于
        /// </summary>
        Eq,
        /// <summary>
        /// 不等于
        /// </summary>
        Ne
    }
}