pan
2025-11-16 e31ca4e3e1774b7ddb832e8ec498b5ada24b2608
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
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 FactoryArea { 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 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-已回库
    }
 
 
}