移除了 MmMaterial 和 MmMaterialDto 类中的 MaterialCatory 属性,简化了数据结构。该属性类型为 object,现已不再使用。
97 lines
2.5 KiB
C#
97 lines
2.5 KiB
C#
|
|
namespace DOAN.Model.BZFM
|
|
{
|
|
/// <summary>
|
|
/// 物料表
|
|
/// </summary>
|
|
[SugarTable("mm_material")]
|
|
public class MmMaterial
|
|
{
|
|
public object CateoryName;
|
|
|
|
/// <summary>
|
|
/// 主键ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_code")]
|
|
public string MaterialCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "material_name")]
|
|
public string MaterialName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 规格型号
|
|
/// </summary>
|
|
public string Specification { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_code")]
|
|
public string CategoryCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料分类名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "category_name")]
|
|
public string CategoryName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 计量单位
|
|
/// </summary>
|
|
public string Unit { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料类型(原材料/半成品/产成品/打包材料/辅料)
|
|
/// </summary>
|
|
public string Type { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_code")]
|
|
public string SupplierCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商名称
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "supplier_name")]
|
|
public string SupplierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 安全库存
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "safety_stock")]
|
|
public decimal SafetyStock { get; set; }
|
|
|
|
/// <summary>
|
|
/// 状态(停用/启用)
|
|
/// </summary>
|
|
public string Status { get; set; }
|
|
|
|
/// <summary>
|
|
/// 创建时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "created_time")]
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "updated_time")]
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
/// <summary>
|
|
/// 描述
|
|
/// </summary>
|
|
public string Description { get; set; }
|
|
}
|
|
} |