lixiaojun
2024-11-29 d714285ed0175ca438a01e5252feb67119491fe0
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
namespace Yw.WinFrmUI
{
    /// <summary>
    /// 弯头视图
    /// </summary>
    public class HydroElbowViewModel : HydroCouplingViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public HydroElbowViewModel() : base() { }
 
        /// <summary>
        /// 
        /// </summary>
        public HydroElbowViewModel(Yw.Model.HydroElbowInfo rhs, Yw.Model.HydroModelInfo hydroInfo) : base(rhs, hydroInfo)
        {
            this.BendingAngle = rhs.BendingAngle;
            this.UpdatePropStatus(nameof(this.BendingAngle), rhs, nameof(rhs.BendingAngle));
            this.ElbowType = rhs.ElbowType;
            this.UpdatePropStatus(nameof(this.ElbowType), rhs, nameof(rhs.ElbowType));
 
            this.Vmo = rhs;
        }
 
        /// <summary>
        /// 弯曲角度
        /// </summary>
        [Category("数据")]
        [DisplayName("弯曲角度")]
        [PropertyOrder(101)]
        [DisplayUnit("°")]
        [Browsable(true)]
        public double? BendingAngle { get; set; }
 
        /// <summary>
        /// 弯头类型
        /// </summary>
        [Category("数据")]
        [DisplayName("弯头类型")]
        [PropertyOrder(102)]
        [DisplayUnit("mm")]
        [Browsable(true)]
        public string ElbowType { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        [Browsable(false)]
        public new Yw.Model.HydroElbowInfo Vmo { get; set; }
 
        /// <summary>
        /// 
        /// </summary>
        public override void UpdateProperty()
        {
            base.UpdateProperty();
            this.BendingAngle = this.Vmo.BendingAngle;
            this.UpdatePropStatus(nameof(this.BendingAngle), this.Vmo, nameof(this.Vmo.BendingAngle));
            this.ElbowType = this.Vmo.ElbowType;
            this.UpdatePropStatus(nameof(this.ElbowType), this.Vmo, nameof(this.Vmo.ElbowType));
 
        }
 
        public override void UpdateVmoProperty()
        {
            base.UpdateVmoProperty();
            this.Vmo.BendingAngle = this.BendingAngle;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.BendingAngle), this, nameof(this.BendingAngle));
            this.Vmo.ElbowType = this.ElbowType;
            this.Vmo.UpdatePropStatus(nameof(this.Vmo.ElbowType), this, nameof(this.ElbowType));
        }
 
 
 
    }
}