lixiaojun
2024-07-26 e07f29ff4473031eec7365456be15cc98804591b
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
using Yw.Dto;
 
namespace HStation.WinFrmUI.Basic
{
    public class SysModuleViewModel : Yw.Dto.SysModuleDto
    {
        public SysModuleViewModel(SysModuleDto rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
            this.SortCode = rhs.SortCode;
        }
 
        public SysModuleViewModel(Yw.Dto.AddSysModuleInput rhs)
        {
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
        }
 
        public void Reset(UpdateSysModuleInput rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            this.Code = rhs.Code;
        }
    }
}