| | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public HydroSceneMgrViewModel(Yw.Dto.HydroSceneDto rhs) |
| | | public HydroSceneMgrViewModel(Yw.Vmo.HydroSceneVmo rhs) |
| | | { |
| | | this.ID = rhs.ID; |
| | | this.Name = rhs.Name; |
| | | this.Code = rhs.Code; |
| | | this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.Flags = Yw.Untity.FlagsHelper.ToString(rhs.Flags); |
| | | this.TagName = rhs.TagName; |
| | | this.SortCode = rhs.SortCode; |
| | | this.Description = rhs.Description; |
| | | this.Dto = rhs; |
| | | this.Vmo = rhs; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | 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; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// 标签 |
| | | /// </summary> |
| | | [Display(Name = "标签")] |
| | | public string FlagsString { get; set; } |
| | | public string Flags { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 标志 |
| | |
| | | public string Description { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Dto |
| | | /// Vmo |
| | | /// </summary> |
| | | [Display(Name = "Dto")] |
| | | public Yw.Dto.HydroSceneDto Dto { get; set; } |
| | | [Display(Name = "Vmo")] |
| | | public Yw.Vmo.HydroSceneVmo Vmo { get; set; } |
| | | } |
| | | } |