130 lines
3.5 KiB
C#
130 lines
3.5 KiB
C#
|
|
/*
|
|||
|
|
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
|||
|
|
*如果数据库字段发生变化,请在代码生器重新生成此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 iMES.Entity.SystemModels;
|
|||
|
|
|
|||
|
|
namespace iMES.Entity.DomainModels
|
|||
|
|
{
|
|||
|
|
[Entity(TableCnName = "库存余额",TableName = "View_StockBalance")]
|
|||
|
|
public partial class View_StockBalance:SysEntity
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
///产品编码
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="产品编码")]
|
|||
|
|
[MaxLength(200)]
|
|||
|
|
[Column(TypeName="nvarchar(200)")]
|
|||
|
|
[Required(AllowEmptyStrings=false)]
|
|||
|
|
public string ProductCode { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///产品名称
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="产品名称")]
|
|||
|
|
[MaxLength(200)]
|
|||
|
|
[Column(TypeName="nvarchar(200)")]
|
|||
|
|
[Required(AllowEmptyStrings=false)]
|
|||
|
|
public string ProductName { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///产品规格
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="产品规格")]
|
|||
|
|
[MaxLength(200)]
|
|||
|
|
[Column(TypeName="nvarchar(200)")]
|
|||
|
|
public string ProductStandard { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///库存数量
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="库存数量")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
public int? InventoryQty { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///单位
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="单位")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
[Required(AllowEmptyStrings=false)]
|
|||
|
|
public int Unit_Id { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///工艺路线
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="工艺路线")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
public int? Process_Id { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///最大库存
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="最大库存")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
public int? MaxInventory { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///最小库存
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="最小库存")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
public int? MinInventory { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///安全库存
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="安全库存")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
public int? SafeInventory { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///产品属性
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="产品属性")]
|
|||
|
|
[MaxLength(200)]
|
|||
|
|
[Column(TypeName="nvarchar(200)")]
|
|||
|
|
[Required(AllowEmptyStrings=false)]
|
|||
|
|
public string ProductAttribute { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///创建时间
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="创建时间")]
|
|||
|
|
[Column(TypeName="datetime")]
|
|||
|
|
public DateTime? CreateDate { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///创建人
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="创建人")]
|
|||
|
|
[MaxLength(200)]
|
|||
|
|
[Column(TypeName="nvarchar(200)")]
|
|||
|
|
public string Creator { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///最后修改时间
|
|||
|
|
/// </summary>
|
|||
|
|
[Display(Name ="最后修改时间")]
|
|||
|
|
[Column(TypeName="datetime")]
|
|||
|
|
public DateTime? ModifyDate { get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
///主键ID
|
|||
|
|
/// </summary>
|
|||
|
|
[Key]
|
|||
|
|
[Display(Name ="主键ID")]
|
|||
|
|
[Column(TypeName="int")]
|
|||
|
|
[Required(AllowEmptyStrings=false)]
|
|||
|
|
public int Product_Id { get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|