duheng
2025-03-28 b266e82b9a377fa35a766f7a3a2f5aa95f3c9125
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
using System.ComponentModel;
using Yw.Vmo;
 
namespace HStation.WinFrmUI.Basic
{
    public class SysPropMappingViewModel
    {
        public SysPropMappingViewModel()
        { }
 
        public SysPropMappingViewModel(SysPropMappingHaveLogicalTreeVmo rhs)
        {
            if (rhs.LogicalType == "sys-prop")
            {
                Name = rhs.LogicalName;
                ID = rhs.LogicalID;
                IsHave = rhs.Have;
            }
            else
            {
                Name = rhs.LogicalName;
                ID = rhs.LogicalID;
                IsHave = rhs.Have;
            }
        }
 
        public string GroupName { get; set; }
        public string Name { get; set; }
        public long ID { get; set; }
        public long ParentID { get; set; }
        public bool IsHave { get; set; }
 
        public long PropID { get; set; }
        public string UnitName { get; set; }
        public bool IsNull { get; set; }
        public string DefaultValue { get; set; }
        public bool Inherit { get; set; }
        public bool IsGroup { get; set; }
 
        [DisplayName("列")]
        [Browsable(false)]
        public List<long> ChoiceIds { get; set; }
 
        public string DisplayChoice { get; set; }
        public List<SysPropMappingChoiceHaveVmo> ChoiceList { get; set; }
    }
}