ningshuxia
2025-03-28 ce9752fd657c6689ea64929eb962146e2730624e
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
namespace HStation.WinFrmUI.Basic
{
    public class SysPropViewModel
    {
        public SysPropViewModel(Yw.Vmo.SysPropVmo rhs)
        {
            ID = rhs.ID;
            GroupID = rhs.GroupID;
            TypeID = rhs.TypeID;
            Name = rhs.Name;
            Code = rhs.Code;
            if (rhs.Format == Yw.Basic.ePropFormat.Bigint)
            {
                this.FormatDisPlayName = "长整数";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Integer)
            {
                this.FormatDisPlayName = "整数";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.MultiText)
            {
                this.FormatDisPlayName = "多文本";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Time)
            {
                this.FormatDisPlayName = "时间";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Numeric)
            {
                this.FormatDisPlayName = "数值";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Text)
            {
                this.FormatDisPlayName = "文本";
            }
            else
            {
                this.FormatDisPlayName = "布尔";
            }
            UnitName = rhs.UnitName;
            IsNull = rhs.IsNull;
            DefaultValue = rhs.DefaultValue;
            SortCode = rhs.SortCode;
            Description = rhs.Description;
        }
 
        public void Reset(Yw.Vmo.SysPropVmo rhs)
        {
            ID = rhs.ID;
            Name = rhs.Name;
            Code = rhs.Code;
            if (rhs.Format == Yw.Basic.ePropFormat.Bigint)
            {
                this.FormatDisPlayName = "长整数";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Integer)
            {
                this.FormatDisPlayName = "整数";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.MultiText)
            {
                this.FormatDisPlayName = "多文本";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Time)
            {
                this.FormatDisPlayName = "时间";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Numeric)
            {
                this.FormatDisPlayName = "数值";
            }
            else if (rhs.Format == Yw.Basic.ePropFormat.Text)
            {
                this.FormatDisPlayName = "文本";
            }
            else
            {
                this.FormatDisPlayName = "布尔";
            }
            UnitName = rhs.UnitName;
            IsNull = rhs.IsNull;
            DefaultValue = rhs.DefaultValue;
            Description = rhs.Description;
        }
 
        public string ExtendTypeDisPlayName { get; set; }
 
        public string FormatDisPlayName { get; set; }
 
        public long ID { get; set; }
 
        public long GroupID { get; set; }
 
        public long TypeID { get; set; }
 
        public string Name { get; set; }
 
        public string Code { get; set; }
 
        public Yw.Basic.ePropFormat Format { get; set; }
 
        public string UnitName { get; set; }
 
        public bool IsNull { get; set; }
 
        public string DefaultValue { get; set; }
 
        public int SortCode { get; set; }
 
        public string Description { get; set; }
    }
}