lixiaojun
2024-09-23 81819f13e1e3a49bf8456051ec0f0b51e3f10821
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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; }
 
    }
}