146 lines
4.3 KiB
C#
146 lines
4.3 KiB
C#
using Admin.NET.Core;
|
|
namespace Admin.NET.Application.Entity;
|
|
|
|
/// <summary>
|
|
/// 物料
|
|
/// </summary>
|
|
[SugarTable("Materials","物料")]
|
|
public class Materials : EntityTenant
|
|
{
|
|
/// <summary>
|
|
/// 名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Name", ColumnDescription = "名称", Length = 32)]
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分类
|
|
/// </summary>
|
|
[Required]
|
|
[SugarColumn(ColumnName = "Classify", ColumnDescription = "分类")]
|
|
public long Classify { get; set; }
|
|
|
|
/// <summary>
|
|
/// 编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "CodeNum", ColumnDescription = "编码", Length = 32)]
|
|
public string? CodeNum { get; set; }
|
|
|
|
/// <summary>
|
|
/// 别名
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "AliasName", ColumnDescription = "别名", Length = 32)]
|
|
public string? AliasName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 助记码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "SimpleNumber", ColumnDescription = "助记码", Length = 32)]
|
|
public string? SimpleNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 规格型号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Specifications", ColumnDescription = "规格型号", Length = 32)]
|
|
public string? Specifications { get; set; }
|
|
|
|
/// <summary>
|
|
/// 可用状态
|
|
/// </summary>
|
|
[Required]
|
|
[SugarColumn(ColumnName = "IsEnable", ColumnDescription = "可用状态")]
|
|
public bool IsEnable { get; set; }
|
|
|
|
/// <summary>
|
|
/// 品牌
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Brand", ColumnDescription = "品牌", Length = 32)]
|
|
public string? Brand { get; set; }
|
|
|
|
/// <summary>
|
|
/// 保质期
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "ShelfLife", ColumnDescription = "保质期", Length = 32)]
|
|
public int? ShelfLife { get; set; }
|
|
|
|
/// <summary>
|
|
/// 保质期单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "ShelfLifeUnit", ColumnDescription = "保质期单位", Length = 32)]
|
|
public string? ShelfLifeUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 统一零售价
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Price", ColumnDescription = "统一零售价")]
|
|
public decimal? Price { get; set; }
|
|
|
|
/// <summary>
|
|
/// 条形码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "BarCode", ColumnDescription = "条形码", Length = 32)]
|
|
public string? BarCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 单位组ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "UnitGroupId", ColumnDescription = "单位组ID")]
|
|
public long? UnitGroupId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 基本单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Unit", ColumnDescription = "基本单位", Length = 32)]
|
|
public string? Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 生产单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "ProductUnit", ColumnDescription = "生产单位", Length = 32)]
|
|
public string? ProductUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "ProcureUnit", ColumnDescription = "采购单位", Length = 32)]
|
|
public string? ProcureUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 库存单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "InventoryUnit", ColumnDescription = "库存单位", Length = 32)]
|
|
public string? InventoryUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 销售单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "SaleUnit", ColumnDescription = "销售单位", Length = 32)]
|
|
public string? SaleUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 分销单位
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "RetailStoreUnit", ColumnDescription = "分销单位", Length = 32)]
|
|
public string? RetailStoreUnit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 包装关系ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "PackagId", ColumnDescription = "包装关系ID")]
|
|
public long? PackagId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 推广ID
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "PromotionId", ColumnDescription = "推广ID")]
|
|
public long? PromotionId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 备注
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "Remarks", ColumnDescription = "备注", Length = 32)]
|
|
public string? Remarks { get; set; }
|
|
|
|
|
|
}
|