!提交代码
This commit is contained in:
61
WCS.BLL/DbModels/OutOrder.cs
Normal file
61
WCS.BLL/DbModels/OutOrder.cs
Normal file
@ -0,0 +1,61 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace WCS.BLL.DbModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单据
|
||||
/// </summary>
|
||||
[SugarTable("out_order")]
|
||||
public class OutOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键 自增Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出库单据号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_number", Length = 50, IsNullable = false, ColumnDescription = "出库单据号")]
|
||||
public string OrderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_status", IsNullable = false, ColumnDescription = "单据状态")]
|
||||
public OutOrderStatus OrderStatus { get; set; } = OutOrderStatus.未出库;
|
||||
|
||||
/// <summary>
|
||||
/// 单据来源
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_source", Length = 50, IsNullable = true, ColumnDescription = "单据来源")]
|
||||
public string OrderSource { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据类型
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "order_type", Length = 50, IsNullable = true, ColumnDescription = "单据类型")]
|
||||
public string OrderType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "create_time", IsNullable = false, ColumnDescription = "入库时间")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true, ColumnDescription = "操作员")]
|
||||
public string CreateUser { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public enum OutOrderStatus
|
||||
{
|
||||
未出库 = 0,
|
||||
部分出库 = 1,
|
||||
全部出库 = 2
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user