namespace HStation.WinFrmUI
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public class XhsProjectSimulationHydroCheckFailedViewModel
|
{
|
/// <summary>
|
///
|
/// </summary>
|
public XhsProjectSimulationHydroCheckFailedViewModel() { }
|
|
/// <summary>
|
///
|
/// </summary>
|
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;
|
}
|
|
/// <summary>
|
/// 构件编码
|
/// </summary>
|
[Display(Name = "构件编码")]
|
public string ParterId { get; set; }
|
|
/// <summary>
|
/// 失败类型
|
/// </summary>
|
[Display(Name = "失败类型")]
|
public string FailType { get; set; }
|
|
/// <summary>
|
/// 失败原因
|
/// </summary>
|
[Display(Name = "失败原因")]
|
public string FailReason { get; set; }
|
|
}
|
}
|