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
using Yw.Dto;
 
namespace HStation.WinFrmUI.Basic
{
    public class SysTypeTreeListViewModel
    {
        public SysTypeTreeListViewModel(SysTypeLogicalTreeDto rhs)
        {
            var Module = rhs.LogicalModel as SysModuleStdDto;
            this.ID = Module.ID;
            this.Name = Module.Name;
            this.SortCode = Module.SortCode;
            this.Description = Module.Description;
        }
 
        public SysTypeTreeListViewModel(LogicalTreeExDto rhs)
        {
            var systype = rhs.LogicalModel as SysTypeStdDto;
            this.ParentID = systype.ModuleID;
            this.ID = systype.ID;
            this.Name = systype.Name;
            this.SortCode = systype.SortCode;
            this.Description = systype.Description;
        }
 
        public void Reset(SysTypeLogicalTreeDto rhs)
        {
        }
 
        /// <summary>
        /// ID
        /// </summary>
        public long ID { get; set; }
 
        /// <summary>
        /// 父级ID
        /// </summary>
        public long ParentID { get; set; }
 
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
 
        /// <summary>
        /// 排序码
        /// </summary>
        public int SortCode { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        public string Description { get; set; }
    }
}