You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.5 KiB
66 lines
1.5 KiB
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using ChangKeTec.Wms.Models.Enums;
|
|
using CK.SCP.Models.Enums;
|
|
|
|
namespace ChangKeTec.Wms.Models.Wms
|
|
{
|
|
public partial class VIEW_STOCK
|
|
{
|
|
[NotMapped]
|
|
public string 状态 => ((StockState)State).ToString();
|
|
|
|
|
|
[Key]
|
|
[Column(Order = 0)]
|
|
[StringLength(50)]
|
|
public string 物料号 { get; set; }
|
|
|
|
|
|
public string 描述1 { get; set; }
|
|
|
|
public string 描述2 { get; set; }
|
|
|
|
[Key]
|
|
[Column(TypeName = "money",Order=1)]
|
|
public decimal? 数量 { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string 单位 { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string 库区 { get; set; }
|
|
|
|
// [Key]
|
|
// [Column(Order = 0)]
|
|
// [StringLength(50)]
|
|
// public string 库位 { get; set; }
|
|
|
|
[Key]
|
|
[StringLength(50)]
|
|
[Column(Order = 2)]
|
|
public string 供应商 { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string 项目 { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string 类型 { get; set; }
|
|
|
|
[StringLength(50)]
|
|
public string 种类 { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal? 最大库存 { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal? 最小库存 { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal? 安全库存 { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 3)]
|
|
public int State { get; set; }
|
|
}
|
|
}
|
|
|