ningshuxia
6 小时以前 71c12ff40d58c3dbdde6867396dd99224e57fc32
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
using System.ComponentModel;
using Yw.Untity;
 
namespace HStation.WinFrmUI.WE
{
    public class ItemViewModel
    {
        public ItemViewModel()
        {
        }
 
        public ItemViewModel(Vmo.WE.ItemVmo rhs, Vmo.WE.UtensilMappingVmo mapping, string utensilName)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.UtensilID = mapping.UtensilID;
            this.UtensilName = utensilName;
            this.RatedFlow = mapping.RatedFlow;
            this.MinRatedFlow = mapping.MinRatedFlow;
            this.UtensilCount = mapping.UtensilCount;
            this.Description = rhs.Description;
        }
 
        public void Reset(Vmo.WE.ItemVmo rhs, Vmo.WE.UtensilMappingVmo mapping, string utensilName)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.UtensilID = mapping.UtensilID;
            this.UtensilName = utensilName;
            this.RatedFlow = mapping.RatedFlow;
            this.MinRatedFlow = mapping.MinRatedFlow;
            this.UtensilCount = mapping.UtensilCount;
            this.Description = rhs.Description;
        }
 
        [DisplayName("ID")]
        [Browsable(false)]
        public long ID { get; set; }
 
        /// <summary>
        /// 所属项名称
        /// </summary>
        [DisplayName("所属项名称")]
        [Browsable(true)]
        public string Name { get; set; }
 
        /// <summary>
        /// 器具名称
        /// </summary>
        [DisplayName("器具名称")]
        [Browsable(true)]
        public string UtensilName { get; set; }
 
        /// <summary>
        /// 用水器具标识
        ///</summary>
        [DisplayName("UtensilID")]
        [Browsable(true)]
        public long UtensilID { get; set; }
 
        /// <summary>
        /// 用水器具数量
        ///</summary>
        [DisplayName("器具数量")]
        [Browsable(true)]
        public int UtensilCount { get; set; }
 
        /// <summary>
        /// 额定流量
        ///</summary>
        [DisplayName("额定流量")]
        [Browsable(true)]
        public double RatedFlow { get; set; }
 
        /// <summary>
        /// 最小额定流量
        ///</summary>
        [DisplayName("最小额定流量")]
        [Browsable(true)]
        public double MinRatedFlow { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        [DisplayName("说明")]
        [Browsable(true)]
        public string Description { get; set; }
    }
}