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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
using HH.WMS.Common.Algorithm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace HH.WMS.Common.Algorithm
{
    #region 出库算法以及出库库区算法传入JSON数据模型
    /// <summary>
    /// 出库算法传入JSON数据模型
    /// </summary>
    public class OutAlgorEnitty
    {
        /// <summary>
        /// 设备信息 *
        /// </summary>
        public List<Device> lstDevice { get; set; }
        /// <summary>
        /// 出库库区优先级 *
        /// </summary>
        private bool _lockLocation = true;
 
        /// <summary>
        /// 是否锁定货位 
        /// </summary>
        public bool lockLocation
        {
            get
            {
                return _lockLocation;
            }
            set
            {
                _lockLocation = value;
            }
        }
        public List<areaPriorClass> lstAreaPrior { get; set; }
        /// <summary>
        /// 出库详细信息 *
        /// </summary>
        public List<itemQueryClass> lstQueryItem { get; set; }
 
    }
    /// <summary>
    /// 出库算法堆栈式货位及日期数据
    /// </summary>
    public class OutFirstLocAndDate
    {
      
        /// <summary>
        /// 出库托盘码
        /// </summary>
        public string locationCode;
        /// <summary>
        /// 层号
        /// </summary>
        public string index;
        /// <summary>
        /// 出库托盘码
        /// </summary>
        public string trayCode;
        /// <summary>
        /// 出库托盘码
        /// </summary>
        public string areaCode;
        /// <summary>
        /// 出库托盘码
        /// </summary>
        public string itemCode;
        /// <summary>
        /// 该货位对应托盘中的最早的可出库日期
        /// </summary>
        public DateTime firstOutDate;
 
    }
    /// <summary>
    /// 用于获取出库详细数据 同时用于库区算法传入JSON数据模型
    /// </summary>
    public class Out_AreaItemClass
    {
        /// <summary>
        /// 仓库 
        /// </summary>
        public string stockCode { get; set; }
 
        /// <summary>
        /// 库区   返回库区算法调用时不传递此参数
        /// </summary>
        public string areaCode { get; set; }
 
 
        #region 定义条件枚举
        /* 后期如果有追加条件  则添加所需检索的字段 
         * 追加条件后 需要在出库的BLL层GroupAreaCode()函数中加入分组条件定义  还需要在返回类实体中定义
         * 此处关键  不然后期算法会出现问题
         * 目的是为了保证相同情况下物料编码不会重复请求  将相同物料编码数量进行汇总
        */
        /// <summary>
        /// 条件 -货主
        /// </summary>
        public string ownerName { get; set; }
 
        /// <summary>
        /// 条件 -批次号
        /// </summary>
        public string batchCode { get; set; }
        /// <summary>
        /// 条件 -生产批次号
        /// </summary>
        public string prodBatchCode { get; set; }
 
        /// <summary>
        /// 条件 -物料状态
        /// </summary>
        public string itemState { get; set; }
 
        #endregion
 
 
        /// <summary>
        /// 物料编码
        /// </summary>
        public string itemCode { get; set; }
        /// <summary>
        /// 物料数量
        /// </summary>
        public decimal itemQty { get; set; }
    }
 
 
    /// <summary>
    /// 补料算法  不纳入补料的托盘信息
    /// </summary>
    public class FeedEliminateClass
    {
        /// <summary>
        /// 所在货位
        /// </summary>
        public string locationCode { get; set; }
 
        /// <summary>
        /// 托盘码
        /// </summary>
        public string trayCode { get; set; }
    }
 
    public class itemInClassCombination
    {
        public List<itemInClass[]> lstCombin;
    }
    #endregion
 
 
}