using System.ComponentModel.DataAnnotations;
using Yw.Model;
namespace HStation.Model
{
///
/// 厂商
///
[SysType("assets_manufacturer")]
public class AssetsManufacturer : BaseModel, ISorter, ITagName, IFlags, 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.SeriesID = rhs.SeriesID;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
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.SeriesID = rhs.SeriesID;
this.Flags = rhs.Flags;
this.TagName = rhs.TagName;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
}
///
/// 名称
///
public string Name { get; set; }
///
/// 系列ID
///
public long SeriesID { get; set; }
///
/// 联系人
///
public string Contacter { get; set; }
///
/// 联系电话
///
public string Telephone { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 标签列表
///
public List Flags { get; set; }
///
/// 标签名称
///
public string TagName { get; set; }
///
/// 排序码
///
public int SortCode { get; set; }
///
/// 说明
///
public string Description { get; set; }
///
///
///
public AssetsManufacturer Clone()
{
return (AssetsManufacturer)this.MemberwiseClone();
}
object ICloneable.Clone()
{
return this.MemberwiseClone();
}
}
}