1
yhj
2024-07-24 5e5d945e91568b973faa27d8ab0bcef99fc4a6c5
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
#region
 
using System;
 
#endregion
 
namespace CSFrameworkV5.Interfaces.InterfaceModels
{
    [Serializable]
    public class FieldConfig : FieldNameDef
    {
        public FieldConfig()
        {
            Visible = true;
        }
 
        public FieldConfig(FieldNameDef fieldDef)
        {
            FieldName = fieldDef.FieldName;
            Caption = fieldDef.Caption;
            CaptionCustom = fieldDef.Caption; //预算值
            FieldType = fieldDef.FieldType;
            Visible = true;
        }
 
        public FieldConfig(string fieldName, string caption, string fieldType)
            : base(fieldName, caption, fieldType)
        {
            Visible = true;
        }
 
        /// <summary>
        ///     显示名称(标题),预设为默认标题
        /// </summary>
        public string CaptionCustom { get; set; }
 
        /// <summary>
        ///     字段类型
        /// </summary>
        public string FieldType { get; set; }
 
        /// <summary>
        ///     允许为空
        /// </summary>
        public bool NoBlank { get; set; }
 
        /// <summary>
        ///     小数位
        /// </summary>
        public int Point { get; set; }
 
        public bool ReadOnly { get; set; }
 
        /// <summary>
        ///     显示
        /// </summary>
        public bool Visible { get; set; }
 
        /// <summary>
        ///     显示宽度
        /// </summary>
        public int Width { get; set; }
    }
}