duheng
2024-07-08 06a92956009d512f7816b2465c39235853cf10b1
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
using Yw.Dto;
 
namespace HStation.WinFrmUI.Xhs
{
    public class PropViewModel : Yw.Dto.SysPropDto
    {
        public PropViewModel(SysPropDto rhs)
        {
            ID = rhs.ID;
            GroupID = rhs.GroupID;
            TypeID = rhs.TypeID;
            Name = rhs.Name;
            Code = rhs.Code;
            Format = rhs.Format;
            UnitName = rhs.UnitName;
            IsNull = rhs.IsNull;
            DefaultValue = rhs.DefaultValue;
            SortCode = rhs.SortCode;
            Description = rhs.Description;
        }
 
        public void Reset(UpdateSysPropInput rhs)
        {
            ID = rhs.ID;
            Name = rhs.Name;
            Code = rhs.Code;
            Format = rhs.Format;
            UnitName = rhs.UnitName;
            IsNull = rhs.IsNull;
            DefaultValue = rhs.DefaultValue;
            Description = rhs.Description;
        }
 
        public string ExtendTypeDisPlayName { get; set; }
    }
}