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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
using DevExpress.Utils.Svg;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace HStation.WinFrmUI
{
    /// <summary>
    /// 
    /// </summary>
    public class XhsSchemeWaterboxChangeViewModel
    {
        /// <summary>
        /// 
        /// </summary>
        public XhsSchemeWaterboxChangeViewModel()
        {
            this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Tank;
        }
 
        /// <summary>
        /// 
        /// </summary>
        public XhsSchemeWaterboxChangeViewModel(HydroWaterboxViewModel rhs)
        {
            this.ViewModel = rhs;
            this.SvgImage = HStation.WinFrmUI.AssetsMainSvgImageHelper.Tank;
        }
 
        /// <summary>
        /// 名称
        /// </summary>
        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 double PoolElev
        {
            get { return this.ViewModel.PoolElev; }
            set { this.ViewModel.PoolElev = value; }
        }
 
        /// <summary>
        /// 初始水位
        /// </summary>
        [Display(Name = "初始水位")]
        public double InitLevel
        {
            get { return this.ViewModel.InitLevel; }
            set { this.ViewModel.InitLevel = value; }
        }
 
        /// <summary>
        /// 最低水位
        /// </summary>
        [Display(Name = "最低水位")]
        public double MinLevel
        {
            get { return this.ViewModel.MinLevel; }
            set { this.ViewModel.MinLevel = value; }
        }
 
        /// <summary>
        /// 最高水位
        /// </summary>
        [Display(Name = "最高水位")]
        public double MaxLevel
        {
            get { return this.ViewModel.MaxLevel; }
            set { this.ViewModel.MaxLevel = value; }
        }
 
        /// <summary>
        /// 公称直径
        /// </summary>
        [Display(Name = "公称直径")]
        public double DN
        {
            get { return this.ViewModel.DN; }
            set { this.ViewModel.DN = value; }
        }
 
        /// <summary>
        /// 最小容积
        /// </summary>
        [Display(Name = "最小容积")]
        public double MinVol
        {
            get { return this.ViewModel.MinVol; }
            set { this.ViewModel.MinVol = value; }
        }
 
        /// <summary>
        /// 容积曲线
        /// </summary>
        [Display(Name = "容积曲线")]
        public string VolCurve
        {
            get { return this.ViewModel.VolCurve; }
            set { this.ViewModel.VolCurve = value; }
        }
 
 
        /// <summary>
        /// ViewMdoel
        /// </summary>
        public HydroWaterboxViewModel ViewModel { get; set; }
 
        /// <summary>
        /// 图片
        /// </summary>
        public SvgImage SvgImage { get; set; }
 
        /// <summary>
        /// 查看图片
        /// </summary>
        public SvgImage ViewImage { get; set; }
    }
}