Shuxia Ning
2024-07-22 952cb084d1f31a1c2634b91d4d03374c359b52da
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
namespace HStation.WinFrmUI.Xhs.PumpProduct
{
    public class PumpMainViewModel : PumpMainDto
    {
        public PumpMainViewModel(PumpMainDto rhs) : base()
        {
            this.ID = rhs.ID;
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.Paras = rhs.Paras;
            this.RatedPower = rhs.RatedPower;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.Name = rhs.Name;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.Description = rhs.Description;
        }
 
        public PumpMainViewModel(AddPumpMainDto rhs) : base()
        {
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.RatedPower = rhs.RatedPower;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.Name = rhs.Name;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.Description = rhs.Description;
        }
 
        public void Reset(UpdatePumpMainDto rhs)
        {
            this.ID = rhs.ID;
            this.PumpSeriesID = rhs.PumpSeriesID;
            this.RatedPower = rhs.RatedPower;
            this.RatedEfficiency = rhs.RatedEfficiency;
            this.Erosion = rhs.Erosion;
            this.D2 = rhs.D2;
            this.Name = rhs.Name;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.RatedSpeed = rhs.RatedSpeed;
            this.RatedHead = rhs.RatedHead;
            this.RatedFlow = rhs.RatedFlow;
            this.Description = rhs.Description;
        }
    }
}