using BPA.SAAS.Manage.Comm.Enum; using BPA.SAAS.Manage.Core.Base; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace BPA.SAAS.Manage.Core.DataBase { [SugarTable("bpa_batching")] public class BPA_Batching: IBaseEntity, IGroupId { /// /// 原料编码 /// [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = false)] public string Code { get; set; } /// /// 商品属性 (0成品,1半成品,2,易耗品) /// [SugarColumn(IsNullable = false)] public int Aittribute { get; set; } = 0; /// /// 原料名称 /// [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = false)] public string Batching_Name { get; set; } /// /// 配料类型 /// [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = false)] public string Batching_Type { get; set; } /// /// 原料类型 /// [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)] public string TypeID { get; set; } /// /// 库存单位 /// [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)] public string StockUint { get; set; } /// /// 规格属性 /// [SugarColumn(ColumnDataType = "Nvarchar(500)", IsNullable = false)] public string Specs { get; set; } /// /// 成本价 /// [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)] public decimal Price { get; set; } /// /// 状态 【正常 停用】默认 正常 /// [SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)] public CommonStatus Status { get; set; } = CommonStatus.ENABLE; /// /// 净料率 /// [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)] public decimal netrecovery { get; set; } /// /// 出库单位 /// [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)] public string outstockUint { get; set; } /// /// 换算比例 /// [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)] public decimal proportion { get; set; } [SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true, IsIdentity = true)] public int AutoKey { get; set; } [SugarColumn(ColumnDataType = "Nvarchar(255)", IsNullable = true)] public string ForeignKeyRe { get; set; } /// /// 加盟商id /// public string GroupId { get; set; } } }