Ejemplo n.º 1
0
        /// <summary>
        /// 异步加载定时任务执行记录
        /// </summary>
        /// <param name="dRequest">数据请求</param>
        /// <param name="taskId">定时任务Id</param>
        /// <returns></returns>
        public ActionResult ReadHistory([DataSourceRequest] DataSourceRequest dRequest, int taskId)
        {
            var areaResult          = ScheduledTaskService.TaskHistoryList(dRequest.Page, dRequest.PageSize, null, null, taskId);
            DataSourceResult result = new DataSourceResult()
            {
                Data  = areaResult.Data,
                Total = areaResult.Total
            };

            return(Json(result));
        }