namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationSearchViewModel { /// /// /// public XhsProjectSimulationSearchViewModel() { } /// /// /// public XhsProjectSimulationSearchViewModel(Yw.Model.HydroParterInfo rhs) { this.ID = rhs.ID; this.Catalog = Yw.WinFrmUI.HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); this.Name = rhs.Name; this.Code = rhs.Code; this.ModelType = rhs.ModelType; this.HasDbId = !string.IsNullOrEmpty(rhs.DbId); this.DbLocked = rhs.DbLocked; this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// [Display(Name = "ID")] [Browsable(false)] public long ID { get; set; } /// /// 分类 /// [Display(Name = "分类")] public string Catalog { get; set; } /// /// 名称 /// [Display(Name = "名称")] public string Name { get; set; } /// /// 编码 /// [Display(Name = "编码")] public string Code { get; set; } /// /// 型号 /// [Display(Name = "型号")] public string ModelType { get; set; } /// /// 匹配 /// [Display(Name = "匹配")] public bool HasDbId { get; set; } /// /// 锁定 /// [Display(Name = "锁定")] public bool DbLocked { get; set; } /// /// 标签 /// [Display(Name = "标签")] public string FlagsString { get; set; } /// /// 说明 /// [Display(Name = "说明")] public string Description { get; set; } /// /// /// public Yw.Model.HydroParterInfo Vmo { get; set; } } }