lixiaojun
2024-10-26 dd4da9a651330fabe210618581299ac3536bda2f
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 连接节点
    /// </summary>
    public class HydroJunctionViewModel : HydroNodeViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroJunctionViewModel() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroJunctionViewModel(Yw.Model.HydroJunctionInfo rhs) : base(rhs)
        {
            this.Elev = Math.Round(rhs.Elev, 4);
            this.MinorLoss = rhs.MinorLoss;
            this.Demand = rhs.Demand;
            this.DemandPattern = rhs.DemandPattern;
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroJunctionViewModel(Yw.Model.HydroJunctionInfo rhs, Yw.WinFrmUI.HydroCalcuNodeResult calcuResult) : base(rhs, calcuResult)
        {
            this.Elev = Math.Round(rhs.Elev, 4);
            this.MinorLoss = rhs.MinorLoss;
            this.Demand = rhs.Demand;
            this.DemandPattern = rhs.DemandPattern;
 
            this.Vmo = rhs;
        }
 
 
        /// <summary>
        /// 标高(m)
        /// </summary>
        [DisplayName("标高(m)")]
        public double Elev { get; set; }
 
        /// <summary>
        /// 局阻系数
        /// </summary>
        [DisplayName("局阻系数")]
        public double? MinorLoss { get; set; }
 
        /// <summary>
        /// 需水量(m³/h)
        /// </summary>
        [DisplayName("需水量(m³/h)")]
        public double? Demand { get; set; }
 
        /// <summary>
        /// 需水模式
        /// </summary>
        [DisplayName("需水模式")]
        public string DemandPattern { get; set; }
 
        /// <summary>
        /// Vmo
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroJunctionInfo Vmo { get; set; }
 
    }
}