namespace Yw.WinFrmUI { /// /// /// public class HydroCalcuWarningViewModel { /// /// /// public HydroCalcuWarningViewModel() { } /// /// /// public HydroCalcuWarningViewModel(HydroCalcuWarning rhs, Yw.Model.HydroVisualInfo visual) { this.Code = rhs.Code; this.Name = visual.Name; this.Message = rhs.Message; } /// /// 编码 /// [Display(Name = "编码")] public string Code { get; set; } /// /// 构件 /// [Display(Name = "构件")] public string Name { get; set; } /// /// 警告信息 /// [Display(Name = "警告信息")] public string Message { get; set; } } }