duheng
2025-03-24 6e1dd6f75cd7265f549a8b9e4d77ff5d88da9651
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
63
64
65
using Yw.Basic;
 
namespace HStation.WinFrmUI.Basic
{
    public class SysTypeViewModel
    {
        public SysTypeViewModel(Yw.Vmo.SysTypeVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            if (rhs.ExtendType == Yw.Basic.eExtendType.None)
            {
                this.ExtendTypeDisPlayName = "无";
            }
            else if (rhs.ExtendType == Yw.Basic.eExtendType.Config)
            {
                this.ExtendTypeDisPlayName = "配置";
            }
            else
            {
                this.ExtendTypeDisPlayName = "分类";
            }
            this.ModuleID = rhs.ModuleID;
            this.Code = rhs.Code;
            this.SortCode = rhs.SortCode;
        }
 
        public void Reset(Yw.Vmo.SysTypeVmo rhs)
        {
            this.ID = rhs.ID;
            this.Description = rhs.Description;
            this.Name = rhs.Name;
            if (rhs.ExtendType == Yw.Basic.eExtendType.None)
            {
                this.ExtendTypeDisPlayName = "无";
            }
            else if (rhs.ExtendType == Yw.Basic.eExtendType.Config)
            {
                this.ExtendTypeDisPlayName = "配置";
            }
            else
            {
                this.ExtendTypeDisPlayName = "分类";
            }
            this.Code = rhs.Code;
        }
 
        public string ExtendTypeDisPlayName { get; set; }
 
        public long ID { get; set; }
 
        public long ModuleID { get; set; }
 
        public string Name { get; set; }
 
        public string Code { get; set; }
 
        public eExtendType ExtendType { get; set; }
 
        public int SortCode { get; set; }
 
        public string Description { get; set; }
    }
}