lixiaojun
2024-11-06 278e94cb1b045288d1205f36b67f60cb5224754c
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
72
73
74
75
76
77
78
79
using Yw.Model;
 
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 三通属性视图
    /// </summary>
    public class HydroThreelinkViewModel : HydroCouplingViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroThreelinkViewModel() : base() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroThreelinkViewModel(Yw.Model.HydroThreelinkInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.RunningThroughLoss = rhs.RunningThroughLoss;
            this.UpdatePropStatus(nameof(this.RunningThroughLoss), rhs, nameof(rhs.RunningThroughLoss));
            this.BranchThroughLoss = rhs.BranchThroughLoss;
            this.UpdatePropStatus(nameof(this.BranchThroughLoss), rhs, nameof(rhs.BranchThroughLoss));
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 运行通过
        /// </summary>
        [Category("数据")]
        [DisplayName("运行通过")]
        [PropertyOrder(101)]
        [Browsable(true)]
        public double? RunningThroughLoss { get; set; }
 
        /// <summary>
        /// 支管通过
        /// </summary>
        [Category("数据")]
        [DisplayName("支管通过")]
        [PropertyOrder(102)]
        [Browsable(true)]
        public double? BranchThroughLoss { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroThreelinkInfo Vmo { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public override void UpdateProperty()
        {
            base.UpdateProperty();
 
            this.RunningThroughLoss = this.Vmo.RunningThroughLoss;
            this.UpdatePropStatus(nameof(this.RunningThroughLoss), this.Vmo, nameof(this.Vmo.RunningThroughLoss));
            this.BranchThroughLoss = this.Vmo.BranchThroughLoss;
            this.UpdatePropStatus(nameof(this.BranchThroughLoss), this.Vmo, nameof(this.Vmo.BranchThroughLoss));
        }
 
        public override void UpdateVmoProperty()
        {
            base.UpdateVmoProperty();
            this.Vmo.RunningThroughLoss = this.RunningThroughLoss;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.RunningThroughLoss), this, nameof(this.RunningThroughLoss));
            this.Vmo.BranchThroughLoss = this.BranchThroughLoss;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.BranchThroughLoss), this, nameof(this.BranchThroughLoss));
        }
 
 
 
 
 
    }
}