using System.ComponentModel.DataAnnotations; using Yw.Entity; namespace HStation.Entity { /// /// 厂商 /// [SysType("assets_Manufacturer")] [SugarTable("assets_Manufacturer")] public class AssetsManufacturer : BaseEntity, IFlags, ITagName, ISorter, IUseStatus, System.ICloneable { public AssetsManufacturer() { } public AssetsManufacturer(AssetsManufacturer rhs) : base(rhs) { this.Name = rhs.Name; this.Contacter = rhs.Contacter; this.Telephone = rhs.Telephone; this.Address = rhs.Address; this.Flags = rhs.Flags; this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } public void Reset(AssetsManufacturer rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Contacter = rhs.Contacter; this.Telephone = rhs.Telephone; this.Address = rhs.Address; this.Flags = rhs.Flags; this.TagName = rhs.TagName; this.UseStatus = rhs.UseStatus; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 名称 /// [Display(Name = "名称")] public string Name { get; set; } /// /// 联系人 /// [Display(Name = "联系人")] public string Contacter { get; set; } /// /// 联系电话 /// [Display(Name = "联系电话")] public string Telephone { get; set; } /// /// 地址 /// [Display(Name = "地址")] public string Address { get; set; } /// /// 标签 /// [Display(Name = "标签")] public string Flags { get; set; } /// /// 标签名称 /// [Display(Name = "标签名称")] public string TagName { get; set; } /// /// 使用状态 /// [Display(Name = "使用状态")] public int UseStatus { get; set; } /// /// 排序码 /// [Display(Name = "排序码")] public int SortCode { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// /// public AssetsManufacturer Clone() { return (AssetsManufacturer)this.MemberwiseClone(); } object ICloneable.Clone() { return this.MemberwiseClone(); } } }