var data = from d in jx.LogTable
orderby d.OperTime descending
where Tflag.Equals("全部") ||
((d.OperTime >= t1 && d.OperTime <= t2) && (d.OperName.Contains(content) || d.UserID.Contains(content)))
select d;
List<LogTable> items = new List<LogTable>();
foreach (var d in data)
{
LogTable item = new LogTable();
item.编号 = trim(d.ID);
item.事件 = trim(d.OperName);
item.操作员 = trim(d.UserID);
item.标志 = trim(d.mark);
item.操作时间 = trim(d.OperTime);
items.Add(item);
}
return items;