You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
968 B
43 lines
968 B
1 year ago
|
namespace ChangkeTec.Utils
|
||
|
{
|
||
|
public class FilterModel
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 过滤条件中使用的数据列
|
||
|
/// </summary>
|
||
|
public string Column { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 过滤条件中的操作:等于、不等于、大于、小于、大于等于、小于等于、In、Out
|
||
|
/// </summary>
|
||
|
public FilterAction Action { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 过滤条件之间的逻辑关系:AND和OR
|
||
|
/// </summary>
|
||
|
public FilterLogic Logic { get; set; } = FilterLogic.And;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 过滤条件中的操作的值
|
||
|
/// </summary>
|
||
|
public string Value { get; set; }
|
||
|
}
|
||
|
|
||
|
public enum FilterAction
|
||
|
{
|
||
|
等于,
|
||
|
不等于,
|
||
|
大于,
|
||
|
小于,
|
||
|
大于等于,
|
||
|
小于等于,
|
||
|
包含,
|
||
|
不包含
|
||
|
}
|
||
|
|
||
|
public enum FilterLogic
|
||
|
{
|
||
|
And,
|
||
|
Or
|
||
|
}
|
||
|
}
|