using SqlSugar; namespace WCS.BLL.DbModels { /// /// 出库单据 /// [SugarTable("out_order")] public class OutOrder { /// /// 主键 自增Id /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)] public int Id { get; set; } /// /// 出库单据号 /// [SugarColumn(ColumnName = "order_number", Length = 50, IsNullable = false, ColumnDescription = "出库单据号")] public string OrderNumber { get; set; } /// /// 单据状态 /// [SugarColumn(ColumnName = "order_status", IsNullable = false, ColumnDescription = "单据状态")] public OutOrderStatus OrderStatus { get; set; } = OutOrderStatus.未出库; /// /// 单据来源 /// [SugarColumn(ColumnName = "order_source", Length = 50, IsNullable = true, ColumnDescription = "单据来源")] public string OrderSource { get; set; } /// /// 单据类型 /// [SugarColumn(ColumnName = "order_type", Length = 50, IsNullable = true, ColumnDescription = "单据类型")] public string OrderType { get; set; } /// /// 单据同步类型 /// [SugarColumn(ColumnName = "sync_type", Length = 50, IsNullable = true, ColumnDescription = "单据同步类型:ByMatCode,ByMatSn")] public string SyncType { get; set; } = string.Empty; /// /// 创建时间 /// [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; } } public enum OutOrderStatus { 未出库 = 0, 部分出库 = 1, 全部出库 = 2 } }