duheng
2024-07-16 e18218195caa7fe3af4efa3cd2e53a53a00d98f7
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
66
67
68
69
70
71
72
73
74
using HStation.Dto;
using HStation.WinFrmUI.Core;
using System.ComponentModel;
 
namespace HStation.WinFrmUI.Xhs.Core
{
    [TypeConverter(typeof(PropertySorter))]
    public class XhsProjectPropertyGridViewModel
    {
        public XhsProjectPropertyGridViewModel(XhsProjectDto rhs)
        {
            this.Address = rhs.Address;
            this.Name = rhs.Name;
            this.ProjectNumber = rhs.PrjNumber;
            this.CreateTime = rhs.CreateTime;
            this.Description = rhs.Description;
            this.CreateName = rhs.CreateUserDisplayName;
        }
 
        /// <summary>
        /// 名称
        /// </summary>
        [DisplayName("名称")]
        [Category("基本信息")]
        [PropertyOrder(11)]
        [Browsable(true)]
        public string Name { get; set; }
 
        /// <summary>
        /// 项目编号
        /// </summary>
        [DisplayName("项目编号")]
        [Category("基本信息")]
        [Browsable(true)]
        [PropertyOrder(-9)]
        public string ProjectNumber { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        [Category("基本信息")]
        [PropertyOrder(-10)]
        [Browsable(true)]
        public DateTime CreateTime { get; set; }
 
        /// <summary>
        /// 创建人
        /// </summary>
        [DisplayName("创建人")]
        [Category("基本信息")]
        [PropertyOrder(-11)]
        [Browsable(true)]
        public string CreateName { get; set; }
 
        /// <summary>
        /// 说明
        /// </summary>
        [DisplayName("说明")]
        [Category("基本信息")]
        [PropertyOrder(-12)]
        [Browsable(true)]
        public string Description { get; set; }
 
        /// <summary>
        /// 地址
        /// </summary>
        [DisplayName("地址")]
        [Category("基本信息")]
        [PropertyOrder(-13)]
        [Browsable(true)]
        public string Address { get; set; }
    }
}