namespace Yw.WinFrmUI { /// /// 水力场景管理ViewModel /// public class HydroSceneMgrViewModel { /// /// /// public HydroSceneMgrViewModel() { } /// /// /// public HydroSceneMgrViewModel(Yw.Vmo.HydroSceneVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Code = rhs.Code; this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; } /// /// /// public void Reset(Yw.Vmo.HydroSceneVmo rhs) { this.ID = rhs.ID; this.Name = rhs.Name; this.Code = rhs.Code; this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.TagName = rhs.TagName; this.SortCode = rhs.SortCode; this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// [Display(Name = "ID")] public long ID { get; set; } /// /// 名称 /// [Display(Name = "名称")] public string Name { get; set; } /// /// 编码 /// [Display(Name = "编码")] public string Code { get; set; } /// /// 标签 /// [Display(Name = "标签")] public string Flags { get; set; } /// /// 标志 /// [Display(Name = "标志")] public string TagName { get; set; } /// /// 排序码 /// [Display(Name = "排序码")] public int SortCode { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// Vmo /// [Display(Name = "Vmo")] public Yw.Vmo.HydroSceneVmo Vmo { get; set; } } }