Files
Future/Future.Platform/DataProvider/QueryHandler.cs
2025-08-30 17:19:57 +08:00

50 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Data;
namespace Future.Platform
{
/// <summary>
/// 查询句柄:所有档案类型数据的通用查询参数对象
/// </summary>
public class QueryHandler : DataSourceProvider
{
public QueryHandler() { }
/// <summary>
/// 数据集合名称,相当于数据库表名
/// </summary>
public string DataSet { get; set; } = "";
/// <summary>
/// 待检索关键字模糊匹配Title与Remark
/// </summary>
public string Keyword { get; set; } = "";
/// <summary>
/// 父级数据标识,如果是附属数据则可以限定
/// </summary>
public string ParentID { get; set; } = "";
/// <summary>
/// 是否只查一层,可以查询所有层次结构上的数据
/// </summary>
public bool Onelayer { get; set; }=false;
/// <summary>
/// 操作用户标识,用于匹配操作员信息,以“,”分隔的操作员ID列表
/// </summary>
public string Operator { get; set; } = "";
/// <summary>
/// 默认为Ture=只检索活动档案False=只查非活动档案null=检索所有文档
/// </summary>
public bool? IsAlive { get; set; } = true;
/// <summary>
/// 开始时间:精确到日期,格式化=YYYY-MM-DD
/// </summary>
public DateTime? StartTime { get; set; } = null;
/// <summary>
/// 截至时间:精确到日期,格式化=YYYY-MM-DD
/// </summary>
public DateTime? EndTime { get; set; } = null;
}
}