namespace HStation.WinFrmUI { public class CurrentPartMainViewModel { public CurrentPartMainViewModel() { } public CurrentPartMainViewModel(Vmo.AssetsPumpPartMainVmo rhs) : base() { this.ID = rhs.ID; this.PartID=rhs.PartID; this.Name = rhs.Name; this.NO = rhs.NO; this.Code = rhs.Code; this.SeriesID = rhs.SeriesID; } public void Reset(Vmo.AssetsPumpPartMainVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.NO = rhs.NO; this.Code = rhs.Code; this.PartID = rhs.PartID; this.SeriesID = rhs.SeriesID; } /// /// ID /// public long ID { get; set; } /// /// 泵设备ID /// public long PartID { get; set; } /// /// 泵系列ID /// public long SeriesID { get; set; } /// /// 产品编号 /// public string NO { get; set; } /// /// 产品名称 /// public string Name { get; set; } /// /// 产品图号 /// public string Code { get; set; } /// /// 排序码 /// public int SortCode { get; set; } } }