namespace HStation.WinFrmUI { /// /// /// public class XhsProjectSimulationHydroCheckFailedViewModel { /// /// /// public XhsProjectSimulationHydroCheckFailedViewModel() { } /// /// /// public XhsProjectSimulationHydroCheckFailedViewModel(Yw.EPAnet.CheckFailed rhs) { this.ParterId = rhs.ParterId; switch (rhs.FailType) { case eCheckFailType.LackSource: this.FailType = "缺少水库或水池"; break; case eCheckFailType.LackJunction: this.FailType = "缺少连接节点"; break; case eCheckFailType.AloneNode: this.FailType = "孤立节点"; break; case eCheckFailType.NodeAbnormalConnected: this.FailType = "节点连接异常"; break; case eCheckFailType.AloneLink: this.FailType = "孤立管段"; break; case eCheckFailType.LinkLossNode: this.FailType = "管线缺少节点"; break; case eCheckFailType.LinkAbnormalConnected: this.FailType = "管线异常连接"; break; case eCheckFailType.PropSetError: this.FailType = "属性设置错误"; break; default: break; } this.FailReason = rhs.FailReason; } /// /// 构件编码 /// [Display(Name = "构件编码")] public string ParterId { get; set; } /// /// 失败类型 /// [Display(Name = "失败类型")] public string FailType { get; set; } /// /// 失败原因 /// [Display(Name = "失败原因")] public string FailReason { get; set; } } }