using System.Collections.Generic;
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)]
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; }
///
/// ÏÞ¶î
///
public decimal? Quota { get; set; }
[NotMapped]
public List UserInAddress { set; get; }
[NotMapped]
public List UserInVendIds { set; get; }
[Key]
[Column(Order =1)]
[StringLength(50)]
public string Site { get; set; }
public int? ReceiveTimeScope { set; get; }
[NotMapped]
public string FactoryName => ScpCache.GetFactoryNameByCode(Site);
public string SubSite { get; set; }
}
}