pan
2025-11-30 c100108c13c74ebd99253c4c144b262720b55ecd
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    
    /// <summary>
    /// 拣选记录表
    /// </summary>
 
    [SugarTable(nameof(Dt_PickingRecord), "拣选记录表")]
 
    public class Dt_PickingRecord : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
 
        public int TaskNo { get; set; } 
        public string OrderNo { get; set; }
        public int OrderDetailId { get; set; }
 
        public string PalletCode { get; set; }
 
        public int OutStockLockId { get; set; }
        public string MaterielCode { get; set; }
 
        [SugarColumn(Length = 100)]
        public string Barcode { get; set; }
 
        public decimal PickQuantity { get; set; }
 
        public DateTime PickTime { get; set; } = DateTime.Now;
 
        [SugarColumn(Length = 50)]
        public string Operator { get; set; }
 
        [SugarColumn(Length = 50)]
        public string LocationCode { get; set; }
 
        public int StockId { get; set; }
 
        public string BatchNo { get; set; }
 
        public bool IsCancelled { get; set; }
 
        public DateTime? CancelTime { get; set; }
 
        public string CancelOperator { get; set; }
        public string FactoryArea { get; set; }
 
        /// <summary>
        /// 仓库
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "warehouseCode", ColumnDescription = "仓库")]
        public string? WarehouseCode { get; set; }
        /// <summary>
        /// 行号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "lineNo", ColumnDescription = "行号")]
        public string? lineNo { get; set; }
        /// <summary>
        /// 供应商编号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "supplyCode", ColumnDescription = "供应商编号")]
        public string? SupplyCode { get; set; }
 
        /// <summary>
        /// 数量
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "barcodeQty", ColumnDescription = "数量")]
        public decimal BarcodeQty { get; set; }
 
        /// <summary>
        /// 单位
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "barcodeUnit", ColumnDescription = "单位")]
        public string BarcodeUnit { get; set; } = null!;
        /// <summary>
        ///  
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "barcodemoveQty", ColumnDescription = "数量")]
        public decimal BarcodeMoveQty { get; set; }
    }
 
 
    /// <summary>
    /// 回库记录表
    /// </summary>
    [SugarTable("Dt_ReturnStockRecord")]
    public class Dt_ReturnStockRecord : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }
 
        public string TaskNo { get; set; }
        public string PalletId { get; set; }
        public string LocationId { get; set; }
        public string NewLocationId { get; set; }
 
        /// <summary>
        /// 回库数量
        /// </summary>
        public decimal ReturnQty { get; set; }
    
        public DateTime ReturnTime { get; set; }
        /// <summary>
        /// 0-待回库 1-已回库
        /// </summary>
        public int Status { get; set; }
    }
 
    /// <summary>
    /// 拆包记录表
    /// </summary>
    [SugarTable("Dt_SplitPackageRecord")]
    public class Dt_SplitPackageRecord: BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        public string OrderNo { get; set; }
        public int? TaskNum { get; set; }
        public string PalletCode { get; set; }
        public int StockId { get; set; }
        public bool IsReverted { get; set; } = false;
 
        public bool IsAutoSplit { get; set; } = false;
        public int OutStockLockInfoId { get; set; } // 关联的出库锁定信息
        public string OriginalBarcode { get; set; } // 原条码
        public string NewBarcode { get; set; } // 新条码
 
        public string FactoryArea { get; set; } 
        /// <summary>
        /// 拆分数量(新条码数量)
        /// </summary>
        public decimal SplitQty { get; set; }
 
        public decimal RemainQuantity { get; set; }
 
        public string MaterielCode { get; set; } // 物料编码
        public DateTime SplitTime { get; set; } = DateTime.Now;
        public string Operator { get; set; } // 操作人
        public int Status { get; set; } // 状态:1-已拆包 2-已拣选 3-已回库
 
        public DateTime RevertTime { get; set; }
 
        public string RevertOperator { get; set; }
        public int PreviousSplitRecordId { get; set; }
 
        [SugarColumn(IsNullable = true)]
        public decimal? OriginalStockQuantity { get; set; }
 
       public decimal StockBeforeSplit { get; set; }
        public decimal AssignBeforeSplit { get; set; }
    }
 
 
    /// <summary>
    /// 空箱取走记录表
    /// </summary>
    public class Dt_EmptyPalletRemoval
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
 
        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; }
    }
 
 
}