天津投入产出系统后端
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.

106 lines
2.6 KiB

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using QMAPP.Entity.Sys;
using QMFrameWork.Data;
using QMAPP.DAL.Sys;
namespace QMAPP.BLL.Sys
{
/// <summary>
/// 数据处理任务逻辑层对象
/// 创建者:韩磊
/// 创建日期:2014.12.18
/// </summary>
public class DataTaskPlanBLL : BaseBLL
{
#region 获取任务列表
/// <summary>
/// 获取数据任务计划列表
/// </summary>
/// <param name="condition">条件</param>
/// <param name="page">数据页</param>
/// <returns>数据页</returns>
public DataPage GetList(DataTaskPlan condition, DataPage page)
{
try
{
return new DataTaskPlanDAL().GetList(condition, page);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 编辑任务计划
/// <summary>
/// 获取锁定信息
/// </summary>
/// <param name="task">条件</param>
/// <returns>锁定信息</returns>
public DataTaskPlan Get(DataTaskPlan task)
{
try
{
return new DataTaskPlanDAL().Get(task);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 插入执行日志
/// <summary>
/// 插入执行日志
/// </summary>
/// <param name="log">执行日志</param>
public void InsertExecuteLog(DataTaskLog log)
{
log.PID = Guid.NewGuid().ToString();
new DataTaskPlanDAL().InsertExecuteLog(log);
}
#endregion
#region 获取执行日志列表
/// <summary>
/// 获取执行日志列表
/// </summary>
/// <param name="page">数据页</param>
/// <param name="log">日志</param>
/// <returns>数据页</returns>
public DataPage GetLogList(DataTaskLog log, DataPage page)
{
return new DataTaskPlanDAL().GetLogList(log, page);
}
#endregion
#region 获取导出的数据
/// <summary>
/// 获取导出的数据
/// </summary>
/// <param name="user">查询条件</param>
/// <returns>数据</returns>
public DataTable GetExportLogData(DataTaskLog log)
{
return new DataTaskPlanDAL().GetExportLogData(log);
}
#endregion
}
}