namespace HStation.WinFrmUI.Assets { public class ManufacurerViewModel { public ManufacurerViewModel() { } public ManufacurerViewModel(Vmo.AssetsManufacturerVmo 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; } public void Reset(Vmo.AssetsManufacturerVmo 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; } /// /// UserID /// public long ID { get; set; } /// /// 名称 /// [DisplayName("名称")] [Browsable(true)] public string Name { get; set; } /// /// 联系人 /// [DisplayName("联系人")] [Browsable(true)] public string Contacter { get; set; } /// /// 联系电话 /// [DisplayName("联系电话")] [Browsable(true)] public string Telephone { get; set; } /// /// 地址 /// [DisplayName("地址")] [Browsable(true)] public string Address { get; set; } /// /// 标签列表 /// [DisplayName("标签列表")] [Browsable(true)] public List Flags { get; set; } /// /// 标签名称 /// [DisplayName("标签名称")] [Browsable(true)] public string TagName { get; set; } /// /// 使用状态 /// [DisplayName("使用状态")] [Browsable(true)] public Yw.Model.eUseStatus UseStatus { get; set; } /// /// 排序码 /// [DisplayName("排序码")] [Browsable(true)] public int SortCode { get; set; } /// /// 说明 /// [DisplayName("说明")] [Browsable(true)] public string Description { get; set; } } }