647556386
2025-11-30 04bd9fa1060d711e0e90492c103699f50b49ba17
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEA_DTO.Outbound
{
 
 
    public class PalletLockInfoDto
    {
        public int Id { get; set; }
        public string OrderNo { get; set; }
        public string BatchNo { get; set; }
        public string MaterielCode { get; set; }
        public string CurrentBarcode { get; set; }
        public decimal AssignQuantity { get; set; }
        public decimal PickedQty { get; set; }
        public int Status { get; set; }
        public string LocationCode { get; set; }
        public string PalletCode { get; set; }
        public bool CanSplit { get; set; }
        public bool CanPick { get; set; }
    }
 
    #region 请求DTO
 
    public class ConfirmPickingRequest
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
 
        [Required(ErrorMessage = "条码不能为空")]
        public string Barcode { get; set; }
    }
 
    public class CancelPickingRequest
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
 
        [Required(ErrorMessage = "条码不能为空")]
        public string Barcode { get; set; }
 
        public int PickingHistoryId { get; set; }
    }
 
 
 
    public class CancelSplitRequest
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
 
        [Required(ErrorMessage = "新条码不能为空")]
        public string NewBarcode { get; set; }
    }
 
    public class ReturnStockRequest
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
    }
    public class CancelSplitDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
 
        [Required(ErrorMessage = "新条码不能为空")]
        public string NewBarcode { get; set; }
    }
 
    public class ReturnStockDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
    }
 
    public class PalletLocksDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
    }
 
    #endregion
 
    #region DTO类
 
    public class PalletPickedInfoDto
    {
        public int Id { get; set; }
        public string OrderNo { get; set; }
        public int OrderDetailId { get; set; }
        public string PalletCode { get; set; }
        public string Barcode { get; set; }
        public string MaterielCode { get; set; }
        public decimal PickedQty { get; set; }
        public DateTime PickTime { get; set; }
        public string Operator { get; set; }
        public string LocationCode { get; set; }
    }
 
    public class PalletStatusDto
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public int Status { get; set; }
        public string StatusText { get; set; }
        public int TotalItems { get; set; }
        public int CompletedItems { get; set; }
        public int PendingItems { get; set; }
    }
 
    public class SplitPackageInfoDto
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public string Barcode { get; set; }
        public string MaterielCode { get; set; }
        public decimal RemainQuantity { get; set; }
        public decimal AssignQuantity { get; set; }
        public decimal PickedQty { get; set; }
    }
 
    public class EmptyPalletRemovalDto
    {
        public string OrderNo { get; set; }
        public string PalletCode { get; set; }
        public DateTime RemovalTime { get; set; }
        public string Operator { get; set; }
        public int CompletedItemsCount { get; set; }
        public decimal TotalPickedQuantity { get; set; }
    }
 
    public class RemoveEmptyPalletDto
    {
        [Required(ErrorMessage = "订单号不能为空")]
        public string OrderNo { get; set; }
 
        [Required(ErrorMessage = "托盘号不能为空")]
        public string PalletCode { get; set; }
    }
    #endregion
    #region DTO类
 
 
 
    public class SplitPackageChainInfoDto
    {
        public string OriginalBarcode { get; set; }
        public string RootBarcode { get; set; } // 新增:根条码
        public int TotalSplitTimes { get; set; }
        public string ChainType { get; set; } // "root" 或 "branch"
        public List<SplitChainItemDto> SplitChain { get; set; }
    }
 
    public class SplitChainItemDto
    {
        public DateTime SplitTime { get; set; }
        public string OriginalBarcode { get; set; }
        public string NewBarcode { get; set; }
        public decimal SplitQuantity { get; set; }
        public string Operator { get; set; }
        public bool IsReverted { get; set; }
    }
 
    #endregion
}