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
#region
 
using System;
 
#endregion
 
namespace CSFrameworkV5.Interfaces.InterfaceModels
{
    /// <summary>
    ///     查询条件配置表格的数据结构
    /// </summary>
    [Serializable]
    public class ItemConfig
    {
        public ItemConfig()
        {
            SetDefault();
        }
 
        public ItemConfig(FieldNameDef field)
        {
            SetDefault();
            FieldName = field.FieldName;
            FieldCaption = field.Caption;
            IsStringType = field.IsStringType();
        }
 
        public string FieldCaption { get; set; }
        public string FieldName { get; set; }
 
        public bool IsStringType { get; set; }
 
        public bool IsValid { get; set; }
        public string LogicOperator { get; set; }
        public string Operator { get; set; }
        public string Value { get; set; }
 
        private void SetDefault()
        {
            FieldName = "";
            FieldCaption = "";
            Value = "";
            Operator = "";
            LogicOperator = "";
            IsStringType = true;
            IsValid = false;
        }
    }
}