Shuxia Ning
2024-12-17 33b5627e2d1092f6931165b7f9f1a16de65d765d
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
using System.ComponentModel;
 
namespace HStation.WinFrmUI.Assets
{
    public class FlowmeterViewModel
    {
        public FlowmeterViewModel()
        {
        }
 
        public FlowmeterViewModel(Vmo.AssetsFlowmeterMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.SortCode = rhs.SortCode;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.MinorLoss = rhs.MinorLoss;
        }
 
        public void Reset(Vmo.AssetsFlowmeterMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.SortCode = rhs.SortCode;
            this.MinorLoss = rhs.MinorLoss;
        }
 
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [Browsable(true)]
        public string Name { get; set; }
 
        /// <summary>
        /// 系数
        /// </summary>
        [DisplayName("系数")]
        [Browsable(true)]
        public double MinorLoss { get; set; }
 
        /// <summary>
        /// 识别关键字
        /// </summary>
        [DisplayName("关键字")]
        [Browsable(true)]
        public string KeyWord { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>
        [DisplayName("排序码")]
        [Browsable(true)]
        public int SortCode { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        [DisplayName("说明")]
        [Browsable(true)]
        public string Description { get; set; }
    }
}