using Microsoft.EntityFrameworkCore;
|
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
/*
|
* @author : 刘文奇
|
* @date : 2024/4/23下午1:36:22
|
* @desc : 物料信息表
|
*/
|
namespace Admin.NET.Core
|
{
|
/// <summary>
|
/// 物料信息表
|
/// </summary>
|
[Table("wms_material")]
|
[Comment("物料信息表")]
|
public class WmsMaterial : DEntityBase
|
{
|
|
|
/// <summary>
|
/// 物料名称
|
/// </summary>
|
[Comment("物料名称")]
|
[Required]
|
[MaxLength(50)]
|
public string MaterialName { get; set; }
|
|
|
/// <summary>
|
/// 物料编号
|
/// </summary>
|
[Comment("物料编号")]
|
[Required]
|
[MaxLength(50)]
|
public string MaterialCode { get; set; }
|
|
|
/// <summary>
|
/// ERP编号
|
/// </summary>
|
[Comment("ERP编号")]
|
[MaxLength(255)]
|
public string ErpCode { get; set; }
|
|
|
/// <summary>
|
/// 物料类型名称
|
/// </summary>
|
[Comment("物料类型名称")]
|
[Required]
|
[MaxLength(50)]
|
public string MaterialTypeName { get; set; }
|
|
|
/// <summary>
|
/// 物料类型描述
|
/// </summary>
|
[Comment("物料类型描述")]
|
[MaxLength(255)]
|
public string MaterialTypeDescr { get; set; }
|
|
|
/// <summary>
|
/// 物料类型
|
/// </summary>
|
[Comment("物料类型")]
|
[Required]
|
|
public int MaterialType { get; set; }
|
|
|
/// <summary>
|
/// 物料组
|
/// </summary>
|
[Comment("物料组")]
|
[MaxLength(50)]
|
public string MaterialGroup { get; set; }
|
|
|
/// <summary>
|
/// ABC分类名称
|
/// </summary>
|
[Comment("ABC分类名称")]
|
[MaxLength(50)]
|
public string ABCClassName { get; set; }
|
|
|
/// <summary>
|
/// ABC分类
|
/// </summary>
|
[Comment("ABC分类")]
|
|
public int? ABCClass { get; set; }
|
|
|
/// <summary>
|
/// 物料规格
|
/// </summary>
|
[Comment("物料规格")]
|
[MaxLength(255)]
|
public string MaterialSpec { get; set; }
|
|
|
/// <summary>
|
/// 默认入库库位
|
/// </summary>
|
[Comment("默认入库库位")]
|
[MaxLength(50)]
|
public string InPlaceCode { get; set; }
|
|
|
/// <summary>
|
/// 库存单位
|
/// </summary>
|
[Comment("库存单位")]
|
[Required]
|
[MaxLength(50)]
|
public string MaterialUnit { get; set; }
|
|
|
/// <summary>
|
/// 采购单位
|
/// </summary>
|
[Comment("采购单位")]
|
[Required]
|
[MaxLength(50)]
|
public string POUnit { get; set; }
|
|
|
/// <summary>
|
/// 颜色
|
/// </summary>
|
[Comment("颜色")]
|
[MaxLength(50)]
|
public string Color { get; set; }
|
|
|
/// <summary>
|
/// 重量
|
/// </summary>
|
[Comment("重量")]
|
[MaxLength(50)]
|
public string Weight { get; set; }
|
|
|
/// <summary>
|
/// 标包数量
|
/// </summary>
|
[Comment("标包数量")]
|
|
[Column("SNP", TypeName = "decimal(10,3)")]
|
public decimal? SNP { get; set; }
|
|
|
/// <summary>
|
/// 换算率
|
/// </summary>
|
[Comment("换算率")]
|
|
[Column("TranslateRate", TypeName = "decimal(10,3)")]
|
public decimal? TranslateRate { get; set; }
|
|
|
/// <summary>
|
/// 批次属性规则
|
/// </summary>
|
[Comment("批次属性规则")]
|
|
public long? BatchRuleId { get; set; }
|
|
|
/// <summary>
|
/// 控制属性规则
|
/// </summary>
|
[Comment("控制属性规则")]
|
|
public long? ControlRuleId { get; set; }
|
|
|
/// <summary>
|
/// 是否禁用
|
/// </summary>
|
[Comment("是否禁用")]
|
[Required]
|
|
public bool IsDisabled { get; set; }
|
|
|
/// <summary>
|
/// 描述
|
/// </summary>
|
[Comment("描述")]
|
[MaxLength(255)]
|
public string MaterialDesc { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
}
|