示例#1
0
        public PageList <Ts_ExecLog> GetAllTaskLog(TaskLogFilter filter, PageView page)
        {
            Expression <Predicate <Ts_ExecLog> > where = w => w.TaskGuid == filter.TaskGuid;
            if (filter.BeginTime.HasValue)
            {
                where = where.And(w => w.ExecStatrtTime > filter.BeginTime);
            }
            if (filter.EndTime.HasValue)
            {
                where = where.And(w => w.ExecEndTime <= filter.EndTime);
            }

            return(new PageList <Ts_ExecLog>(_ormExecLog.GetPage(page, where)));
        }