/* *代码由框架生成,任何更改都可能导致被代码生成器覆盖 *如果数据库字段发生变化,请在代码生器重新生成此Model */ using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; using SqlSugar; using VolPro.Entity.SystemModels; namespace VolPro.Entity.DomainModels { [Entity(TableCnName = "库存管理",TableName = "MES_InventoryManagement",DBServer = "ServiceDbContext")] public partial class MES_InventoryManagement:ServiceEntity { /// ///库存ID /// [SugarColumn(IsPrimaryKey = true)] [Key] [Display(Name ="库存ID")] [MaxLength(36)] [Column(TypeName="uniqueidentifier")] [Editable(true)] [Required(AllowEmptyStrings=false)] public Guid InventoryID { get; set; } /// ///单据号 /// [Display(Name ="单据号")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string DocumentNo { get; set; } /// ///物料名称 /// [Display(Name ="物料名称")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string MaterialName { get; set; } /// ///物料编号 /// [Display(Name ="物料编号")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string MaterialCode { get; set; } /// ///规格型号 /// [Display(Name ="规格型号")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string SpecificationModel { get; set; } /// ///仓库 /// [Display(Name ="仓库")] [MaxLength(36)] [Column(TypeName="uniqueidentifier")] [Editable(true)] public Guid? WarehouseID { get; set; } /// ///货位 /// [Display(Name ="货位")] [MaxLength(36)] [Column(TypeName="uniqueidentifier")] [Editable(true)] public Guid? LocationID { get; set; } /// ///库存数量 /// [Display(Name ="库存数量")] [Column(TypeName="int")] [Editable(true)] [Required(AllowEmptyStrings=false)] public int InventoryQuantity { get; set; } /// ///单位 /// [Display(Name ="单位")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string InventoryUnit { get; set; } /// ///库存成本 /// [Display(Name ="库存成本")] [DisplayFormat(DataFormatString="10,2")] [Column(TypeName="decimal")] [Editable(true)] [Required(AllowEmptyStrings=false)] public decimal InventoryCost { get; set; } /// ///库存状态 /// [Display(Name ="库存状态")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string InventoryStatus { get; set; } /// ///入库日期 /// [Display(Name ="入库日期")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? InboundDate { get; set; } /// ///创建人ID /// [Display(Name ="创建人ID")] [Column(TypeName="int")] [Editable(true)] public int? CreateID { get; set; } /// ///创建人 /// [Display(Name ="创建人")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Creator { get; set; } /// ///创建时间 /// [Display(Name ="创建时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? CreateDate { get; set; } /// ///修改人 /// [Display(Name ="修改人")] [MaxLength(100)] [Column(TypeName="nvarchar(100)")] [Editable(true)] public string Modifier { get; set; } /// ///修改人ID /// [Display(Name ="修改人ID")] [Column(TypeName="int")] [Editable(true)] public int? ModifyID { get; set; } /// ///修改时间 /// [Display(Name ="修改时间")] [Column(TypeName="datetime")] [Editable(true)] public DateTime? ModifyDate { get; set; } } }