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.
60 lines
1.5 KiB
60 lines
1.5 KiB
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace ChangKeTec.Wms.Models.Wms
|
|
{
|
|
public partial class TS_VIN_PART
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
|
public long UID { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 0)]
|
|
[StringLength(50)]
|
|
public string VinCode { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 1)]
|
|
[StringLength(50)]
|
|
public string ProjectId { get; set; }
|
|
|
|
[Key]
|
|
[Column(Order = 2)]
|
|
[StringLength(50)]
|
|
public string CustPartCode { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = true)]
|
|
[StringLength(50)]
|
|
public string ErpPartCode { get; set; }
|
|
|
|
[NotMapped]
|
|
public string PartDesc1 => WmsCache.GetPartDesc1(ErpPartCode);
|
|
|
|
[NotMapped]
|
|
public string PartDesc2 => WmsCache.GetPartDesc2(ErpPartCode);
|
|
|
|
[NotMapped]
|
|
public string PartType => WmsCache.GetPartType(ErpPartCode);
|
|
|
|
[NotMapped]
|
|
public string PartKind => WmsCache.GetPartKind(ErpPartCode);
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal Qty { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal UnitPrice { get; set; }
|
|
|
|
[Column(TypeName = "money")]
|
|
public decimal Amount { get; set; }
|
|
|
|
public int VinState { get; set; }
|
|
|
|
public DateTime ReceiveTime { get; set; }
|
|
|
|
public DateTime DeliverTime { get; set; }
|
|
|
|
public DateTime BalanceTime { get; set; }
|
|
}
|
|
}
|
|
|