lixiaojun
2025-01-03 d672ca82c49f01dae2c5c955202b5857ef680a71
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
using DevExpress.Utils.Svg;
 
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public class XhsSchemeValveChangeViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public XhsSchemeValveChangeViewModel()
        {
            this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Valve;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public XhsSchemeValveChangeViewModel(HydroValveViewModel rhs)
        {
            this.ViewModel = rhs;
            this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Valve;
        }
 
        /// <summary>
        /// 名称
        /// </summary>
        [Display(Name = "名称")]
        public string Name
        {
            get
            {
                var name = this.ViewModel.Name;
                if (!string.IsNullOrEmpty(this.ViewModel.ModelType))
                {
                    name += $"({this.ViewModel.ModelType})";
                }
                return name;
            }
        }
 
        /// <summary>
        /// 阀门状态
        /// </summary> 
        [Display(Name = "阀门状态")]
        public string ValveStatus
        {
            get { return ViewModel.LinkStatus; }
            set { ViewModel.LinkStatus = value; }
        }
 
        /// <summary>
        /// 阀门开度
        /// </summary> 
        [Display(Name = "阀门开度")]
        public double OpeningDegree
        {
            get { return ViewModel.OpeningDegree; }
            set { ViewModel.OpeningDegree = value; }
        }
 
        /// <summary>
        /// 材质
        /// </summary> 
        [Display(Name = "材质")]
        public string Material
        {
            get { return ViewModel.Material; }
            set { ViewModel.Material = value; }
        }
 
        /// <summary>
        /// 直径
        /// </summary>  
        [Display(Name = "直径")]
        public double Diameter
        {
            get { return ViewModel.Diameter; }
            set { ViewModel.Diameter = value; }
        }
 
        /// <summary>
        /// 局阻系数
        /// </summary> 
        [Display(Name = "局阻系数")]
        public double MinorLoss
        {
            get { return ViewModel.MinorLoss; }
            set { ViewModel.MinorLoss = value; }
        }
 
 
        /// <summary>
        /// ViewMdoel
        /// </summary>
        public HydroValveViewModel ViewModel { get; set; }
 
        /// <summary>
        /// 图片
        /// </summary>
        public SvgImage SvgImage { get; set; }
 
        /// <summary>
        /// 查看图片
        /// </summary>
        public SvgImage ViewImage { get; set; }
 
 
    }
}