duheng
2024-06-23 7a3d178b414201f7c3af3d000468159cfead00ed
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
using HStation.Dto;
using Yw.Dto;
 
namespace HStation.WinFrmUI.Xhs.Project
{
    public class ProjectViewModel : XhsProjectDto
    {
        public ProjectViewModel(XhsProjectDto rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Paras = rhs.Paras;
            this.PrjNumber = rhs.PrjNumber;
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.Address = rhs.Address;
            this.UseStatus = rhs.UseStatus;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.CreateTime = rhs.CreateTime;
            this.CustomerName = rhs.CustomerName;
            this.CreateUserID = rhs.CreateUserID;
            this.Version = rhs.Version;
            this.MapPosition = rhs.MapPosition;
            this.CreateUserDisplayName = rhs.CreateUserDisplayName;
        }
 
        public void Reset(ProjectViewModel rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Paras = rhs.Paras;
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.CreateTime = rhs.CreateTime;
            this.CustomerName = rhs.CustomerName;
            this.CreateUserID = rhs.CreateUserID;
            this.Version = rhs.Version;
            this.MapPosition = rhs.MapPosition;
            this.CreateUserDisplayName = rhs.CreateUserDisplayName;
        }
 
        public void Reset(UpdateXhsProjectInput rhs)
        {
            this.ID = rhs.ID;
            this.Name = rhs.Name;
            this.Paras = rhs.Paras;
            this.Flags = rhs.Flags;
            this.TagName = rhs.TagName;
            this.SortCode = rhs.SortCode;
            this.Description = rhs.Description;
            this.CreateTime = rhs.CreateTime;
            this.CustomerName = rhs.CustomerName;
            this.CreateUserID = rhs.CreateUserID;
            this.Version = rhs.Version;
            this.MapPosition = rhs.MapPosition;
            this.CreateUserDisplayName = rhs.CreateUserDisplayName;
        }
    }
}