using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WCS.Model.ApiModel.Stocktaking; namespace WCS.BLL.DbModels { /// /// 盘点单据 /// [SugarTable("wcs_stock_taking_order")] public class StockTakingOrder { /// /// 主键 自增Id /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)] public int Id { get; set; } /// /// 盘点单据号 /// [SugarColumn(ColumnName = "stocktaking_order_number", Length = 50, IsNullable = false, ColumnDescription = "盘点单据号")] public string StocktakingOrderNumber { get; set; } /// /// 盘点单据状态 /// [SugarColumn(ColumnName = "stocktaking_order_status", IsNullable = false, ColumnDescription = "盘点单据状态")] public StocktakingOrderStatus StocktakingOrderStatus { get; set; } = StocktakingOrderStatus.未盘点; /// /// 盘点单据来源 /// [SugarColumn(ColumnName = "StocktakingOrderSource", Length = 50, IsNullable = true, ColumnDescription = "单据来源")] public string? StocktakingOrderSource { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_time", IsNullable = false, ColumnDescription = "创建时间")] public DateTime CreateTime { get; set; } = DateTime.Now; /// /// 创建人 /// [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true, ColumnDescription = "创建人")] public string CreateUser { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "update_time", IsNullable = false, ColumnDescription = "更新时间")] public DateTime UpdateTime { get; set; } = DateTime.Now; /// /// 货架的组别、区域(区分单个软件管哪些货架的,前端的配置文件配置一个组别,查询时只显示当前组别的货架) /// [SugarColumn(ColumnName = "group_name", Length = 50, IsNullable = true, DefaultValue = "0", ColumnDescription = "货架的组别、区域(区分单个软件管哪些货架的,前端的配置文件配置一个组别,查询时只显示当前组别的货架)")] public string GroupName { get; set; } = string.Empty; /// /// 序号 /// [SugarColumn(IsIgnore = true)] public int RowNumber { get; set; } /// /// 是否已经选择 /// [SugarColumn(IsIgnore = true)] public bool IsSelected { get; set; } } }