lixiaojun
2024-12-09 725f20b576bdd40d57d9a1e806ce3f6f39181a84
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
using HStation.Assets;
using Microsoft.AspNetCore.JsonPatch.Converters;
 
namespace HStation.WinFrmUI
{
    public class MeterSingleMatchingViewModel
    {
        public MeterSingleMatchingViewModel()
        {
        }
 
        public MeterSingleMatchingViewModel(Vmo.AssetsMeterMainVmo rhs)
        {
            this.ID = rhs.ID;
            this.ModelType = rhs.Name;
            this.KeyWord = string.Join(",", rhs.KeyWord);
            this.MinorLoss = rhs.MinorLoss;
            this.Description = rhs.Description;
        }
 
        /// <summary>
        /// ID
        /// </summary>
        [DisplayName("ID")]
        [Browsable(false)]
        public long ID { get; set; }
 
        /// <summary>
        /// 型号名
        /// </summary>
        [DisplayName("型号名")]
        [Browsable(true)]
        public string ModelType { 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 string Description { get; set; }
    }
}