namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationPipeUnMatchingViewModel { /// /// /// public XhsProjectSimulationPipeUnMatchingViewModel() { } /// /// /// public XhsProjectSimulationPipeUnMatchingViewModel(Yw.Model.HydroPipeInfo rhs) { this.ID = rhs.ID; this.Catalog = HydroParterCatalogHelper.GetCatalogName(rhs.Catalog); this.Code = rhs.Code; this.Name = rhs.Name; this.DbId = rhs.DbId; this.DbLocked = rhs.DbLocked; this.LinkStatus = rhs.LinkStatus; this.Diameter = rhs.Diameter; this.Length = rhs.Length; this.MinorLoss = rhs.MinorLoss; this.Roughness = rhs.Roughness; this.FlagsString = Yw.Untity.FlagsHelper.ToString(rhs.Flags); this.Description = rhs.Description; this.Vmo = rhs; } /// /// id /// [DisplayName("ID")] [Display(Name = "ID")] public long ID { get; set; } /// /// 分类 /// [DisplayName("分类")] [Display(Name = "分类")] public string Catalog { get; set; } /// /// 编码 /// [DisplayName("编码")] [Display(Name = "编码")] public string Code { get; set; } /// /// 名称 /// [DisplayName("名称")] [Display(Name = "名称")] public string Name { get; set; } /// /// 数据id /// [DisplayName("数据id")] [Display(Name = "数据id")] public string DbId { get; set; } /// /// 锁定 /// [DisplayName("锁定")] [Display(Name = "锁定")] public bool DbLocked { get; set; } /// /// 管道状态 /// [DisplayName("管道状态")] [Display(Name = "管道状态")] public string LinkStatus { get; set; } /// /// 直径 /// [DisplayName("直径")] [Display(Name = "直径")] public double Diameter { get; set; } /// /// 长度 /// [DisplayName("长度")] [Display(Name = "长度")] public double Length { get; set; } /// /// 粗糙系数 /// [DisplayName("粗糙系数")] [Display(Name = "粗糙系数")] public double Roughness { get; set; } /// /// 局部阻力系数 /// [DisplayName("局部阻力系数")] [Display(Name = "局部阻力系数")] public double MinorLoss { get; set; } /// /// 标签 /// [DisplayName("标签")] [Display(Name = "标签")] public string FlagsString { get; set; } /// /// 说明 /// [DisplayName("说明")] [Display(Name = "说明")] public string Description { get; set; } /// /// /// public Yw.Model.HydroPipeInfo Vmo { get; set; } } }