lixiaojun
2024-10-29 1d8832e8e8e862a296f80c18ae2f1dac40419b68
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
using DevExpress.Utils.Svg;
 
namespace HStation.WinFrmUI
{
    public class SetHydroPumpCalcuPrefixViewModel
    {
        public SetHydroPumpCalcuPrefixViewModel() { }
        public SetHydroPumpCalcuPrefixViewModel(Yw.Model.HydroPumpInfo rhs)
        {
            this.Name = rhs.Name;
            this.RunStatus = rhs.LinkStatus;
            this.CurrentHz = Math.Round(rhs.RatedHz * rhs.SpeedRatio, 1);
        }
 
        [Display(Name = "名称")]
        public string Name { get; set; }
 
        [Display(Name = "运行状态")]
        public string RunStatus { get; set; }
 
        [Display(Name = "设定频率")]
        public double CurrentHz { get; set; }
 
        [Display(Name = "图标")]
        public SvgImage Icon { get; set; }
 
    }
}