huangxiaoqiang
2025-12-19 4a4c9c93c3ae8c809368dde96fe822a27fd86d53
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
using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models
{
    /// <summary>
    /// 调拨单明细
    /// </summary>
    [SugarTable(nameof(Dt_AllocateOrderDetail), "调拨单明细")]
    public class Dt_AllocateOrderDetail : BaseEntity
    {
        /// <summary>
        /// 主键ID(自增)
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")]
        public int Id { get; set; }
 
        /// <summary>
        /// 关联订单ID(对应Dt_AllocateOrder.Id)
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "关联订单ID")]
        public int OrderId { get; set; }
 
        /// <summary>
        /// 物料编码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "物料编码")]
        public string MaterielCode { get; set; }
 
 
        public string MaterielName { get; set; }
        /// <summary>
        /// 批次号
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "批次号")]
        public string BatchNo { get; set; }
 
        /// <summary>
        /// 订单数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "订单数量")]
        public decimal OrderQuantity { get; set; }
 
        /// <summary>
        /// 收货数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "收货数量")]
        public decimal ReceiptQuantity { get; set; }
 
        /// <summary>
        /// 超额入库数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "超额入库数量")]
        public decimal OverInQuantity { get; set; }
 
        /// <summary>
        /// 明细状态
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "明细状态")]
        public int OrderDetailStatus { get; set; }
 
        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "单位")]
        public string Unit { get; set; }
 
        /// <summary>
        /// 行号
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 20, ColumnDescription = "行号")]
        public string LineNo { get; set; }
 
        /// <summary>
        /// 仓库编码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "仓库编码")]
        public string WarehouseCode { get; set; }
 
        /// <summary>
        /// 条形码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码")]
        public string Barcode { get; set; }
 
        /// <summary>
        /// 条形码
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码")]
        public string BoxSN { get; set; }
 
 
        /// <summary>
        /// 供应商编号
        /// 默认值:
        ///</summary>
        [SugarColumn(ColumnName = "supplyCode", ColumnDescription = "供应商编号")]
        public string? SupplyCode { get; set; }
 
        /// <summary>
        /// 条形码数量
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "条形码数量")]
        public decimal? BarcodeQty { get; set; }
 
        /// <summary>
        /// 条形码单位
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "条形码单位")]
        public string BarcodeUnit { get; set; }
 
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(IsNullable = false, Length = 255, ColumnDescription = "备注")]
        public string Remark { get; set; }
 
        /// <summary>
        /// 回传MES
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDescription = "回传MES")]
        public int ReturnToMESStatus { get; set; } = 0;
        [SugarColumn(IsNullable = true, ColumnDescription = "过期日期")]
        public DateTime ValidDate { get; set; }
    }
}