namespace Yw.WinFrmUI
{
///
/// 水力模型管理ViewModel
///
public class HydroModelMgrViewModel
{
///
///
///
public HydroModelMgrViewModel() { }
///
///
///
public HydroModelMgrViewModel(Yw.Dto.HydroModelDto rhs, bool hasRelation)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Code = rhs.Code;
this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.TagName = rhs.TagName;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.Dto = rhs;
this.HasRelation = hasRelation;
}
///
///
///
public void Reset(Yw.Dto.HydroModelDto rhs)
{
this.ID = rhs.ID;
this.Name = rhs.Name;
this.Code = rhs.Code;
this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags);
this.TagName = rhs.TagName;
this.SortCode = rhs.SortCode;
this.Description = rhs.Description;
this.Dto = 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 FlagsString { get; set; }
///
/// 标志
///
[Display(Name = "标志")]
public string TagName { get; set; }
///
/// 排序码
///
[Display(Name = "排序码")]
public int SortCode { get; set; }
///
/// 说明
///
[Display(Name = "说明")]
public string Description { get; set; }
///
/// Dto
///
[Display(Name = "Dto")]
public Yw.Dto.HydroModelDto Dto { get; set; }
///
///
///
[Display(Name = "关联")]
public bool HasRelation { get; set; }
}
}