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.

73 lines
1.7 KiB

4 years ago
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace CK.SCP.Models.ScpEntity
{
public class TA_VENDER
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { get; set; }
[Key]
[Column(Order =0)]
[StringLength(50)]
public string VendId { get; set; }
[Required]
[StringLength(50)]
public string VendName { get; set; }
[Required]
[StringLength(50)]
4 years ago
public string VendAbbCode { get; set; }
[StringLength(50)]
public string VendType { get; set; }
[StringLength(50)]
public string Country { get; set; }
[StringLength(50)]
public string City { get; set; }
[StringLength(50)]
public string Currency { get; set; }
[StringLength(200)]
public string Address { get; set; }
[StringLength(50)]
public string ZipCode { get; set; }
[StringLength(50)]
public string Contacter { get; set; }
[StringLength(50)]
public string Phone { get; set; }
[StringLength(50)]
public string Fax { get; set; }
[StringLength(50)]
public string Email { get; set; }
public int State { get; set; }
[StringLength(500)]
public string Remark { get; set; }
public decimal? Tax { get; set; }
[Key]
[Column(Order =1)]
[StringLength(50)]
public string Site { get; set; }
public int? ReceiveTimeScope { set; get; }
4 years ago
public decimal? Quota { set; get; }
4 years ago
[NotMapped]
public string FactoryName => ScpCache.GetFactoryNameByCode(Site);
}
}