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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HH.WMS.Entitys.Basic;
 
namespace HH.WMS.Entitys.Common
{
    #region 表单权限
    /// <summary>
    /// 表单权限
    /// </summary>
    public enum OperateType
    {
        Add = 1,
        Edit = 2,
        Read = 3,
        Audit = 4
    }
    #endregion
 
    #region 批分类型
    /// <summary>
    /// 批分类型
    /// </summary>
    public enum BatchesType
    {
        /// <summary>
        /// 正批分
        /// </summary>
        ForwardBatch = 0,
        /// <summary>
        /// 反批分
        /// </summary>
        ReverseBatch = 1
    }
    #endregion
 
    #region 打印类型
    /// <summary>
    /// 打印类型
    /// </summary>
    public enum PrintType
    {
        /// <summary>
        /// 物流单 
        /// </summary>
        Logistics = 0,
        /// <summary>
        /// 出库单
        /// </summary>
        Invoice = 1,
        /// <summary>
        /// 分拣单
        /// </summary>
        Sorting = 2,
        /// <summary>
        /// 装箱码
        /// </summary>
        Pack = 3
    }
    #endregion
 
    #region 仓库批分字段
    /// <summary>
    /// 仓库批分字段
    /// </summary>
    public enum StockBatchesField
    {
        /// <summary>
        /// 编辑量 
        /// </summary>
        EditingQty = 0,
        /// <summary>
        /// 分配量
        /// </summary>
        AllocationQty = 1
    }
    #endregion
 
    #region 批分通用实体
    /// <summary>
    /// 批分通用实体
    /// </summary>
    public class BatchesEntity
    {
        /// <summary>
        /// 批分时记录实体
        /// </summary>
        public TN_WM_OUT_MSTEntity OutMst { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string OpNo { get; set; }
        /// <summary>
        /// 物料编码
        /// </summary>
        public string ItemCode { get; set; }
        /// <summary>
        /// 物料状态
        /// </summary>
        public string ItemState { get; set; }
        /// <summary>
        /// 到货批次
        /// </summary>
        public string ItemArrivalLot { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string ItemProductionLot { get; set; }
        /// <summary>
        /// 托盘码
        /// </summary>
        public string TrayCode { get; set; }
        /// <summary>
        /// 货主
        /// </summary>
        public string Owner { get; set; }
        /// <summary>
        /// 待批数量
        /// </summary>
        public decimal Qty { get; set; }
        /// <summary>
        /// 是否过滤
        /// </summary>
        public bool IsFilter { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string StockCode { get; set; }
        /// <summary>
        /// 库区
        /// </summary>
        public string AreaCode { get; set; }
    }
    #endregion
 
    #region 批分返回结果
    /// <summary>
    /// 批分返回结果
    /// </summary>
    public class BatchesResult
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        public BatchesResult()
        {
            this.OutLockingDtlList = new List<TN_WM_B_OUTLOCKING_DTLEntity>();
            this.ReduceInventoryMstList = new List<TN_WM_REDUCE_INVENTORY_MSTEntity>();
            this.ReduceInventoryDtlList = new List<TN_WM_REDUCE_INVENTORY_DTLEntity>();
            this.OutMstList = new List<TN_WM_OUT_MSTEntity>();
            this.SortingList = new List<TN_WM_SORTING_LISTEntity>();
            this.StockAreaList = new List<TN_WM_B_AREA_QTYEntity>();
            this.WaveMst = new TN_WM_WAVE_MSTEntity();
            this.ShortageOutList = new List<TN_WM_OUT_MSTEntity>();
            this.CancelAndAllShortageOut = new List<TN_WM_OUT_MSTEntity>();
        }
        /// <summary>
        /// 库存锁定明细
        /// </summary>
        public List<TN_WM_B_OUTLOCKING_DTLEntity> OutLockingDtlList { get; set; }
        /// <summary>
        /// 出库单
        /// </summary>
        public List<TN_WM_REDUCE_INVENTORY_MSTEntity> ReduceInventoryMstList { get; set; }
        /// <summary>
        /// 出库单子表
        /// </summary>
        public List<TN_WM_REDUCE_INVENTORY_DTLEntity> ReduceInventoryDtlList { get; set; }
        /// <summary>
        /// 出库订单数据
        /// </summary>
        public List<TN_WM_OUT_MSTEntity> OutMstList { get; set; }
        /// <summary>
        /// 分拣单
        /// </summary>
        public List<TN_WM_SORTING_LISTEntity> SortingList { get; set; }
        /// <summary>
        /// 库区量表
        /// </summary>
        public List<TN_WM_B_AREA_QTYEntity> StockAreaList { get; set; }
        /// <summary>
        /// 托盘物料关联
        /// </summary>
        public List<TN_WM_B_TRAY_ITEM_MSTEntity> TrayItemList { get; set; }
        /// <summary>
        /// 波次
        /// </summary>
        public TN_WM_WAVE_MSTEntity WaveMst { get; set; }
        /// <summary>
        /// 缺货生成新的发货单
        /// </summary>
        public List<TN_WM_OUT_MSTEntity> ShortageOutList { get; set; }
        /// <summary>
        /// 所有取消跟全部缺货的发货单
        /// </summary>
        public List<TN_WM_OUT_MSTEntity> CancelAndAllShortageOut { get; set; }
    }
    #endregion
}