提交代码
This commit is contained in:
72
WCS.BLL/DbModels/StockTakingOrder.cs
Normal file
72
WCS.BLL/DbModels/StockTakingOrder.cs
Normal file
@ -0,0 +1,72 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace WCS.BLL.DbModels
|
||||
{
|
||||
/// <summary>
|
||||
/// 盘点单据
|
||||
/// </summary>
|
||||
[SugarTable("stock_taking_order")]
|
||||
public class StockTakingOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键 自增Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盘点单据号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "stocktaking_order_number", Length = 50, IsNullable = false, ColumnDescription = "盘点单据号")]
|
||||
public string StocktakingOrderNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 盘点单据状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "stocktaking_order_status", IsNullable = false, ColumnDescription = "盘点单据状态")]
|
||||
public StocktakingOrderStatus StocktakingOrderStatus { get; set; } = StocktakingOrderStatus.未盘点;
|
||||
|
||||
/// <summary>
|
||||
/// 盘点单据来源
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "StocktakingOrderSource", Length = 50, IsNullable = true, ColumnDescription = "单据来源")]
|
||||
public string? StocktakingOrderSource { 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; }
|
||||
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public int RowNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 是否已经选择
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool IsSelected { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public enum StocktakingOrderStatus
|
||||
{
|
||||
未盘点 = 0,
|
||||
部分盘点 = 1,
|
||||
盘点完成 = 2,
|
||||
已提交 = 3
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user