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.
130 lines
3.5 KiB
130 lines
3.5 KiB
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using ChangKeTec.Wms.Models.Enums;
|
|
|
|
|
|
namespace ChangKeTec.Wms.Models.Wms
|
|
{
|
|
public partial class TS_STOCK_DETAIL
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
|
public long UID { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 0)]
|
|
[StringLength(50)]
|
|
[DisplayName("箱码")]
|
|
public string BarCode { get; set; } = "";
|
|
|
|
[Key]
|
|
[Column(Order = 1)]
|
|
[StringLength(50)]
|
|
[DisplayName("库位")]
|
|
public string LocCode { get; set; } = "";
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("库区")]
|
|
public string AreaCode { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 2)]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
|
[DisplayName("状态")]
|
|
public EnumStockState State { get; set; } = EnumStockState.合格;
|
|
|
|
[Key]
|
|
[Column(Order = 3)]
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
[DisplayName("物料号")]
|
|
public string PartCode { get; set; } = "";
|
|
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
[DisplayName("批次")]
|
|
public string Batch { get; set; } = "";
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("数量")]
|
|
|
|
public decimal Qty { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[Required(AllowEmptyStrings = true)]
|
|
[DisplayName("器具号")]
|
|
public string EqptCode { get; set; } = "";
|
|
|
|
[NotMapped]
|
|
[DisplayName("描述一")]
|
|
public string PartDesc1 => WmsCache.GetPartDesc1(PartCode);
|
|
[NotMapped]
|
|
[DisplayName("描述二")]
|
|
public string PartDesc2 => WmsCache.GetPartDesc2(PartCode);
|
|
[NotMapped]
|
|
[DisplayName("项目编号")]
|
|
public string ProjectId => WmsCache.GetProjectId(PartCode);
|
|
[NotMapped]
|
|
[DisplayName("单位")]
|
|
public string Unit => WmsCache.GetUnit(PartCode);
|
|
|
|
[StringLength(50)]
|
|
[Required(AllowEmptyStrings = true)]
|
|
[DisplayName("供应商编号")]
|
|
public string VendId { get; set; } = "";
|
|
|
|
[NotMapped]
|
|
public string 供应商名称 => WmsCache.GetVenderName(VendId);
|
|
|
|
[StringLength(50)]
|
|
[Required(AllowEmptyStrings = true)]
|
|
[DisplayName("供应商批次")]
|
|
public string VendBatch { get; set; } = "";
|
|
|
|
[NotMapped]
|
|
[DisplayName("ERP库位")]
|
|
public string ErpLocCode => WmsCache.GetErpLocCode(LocCode);
|
|
|
|
[StringLength(50)]
|
|
|
|
public string PlanOrderId { get; set; }
|
|
|
|
|
|
[Column(TypeName = "money")]
|
|
|
|
public decimal Amount { get; set; }
|
|
|
|
|
|
[DisplayName("收货时间")]
|
|
|
|
public DateTime ReceiveDate { get; set; }
|
|
|
|
[Column(TypeName = "date")]
|
|
[DisplayName("生产日期")]
|
|
public DateTime ProduceDate { get; set; }
|
|
|
|
[Column(TypeName = "date")]
|
|
[DisplayName("失效日期")]
|
|
public DateTime OverdueDate { get; set; }
|
|
|
|
[DisplayName("变更时间")]
|
|
public DateTime UpdateTime { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
[DisplayName("变更数量")]
|
|
public decimal UpdateQty { get; set; }
|
|
|
|
[StringLength(50)]
|
|
[DisplayName("追溯编号")]
|
|
public string TracebackCode { get; set; }
|
|
|
|
|
|
public int VinState { get; set; }
|
|
|
|
[StringLength(500)]
|
|
[DisplayName("备注")]
|
|
public string Remark { get; set; }
|
|
|
|
}
|
|
}
|
|
|