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.

59 lines
1.4 KiB

1 year ago
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CK.SCP.Models.ScpEntity
{
public partial class TA_VEND_PART : RecordEntity
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long UID { get; set; }
[Key]
[Column(Order = 1)]
[StringLength(50)]
public string VendId { get; set; }
[Key]
[Column(Order =2)]
[StringLength(50)]
public string PartCode { get; set; }
[Key]
[Column(Order = 3)]
[StringLength(50)]
public string Site { get; set; }
[StringLength(50)]
public string VendPartCode { get; set; }
public decimal VendPackQty { get; set; }
[StringLength(50)]
public string PoUnit { get; set; }
public int State { get; set; }
[StringLength(500)]
public string Remark { get; set; }
public int? TransportationTime { get; set; }
public decimal? MinPackQty { get; set; }
public decimal? PalletPackQty { get; set; }
[NotMapped]
[DisplayName("��Ӧ������")]
public string VendName => ScpCache.GetVendName(VendId);
[NotMapped]
[DisplayName("��������")]
public string PartName => ScpCache.GetVendName(PartCode);
public string SubSite { get; set; }
}
}