#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;
|
}
|
}
|
}
|