刘磊
2025-04-19 823752496e2a4cdb6a1fb36227cd15b8b7135336
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
using SqlSugar;
using WIDESEA_Core.DB.Models;
 
namespace WIDESEA_Model.Models;
 
/// <summary>
/// 系统出库订单明细
///</summary>
[SugarTable("Dt_OutOrderDetail", "系统出库订单明细")]
public class Dt_OutOrderDetail : BaseEntity
{
    /// <summary>
    /// 备  注:    主键,自动增长
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "    主键,自动增长")]
    public int Id { get; set; }
 
    /// <summary>
    /// 备  注:出库单ID(外键)
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "OutOrderId", ColumnDescription = "出库单ID(外键)", IsNullable = false)]
    public int OutOrderId { get; set; }
 
    /// <summary>
    /// 备  注:物料ID
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "MaterialId", ColumnDescription = "物料ID", IsNullable = false)]
    public int MaterialId { get; set; }
 
    /// <summary>
    /// 备  注:    物料名称
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "MaterialName", ColumnDescription = "    物料名称", IsNullable = false, Length = 30)]
    public string MaterialName { get; set; } = null!;
 
    /// <summary>
    /// 备  注:批次号
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "BatchNumber", ColumnDescription = "批次号", IsNullable = false, Length = 30)]
    public string BatchNumber { get; set; } = null!;
 
    /// <summary>
    /// 备  注:出库数量
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "OutboundQuantity", ColumnDescription = "出库数量", IsNullable = false)]
    public decimal OutboundQuantity { get; set; }
 
    /// <summary>
    /// 备  注:分配数量
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "AllocatedQuantity", ColumnDescription = "分配数量", IsNullable = false)]
    public decimal AllocatedQuantity { get; set; }
 
    /// <summary>
    /// 备  注:完成数量
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "CompletedQuantity", ColumnDescription = "完成数量", IsNullable = false)]
    public decimal CompletedQuantity { get; set; }
 
    /// <summary>
    /// 备  注:备注
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", IsNullable = true, Length = 100)]
    public string? Remarks { get; set; }
 
    /// <summary>
    /// 备  注:备用字段1
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "SpareField1", ColumnDescription = "备用字段1", IsNullable = true, Length = 30)]
    public string? SpareField1 { get; set; }
 
    /// <summary>
    /// 备  注:备用字段2
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "SpareField2", ColumnDescription = "备用字段2", IsNullable = true, Length = 30)]
    public string? SpareField2 { get; set; }
 
    /// <summary>
    /// 备  注:备用字段3
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "SpareField3", ColumnDescription = "备用字段3", IsNullable = true, Length = 30)]
    public string? SpareField3 { get; set; }
 
    /// <summary>
    /// 备  注:备用字段4
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "SpareField4", ColumnDescription = "备用字段4", IsNullable = true, Length = 30)]
    public string? SpareField4 { get; set; }
 
    /// <summary>
    /// 备  注:备用字段5
    /// 默认值:
    ///</summary>
    [SugarColumn(ColumnName = "SpareField5", ColumnDescription = "备用字段5", IsNullable = true, Length = 30)]
    public string? SpareField5 { get; set; }
}