yangyin
2024-08-20 98e49c0dd42840a094837f7acae532bc237a719a
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
namespace HStation.WinFrmUI.Xhs
{
    public class PumpMainChoieViewModel
    {
        public PumpMainChoieViewModel(Vmo.PumpSeries rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.IsPump = false;
        }
 
        public PumpMainChoieViewModel(Vmo.PumpGroup rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.ParentID = rhs.PumpSeriesID;
            this.IsPump = false;
        }
 
        public PumpMainChoieViewModel(Vmo.PumpMain rhs, long GroupID)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.ParentID = GroupID;
            this.IsPump = true;
        }
 
        public PumpMainChoieViewModel(Vmo.PumpMain rhs )
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.ParentID = rhs.PumpSeriesID;
            this.IsPump = true;
        }
 
        public long ID { get; set; }
        public long ParentID { get; set; }
        public string Name { get; set; }
        public bool IsPump { get; set; }
    }
}